[llvm] [Liboffload] Add function for checking ELF file device compatibility (PR #156259)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 31 12:18:45 PDT 2025
jhuber6 wrote:
> > Though, a part of me is wondering if we even need this.
>
> This is preparation for the language offloading (I can't create stacked PRs here since I can't push to user branches). I will use the function here: https://github.com/jdoerfert/llvm-project/blob/llvm_kernel_languages/offload/languages/kernel/src/LanguageRegistration.cpp
We should instead let `olCreateImage` or whatever it's called consume a fat binary directly. If we specificlaly need a query then we have have `olIsImageSupported` or some other function name. Basically, we want a single entry point and rely on the runtime to detect the appropriate magic bits.
https://github.com/llvm/llvm-project/pull/156259
More information about the llvm-commits
mailing list