-
Notifications
You must be signed in to change notification settings - Fork 797
[SYCL] Propagate attributes from transitive calls to kernel #1878
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
Changes from 1 commit
fd4591c
6b5d4a9
3857f54
ef2deea
3426ef0
acb7a65
eb3a32e
49c747c
e3e79b1
882b3d0
1735df4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fsycl -fsycl-is-device -verify %s | ||
// RUN: %clang %s -fsyntax-only -Xclang -ast-dump -fsycl-device-only | FileCheck %s | ||
|
||
[[intelfpga::no_global_work_offset]] void not_direct() {} // expected-no-warning | ||
[[intelfpga::no_global_work_offset]] void not_direct() {} | ||
|
||
void func() { not_direct(); } | ||
|
||
|
@@ -16,5 +16,8 @@ void parallel_for(Type lambda) { | |
} | ||
|
||
void invoke_foo2() { | ||
// CHECK-LABEL: FunctionDecl {{.*}} invoke_foo2 'void ()' | ||
// CHECK: `-FunctionDecl {{.*}} _ZTSZ11invoke_foo2vE10KernelName 'void ()' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would suggest {{.}}KernelName{{.}} Differences in name mangling on Windows will cause issues otherwise. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with this thought, and changed it per your suggestion. However, please note that there are other lit tests following this name mangled pattern, with which I intended to be consistent. |
||
// CHECK: -SYCLIntelNoGlobalWorkOffsetAttr {{.*}} Enabled | ||
parallel_for<class KernelName>([]() {}); | ||
} |
Uh oh!
There was an error while loading. Please reload this page.