The AMDGPU target can only emit LLVM-IR, so we can always rely on LTO to
link the static version of the runtime optimally. Using the static
library only has a few advantages. Namely, it avoids several known bugs
and allows us to optimize out more functions. This is legal since the
changes in D142486 and D142484
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LG, not linking in something seems fine if it works and the direction is what we always wanted.
Comment Actions
Well the library still doesn't 100% work unless using -mlink-builtin-bitcode. It's taking forever to make progress on fixing that
Comment Actions
This is the OpenMP DeviceRTL, the AMD one is still shoved into each TU via -mlink-builtin-bitcode. I'm still interested in addressing that however, my ultimate desire is for linking on the device to be sane and match the host pretty closely.