-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL] Optimize SYCL framework functions with -O0 #7376
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
Conversation
…ver. Add a warning for misuse of this option.
28b4e66
to
66642c6
Compare
LLVM infrastructure does not provide a way to add a Pass Adaptor to run Function Passes on a subset of functions in a Module. This commit adds ModuleToSYCLFrameworkFunctionPassAdaptor which runs passes over functions marked by "sycl-framework" metadata.
1b20349
to
30156c5
Compare
30156c5
to
41bbeb7
Compare
@elizabethandrews Could you please take a look at FE part? |
// Check that kernel is not marked with !sycl-framework metadata | ||
// CHECK-NOT: @_ZTSZ4mainE6kernel() {{.*}} !sycl-framework | ||
template <typename name, typename Func> | ||
__attribute__((sycl_kernel)) void kernel_single_task(const Func &func) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest using the interface from the mock header here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It leads to error because of ambiguity of sycl namespace and anonymous namespace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but might want to get final review from @AlexeySachkov
clang/test/CodeGenSYCL/sycl-optimize-non-user-code-func-attrs1.cpp
Outdated
Show resolved
Hide resolved
Hi @AlexeySachkov ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR title fix suggestion: [SYCL] Optimize SYCL framework functions with -O0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks
@intel/llvm-gatekeepers Can you please merge it? |
No description provided.