Skip to content

Commit cf6d8b2

Browse files
aratajewigcbot
authored andcommitted
Add new builtin pattern in ProcessFuncAttributes
Add new builtin pattern in ProcessFuncAttributes
1 parent b26f997 commit cf6d8b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

IGC/AdaptorCommon/ProcessFuncAttributes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@ bool ProcessFuncAttributes::runOnModule(Module &M) {
447447
// builtins should not be externally linked, they will always be resolved by IGC
448448
return !(F->hasFnAttribute("OclBuiltin") || F->getName().startswith("__builtin_") ||
449449
F->getName().startswith("__igcbuiltin_") || F->getName().startswith("llvm.") ||
450-
F->getName().equals("printf") || Regex("^_Z[0-9]+__spirv_").match(F->getName()));
450+
F->getName().equals("printf") || Regex("^_Z[0-9]+__spirv_").match(F->getName()) ||
451+
Regex("^_Z[0-9]+__builtin_spirv").match(F->getName()));
451452
}
452453
return false;
453454
};

0 commit comments

Comments
 (0)