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.
retain
1 parent 7f2fb80 commit b0fbdddCopy full SHA for b0fbddd
offload/DeviceRTL/src/Misc.cpp
@@ -115,8 +115,12 @@ void *indirectCallLookup(void *HstPtr) {
115
/// The openmp client instance used to communicate with the server.
116
/// FIXME: This is marked as 'retain' so that it is not removed via
117
/// `-mlink-builtin-bitcode`
118
+#ifdef __NVPTX__
119
[[gnu::visibility("protected"), gnu::weak,
120
gnu::retain]] rpc::Client Client asm("__llvm_rpc_client");
121
+#else
122
+[[gnu::visibility("protected"), gnu::weak]] rpc::Client Client asm("__llvm_rpc_client");
123
+#endif
124
125
} // namespace impl
126
} // namespace ompx
0 commit comments