We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edee7c9 commit d860652Copy full SHA for d860652
llvm/test/tools/sycl-post-link/assert-property.ll renamed to llvm/test/tools/sycl-post-link/assert-property-1.ll
llvm/tools/sycl-post-link/sycl-post-link.cpp
@@ -530,16 +530,13 @@ static string_vector saveDeviceImageProperty(
530
531
{
532
Module *M = ResultModules[I].get();
533
- std::vector<Function *> SyclKernels;
534
for (auto &F : M->functions()) {
535
// TODO: handle SYCL_EXTERNAL functions for dynamic linkage.
536
// TODO: handle function pointers.
537
if (F.getCallingConv() == CallingConv::SPIR_KERNEL) {
538
- if (hasAssertInFunctionCallGraph(&F)) {
539
- SyclKernels.push_back(&F);
+ if (hasAssertInFunctionCallGraph(&F))
540
PropSet[llvm::util::PropertySetRegistry::SYCL_ASSERT_USED].insert(
541
{F.getName(), true});
542
- }
543
}
544
545
0 commit comments