Skip to content

Commit 1eec0c4

Browse files
Backed of the check for unsupported calling conventions
1 parent cdffa9f commit 1eec0c4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,6 @@ static void collectKernelModuleMap(
246246
// Only they have sycl-module-id attribute, so any other unrefenced
247247
// functions are dropped.
248248
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-
}
253249
if (F.hasFnAttribute(ATTR_SYCL_MODULE_ID)) {
254250
switch (EntryScope) {
255251
case Scope_PerKernel:
@@ -650,10 +646,6 @@ static ModulePair splitSyclEsimd(std::unique_ptr<Module> M) {
650646
// Only they have sycl-module-id attribute, so any other unrefenced
651647
// functions are dropped.
652648
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-
}
657649
if (F.hasFnAttribute(ATTR_SYCL_MODULE_ID)) {
658650
if (F.getMetadata("sycl_explicit_simd"))
659651
EsimdFunctions.push_back(&F);

0 commit comments

Comments
 (0)