File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
llvm/tools/sycl-post-link Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -246,10 +246,6 @@ static void collectKernelModuleMap(
246
246
// Only they have sycl-module-id attribute, so any other unrefenced
247
247
// functions are dropped.
248
248
for (auto &F : M.functions ()) {
249
- if (!F.isDeclaration () && F.getCallingConv () != CallingConv::SPIR_KERNEL &&
250
- F.getCallingConv () != CallingConv::SPIR_FUNC) {
251
- error (" Unsupported calling convention in function " + F.getName ());
252
- }
253
249
if (F.hasFnAttribute (ATTR_SYCL_MODULE_ID)) {
254
250
switch (EntryScope) {
255
251
case Scope_PerKernel:
@@ -650,10 +646,6 @@ static ModulePair splitSyclEsimd(std::unique_ptr<Module> M) {
650
646
// Only they have sycl-module-id attribute, so any other unrefenced
651
647
// functions are dropped.
652
648
for (auto &F : M->functions ()) {
653
- if (!F.isDeclaration () && F.getCallingConv () != CallingConv::SPIR_KERNEL &&
654
- F.getCallingConv () != CallingConv::SPIR_FUNC) {
655
- error (" Unsupported calling convention in function " + F.getName ());
656
- }
657
649
if (F.hasFnAttribute (ATTR_SYCL_MODULE_ID)) {
658
650
if (F.getMetadata (" sycl_explicit_simd" ))
659
651
EsimdFunctions.push_back (&F);
You can’t perform that action at this time.
0 commit comments