[clang] [llvm] [clang][AMDGPU] Use the LLVM ABI library for AMDGCN and AMDGCN SPIR-V under -fexperimental-abi-lowering (PR #223259)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 25 13:00:23 PST 2026


================
@@ -3,6 +3,10 @@
 // RUN:   -o - %s | FileCheck --check-prefix=AMDGCNSPIRV %s
 // RUN: %clang_cc1 -triple amdgpu9.06-amd-amdhsa -x hip -emit-llvm -fcuda-is-device -O3 \
 // RUN:   -o - %s | FileCheck --check-prefix=AMDGPU %s
+// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -x hip -emit-llvm -fcuda-is-device -O3 \
+// RUN:   -fexperimental-abi-lowering -o - %s | FileCheck --check-prefix=AMDGCNSPIRV %s
+// RUN: %clang_cc1 -triple amdgpu9.06-amd-amdhsa -x hip -emit-llvm -fcuda-is-device -O3 \
+// RUN:   -fexperimental-abi-lowering -o - %s | FileCheck --check-prefix=AMDGPU %s
----------------
andykaylor wrote:

If the tests pass with CIR, that would be great. I found with AArch64 that many of the tests failed because of missing support beyond calling convention lowering. I'm working to fill those gaps and deferring enabling CIR in individual AArch64 ABI tests until the entire test passes with CIR. I would expect a similar path with AMDGCN.

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


More information about the cfe-commits mailing list