[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

Jakub Chlanda via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 20 00:00:08 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))) {
----------------
jchlanda wrote:

Sure, done.

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


More information about the cfe-commits mailing list