File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
llvm/lib/SYCLLowerIR/ESIMD Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -341,11 +341,15 @@ class ScopedCallGraph {
341
341
esimd::assert_and_diag (!SlmInitCall,
342
342
" multiple slm_init calls in function " ,
343
343
F.getName ());
344
- esimd::assert_and_diag (
345
- esimd::isESIMDKernel (F) ||
346
- sycl::utils::isSYCLExternalFunction (&F),
347
- " slm_init call met in non-kernel non-external function " ,
348
- F.getName ());
344
+ // TODO: this diagnostics incorrectly fires on functor's
345
+ // operator() marked as SYCL_ESIMD_KERNEL, because becomes neither
346
+ // spir_kernel nor SYCL_EXERNAL function in IR. It rather becomes
347
+ // a function called from spir_kernel.
348
+ // esimd::assert_and_diag(
349
+ // esimd::isESIMDKernel(F) ||
350
+ // sycl::utils::isSYCLExternalFunction(&F),
351
+ // "slm_init call met in non-kernel non-external function ",
352
+ // F.getName());
349
353
esimd::assert_and_diag (
350
354
!ScopeMet,
351
355
" slm_init must precede any SLMAllocator object in function " ,
You can’t perform that action at this time.
0 commit comments