We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6499690 + 1d630bc commit ac65db8Copy full SHA for ac65db8
llvm/lib/Transforms/IPO/Internalize.cpp
@@ -234,7 +234,8 @@ bool InternalizePass::internalizeModule(Module &M) {
234
AlwaysPreserved.insert("__stack_chk_guard");
235
236
// Preserve the RPC interface for GPU host callbacks when internalizing.
237
- if (Triple(M.getTargetTriple()).isNVPTX())
+ if (Triple(M.getTargetTriple()).isNVPTX() ||
238
+ Triple(M.getTargetTriple()).isAMDGPU())
239
AlwaysPreserved.insert("__llvm_rpc_client");
240
241
// Mark all functions not in the api as internal.
0 commit comments