[llvm] Reland #118503: [Offload] Introduce offload-tblgen and initial new API implementation (PR #118614)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 03:21:52 PST 2024


nikic wrote:

> @nikic Do you see the same problem with building libomptarget (also part of the offload runtime)? I've had a look and it seems to also pull in the host-built `libLLVMSupport.a` etc.

Interesting question! It does seem to be in a similar situation (though not quite, as this is at least an actual runtime). I think the relevant difference ends up being that libomptarget can link libLLVM.so, while offload-tblgen (like any tblgen) links against libLLVMSupport.a statically.

> Either way I can see the issue but I'm wondering if there's an existing workaround that I'm not aware of.

Hm, I don't really see anything simple that can be done here. As far as I understand the entire offload build is going to be in a nested cmake invocation, so we can't really split it into a runtime and non-runtime part. Maybe there's just nothing that can be done here. (I've worked around the specific problem that we hit already...)

https://github.com/llvm/llvm-project/pull/118614


More information about the llvm-commits mailing list