Skip to content

Commit 86192f5

Browse files
Added a comment
1 parent b3f5600 commit 86192f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/tools/sycl-post-link/sycl-post-link.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ static void collectKernelModuleMap(
271271
// TODO It may make sense to group all kernels w/o the attribute into
272272
// a separate module rather than issuing an error. Should probably be
273273
// controlled by an option.
274+
// Functions with spir_func calling convention are allowed to not have
275+
// a sycl-module-id attribute.
274276
error("no '" + Twine(ATTR_SYCL_MODULE_ID) + "' attribute in kernel '" +
275277
F.getName() + "', per-module split not possible");
276278
}

0 commit comments

Comments
 (0)