[clang] [Clang] Lift HIPSPV onto the new offload driver (WIP) (PR #168043)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 14 06:34:00 PST 2025


Henry =?utf-8?q?Linjamäki?= <henry.mikael.linjamaki at intel.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/168043 at github.com>


================
@@ -6990,6 +6990,12 @@ const ToolChain &Driver::getToolChain(const ArgList &Args,
         break;
       case llvm::Triple::spirv32:
       case llvm::Triple::spirv64:
+        if (Target.getOSName() == "hipspv" ||
----------------
jhuber6 wrote:

Why do we need this here? The linker wrapper passes `--target=spirv64-amd-amdhsa` which keys off of the HSA OS above. Do we need separate handling?

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


More information about the cfe-commits mailing list