[clang] [llvm] [HLSL] Handle WaveActiveBallot struct return type appropriately (PR #175105)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 9 14:09:49 PST 2026
================
@@ -1,10 +1,12 @@
; RUN: opt -S -dxil-op-lower -mtriple=dxil-pc-shadermodel6.3-compute %s | FileCheck %s
-define noundef <4 x i32> @wave_ballot_simple(i1 noundef %p1) {
+%dx.types.fouri32 = type { i32, i32, i32, i32 }
+
+define noundef %dx.types.fouri32 @wave_ballot_simple(i1 noundef %p1) {
----------------
farzonl wrote:
I don't think we ever want to expose `%dx.types.fouri32` outside of local scope of the function. the return should be a vector.
https://github.com/llvm/llvm-project/pull/175105
More information about the cfe-commits
mailing list