[clang] [AMDGPU][SPIRV] Correctly lower huge device function arguments (PR #176921)

Steffen Larsen via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 05:50:43 PST 2026


================
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -x hip -emit-llvm -fcuda-is-device -disable-llvm-verifier -o - %s | FileCheck %s --check-prefix=CHECK-AMDGCNSPIRV
+// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -x hip -emit-llvm -fcuda-is-device -o - %s | FileCheck %s --check-prefix=CHECK-AMDGCN
+
+// NOTE: The verifier is currently disabled for the spirv64 case as it complains
+//       about the 'byref' arguments being too large. This is currently a
+//       problem for all targets that lower large arguments to 'byref'
+//       arguments.
----------------
steffenlarsen wrote:

With the changes suggested in https://github.com/llvm/llvm-project/pull/176921#discussion_r2708310692, the Global function in the SPIR-V path also hits this, so the verifier is now disabled for both and the comment has been generalized a little.

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


More information about the cfe-commits mailing list