Skip to content

Commit ac65db8

Browse files
authored
Merge pull request llvm#556 from AMD-Lightning-Internal/amd/dev/grodgers/fix-internalize
[OpenMP] Fix from Joseph to preserve symbol for __llvm_rpc_client
2 parents 6499690 + 1d630bc commit ac65db8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Transforms/IPO/Internalize.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ bool InternalizePass::internalizeModule(Module &M) {
234234
AlwaysPreserved.insert("__stack_chk_guard");
235235

236236
// Preserve the RPC interface for GPU host callbacks when internalizing.
237-
if (Triple(M.getTargetTriple()).isNVPTX())
237+
if (Triple(M.getTargetTriple()).isNVPTX() ||
238+
Triple(M.getTargetTriple()).isAMDGPU())
238239
AlwaysPreserved.insert("__llvm_rpc_client");
239240

240241
// Mark all functions not in the api as internal.

0 commit comments

Comments
 (0)