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

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 05:15:16 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.
----------------
arsenm wrote:

Not sure why this is only a problem for spirv? 

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


More information about the cfe-commits mailing list