[clang] [clang][Driver] Support for the SPIR-V backend in the new driver when compiling HIP (PR #167543)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 20 12:19:53 PST 2025


================
@@ -5154,6 +5158,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
       rewriteKind = RK_Fragile;
     } else if (JA.getType() == types::TY_CIR) {
       CmdArgs.push_back("-emit-cir");
+    } else if (JA.getType() == types::TY_Image && IsAMDSPIRVForHIPDevice) {
----------------
jhuber6 wrote:

Okay, I'm hoping that long-term we can just delete all of this special handling and just use the backend

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


More information about the cfe-commits mailing list