Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Forbid declaration of static non-const variable inside kernel. #1141

Merged
merged 3 commits into from
Feb 20, 2020

Conversation

fadeeval
Copy link
Contributor

Adding the error, that forbid declaration of static variable inside kernel, if the variable is not const.

Signed-off-by: Aleksander Fadeev aleksander.fadeev@intel.com

@fadeeval fadeeval force-pushed the private/fadeeval/const-static_declaration branch from af574fe to f12a4ed Compare February 18, 2020 10:13
@Fznamznon
Copy link
Contributor

Please do not duplicate PRs. You already have one #1133

@fadeeval
Copy link
Contributor Author

Please do not duplicate PRs. You already have one #1133

I can't contribute to #1133 any more. I have lost permission.

@Fznamznon
Copy link
Contributor

Please do not duplicate PRs. You already have one #1133

I can't contribute to #1133 any more. I have lost permission.

How this is happened?
Also, could you please stop doing force-push? You lose history when doing force-push.
And, please close duplicate if you can't use it, it's confusing.

@fadeeval
Copy link
Contributor Author

fadeeval commented Feb 18, 2020 via email

@fadeeval
Copy link
Contributor Author

fadeeval commented Feb 18, 2020 via email

erichkeane
erichkeane previously approved these changes Feb 18, 2020
bader
bader previously requested changes Feb 18, 2020
clang/test/CodeGenSYCL/address-space-swap.cpp Outdated Show resolved Hide resolved
clang/test/CodeGenSYCL/intel-fpga-local.cpp Outdated Show resolved Hide resolved
…ernel, ifthe variable is not const.

Signed-off-by: Aleksander Fadeev <aleksander.fadeev@intel.com>
@fadeeval fadeeval force-pushed the private/fadeeval/const-static_declaration branch from f12a4ed to 0efdf4c Compare February 19, 2020 11:36
… (Fixed indentation)

Signed-off-by: Aleksander Fadeev <aleksander.fadeev@intel.com>
@bader bader dismissed their stale review February 19, 2020 12:32

No more comments from my side.

… (Fix Indendation intel#2)

Signed-off-by: Aleksander Fadeev <aleksander.fadeev@intel.com>
Copy link
Contributor

@erichkeane erichkeane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with this.

@bader bader requested a review from vmaksimo February 19, 2020 20:28
Copy link
Contributor

@vmaksimo vmaksimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm OK with this

@bader bader merged commit 7743e86 into intel:sycl Feb 20, 2020
@fadeeval fadeeval deleted the private/fadeeval/const-static_declaration branch February 20, 2020 13:10
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Feb 25, 2020
…ages_docs

* origin/sycl: (1092 commits)
  [CI] Add clang-format checker to pre-commit checks (intel#1163)
  [SYCL][CUDA] Initial CUDA backend support (intel#1091)
  [USM] Align OpenCL USM extension header with the specification (intel#1162)
  [SYCL][NFC] Fix unreferenced variable warning (intel#1158)
  [SYCL] Fix __spirv_GroupBroadcast overloads (intel#1152)
  [SYCL] Add llvm/Demangle link dependency for llvm-no-spir-kernel (intel#1156)
  [SYCL] LowerWGScope pass should not be skipped when -O0 is used
  [SYCL][Doc][USM] Add refactored pointer and device queries to USM spec (intel#1118)
  [SYCL] Update the kernel parameter rule to is-trivially-copy-construc… (intel#1144)
  [SYCL] Move internal headers to source dir (intel#1136)
  [SYCL] Forbid declaration of non-const static variables inside kernels (intel#1141)
  [SYCL][NFC] Remove idle space (intel#1148)
  [SYCL] Improve the error mechanism of llvm-no-spir-kernel (intel#1068)
  [SYCL] Added CTS test config (intel#1063)
  [SYCL] Implement check-sycl-deploy target (intel#1142)
  [SYCL] Preserve original message and code of kernel/program build result (intel#1108)
  [SYCL] Fix LIT after LLVM change in community
  Translate LLVM's cmpxchg instruction to SPIR-V
  Add volatile qualifier for atom_ builtins
  Fix -Wunused-variable warnings
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants