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.
1 parent a26549e commit bc3db07Copy full SHA for bc3db07
llvm/lib/Transforms/IPO/Internalize.cpp
@@ -234,8 +234,10 @@ 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())
238
- AlwaysPreserved.insert("__llvm_rpc_server");
+ if (Triple(M.getTargetTriple()).isNVPTX() ||
+ Triple(M.getTargetTriple()).isAMDGPU()) {
239
+ AlwaysPreserved.insert("__llvm_rpc_client");
240
+ }
241
242
// Mark all functions not in the api as internal.
243
IsWasm = Triple(M.getTargetTriple()).isOSBinFormatWasm();
0 commit comments