[clang] [CIR][HIP] Compile host code (PR #177698)

Jan Leyonberg via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 27 07:46:10 PST 2026


================
@@ -242,6 +242,10 @@ const TargetCIRGenInfo &CIRGenModule::getTargetCIRGenInfo() {
       return *theTargetCIRGenInfo;
     }
   }
+  case llvm::Triple::amdgcn: {
+    theTargetCIRGenInfo = createAMDGPUTargetCIRGenInfo(genTypes);
----------------
jsjodin wrote:

> I don't think we should get here for host compilation if the triple is correctly specified in the test.

Yes, the test is just wrong. The CHECK-NOT is also incorrect from what I can tell. I will check the other PR that was done for the device compilation.

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


More information about the cfe-commits mailing list