[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 19 12:51:40 PDT 2025
================
@@ -77,6 +79,82 @@ class RocmInstallationDetector {
SPACKReleaseStr(SPACKReleaseStr.str()) {}
};
+ struct CommonBitcodeLibsPreferences {
+ CommonBitcodeLibsPreferences(const Driver &D,
+ const llvm::opt::ArgList &DriverArgs,
+ StringRef GPUArch,
+ const Action::OffloadKind DeviceOffloadingKind,
+ const bool NeedsASanRT)
+ : ABIVer(DeviceLibABIVersion::fromCodeObjectVersion(
+ tools::getAMDGPUCodeObjectVersion(D, DriverArgs))) {
----------------
yxsamliu wrote:
Can we move the function definition to AMDGPU.cpp? It is pretty large.
https://github.com/llvm/llvm-project/pull/149294
More information about the cfe-commits
mailing list