[llvm] [Offload] Enable querying a kernel's program (PR #142632)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 10 02:47:20 PDT 2025
jhuber6 wrote:
> @jhuber6 I don't think it's practical to have a single type for both kernels and global variables; the set of legal operations for them is just very different. Even in HSA, which has a shared "symbol" type, the only operation useful to us is querying the symbol's name. I do like the idea of `ol_symbol_t`, but I don't think it maps to GPUs where kernels are not simply function pointers.
I figured you'd just have an info you can look up that tells the user if it's a kernel or global and only have certain infos supported depending on that.
https://github.com/llvm/llvm-project/pull/142632
More information about the llvm-commits
mailing list