[llvm] [Offload] Add `olGetGlobalVariable` (PR #147944)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 07:04:57 PDT 2025
jhuber6 wrote:
> @jhuber6 I'm not sure that's possible generically. The AMD backend at least needs to mangle kernel names to add ".kd" on the end, so we'd need to know ahead of time whether it's a kernel or not.
>
> However, `olGetSymbol` could work if we pass in the symbol kind as a parameter, then it dispatches to either kernel or global lookup depending on that.
That's true, it's a little confusing because the AMD version implicity requires the `.kd` for its kernels and we can't just slice it, hm.
https://github.com/llvm/llvm-project/pull/147944
More information about the llvm-commits
mailing list