[tint][ir] Improve quality of `var` disassembly
- Prints all of the operands instead of just the first
- Explicitly prints `undef` for the default initializer
- Removes spurious ',' from the output
- Updates lots of tests
- `combined_texture_sampler` uses the `var` disassembly path, so its
tests are updated also
Issue: 399124608
Change-Id: Ib182ea48074a3a540340c2ef55232bd9f162179e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/227955
Reviewed-by: James Price <jrprice@google.com>
Auto-Submit: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
diff --git a/src/tint/lang/core/ir/analysis/integer_range_analysis_test.cc b/src/tint/lang/core/ir/analysis/integer_range_analysis_test.cc
index 14d9022..3cfd72d 100644
--- a/src/tint/lang/core/ir/analysis/integer_range_analysis_test.cc
+++ b/src/tint/lang/core/ir/analysis/integer_range_analysis_test.cc
@@ -56,7 +56,7 @@
auto* src = R"(
%my_func = @compute @workgroup_size(4u, 3u, 2u) func(%localInvocationIndex:u32 [@local_invocation_index]):void {
$B1: {
- %3:ptr<function, array<u32, 24>, read_write> = var
+ %3:ptr<function, array<u32, 24>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, %localInvocationIndex
store %4, %localInvocationIndex
ret
@@ -92,7 +92,7 @@
auto* src = R"(
%my_func = @compute @workgroup_size(5i, 4i, 3i) func(%localInvocationIndex:u32 [@local_invocation_index]):void {
$B1: {
- %3:ptr<function, array<u32, 60>, read_write> = var
+ %3:ptr<function, array<u32, 60>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, %localInvocationIndex
store %4, %localInvocationIndex
ret
@@ -128,7 +128,7 @@
auto* src = R"(
%my_func = @compute @workgroup_size(1u, 8u, 1u) func(%localInvocationIndex:u32 [@local_invocation_index]):void {
$B1: {
- %3:ptr<function, array<u32, 8>, read_write> = var
+ %3:ptr<function, array<u32, 8>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, %localInvocationIndex
store %4, %localInvocationIndex
ret
@@ -164,7 +164,7 @@
auto* src = R"(
%my_func = @compute @workgroup_size(1u, 1u, 16u) func(%localInvocationIndex:u32 [@local_invocation_index]):void {
$B1: {
- %3:ptr<function, array<u32, 16>, read_write> = var
+ %3:ptr<function, array<u32, 16>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, %localInvocationIndex
store %4, %localInvocationIndex
ret
@@ -209,15 +209,15 @@
auto* src = R"(
%my_func = @compute @workgroup_size(4u, 3u, 2u) func(%localInvocationId:vec3<u32> [@local_invocation_id]):void {
$B1: {
- %3:ptr<function, array<u32, 4>, read_write> = var
+ %3:ptr<function, array<u32, 4>, read_write> = var undef
%4:u32 = access %localInvocationId, 0u
%5:ptr<function, u32, read_write> = access %3, %4
store %5, %4
- %6:ptr<function, array<u32, 3>, read_write> = var
+ %6:ptr<function, array<u32, 3>, read_write> = var undef
%7:u32 = access %localInvocationId, 1u
%8:ptr<function, u32, read_write> = access %6, %7
store %8, %7
- %9:ptr<function, array<u32, 2>, read_write> = var
+ %9:ptr<function, array<u32, 2>, read_write> = var undef
%10:u32 = access %localInvocationId, 2u
%11:ptr<function, u32, read_write> = access %9, %10
store %11, %10
@@ -260,7 +260,7 @@
auto* src = R"(
%my_func = @compute @workgroup_size(1u, 8u, 1u) func(%localInvocationId:vec3<u32> [@local_invocation_id]):void {
$B1: {
- %3:ptr<function, array<u32, 8>, read_write> = var
+ %3:ptr<function, array<u32, 8>, read_write> = var undef
%4:u32 = access %localInvocationId, 1u
%5:ptr<function, u32, read_write> = access %3, %4
store %5, %4
@@ -303,7 +303,7 @@
auto* src = R"(
%my_func = @compute @workgroup_size(1u, 1u, 16u) func(%localInvocationId:vec3<u32> [@local_invocation_id]):void {
$B1: {
- %3:ptr<function, array<u32, 16>, read_write> = var
+ %3:ptr<function, array<u32, 16>, read_write> = var undef
%4:u32 = access %localInvocationId, 2u
%5:ptr<function, u32, read_write> = access %3, %4
store %5, %4
diff --git a/src/tint/lang/core/ir/analysis/loop_analysis_test.cc b/src/tint/lang/core/ir/analysis/loop_analysis_test.cc
index 008c11f..0bc7e6a 100644
--- a/src/tint/lang/core/ir/analysis/loop_analysis_test.cc
+++ b/src/tint/lang/core/ir/analysis/loop_analysis_test.cc
@@ -69,7 +69,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -132,7 +132,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -195,7 +195,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -260,7 +260,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -325,7 +325,7 @@
%end:u32 = let 10u
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -388,7 +388,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, i32, read_write> = var, 0i
+ %idx:ptr<function, i32, read_write> = var 0i
next_iteration # -> $B3
}
$B3: { # body
@@ -451,7 +451,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -514,7 +514,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -577,7 +577,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 5u
+ %idx:ptr<function, u32, read_write> = var 5u
next_iteration # -> $B3
}
$B3: { # body
@@ -643,7 +643,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -719,7 +719,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
%3:u32 = load %idx
%4:u32 = load %idx
%5:u32 = add %3, %4
@@ -797,7 +797,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -882,9 +882,9 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %v1:ptr<function, u32, read_write> = var, 0u
- %idx:ptr<function, u32, read_write> = var, 0u
- %v2:ptr<function, u32, read_write> = var, 0u
+ %v1:ptr<function, u32, read_write> = var 0u
+ %idx:ptr<function, u32, read_write> = var 0u
+ %v2:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -967,7 +967,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1029,7 +1029,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1092,7 +1092,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1157,7 +1157,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1221,7 +1221,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1286,7 +1286,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1350,7 +1350,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, i32, read_write> = var, 10i
+ %idx:ptr<function, i32, read_write> = var 10i
next_iteration # -> $B3
}
$B3: { # body
@@ -1413,7 +1413,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1476,7 +1476,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, f32, read_write> = var, 0.0f
+ %idx:ptr<function, f32, read_write> = var 0.0f
next_iteration # -> $B3
}
$B3: { # body
@@ -1539,7 +1539,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1605,7 +1605,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1673,7 +1673,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1738,7 +1738,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1803,7 +1803,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1872,7 +1872,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -1950,7 +1950,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -2036,7 +2036,7 @@
$B2: {
loop [i: $B3, b: $B4, c: $B5] { # loop_1
$B3: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B4
}
$B4: { # body
@@ -2116,7 +2116,7 @@
$B2: {
loop [i: $B3, b: $B4, c: $B5] { # loop_1
$B3: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B4
}
$B4: { # body
@@ -2177,7 +2177,7 @@
auto* src = R"(
%func = func():void {
$B1: {
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
%3:u32 = load %idx
@@ -2307,7 +2307,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -2320,7 +2320,7 @@
}
loop [i: $B6, b: $B7, c: $B8] { # loop_2
$B6: { # initializer
- %idx_1:ptr<function, u32, read_write> = var, 0u # %idx_1: 'idx'
+ %idx_1:ptr<function, u32, read_write> = var 0u # %idx_1: 'idx'
next_iteration # -> $B7
}
$B7: { # body
@@ -2348,7 +2348,7 @@
}
loop [i: $B10, b: $B11, c: $B12] { # loop_3
$B10: { # initializer
- %idx_2:ptr<function, u32, read_write> = var, 0u # %idx_2: 'idx'
+ %idx_2:ptr<function, u32, read_write> = var 0u # %idx_2: 'idx'
next_iteration # -> $B11
}
$B11: { # body
@@ -2361,7 +2361,7 @@
}
loop [i: $B14, b: $B15, c: $B16] { # loop_4
$B14: { # initializer
- %idx_3:ptr<function, u32, read_write> = var, 0u # %idx_3: 'idx'
+ %idx_3:ptr<function, u32, read_write> = var 0u # %idx_3: 'idx'
next_iteration # -> $B15
}
$B15: { # body
diff --git a/src/tint/lang/core/ir/disassembler.cc b/src/tint/lang/core/ir/disassembler.cc
index 490a099..c092f88 100644
--- a/src/tint/lang/core/ir/disassembler.cc
+++ b/src/tint/lang/core/ir/disassembler.cc
@@ -567,10 +567,12 @@
EmitValueWithType(v);
out_ << " = ";
EmitInstructionName(v);
- if (v->Initializer()) {
- out_ << ", ";
- EmitOperand(v, Var::kInitializerOperandOffset);
+
+ if (v->Operands().Length() > 0) {
+ out_ << " ";
+ EmitOperandList(v);
}
+
if (v->BindingPoint().has_value()) {
out_ << " ";
EmitBindingPoint(v->BindingPoint().value());
diff --git a/src/tint/lang/core/ir/referenced_module_decls_test.cc b/src/tint/lang/core/ir/referenced_module_decls_test.cc
index dc19a97..6b5dbb4 100644
--- a/src/tint/lang/core/ir/referenced_module_decls_test.cc
+++ b/src/tint/lang/core/ir/referenced_module_decls_test.cc
@@ -90,11 +90,11 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
%3:i32 = add 1i, 2i
%o:i32 = override, %3 @id(1)
- %c:ptr<workgroup, u32, read_write> = var
+ %c:ptr<workgroup, u32, read_write> = var undef
%p:i32 = override @id(0)
%7:i32 = mul 2i, 4i
}
@@ -134,9 +134,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
%d:i32 = override @id(0)
%e:i32 = override @id(1)
}
@@ -187,9 +187,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
%d:i32 = override @id(0)
}
@@ -257,9 +257,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
%c_1:i32 = override @id(0) # %c_1: 'c'
}
@@ -327,9 +327,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
%b:i32 = override @id(0)
- %c:ptr<workgroup, u32, read_write> = var
+ %c:ptr<workgroup, u32, read_write> = var undef
}
%bar = func():void {
@@ -373,12 +373,12 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
}
%foo = func():void {
$B2: {
- %b:ptr<function, u32, read_write> = var
+ %b:ptr<function, u32, read_write> = var undef
%4:u32 = load %a
%5:u32 = load %b
ret
@@ -456,7 +456,7 @@
auto* src = R"(
$B1: { # root
%o:u32 = override @id(1)
- %a:ptr<workgroup, array<i32, %o>, read_write> = var
+ %a:ptr<workgroup, array<i32, %o>, read_write> = var undef
}
%foo = func():void {
diff --git a/src/tint/lang/core/ir/referenced_module_vars_test.cc b/src/tint/lang/core/ir/referenced_module_vars_test.cc
index 78564df..b158d2a 100644
--- a/src/tint/lang/core/ir/referenced_module_vars_test.cc
+++ b/src/tint/lang/core/ir/referenced_module_vars_test.cc
@@ -83,9 +83,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
}
%foo = func():void {
@@ -121,11 +121,11 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
- %d:ptr<workgroup, u32, read_write> = var
- %e:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
+ %d:ptr<workgroup, u32, read_write> = var undef
+ %e:ptr<workgroup, u32, read_write> = var undef
}
%foo = func():void {
@@ -171,9 +171,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
}
%foo = func():void {
@@ -238,10 +238,10 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
- %c_1:ptr<workgroup, u32, read_write> = var # %c_1: 'c'
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
+ %c_1:ptr<workgroup, u32, read_write> = var undef # %c_1: 'c'
}
%foo = func():void {
@@ -308,9 +308,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<workgroup, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<workgroup, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
}
%bar = func():void {
@@ -354,12 +354,12 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
}
%foo = func():void {
$B2: {
- %b:ptr<function, u32, read_write> = var
+ %b:ptr<function, u32, read_write> = var undef
%4:u32 = load %a
%5:u32 = load %b
ret
@@ -391,11 +391,11 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, u32, read_write> = var
- %b:ptr<private, u32, read_write> = var
- %c:ptr<workgroup, u32, read_write> = var
- %d:ptr<private, u32, read_write> = var
- %e:ptr<workgroup, u32, read_write> = var
+ %a:ptr<workgroup, u32, read_write> = var undef
+ %b:ptr<private, u32, read_write> = var undef
+ %c:ptr<workgroup, u32, read_write> = var undef
+ %d:ptr<private, u32, read_write> = var undef
+ %e:ptr<workgroup, u32, read_write> = var undef
}
%foo = func():void {
diff --git a/src/tint/lang/core/ir/transform/array_length_from_uniform_test.cc b/src/tint/lang/core/ir/transform/array_length_from_uniform_test.cc
index b219a41..974f254 100644
--- a/src/tint/lang/core/ir/transform/array_length_from_uniform_test.cc
+++ b/src/tint/lang/core/ir/transform/array_length_from_uniform_test.cc
@@ -62,7 +62,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%arrayLength = func(%arr:ptr<storage, array<i32>, read_write>):u32 {
@@ -104,7 +104,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -118,8 +118,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%foo = func():u32 {
@@ -155,7 +155,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -169,8 +169,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 2>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 2>, read> = var undef @binding_point(1, 2)
}
%foo = func():u32 {
@@ -206,7 +206,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 1)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 1)
}
%foo = func():u32 {
@@ -220,7 +220,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 1)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 1)
}
%foo = func():u32 {
@@ -262,7 +262,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -281,8 +281,8 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%foo = func():u32 {
@@ -338,7 +338,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -362,8 +362,8 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%foo = func():u32 {
@@ -401,7 +401,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -416,8 +416,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%foo = func():u32 {
@@ -462,7 +462,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%bar = func(%param:ptr<storage, array<i32>, read_write>):u32 {
@@ -482,8 +482,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%bar = func(%param:ptr<storage, array<i32>, read_write>, %tint_array_length:u32):u32 {
@@ -541,7 +541,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%param_zoo:ptr<storage, array<i32>, read_write>):u32 {
@@ -567,8 +567,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%foo = func(%param_zoo:ptr<storage, array<i32>, read_write>, %tint_array_length:u32):u32 {
@@ -627,7 +627,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%bar = func(%param:ptr<storage, array<i32>, read_write>):u32 {
@@ -647,7 +647,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%bar = func(%param:ptr<storage, array<i32>, read_write>, %tint_array_length:u32):u32 {
@@ -697,7 +697,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%bar = func(%param:ptr<storage, array<i32>, read_write>):u32 {
@@ -721,8 +721,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%bar = func(%param:ptr<storage, array<i32>, read_write>, %tint_array_length:u32):u32 {
@@ -778,7 +778,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%bar = func(%param_a:ptr<storage, array<i32>, read_write>, %param_b:ptr<storage, array<i32>, read_write>, %param_c:ptr<storage, array<i32>, read_write>):u32 {
@@ -802,8 +802,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%bar = func(%param_a:ptr<storage, array<i32>, read_write>, %param_b:ptr<storage, array<i32>, read_write>, %param_c:ptr<storage, array<i32>, read_write>, %tint_array_length:u32, %tint_array_length_1:u32, %tint_array_length_2:u32):u32 { # %tint_array_length_1: 'tint_array_length', %tint_array_length_2: 'tint_array_length'
@@ -875,7 +875,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%bar = func(%param:ptr<storage, array<i32>, read_write>):u32 {
@@ -904,8 +904,8 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%bar = func(%param:ptr<storage, array<i32>, read_write>, %tint_array_length:u32):u32 {
@@ -952,7 +952,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<vec3<i32>>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<vec3<i32>>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -966,8 +966,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<vec3<i32>>, read_write> = var @binding_point(0, 0)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(1, 2)
+ %buffer:ptr<storage, array<vec3<i32>>, read_write> = var undef @binding_point(0, 0)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(1, 2)
}
%foo = func():u32 {
@@ -1019,11 +1019,11 @@
auto* src = R"(
$B1: { # root
- %buffer_a:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %buffer_b:ptr<storage, array<i32>, read_write> = var @binding_point(0, 1)
- %buffer_c:ptr<storage, array<i32>, read_write> = var @binding_point(1, 0)
- %buffer_d:ptr<storage, array<i32>, read_write> = var @binding_point(1, 1)
- %buffer_e:ptr<storage, array<i32>, read_write> = var @binding_point(2, 3)
+ %buffer_a:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %buffer_b:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 1)
+ %buffer_c:ptr<storage, array<i32>, read_write> = var undef @binding_point(1, 0)
+ %buffer_d:ptr<storage, array<i32>, read_write> = var undef @binding_point(1, 1)
+ %buffer_e:ptr<storage, array<i32>, read_write> = var undef @binding_point(2, 3)
}
%foo = func():void {
@@ -1041,12 +1041,12 @@
auto* expect = R"(
$B1: { # root
- %buffer_a:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
- %buffer_b:ptr<storage, array<i32>, read_write> = var @binding_point(0, 1)
- %buffer_c:ptr<storage, array<i32>, read_write> = var @binding_point(1, 0)
- %buffer_d:ptr<storage, array<i32>, read_write> = var @binding_point(1, 1)
- %buffer_e:ptr<storage, array<i32>, read_write> = var @binding_point(2, 3)
- %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 2>, read> = var @binding_point(1, 2)
+ %buffer_a:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
+ %buffer_b:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 1)
+ %buffer_c:ptr<storage, array<i32>, read_write> = var undef @binding_point(1, 0)
+ %buffer_d:ptr<storage, array<i32>, read_write> = var undef @binding_point(1, 1)
+ %buffer_e:ptr<storage, array<i32>, read_write> = var undef @binding_point(2, 3)
+ %tint_storage_buffer_sizes:ptr<uniform, array<vec4<u32>, 2>, read> = var undef @binding_point(1, 2)
}
%foo = func():void {
diff --git a/src/tint/lang/core/ir/transform/bgra8unorm_polyfill_test.cc b/src/tint/lang/core/ir/transform/bgra8unorm_polyfill_test.cc
index 6b76651..bb0cbee 100644
--- a/src/tint/lang/core/ir/transform/bgra8unorm_polyfill_test.cc
+++ b/src/tint/lang/core/ir/transform/bgra8unorm_polyfill_test.cc
@@ -79,7 +79,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(1, 2)
}
%foo = func(%value:vec4<f32>, %coords:vec2<u32>):void {
@@ -152,7 +152,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var undef @binding_point(1, 2)
}
%foo = func(%value:vec4<f32>, %coords:vec2<u32>):void {
@@ -165,7 +165,7 @@
)";
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(1, 2)
}
%foo = func(%value:vec4<f32>, %coords:vec2<u32>):void {
@@ -260,7 +260,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var undef @binding_point(1, 2)
}
%bar = func(%texture_1:texture_storage_2d<bgra8unorm, write>, %coords:vec2<u32>, %value:vec4<f32>):void { # %texture_1: 'texture'
@@ -279,7 +279,7 @@
)";
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(1, 2)
}
%bar = func(%texture_1:texture_storage_2d<rgba8unorm, write>, %coords:vec2<u32>, %value:vec4<f32>):void { # %texture_1: 'texture'
@@ -352,9 +352,9 @@
auto* src = R"(
$B1: { # root
- %texture_a:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var @binding_point(1, 2)
- %texture_b:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var @binding_point(1, 3)
- %texture_c:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var @binding_point(1, 4)
+ %texture_a:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var undef @binding_point(1, 2)
+ %texture_b:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var undef @binding_point(1, 3)
+ %texture_c:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var undef @binding_point(1, 4)
}
%bar = func(%texture_a_1:texture_storage_2d<bgra8unorm, write>, %texture_b_1:texture_storage_2d<bgra8unorm, write>, %texture_b_2:texture_storage_2d<bgra8unorm, write>, %coords:vec2<u32>, %value:vec4<f32>):void { # %texture_a_1: 'texture_a', %texture_b_1: 'texture_b', %texture_b_2: 'texture_b'
@@ -377,9 +377,9 @@
)";
auto* expect = R"(
$B1: { # root
- %texture_a:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(1, 2)
- %texture_b:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(1, 3)
- %texture_c:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(1, 4)
+ %texture_a:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(1, 2)
+ %texture_b:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(1, 3)
+ %texture_c:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(1, 4)
}
%bar = func(%texture_a_1:texture_storage_2d<rgba8unorm, write>, %texture_b_1:texture_storage_2d<rgba8unorm, write>, %texture_b_2:texture_storage_2d<rgba8unorm, write>, %coords:vec2<u32>, %value:vec4<f32>):void { # %texture_a_1: 'texture_a', %texture_b_1: 'texture_b', %texture_b_2: 'texture_b'
@@ -452,7 +452,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var undef @binding_point(1, 2)
}
%bar = func(%texture_1:texture_storage_2d<bgra8unorm, write>, %coords:vec2<u32>, %value:vec4<f32>):void { # %texture_1: 'texture'
@@ -477,7 +477,7 @@
)";
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(1, 2)
}
%bar = func(%texture_1:texture_storage_2d<rgba8unorm, write>, %coords:vec2<u32>, %value:vec4<f32>):void { # %texture_1: 'texture'
@@ -534,7 +534,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d_array<bgra8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d_array<bgra8unorm, write>, read> = var undef @binding_point(1, 2)
}
%foo = func(%coords:vec2<u32>, %index:u32, %value:vec4<f32>):void {
@@ -547,7 +547,7 @@
)";
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d_array<rgba8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d_array<rgba8unorm, write>, read> = var undef @binding_point(1, 2)
}
%foo = func(%coords:vec2<u32>, %index:u32, %value:vec4<f32>):void {
@@ -586,7 +586,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<bgra8unorm, write>, read> = var undef @binding_point(1, 2)
}
%foo = func():vec2<u32> {
@@ -599,7 +599,7 @@
)";
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(1, 2)
}
%foo = func():vec2<u32> {
@@ -639,7 +639,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<bgra8unorm, read>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<bgra8unorm, read>, read> = var undef @binding_point(1, 2)
}
%foo = func(%coords:vec2<u32>):vec4<f32> {
@@ -652,7 +652,7 @@
)";
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, read>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, read>, read> = var undef @binding_point(1, 2)
}
%foo = func(%coords:vec2<u32>):vec4<f32> {
@@ -694,7 +694,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<bgra8unorm, read_write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<bgra8unorm, read_write>, read> = var undef @binding_point(1, 2)
}
%foo = func(%coords:vec2<u32>):void {
@@ -708,7 +708,7 @@
)";
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, read_write>, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, read_write>, read> = var undef @binding_point(1, 2)
}
%foo = func(%coords:vec2<u32>):void {
diff --git a/src/tint/lang/core/ir/transform/binding_remapper_test.cc b/src/tint/lang/core/ir/transform/binding_remapper_test.cc
index 15eda22..63563c4 100644
--- a/src/tint/lang/core/ir/transform/binding_remapper_test.cc
+++ b/src/tint/lang/core/ir/transform/binding_remapper_test.cc
@@ -46,7 +46,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<uniform, i32, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, i32, read> = var undef @binding_point(0, 0)
}
)";
@@ -67,7 +67,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<uniform, i32, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, i32, read> = var undef @binding_point(0, 0)
}
)";
@@ -89,7 +89,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<uniform, i32, read> = var @binding_point(1, 2)
+ %buffer:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
}
)";
@@ -97,7 +97,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<uniform, i32, read> = var @binding_point(3, 2)
+ %buffer:ptr<uniform, i32, read> = var undef @binding_point(3, 2)
}
)";
@@ -116,7 +116,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<uniform, i32, read> = var @binding_point(1, 2)
+ %buffer:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
}
)";
@@ -124,7 +124,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<uniform, i32, read> = var @binding_point(1, 3)
+ %buffer:ptr<uniform, i32, read> = var undef @binding_point(1, 3)
}
)";
@@ -143,7 +143,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<uniform, i32, read> = var @binding_point(1, 2)
+ %buffer:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
}
)";
@@ -151,7 +151,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<uniform, i32, read> = var @binding_point(3, 4)
+ %buffer:ptr<uniform, i32, read> = var undef @binding_point(3, 4)
}
)";
@@ -173,8 +173,8 @@
auto* src = R"(
$B1: { # root
- %buffer_a:ptr<uniform, i32, read> = var @binding_point(1, 2)
- %buffer_b:ptr<uniform, i32, read> = var @binding_point(3, 4)
+ %buffer_a:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
+ %buffer_b:ptr<uniform, i32, read> = var undef @binding_point(3, 4)
}
)";
@@ -182,8 +182,8 @@
auto* expect = R"(
$B1: { # root
- %buffer_a:ptr<uniform, i32, read> = var @binding_point(3, 4)
- %buffer_b:ptr<uniform, i32, read> = var @binding_point(1, 2)
+ %buffer_a:ptr<uniform, i32, read> = var undef @binding_point(3, 4)
+ %buffer_b:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
}
)";
@@ -213,8 +213,8 @@
auto* src = R"(
$B1: { # root
- %buffer_a:ptr<uniform, i32, read> = var @binding_point(1, 2)
- %buffer_b:ptr<uniform, i32, read> = var @binding_point(3, 4)
+ %buffer_a:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
+ %buffer_b:ptr<uniform, i32, read> = var undef @binding_point(3, 4)
}
%main = @fragment func():void {
@@ -229,8 +229,8 @@
auto* expect = R"(
$B1: { # root
- %buffer_a:ptr<uniform, i32, read> = var @binding_point(0, 1)
- %buffer_b:ptr<uniform, i32, read> = var @binding_point(0, 1)
+ %buffer_a:ptr<uniform, i32, read> = var undef @binding_point(0, 1)
+ %buffer_b:ptr<uniform, i32, read> = var undef @binding_point(0, 1)
}
%main = @fragment func():void {
diff --git a/src/tint/lang/core/ir/transform/block_decorated_structs_test.cc b/src/tint/lang/core/ir/transform/block_decorated_structs_test.cc
index 53df28f..cc43b4a 100644
--- a/src/tint/lang/core/ir/transform/block_decorated_structs_test.cc
+++ b/src/tint/lang/core/ir/transform/block_decorated_structs_test.cc
@@ -76,7 +76,7 @@
}
$B1: { # root
- %1:ptr<uniform, tint_symbol, read> = var @binding_point(0, 0)
+ %1:ptr<uniform, tint_symbol, read> = var undef @binding_point(0, 0)
}
%foo = func():i32 {
@@ -108,7 +108,7 @@
}
$B1: { # root
- %1:ptr<storage, tint_symbol, read_write> = var @binding_point(0, 0)
+ %1:ptr<storage, tint_symbol, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -140,7 +140,7 @@
}
$B1: { # root
- %1:ptr<push_constant, tint_symbol, read> = var
+ %1:ptr<push_constant, tint_symbol, read> = var undef
}
%foo = func():i32 {
@@ -176,7 +176,7 @@
}
$B1: { # root
- %1:ptr<storage, tint_symbol, read_write> = var @binding_point(0, 0)
+ %1:ptr<storage, tint_symbol, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -224,7 +224,7 @@
}
$B1: { # root
- %1:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %1:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -269,7 +269,7 @@
}
$B1: { # root
- %1:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %1:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -317,8 +317,8 @@
}
$B1: { # root
- %1:ptr<storage, tint_symbol, read_write> = var @binding_point(0, 0)
- %2:ptr<private, MyStruct, read_write> = var
+ %1:ptr<storage, tint_symbol, read_write> = var undef @binding_point(0, 0)
+ %2:ptr<private, MyStruct, read_write> = var undef
}
%foo = func():void {
@@ -370,9 +370,9 @@
}
$B1: { # root
- %1:ptr<storage, tint_symbol, read_write> = var @binding_point(0, 0)
- %2:ptr<storage, tint_symbol_1, read_write> = var @binding_point(0, 1)
- %3:ptr<storage, tint_symbol_2, read_write> = var @binding_point(0, 2)
+ %1:ptr<storage, tint_symbol, read_write> = var undef @binding_point(0, 0)
+ %2:ptr<storage, tint_symbol_1, read_write> = var undef @binding_point(0, 1)
+ %3:ptr<storage, tint_symbol_2, read_write> = var undef @binding_point(0, 2)
}
%foo = func():void {
@@ -415,7 +415,7 @@
}
$B1: { # root
- %1:ptr<push_constant, MyStruct, read> = var
+ %1:ptr<push_constant, MyStruct, read> = var undef
}
%foo = func():i32 {
@@ -451,7 +451,7 @@
}
$B1: { # root
- %1:ptr<storage, my_var_block, read_write> = var @binding_point(0, 0)
+ %1:ptr<storage, my_var_block, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
diff --git a/src/tint/lang/core/ir/transform/combine_access_instructions_test.cc b/src/tint/lang/core/ir/transform/combine_access_instructions_test.cc
index 7137da6..18f7878 100644
--- a/src/tint/lang/core/ir/transform/combine_access_instructions_test.cc
+++ b/src/tint/lang/core/ir/transform/combine_access_instructions_test.cc
@@ -71,7 +71,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -123,7 +123,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -144,7 +144,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -202,7 +202,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -229,7 +229,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -289,7 +289,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -314,7 +314,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -364,7 +364,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -386,7 +386,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -434,7 +434,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -456,7 +456,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -538,7 +538,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -568,7 +568,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -629,7 +629,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -659,7 +659,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
diff --git a/src/tint/lang/core/ir/transform/demote_to_helper_test.cc b/src/tint/lang/core/ir/transform/demote_to_helper_test.cc
index 4e0d1c6..38c7f24 100644
--- a/src/tint/lang/core/ir/transform/demote_to_helper_test.cc
+++ b/src/tint/lang/core/ir/transform/demote_to_helper_test.cc
@@ -57,7 +57,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
}
%ep = @fragment func():f32 [@location(0)] {
@@ -99,7 +99,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
@@ -119,8 +119,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
@@ -184,7 +184,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -210,8 +210,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%foo = func():void {
@@ -283,7 +283,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%cond:bool):void {
@@ -309,8 +309,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%foo = func(%cond:bool):void {
@@ -382,7 +382,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%cond:bool):void {
@@ -408,8 +408,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, i32, read_write> = var @binding_point(0, 0)
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %buffer:ptr<storage, i32, read_write> = var undef @binding_point(0, 0)
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%foo = func(%cond:bool):void {
@@ -472,12 +472,12 @@
auto* src = R"(
$B1: { # root
- %priv:ptr<private, i32, read_write> = var
+ %priv:ptr<private, i32, read_write> = var undef
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
$B2: {
- %func:ptr<function, i32, read_write> = var
+ %func:ptr<function, i32, read_write> = var undef
if %front_facing [t: $B3] { # if_1
$B3: { # true
discard
@@ -494,13 +494,13 @@
auto* expect = R"(
$B1: { # root
- %priv:ptr<private, i32, read_write> = var
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %priv:ptr<private, i32, read_write> = var undef
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
$B2: {
- %func:ptr<function, i32, read_write> = var
+ %func:ptr<function, i32, read_write> = var undef
if %front_facing [t: $B3] { # if_1
$B3: { # true
store %continue_execution, false
@@ -560,7 +560,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<r32float, write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_2d<r32float, write>, read> = var undef @binding_point(0, 0)
}
%ep = @fragment func(%front_facing:bool [@front_facing], %coord:vec2<i32> [@location(0)]):f32 [@location(0)] {
@@ -581,8 +581,8 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<r32float, write>, read> = var @binding_point(0, 0)
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %texture:ptr<handle, texture_storage_2d<r32float, write>, read> = var undef @binding_point(0, 0)
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%ep = @fragment func(%front_facing:bool [@front_facing], %coord:vec2<i32> [@location(0)]):f32 [@location(0)] {
@@ -641,7 +641,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
@@ -661,8 +661,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %buffer:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
@@ -721,7 +721,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
@@ -742,8 +742,8 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %buffer:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
@@ -811,7 +811,7 @@
}
$B1: { # root
- %buffer:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
@@ -838,8 +838,8 @@
}
$B1: { # root
- %buffer:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %buffer:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%ep = @fragment func(%front_facing:bool [@front_facing]):f32 [@location(0)] {
@@ -897,7 +897,7 @@
auto* expect = R"(
$B1: { # root
- %continue_execution:ptr<private, bool, read_write> = var, true
+ %continue_execution:ptr<private, bool, read_write> = var true
}
%foo = func():void {
diff --git a/src/tint/lang/core/ir/transform/direct_variable_access_test.cc b/src/tint/lang/core/ir/transform/direct_variable_access_test.cc
index d5ded41..b617ae7 100644
--- a/src/tint/lang/core/ir/transform/direct_variable_access_test.cc
+++ b/src/tint/lang/core/ir/transform/direct_variable_access_test.cc
@@ -86,7 +86,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%u = func(%pre:i32, %p:ptr<uniform, i32, read>, %post:i32):i32 {
@@ -101,7 +101,7 @@
auto* expect = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
)";
@@ -125,7 +125,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%s = func(%pre:i32, %p:ptr<storage, i32, read>, %post:i32):i32 {
@@ -140,7 +140,7 @@
auto* expect = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
)";
@@ -164,7 +164,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%w = func(%pre:i32, %p:ptr<workgroup, i32, read_write>, %post:i32):i32 {
@@ -179,7 +179,7 @@
auto* expect = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
)";
@@ -203,7 +203,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%f = func(%pre:i32, %p:ptr<private, i32, read_write>, %post:i32):i32 {
@@ -237,7 +237,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%f = func(%pre:i32, %p:ptr<private, i32, read_write>, %post:i32):i32 {
@@ -252,7 +252,7 @@
auto* expect = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
)";
@@ -275,7 +275,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%f = func(%pre:i32, %p:ptr<function, i32, read_write>, %post:i32):i32 {
@@ -309,7 +309,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%f = func(%pre:i32, %p:ptr<function, i32, read_write>, %post:i32):i32 {
@@ -323,7 +323,7 @@
auto* expect = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
)";
@@ -348,7 +348,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%f = func(%pre:i32, %p:texture_1d<f32>, %post:i32):i32 {
@@ -383,7 +383,7 @@
auto* src = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
%f = func(%pre:i32, %p:texture_1d<f32>, %post:i32):u32 {
@@ -398,7 +398,7 @@
auto* expect = R"(
$B1: { # root
- %keep_me:ptr<private, i32, read_write> = var, 42i
+ %keep_me:ptr<private, i32, read_write> = var 42i
}
)";
@@ -469,7 +469,7 @@
auto* src = R"(
$B1: { # root
- %U:ptr<uniform, array<array<array<vec4<i32>, 8>, 8>, 8>, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, array<array<array<vec4<i32>, 8>, 8>, 8>, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p:ptr<uniform, vec4<i32>, read>, %post:i32):vec4<i32> {
@@ -511,7 +511,7 @@
auto* expect =
R"(
$B1: { # root
- %U:ptr<uniform, array<array<array<vec4<i32>, 8>, 8>, 8>, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, array<array<array<vec4<i32>, 8>, 8>, 8>, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p_indices:array<u32, 3>, %post:i32):vec4<i32> {
@@ -624,8 +624,8 @@
auto* src = R"(
$B1: { # root
- %U:ptr<uniform, array<array<array<vec4<i32>, 8>, 8>, 8>, read> = var @binding_point(0, 0)
- %i:ptr<private, i32, read_write> = var
+ %U:ptr<uniform, array<array<array<vec4<i32>, 8>, 8>, 8>, read> = var undef @binding_point(0, 0)
+ %i:ptr<private, i32, read_write> = var undef
}
%first = func():i32 {
@@ -697,8 +697,8 @@
auto* expect = R"(
$B1: { # root
- %U:ptr<uniform, array<array<array<vec4<i32>, 8>, 8>, 8>, read> = var @binding_point(0, 0)
- %i:ptr<private, i32, read_write> = var
+ %U:ptr<uniform, array<array<array<vec4<i32>, 8>, 8>, 8>, read> = var undef @binding_point(0, 0)
+ %i:ptr<private, i32, read_write> = var undef
}
%first = func():i32 {
@@ -811,7 +811,7 @@
auto* src = R"(
$B1: { # root
- %U:ptr<uniform, i32, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, i32, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p:ptr<uniform, i32, read>, %post:i32):i32 {
@@ -832,7 +832,7 @@
auto* expect = R"(
$B1: { # root
- %U:ptr<uniform, i32, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, i32, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %post:i32):i32 {
@@ -881,7 +881,7 @@
auto* src = R"(
$B1: { # root
- %U:ptr<uniform, array<vec4<i32>, 8>, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, array<vec4<i32>, 8>, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p:ptr<uniform, vec4<i32>, read>, %post:i32):vec4<i32> {
@@ -904,7 +904,7 @@
auto* expect = R"(
$B1: { # root
- %U:ptr<uniform, array<vec4<i32>, 8>, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, array<vec4<i32>, 8>, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p_indices:array<u32, 1>, %post:i32):vec4<i32> {
@@ -1036,7 +1036,7 @@
}
$B1: { # root
- %U:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%f0 = func(%p:ptr<uniform, vec4<f32>, read>):f32 {
@@ -1047,7 +1047,7 @@
}
%f1 = func(%p_1:ptr<uniform, mat3x4<f32>, read>):f32 { # %p_1: 'p'
$B3: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%8:ptr<uniform, vec4<f32>, read> = access %p_1, 1i
%9:f32 = call %f0, %8
%10:f32 = load %res
@@ -1117,7 +1117,7 @@
}
$B1: { # root
- %U:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%f0 = func(%p_indices:array<u32, 1>):f32 {
@@ -1139,7 +1139,7 @@
}
%f1 = func():f32 {
$B4: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%15:u32 = convert 1i
%16:array<u32, 1> = construct %15
%17:f32 = call %f0, %16
@@ -1173,7 +1173,7 @@
%f1_1 = func(%p_indices_2:array<u32, 1>):f32 { # %f1_1: 'f1', %p_indices_2: 'p_indices'
$B5: {
%40:u32 = access %p_indices_2, 0u
- %res_1:ptr<function, f32, read_write> = var # %res_1: 'res'
+ %res_1:ptr<function, f32, read_write> = var undef # %res_1: 'res'
%42:u32 = convert 1i
%43:array<u32, 2> = construct %40, %42
%44:f32 = call %f0_1, %43
@@ -1286,7 +1286,7 @@
auto* src = R"(
$B1: { # root
- %U:ptr<uniform, array<array<array<vec4<i32>, 5>, 5>, 5>, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, array<array<array<vec4<i32>, 5>, 5>, 5>, read> = var undef @binding_point(0, 0)
}
%f2 = func(%p:ptr<uniform, array<vec4<i32>, 5>, read>):vec4<i32> {
@@ -1322,7 +1322,7 @@
auto* expect = R"(
$B1: { # root
- %U:ptr<uniform, array<array<array<vec4<i32>, 5>, 5>, 5>, read> = var @binding_point(0, 0)
+ %U:ptr<uniform, array<array<array<vec4<i32>, 5>, 5>, 5>, read> = var undef @binding_point(0, 0)
}
%f2 = func(%p_indices:array<u32, 2>):vec4<i32> {
@@ -1406,7 +1406,7 @@
}
$B1: { # root
- %S:ptr<storage, str, read> = var @binding_point(0, 0)
+ %S:ptr<storage, str, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p:ptr<storage, i32, read>, %post:i32):i32 {
@@ -1432,7 +1432,7 @@
}
$B1: { # root
- %S:ptr<storage, str, read> = var @binding_point(0, 0)
+ %S:ptr<storage, str, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %post:i32):i32 {
@@ -1493,7 +1493,7 @@
}
$B1: { # root
- %S:ptr<storage, str, read_write> = var @binding_point(0, 0)
+ %S:ptr<storage, str, read_write> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p:ptr<storage, array<i32, 4>, read_write>, %post:i32):void {
@@ -1519,7 +1519,7 @@
}
$B1: { # root
- %S:ptr<storage, str, read_write> = var @binding_point(0, 0)
+ %S:ptr<storage, str, read_write> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %post:i32):void {
@@ -1572,7 +1572,7 @@
auto* src = R"(
$B1: { # root
- %S:ptr<storage, array<vec4<i32>, 8>, read_write> = var @binding_point(0, 0)
+ %S:ptr<storage, array<vec4<i32>, 8>, read_write> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p:ptr<storage, vec4<i32>, read_write>, %post:i32):void {
@@ -1595,7 +1595,7 @@
auto* expect = R"(
$B1: { # root
- %S:ptr<storage, array<vec4<i32>, 8>, read_write> = var @binding_point(0, 0)
+ %S:ptr<storage, array<vec4<i32>, 8>, read_write> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %p_indices:array<u32, 1>, %post:i32):void {
@@ -1727,7 +1727,7 @@
}
$B1: { # root
- %S:ptr<storage, Outer, read> = var @binding_point(0, 0)
+ %S:ptr<storage, Outer, read> = var undef @binding_point(0, 0)
}
%f0 = func(%p:ptr<storage, vec4<f32>, read>):f32 {
@@ -1738,7 +1738,7 @@
}
%f1 = func(%p_1:ptr<storage, mat3x4<f32>, read>):f32 { # %p_1: 'p'
$B3: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%8:ptr<storage, vec4<f32>, read> = access %p_1, 1i
%9:f32 = call %f0, %8
%10:f32 = load %res
@@ -1808,7 +1808,7 @@
}
$B1: { # root
- %S:ptr<storage, Outer, read> = var @binding_point(0, 0)
+ %S:ptr<storage, Outer, read> = var undef @binding_point(0, 0)
}
%f0 = func(%p_indices:array<u32, 1>):f32 {
@@ -1830,7 +1830,7 @@
}
%f1 = func():f32 {
$B4: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%15:u32 = convert 1i
%16:array<u32, 1> = construct %15
%17:f32 = call %f0, %16
@@ -1864,7 +1864,7 @@
%f1_1 = func(%p_indices_2:array<u32, 1>):f32 { # %f1_1: 'f1', %p_indices_2: 'p_indices'
$B5: {
%40:u32 = access %p_indices_2, 0u
- %res_1:ptr<function, f32, read_write> = var # %res_1: 'res'
+ %res_1:ptr<function, f32, read_write> = var undef # %res_1: 'res'
%42:u32 = convert 1i
%43:array<u32, 2> = construct %40, %42
%44:f32 = call %f0_1, %43
@@ -1977,7 +1977,7 @@
auto* src = R"(
$B1: { # root
- %U:ptr<storage, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var @binding_point(0, 0)
+ %U:ptr<storage, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef @binding_point(0, 0)
}
%f2 = func(%p:ptr<storage, array<vec4<i32>, 5>, read_write>):vec4<i32> {
@@ -2013,7 +2013,7 @@
auto* expect = R"(
$B1: { # root
- %U:ptr<storage, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var @binding_point(0, 0)
+ %U:ptr<storage, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef @binding_point(0, 0)
}
%f2 = func(%p_indices:array<u32, 2>):vec4<i32> {
@@ -2088,7 +2088,7 @@
auto* src = R"(
$B1: { # root
- %W:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var
+ %W:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<workgroup, vec4<i32>, read_write>, %post:i32):vec4<i32> {
@@ -2110,7 +2110,7 @@
auto* expect = R"(
$B1: { # root
- %W:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var
+ %W:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var undef
}
%a = func(%pre:i32, %p_indices:array<u32, 1>, %post:i32):vec4<i32> {
@@ -2164,7 +2164,7 @@
auto* src = R"(
$B1: { # root
- %W:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var
+ %W:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<workgroup, vec4<i32>, read_write>, %post:i32):void {
@@ -2186,7 +2186,7 @@
auto* expect = R"(
$B1: { # root
- %W:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var
+ %W:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var undef
}
%a = func(%pre:i32, %p_indices:array<u32, 1>, %post:i32):void {
@@ -2316,7 +2316,7 @@
}
$B1: { # root
- %W:ptr<workgroup, Outer, read_write> = var
+ %W:ptr<workgroup, Outer, read_write> = var undef
}
%f0 = func(%p:ptr<workgroup, vec4<f32>, read_write>):f32 {
@@ -2327,7 +2327,7 @@
}
%f1 = func(%p_1:ptr<workgroup, mat3x4<f32>, read_write>):f32 { # %p_1: 'p'
$B3: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%8:ptr<workgroup, vec4<f32>, read_write> = access %p_1, 1i
%9:f32 = call %f0, %8
%10:f32 = load %res
@@ -2397,7 +2397,7 @@
}
$B1: { # root
- %W:ptr<workgroup, Outer, read_write> = var
+ %W:ptr<workgroup, Outer, read_write> = var undef
}
%f0 = func(%p_indices:array<u32, 1>):f32 {
@@ -2419,7 +2419,7 @@
}
%f1 = func():f32 {
$B4: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%15:u32 = convert 1i
%16:array<u32, 1> = construct %15
%17:f32 = call %f0, %16
@@ -2453,7 +2453,7 @@
%f1_1 = func(%p_indices_2:array<u32, 1>):f32 { # %f1_1: 'f1', %p_indices_2: 'p_indices'
$B5: {
%40:u32 = access %p_indices_2, 0u
- %res_1:ptr<function, f32, read_write> = var # %res_1: 'res'
+ %res_1:ptr<function, f32, read_write> = var undef # %res_1: 'res'
%42:u32 = convert 1i
%43:array<u32, 2> = construct %40, %42
%44:f32 = call %f0_1, %43
@@ -2565,7 +2565,7 @@
auto* src = R"(
$B1: { # root
- %U:ptr<workgroup, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var
+ %U:ptr<workgroup, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef
}
%f2 = func(%p:ptr<workgroup, array<vec4<i32>, 5>, read_write>):vec4<i32> {
@@ -2601,7 +2601,7 @@
auto* expect = R"(
$B1: { # root
- %U:ptr<workgroup, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var
+ %U:ptr<workgroup, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef
}
%f2 = func(%p_indices:array<u32, 2>):vec4<i32> {
@@ -2675,7 +2675,7 @@
auto* src = R"(
$B1: { # root
- %P:ptr<private, i32, read_write> = var
+ %P:ptr<private, i32, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<private, i32, read_write>, %post:i32):i32 {
@@ -2696,7 +2696,7 @@
auto* expect = R"(
$B1: { # root
- %P:ptr<private, i32, read_write> = var
+ %P:ptr<private, i32, read_write> = var undef
}
%a = func(%pre:i32, %post:i32):i32 {
@@ -2745,7 +2745,7 @@
auto* src = R"(
$B1: { # root
- %P:ptr<private, i32, read_write> = var
+ %P:ptr<private, i32, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<private, i32, read_write>, %post:i32):void {
@@ -2766,7 +2766,7 @@
auto* expect = R"(
$B1: { # root
- %P:ptr<private, i32, read_write> = var
+ %P:ptr<private, i32, read_write> = var undef
}
%a = func(%pre:i32, %post:i32):void {
@@ -2821,7 +2821,7 @@
}
$B1: { # root
- %P:ptr<private, str, read_write> = var
+ %P:ptr<private, str, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<private, i32, read_write>, %post:i32):i32 {
@@ -2847,7 +2847,7 @@
}
$B1: { # root
- %P:ptr<private, str, read_write> = var
+ %P:ptr<private, str, read_write> = var undef
}
%a = func(%pre:i32, %post:i32):i32 {
@@ -2903,7 +2903,7 @@
}
$B1: { # root
- %P:ptr<private, str, read_write> = var
+ %P:ptr<private, str, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<private, i32, read_write>, %post:i32):i32 {
@@ -2967,7 +2967,7 @@
}
$B1: { # root
- %P:ptr<private, str, read_write> = var
+ %P:ptr<private, str, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<private, array<i32, 4>, read_write>, %post:i32):void {
@@ -2993,7 +2993,7 @@
}
$B1: { # root
- %P:ptr<private, str, read_write> = var
+ %P:ptr<private, str, read_write> = var undef
}
%a = func(%pre:i32, %post:i32):void {
@@ -3053,7 +3053,7 @@
}
$B1: { # root
- %P:ptr<private, str, read_write> = var
+ %P:ptr<private, str, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<private, array<i32, 4>, read_write>, %post:i32):void {
@@ -3126,9 +3126,9 @@
}
$B1: { # root
- %Pi:ptr<private, i32, read_write> = var
- %Ps:ptr<private, str, read_write> = var
- %Pa:ptr<private, array<i32, 4>, read_write> = var
+ %Pi:ptr<private, i32, read_write> = var undef
+ %Ps:ptr<private, str, read_write> = var undef
+ %Pa:ptr<private, array<i32, 4>, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<private, i32, read_write>, %post:i32):i32 {
@@ -3157,9 +3157,9 @@
}
$B1: { # root
- %Pi:ptr<private, i32, read_write> = var
- %Ps:ptr<private, str, read_write> = var
- %Pa:ptr<private, array<i32, 4>, read_write> = var
+ %Pi:ptr<private, i32, read_write> = var undef
+ %Ps:ptr<private, str, read_write> = var undef
+ %Pa:ptr<private, array<i32, 4>, read_write> = var undef
}
%a = func(%pre:i32, %post:i32):i32 {
@@ -3246,9 +3246,9 @@
}
$B1: { # root
- %Pi:ptr<private, i32, read_write> = var
- %Ps:ptr<private, str, read_write> = var
- %Pa:ptr<private, array<i32, 4>, read_write> = var
+ %Pi:ptr<private, i32, read_write> = var undef
+ %Ps:ptr<private, str, read_write> = var undef
+ %Pa:ptr<private, array<i32, 4>, read_write> = var undef
}
%a = func(%pre:i32, %p:ptr<private, i32, read_write>, %post:i32):i32 {
@@ -3382,7 +3382,7 @@
}
$B1: { # root
- %P:ptr<private, Outer, read_write> = var
+ %P:ptr<private, Outer, read_write> = var undef
}
%f0 = func(%p:ptr<private, vec4<f32>, read_write>):f32 {
@@ -3393,7 +3393,7 @@
}
%f1 = func(%p_1:ptr<private, mat3x4<f32>, read_write>):f32 { # %p_1: 'p'
$B3: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%8:ptr<private, vec4<f32>, read_write> = access %p_1, 1i
%9:f32 = call %f0, %8
%10:f32 = load %res
@@ -3463,7 +3463,7 @@
}
$B1: { # root
- %P:ptr<private, Outer, read_write> = var
+ %P:ptr<private, Outer, read_write> = var undef
}
%f0 = func(%p_indices:array<u32, 1>):f32 {
@@ -3485,7 +3485,7 @@
}
%f1 = func():f32 {
$B4: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%15:u32 = convert 1i
%16:array<u32, 1> = construct %15
%17:f32 = call %f0, %16
@@ -3519,7 +3519,7 @@
%f1_1 = func(%p_indices_2:array<u32, 1>):f32 { # %f1_1: 'f1', %p_indices_2: 'p_indices'
$B5: {
%40:u32 = access %p_indices_2, 0u
- %res_1:ptr<function, f32, read_write> = var # %res_1: 'res'
+ %res_1:ptr<function, f32, read_write> = var undef # %res_1: 'res'
%42:u32 = convert 1i
%43:array<u32, 2> = construct %40, %42
%44:f32 = call %f0_1, %43
@@ -3691,7 +3691,7 @@
}
$B1: { # root
- %P:ptr<private, Outer, read_write> = var
+ %P:ptr<private, Outer, read_write> = var undef
}
%f0 = func(%p:ptr<private, vec4<f32>, read_write>):f32 {
@@ -3702,7 +3702,7 @@
}
%f1 = func(%p_1:ptr<private, mat3x4<f32>, read_write>):f32 { # %p_1: 'p'
$B3: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%8:ptr<private, vec4<f32>, read_write> = access %p_1, 1i
%9:f32 = call %f0, %8
%10:f32 = load %res
@@ -3813,7 +3813,7 @@
auto* src = R"(
$B1: { # root
- %P:ptr<private, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var
+ %P:ptr<private, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef
}
%f2 = func(%p:ptr<private, array<vec4<i32>, 5>, read_write>):vec4<i32> {
@@ -3849,7 +3849,7 @@
auto* expect = R"(
$B1: { # root
- %P:ptr<private, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var
+ %P:ptr<private, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef
}
%f2 = func(%p_indices:array<u32, 2>):vec4<i32> {
@@ -3935,7 +3935,7 @@
auto* src = R"(
$B1: { # root
- %P:ptr<private, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var
+ %P:ptr<private, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef
}
%f2 = func(%p:ptr<private, array<vec4<i32>, 5>, read_write>):vec4<i32> {
@@ -3997,10 +3997,10 @@
auto* src = R"(
%f = func():void {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%p:ptr<function, i32, read_write> = let %v
%4:i32 = load %p
- %x:ptr<function, i32, read_write> = var, %4
+ %x:ptr<function, i32, read_write> = var %4
ret
}
}
@@ -4041,7 +4041,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, i32, read_write> = var
+ %F:ptr<function, i32, read_write> = var undef
%8:i32 = call %a, 10i, %F, 20i
ret
}
@@ -4059,7 +4059,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, i32, read_write> = var
+ %F:ptr<function, i32, read_write> = var undef
%8:i32 = call %a, 10i, %F, 20i
ret
}
@@ -4100,7 +4100,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, i32, read_write> = var
+ %F:ptr<function, i32, read_write> = var undef
%7:void = call %a, 10i, %F, 20i
ret
}
@@ -4118,7 +4118,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, i32, read_write> = var
+ %F:ptr<function, i32, read_write> = var undef
%7:void = call %a, 10i, %F, 20i
ret
}
@@ -4165,7 +4165,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, str, read_write> = var
+ %F:ptr<function, str, read_write> = var undef
%8:ptr<function, i32, read_write> = access %F, 0u
%9:i32 = call %a, 10i, %8, 20i
ret
@@ -4189,7 +4189,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, str, read_write> = var
+ %F:ptr<function, str, read_write> = var undef
%9:i32 = call %a, 10i, %F, 20i
ret
}
@@ -4240,7 +4240,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, str, read_write> = var
+ %F:ptr<function, str, read_write> = var undef
%7:ptr<function, array<i32, 4>, read_write> = access %F, 0u
%8:void = call %a, 10i, %7, 20i
ret
@@ -4264,7 +4264,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, str, read_write> = var
+ %F:ptr<function, str, read_write> = var undef
%8:void = call %a, 10i, %F, 20i
ret
}
@@ -4322,9 +4322,9 @@
}
%b = func():void {
$B2: {
- %Fi:ptr<function, i32, read_write> = var
- %Fs:ptr<function, str, read_write> = var
- %Fa:ptr<function, array<i32, 4>, read_write> = var
+ %Fi:ptr<function, i32, read_write> = var undef
+ %Fs:ptr<function, str, read_write> = var undef
+ %Fa:ptr<function, array<i32, 4>, read_write> = var undef
%10:i32 = call %a, 10i, %Fi, 20i
%11:ptr<function, i32, read_write> = access %Fs, 0u
%12:i32 = call %a, 30i, %11, 40i
@@ -4365,9 +4365,9 @@
}
%b = func():void {
$B4: {
- %Fi:ptr<function, i32, read_write> = var
- %Fs:ptr<function, str, read_write> = var
- %Fa:ptr<function, array<i32, 4>, read_write> = var
+ %Fi:ptr<function, i32, read_write> = var undef
+ %Fs:ptr<function, str, read_write> = var undef
+ %Fa:ptr<function, array<i32, 4>, read_write> = var undef
%24:i32 = call %a, 10i, %Fi, 20i
%25:i32 = call %a_1, 30i, %Fs, 40i
%26:u32 = convert 2i
@@ -4418,7 +4418,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, str, read_write> = var
+ %F:ptr<function, str, read_write> = var undef
%8:ptr<function, i32, read_write> = access %F, 0u
%9:i32 = call %a, 10i, %8, 20i
ret
@@ -4474,7 +4474,7 @@
}
%b = func():void {
$B2: {
- %F:ptr<function, str, read_write> = var
+ %F:ptr<function, str, read_write> = var undef
%7:ptr<function, array<i32, 4>, read_write> = access %F, 0u
%8:void = call %a, 10i, %7, 20i
ret
@@ -4589,7 +4589,7 @@
}
%f1 = func(%p_1:ptr<function, mat3x4<f32>, read_write>):f32 { # %p_1: 'p'
$B2: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%7:ptr<function, vec4<f32>, read_write> = access %p_1, 1i
%8:f32 = call %f0, %7
%9:f32 = load %res
@@ -4627,7 +4627,7 @@
}
%b = func():void {
$B6: {
- %F:ptr<function, Outer, read_write> = var
+ %F:ptr<function, Outer, read_write> = var undef
%30:f32 = call %f4, %F
ret
}
@@ -4658,7 +4658,7 @@
%f1 = func(%p_root_1:ptr<function, Outer, read_write>, %p_indices_1:array<u32, 1>):f32 { # %p_root_1: 'p_root', %p_indices_1: 'p_indices'
$B2: {
%11:u32 = access %p_indices_1, 0u
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%13:u32 = convert 1i
%14:array<u32, 2> = construct %11, %13
%15:f32 = call %f0, %p_root_1, %14
@@ -4699,7 +4699,7 @@
}
%b = func():void {
$B6: {
- %F:ptr<function, Outer, read_write> = var
+ %F:ptr<function, Outer, read_write> = var undef
%40:f32 = call %f4, %F
ret
}
@@ -4809,7 +4809,7 @@
}
%f1 = func(%p_1:ptr<function, mat3x4<f32>, read_write>):f32 { # %p_1: 'p'
$B2: {
- %res:ptr<function, f32, read_write> = var
+ %res:ptr<function, f32, read_write> = var undef
%7:ptr<function, vec4<f32>, read_write> = access %p_1, 1i
%8:f32 = call %f0, %7
%9:f32 = load %res
@@ -4847,7 +4847,7 @@
}
%b = func():void {
$B6: {
- %F:ptr<function, Outer, read_write> = var
+ %F:ptr<function, Outer, read_write> = var undef
%30:f32 = call %f4, %F
ret
}
@@ -4925,7 +4925,7 @@
}
%main = func():void {
$B4: {
- %F:ptr<function, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var
+ %F:ptr<function, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef
%15:vec4<i32> = call %f0, %F
ret
}
@@ -4962,7 +4962,7 @@
}
%main = func():void {
$B4: {
- %F:ptr<function, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var
+ %F:ptr<function, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef
%21:vec4<i32> = call %f0, %F
ret
}
@@ -5036,7 +5036,7 @@
}
%main = func():void {
$B4: {
- %F:ptr<function, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var
+ %F:ptr<function, array<array<array<vec4<i32>, 5>, 5>, 5>, read_write> = var undef
%15:vec4<i32> = call %f0, %F
ret
}
@@ -5085,8 +5085,8 @@
auto* src = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func():void {
@@ -5142,8 +5142,8 @@
auto* src = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func(%s:sampler):void {
@@ -5167,8 +5167,8 @@
auto* expect = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func():void {
@@ -5224,8 +5224,8 @@
auto* src = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func(%t:texture_2d<f32>):void {
@@ -5249,8 +5249,8 @@
auto* expect = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func():void {
@@ -5306,8 +5306,8 @@
auto* src = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func(%t:texture_2d<f32>, %s:sampler):void {
@@ -5331,8 +5331,8 @@
auto* expect = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func():void {
@@ -5396,8 +5396,8 @@
auto* src = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func(%t:texture_2d<f32>, %s:sampler):void {
@@ -5427,8 +5427,8 @@
auto* expect = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func():void {
@@ -5498,8 +5498,8 @@
auto* src = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func(%t:texture_2d<f32>, %s:sampler):void {
@@ -5569,8 +5569,8 @@
auto* src = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func(%t1:texture_2d<f32>, %t2:texture_2d<f32>):void {
@@ -5597,8 +5597,8 @@
auto* expect = R"(
$B1: { # root
- %tex:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 1)
+ %tex:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 1)
}
%f = func():void {
@@ -5666,9 +5666,9 @@
auto* src = R"(
$B1: { # root
- %tex1:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %tex2:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 1)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 2)
+ %tex1:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %tex2:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 1)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 2)
}
%f = func(%t:texture_2d<f32>):void {
@@ -5699,9 +5699,9 @@
auto* expect = R"(
$B1: { # root
- %tex1:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
- %tex2:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 1)
- %samp:ptr<handle, sampler, read_write> = var @binding_point(0, 2)
+ %tex1:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
+ %tex2:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 1)
+ %samp:ptr<handle, sampler, read_write> = var undef @binding_point(0, 2)
}
%f = func():void {
@@ -5774,7 +5774,7 @@
auto* src = R"(
$B1: { # root
- %S:ptr<storage, array<f32>, read_write> = var @binding_point(0, 0)
+ %S:ptr<storage, array<f32>, read_write> = var undef @binding_point(0, 0)
}
%len = func(%p:ptr<storage, array<f32>, read_write>):u32 {
@@ -5795,7 +5795,7 @@
auto* expect = R"(
$B1: { # root
- %S:ptr<storage, array<f32>, read_write> = var @binding_point(0, 0)
+ %S:ptr<storage, array<f32>, read_write> = var undef @binding_point(0, 0)
}
%len = func():u32 {
@@ -5840,7 +5840,7 @@
auto* src = R"(
$B1: { # root
- %W:ptr<workgroup, atomic<i32>, read_write> = var
+ %W:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%load = func(%p:ptr<workgroup, atomic<i32>, read_write>):i32 {
@@ -5861,7 +5861,7 @@
auto* expect = R"(
$B1: { # root
- %W:ptr<workgroup, atomic<i32>, read_write> = var
+ %W:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%load = func():i32 {
@@ -6029,18 +6029,18 @@
}
$B1: { # root
- %U:ptr<uniform, vec4<i32>, read> = var @binding_point(0, 0)
- %U_str:ptr<uniform, str, read> = var @binding_point(0, 1)
- %U_arr:ptr<uniform, array<vec4<i32>, 8>, read> = var @binding_point(0, 2)
- %U_arr_arr:ptr<uniform, array<array<vec4<i32>, 8>, 4>, read> = var @binding_point(0, 3)
- %S:ptr<storage, vec4<i32>, read> = var @binding_point(1, 0)
- %S_str:ptr<storage, str, read> = var @binding_point(1, 1)
- %S_arr:ptr<storage, array<vec4<i32>, 8>, read> = var @binding_point(1, 2)
- %S_arr_arr:ptr<storage, array<array<vec4<i32>, 8>, 4>, read> = var @binding_point(1, 3)
- %W:ptr<workgroup, vec4<i32>, read_write> = var
- %W_str:ptr<workgroup, str, read_write> = var
- %W_arr:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var
- %W_arr_arr:ptr<workgroup, array<array<vec4<i32>, 8>, 4>, read_write> = var
+ %U:ptr<uniform, vec4<i32>, read> = var undef @binding_point(0, 0)
+ %U_str:ptr<uniform, str, read> = var undef @binding_point(0, 1)
+ %U_arr:ptr<uniform, array<vec4<i32>, 8>, read> = var undef @binding_point(0, 2)
+ %U_arr_arr:ptr<uniform, array<array<vec4<i32>, 8>, 4>, read> = var undef @binding_point(0, 3)
+ %S:ptr<storage, vec4<i32>, read> = var undef @binding_point(1, 0)
+ %S_str:ptr<storage, str, read> = var undef @binding_point(1, 1)
+ %S_arr:ptr<storage, array<vec4<i32>, 8>, read> = var undef @binding_point(1, 2)
+ %S_arr_arr:ptr<storage, array<array<vec4<i32>, 8>, 4>, read> = var undef @binding_point(1, 3)
+ %W:ptr<workgroup, vec4<i32>, read_write> = var undef
+ %W_str:ptr<workgroup, str, read_write> = var undef
+ %W_arr:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var undef
+ %W_arr_arr:ptr<workgroup, array<array<vec4<i32>, 8>, 4>, read_write> = var undef
}
%fn_u = func(%p:ptr<uniform, vec4<i32>, read>):vec4<i32> {
@@ -6129,18 +6129,18 @@
}
$B1: { # root
- %U:ptr<uniform, vec4<i32>, read> = var @binding_point(0, 0)
- %U_str:ptr<uniform, str, read> = var @binding_point(0, 1)
- %U_arr:ptr<uniform, array<vec4<i32>, 8>, read> = var @binding_point(0, 2)
- %U_arr_arr:ptr<uniform, array<array<vec4<i32>, 8>, 4>, read> = var @binding_point(0, 3)
- %S:ptr<storage, vec4<i32>, read> = var @binding_point(1, 0)
- %S_str:ptr<storage, str, read> = var @binding_point(1, 1)
- %S_arr:ptr<storage, array<vec4<i32>, 8>, read> = var @binding_point(1, 2)
- %S_arr_arr:ptr<storage, array<array<vec4<i32>, 8>, 4>, read> = var @binding_point(1, 3)
- %W:ptr<workgroup, vec4<i32>, read_write> = var
- %W_str:ptr<workgroup, str, read_write> = var
- %W_arr:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var
- %W_arr_arr:ptr<workgroup, array<array<vec4<i32>, 8>, 4>, read_write> = var
+ %U:ptr<uniform, vec4<i32>, read> = var undef @binding_point(0, 0)
+ %U_str:ptr<uniform, str, read> = var undef @binding_point(0, 1)
+ %U_arr:ptr<uniform, array<vec4<i32>, 8>, read> = var undef @binding_point(0, 2)
+ %U_arr_arr:ptr<uniform, array<array<vec4<i32>, 8>, 4>, read> = var undef @binding_point(0, 3)
+ %S:ptr<storage, vec4<i32>, read> = var undef @binding_point(1, 0)
+ %S_str:ptr<storage, str, read> = var undef @binding_point(1, 1)
+ %S_arr:ptr<storage, array<vec4<i32>, 8>, read> = var undef @binding_point(1, 2)
+ %S_arr_arr:ptr<storage, array<array<vec4<i32>, 8>, 4>, read> = var undef @binding_point(1, 3)
+ %W:ptr<workgroup, vec4<i32>, read_write> = var undef
+ %W_str:ptr<workgroup, str, read_write> = var undef
+ %W_arr:ptr<workgroup, array<vec4<i32>, 8>, read_write> = var undef
+ %W_arr_arr:ptr<workgroup, array<array<vec4<i32>, 8>, 4>, read_write> = var undef
}
%fn_u = func():vec4<i32> {
@@ -6370,7 +6370,7 @@
auto* src = R"(
$B1: { # root
- %S:ptr<storage, array<array<array<array<i32, 9>, 9>, 9>, 50>, read> = var @binding_point(0, 0)
+ %S:ptr<storage, array<array<array<array<i32, 9>, 9>, 9>, 50>, read> = var undef @binding_point(0, 0)
}
%a = func(%i:i32):i32 {
@@ -6409,7 +6409,7 @@
auto* expect = R"(
$B1: { # root
- %S:ptr<storage, array<array<array<array<i32, 9>, 9>, 9>, 50>, read> = var @binding_point(0, 0)
+ %S:ptr<storage, array<array<array<array<i32, 9>, 9>, 9>, 50>, read> = var undef @binding_point(0, 0)
}
%a = func(%i:i32):i32 {
@@ -6499,7 +6499,7 @@
auto* src = R"(
$B1: { # root
- %S:ptr<storage, array<array<array<array<i32, 9>, 9>, 9>, 50>, read> = var @binding_point(0, 0)
+ %S:ptr<storage, array<array<array<array<i32, 9>, 9>, 9>, 50>, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %i:ptr<storage, i32, read>, %post:i32):i32 {
@@ -6534,7 +6534,7 @@
auto* expect = R"(
$B1: { # root
- %S:ptr<storage, array<array<array<array<i32, 9>, 9>, 9>, 50>, read> = var @binding_point(0, 0)
+ %S:ptr<storage, array<array<array<array<i32, 9>, 9>, 9>, 50>, read> = var undef @binding_point(0, 0)
}
%a = func(%pre:i32, %i_indices:array<u32, 4>, %post:i32):i32 {
@@ -6633,8 +6633,8 @@
auto* src = R"(
$B1: { # root
- %S:ptr<storage, array<array<array<i32, 9>, 9>, 50>, read> = var @binding_point(0, 0)
- %U:ptr<uniform, array<array<array<vec4<i32>, 9>, 9>, 50>, read> = var @binding_point(0, 0)
+ %S:ptr<storage, array<array<array<i32, 9>, 9>, 50>, read> = var undef @binding_point(0, 0)
+ %U:ptr<uniform, array<array<array<vec4<i32>, 9>, 9>, 50>, read> = var undef @binding_point(0, 0)
}
%a = func(%i:i32):i32 {
@@ -6670,8 +6670,8 @@
auto* expect = R"(
$B1: { # root
- %S:ptr<storage, array<array<array<i32, 9>, 9>, 50>, read> = var @binding_point(0, 0)
- %U:ptr<uniform, array<array<array<vec4<i32>, 9>, 9>, 50>, read> = var @binding_point(0, 0)
+ %S:ptr<storage, array<array<array<i32, 9>, 9>, 50>, read> = var undef @binding_point(0, 0)
+ %U:ptr<uniform, array<array<array<vec4<i32>, 9>, 9>, 50>, read> = var undef @binding_point(0, 0)
}
%a = func(%i:i32):i32 {
diff --git a/src/tint/lang/core/ir/transform/multiplanar_external_texture_test.cc b/src/tint/lang/core/ir/transform/multiplanar_external_texture_test.cc
index 32bdf43..f69df4c 100644
--- a/src/tint/lang/core/ir/transform/multiplanar_external_texture_test.cc
+++ b/src/tint/lang/core/ir/transform/multiplanar_external_texture_test.cc
@@ -69,7 +69,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
}
%foo = func():void {
@@ -108,9 +108,9 @@
}
$B1: { # root
- %texture_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
+ %texture_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
}
%foo = func():void {
@@ -141,7 +141,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
}
%foo = func():void {
@@ -181,9 +181,9 @@
}
$B1: { # root
- %texture_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
+ %texture_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
}
%foo = func():void {
@@ -219,7 +219,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
}
%foo = func():vec2<u32> {
@@ -260,9 +260,9 @@
}
$B1: { # root
- %texture_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
+ %texture_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
}
%foo = func():vec2<u32> {
@@ -302,7 +302,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
}
%foo = func(%coords:vec2<u32>):vec4<f32> {
@@ -343,9 +343,9 @@
}
$B1: { # root
- %texture_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
+ %texture_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
}
%foo = func(%coords:vec2<u32>):vec4<f32> {
@@ -463,7 +463,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
}
%foo = func(%coords:vec2<i32>):vec4<f32> {
@@ -504,9 +504,9 @@
}
$B1: { # root
- %texture_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
+ %texture_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
}
%foo = func(%coords:vec2<i32>):vec4<f32> {
@@ -627,7 +627,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
}
%foo = func(%sampler:sampler, %coords:vec2<f32>):vec4<f32> {
@@ -668,9 +668,9 @@
}
$B1: { # root
- %texture_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
+ %texture_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
}
%foo = func(%sampler:sampler, %coords:vec2<f32>):vec4<f32> {
@@ -803,7 +803,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
}
%foo = func(%texture_1:texture_external, %sampler:sampler, %coords:vec2<f32>):vec4<f32> { # %texture_1: 'texture'
@@ -850,9 +850,9 @@
}
$B1: { # root
- %texture_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
+ %texture_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
}
%foo = func(%texture_plane0_1:texture_2d<f32>, %texture_plane1_1:texture_2d<f32>, %texture_params_1:tint_ExternalTextureParams, %sampler:sampler, %coords:vec2<f32>):vec4<f32> { # %texture_plane0_1: 'texture_plane0', %texture_plane1_1: 'texture_plane1', %texture_params_1: 'texture_params'
@@ -1001,7 +1001,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(1, 2)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
}
%foo = func(%texture_1:texture_external, %sampler:sampler, %coords:vec2<f32>):vec4<f32> { # %texture_1: 'texture'
@@ -1056,9 +1056,9 @@
}
$B1: { # root
- %texture_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
+ %texture_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
}
%foo = func(%texture_plane0_1:texture_2d<f32>, %texture_plane1_1:texture_2d<f32>, %texture_params_1:tint_ExternalTextureParams, %sampler:sampler, %coords:vec2<f32>):vec4<f32> { # %texture_plane0_1: 'texture_plane0', %texture_plane1_1: 'texture_plane1', %texture_params_1: 'texture_params'
@@ -1206,9 +1206,9 @@
auto* src = R"(
$B1: { # root
- %texture_a:ptr<handle, texture_external, read> = var @binding_point(1, 2)
- %texture_b:ptr<handle, texture_external, read> = var @binding_point(2, 2)
- %texture_c:ptr<handle, texture_external, read> = var @binding_point(3, 2)
+ %texture_a:ptr<handle, texture_external, read> = var undef @binding_point(1, 2)
+ %texture_b:ptr<handle, texture_external, read> = var undef @binding_point(2, 2)
+ %texture_c:ptr<handle, texture_external, read> = var undef @binding_point(3, 2)
}
%foo = func(%coords:vec2<u32>):void {
@@ -1253,15 +1253,15 @@
}
$B1: { # root
- %texture_a_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %texture_a_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 3)
- %texture_a_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(1, 4)
- %texture_b_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(2, 2)
- %texture_b_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(2, 3)
- %texture_b_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(2, 4)
- %texture_c_plane0:ptr<handle, texture_2d<f32>, read> = var @binding_point(3, 2)
- %texture_c_plane1:ptr<handle, texture_2d<f32>, read> = var @binding_point(3, 3)
- %texture_c_params:ptr<uniform, tint_ExternalTextureParams, read> = var @binding_point(3, 4)
+ %texture_a_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %texture_a_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 3)
+ %texture_a_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(1, 4)
+ %texture_b_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(2, 2)
+ %texture_b_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(2, 3)
+ %texture_b_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(2, 4)
+ %texture_c_plane0:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(3, 2)
+ %texture_c_plane1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(3, 3)
+ %texture_c_params:ptr<uniform, tint_ExternalTextureParams, read> = var undef @binding_point(3, 4)
}
%foo = func(%coords:vec2<u32>):void {
diff --git a/src/tint/lang/core/ir/transform/prepare_push_constants_test.cc b/src/tint/lang/core/ir/transform/prepare_push_constants_test.cc
index ac9c2a9..0bc8974 100644
--- a/src/tint/lang/core/ir/transform/prepare_push_constants_test.cc
+++ b/src/tint/lang/core/ir/transform/prepare_push_constants_test.cc
@@ -60,7 +60,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
)";
@@ -89,7 +89,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<push_constant, i32, read> = var
+ %v:ptr<push_constant, i32, read> = var undef
}
%foo = func():i32 {
@@ -119,7 +119,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
)";
@@ -131,8 +131,8 @@
}
$B1: { # root
- %v:ptr<private, i32, read_write> = var
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
+ %v:ptr<private, i32, read_write> = var undef
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
}
)";
@@ -154,7 +154,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
)";
@@ -168,8 +168,8 @@
}
$B1: { # root
- %v:ptr<private, i32, read_write> = var
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
+ %v:ptr<private, i32, read_write> = var undef
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
}
)";
@@ -200,7 +200,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<push_constant, i32, read> = var
+ %v:ptr<push_constant, i32, read> = var undef
}
%foo = func():i32 {
@@ -221,7 +221,7 @@
}
$B1: { # root
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
}
%foo = func():i32 {
diff --git a/src/tint/lang/core/ir/transform/preserve_padding_test.cc b/src/tint/lang/core/ir/transform/preserve_padding_test.cc
index cb0afb0..b91a43a 100644
--- a/src/tint/lang/core/ir/transform/preserve_padding_test.cc
+++ b/src/tint/lang/core/ir/transform/preserve_padding_test.cc
@@ -93,7 +93,7 @@
}
$B1: { # root
- %buffer:ptr<workgroup, MyStruct, read_write> = var
+ %buffer:ptr<workgroup, MyStruct, read_write> = var undef
}
%foo = func(%value:MyStruct):void {
@@ -132,7 +132,7 @@
}
$B1: { # root
- %buffer:ptr<private, MyStruct, read_write> = var
+ %buffer:ptr<private, MyStruct, read_write> = var undef
}
%foo = func(%value:MyStruct):void {
@@ -171,7 +171,7 @@
%foo = func(%value:MyStruct):void {
$B1: {
- %buffer:ptr<function, MyStruct, read_write> = var
+ %buffer:ptr<function, MyStruct, read_write> = var undef
store %buffer, %value
ret
}
@@ -208,7 +208,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:MyStruct):void {
@@ -243,7 +243,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, mat4x4<f32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, mat4x4<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:mat4x4<f32>):void {
@@ -278,7 +278,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<vec4<f32>, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<vec4<f32>, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<vec4<f32>, 4>):void {
@@ -312,7 +312,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, vec3<f32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, vec3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<f32>):void {
@@ -351,7 +351,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func():MyStruct {
@@ -392,7 +392,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:MyStruct):void {
@@ -411,7 +411,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:MyStruct):void {
@@ -461,7 +461,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:MyStruct):void {
@@ -481,7 +481,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:MyStruct):void {
@@ -541,7 +541,7 @@
}
$B1: { # root
- %buffer:ptr<storage, Outer, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, Outer, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:Outer):void {
@@ -565,7 +565,7 @@
}
$B1: { # root
- %buffer:ptr<storage, Outer, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, Outer, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:Outer):void {
@@ -626,7 +626,7 @@
}
$B1: { # root
- %buffer:ptr<storage, array<MyStruct, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<MyStruct, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<MyStruct, 4>):void {
@@ -645,7 +645,7 @@
}
$B1: { # root
- %buffer:ptr<storage, array<MyStruct, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<MyStruct, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<MyStruct, 4>):void {
@@ -715,7 +715,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, mat3x3<f32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, mat3x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:mat3x3<f32>):void {
@@ -729,7 +729,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, mat3x3<f32>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, mat3x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:mat3x3<f32>):void {
@@ -785,7 +785,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:MyStruct):void {
@@ -804,7 +804,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:MyStruct):void {
@@ -863,7 +863,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<mat3x3<f32>, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<mat3x3<f32>, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<mat3x3<f32>, 4>):void {
@@ -877,7 +877,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<mat3x3<f32>, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<mat3x3<f32>, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<mat3x3<f32>, 4>):void {
@@ -950,7 +950,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<vec3<f32>, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<vec3<f32>, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<vec3<f32>, 4>):void {
@@ -964,7 +964,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<vec3<f32>, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<vec3<f32>, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<vec3<f32>, 4>):void {
@@ -1051,7 +1051,7 @@
}
$B1: { # root
- %buffer:ptr<storage, array<Outer, 3>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<Outer, 3>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<Outer, 3>):void {
@@ -1079,7 +1079,7 @@
}
$B1: { # root
- %buffer:ptr<storage, array<Outer, 3>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<Outer, 3>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<Outer, 3>):void {
@@ -1242,7 +1242,7 @@
auto* src = R"(
$B1: { # root
- %buffer:ptr<storage, array<mat3x3<f32>, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<mat3x3<f32>, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:mat3x3<f32>):void {
@@ -1263,7 +1263,7 @@
auto* expect = R"(
$B1: { # root
- %buffer:ptr<storage, array<mat3x3<f32>, 4>, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, array<mat3x3<f32>, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:mat3x3<f32>):void {
diff --git a/src/tint/lang/core/ir/transform/prevent_infinite_loops_test.cc b/src/tint/lang/core/ir/transform/prevent_infinite_loops_test.cc
index 64849d8..4278872 100644
--- a/src/tint/lang/core/ir/transform/prevent_infinite_loops_test.cc
+++ b/src/tint/lang/core/ir/transform/prevent_infinite_loops_test.cc
@@ -71,7 +71,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var
+ %idx:ptr<function, u32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -140,7 +140,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var
+ %idx:ptr<function, u32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -175,8 +175,8 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var
- %idx:ptr<function, u32, read_write> = var
+ %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var undef
+ %idx:ptr<function, u32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -271,7 +271,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var
+ %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -339,7 +339,7 @@
$B1: {
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var
+ %idx:ptr<function, u32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -367,8 +367,8 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var
- %idx:ptr<function, u32, read_write> = var
+ %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var undef
+ %idx:ptr<function, u32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -506,7 +506,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -519,7 +519,7 @@
}
loop [i: $B6, b: $B7, c: $B8] { # loop_2
$B6: { # initializer
- %idx_1:ptr<function, u32, read_write> = var, 0u # %idx_1: 'idx'
+ %idx_1:ptr<function, u32, read_write> = var 0u # %idx_1: 'idx'
next_iteration # -> $B7
}
$B7: { # body
@@ -547,7 +547,7 @@
}
loop [i: $B10, b: $B11, c: $B12] { # loop_3
$B10: { # initializer
- %idx_2:ptr<function, u32, read_write> = var, 0u # %idx_2: 'idx'
+ %idx_2:ptr<function, u32, read_write> = var 0u # %idx_2: 'idx'
next_iteration # -> $B11
}
$B11: { # body
@@ -560,7 +560,7 @@
}
loop [i: $B14, b: $B15, c: $B16] { # loop_4
$B14: { # initializer
- %idx_3:ptr<function, u32, read_write> = var, 0u # %idx_3: 'idx'
+ %idx_3:ptr<function, u32, read_write> = var 0u # %idx_3: 'idx'
next_iteration # -> $B15
}
$B15: { # body
@@ -597,7 +597,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var, 0u
+ %idx:ptr<function, u32, read_write> = var 0u
next_iteration # -> $B3
}
$B3: { # body
@@ -610,8 +610,8 @@
}
loop [i: $B6, b: $B7, c: $B8] { # loop_2
$B6: { # initializer
- %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var
- %idx_1:ptr<function, u32, read_write> = var, 0u # %idx_1: 'idx'
+ %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var undef
+ %idx_1:ptr<function, u32, read_write> = var 0u # %idx_1: 'idx'
next_iteration # -> $B7
}
$B7: { # body
@@ -655,8 +655,8 @@
}
loop [i: $B11, b: $B12, c: $B13] { # loop_3
$B11: { # initializer
- %tint_loop_idx_1:ptr<function, vec2<u32>, read_write> = var # %tint_loop_idx_1: 'tint_loop_idx'
- %idx_2:ptr<function, u32, read_write> = var, 0u # %idx_2: 'idx'
+ %tint_loop_idx_1:ptr<function, vec2<u32>, read_write> = var undef # %tint_loop_idx_1: 'tint_loop_idx'
+ %idx_2:ptr<function, u32, read_write> = var 0u # %idx_2: 'idx'
next_iteration # -> $B12
}
$B12: { # body
@@ -677,7 +677,7 @@
}
loop [i: $B16, b: $B17, c: $B18] { # loop_4
$B16: { # initializer
- %idx_3:ptr<function, u32, read_write> = var, 0u # %idx_3: 'idx'
+ %idx_3:ptr<function, u32, read_write> = var 0u # %idx_3: 'idx'
next_iteration # -> $B17
}
$B17: { # body
@@ -760,7 +760,7 @@
$B1: {
%2:u32, %3:i32, %4:f32, %5:bool = loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %idx:ptr<function, u32, read_write> = var
+ %idx:ptr<function, u32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -795,8 +795,8 @@
$B1: {
%2:u32, %3:i32, %4:f32, %5:bool = loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var
- %idx:ptr<function, u32, read_write> = var
+ %tint_loop_idx:ptr<function, vec2<u32>, read_write> = var undef
+ %idx:ptr<function, u32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
diff --git a/src/tint/lang/core/ir/transform/remove_continue_in_switch_test.cc b/src/tint/lang/core/ir/transform/remove_continue_in_switch_test.cc
index 70dc322..938d630 100644
--- a/src/tint/lang/core/ir/transform/remove_continue_in_switch_test.cc
+++ b/src/tint/lang/core/ir/transform/remove_continue_in_switch_test.cc
@@ -119,7 +119,7 @@
$B1: {
loop [b: $B2] { # loop_1
$B2: { # body
- %tint_continue:ptr<function, bool, read_write> = var
+ %tint_continue:ptr<function, bool, read_write> = var undef
switch 42i [c: (default, $B3)] { # switch_1
$B3: { # case
store %tint_continue, true
@@ -190,7 +190,7 @@
$B1: {
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
- %tint_continue:ptr<function, bool, read_write> = var
+ %tint_continue:ptr<function, bool, read_write> = var undef
switch 42i [c: (default, $B4)] { # switch_1
$B4: { # case
store %tint_continue, true
@@ -278,7 +278,7 @@
$B1: {
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
- %tint_continue:ptr<function, bool, read_write> = var
+ %tint_continue:ptr<function, bool, read_write> = var undef
switch 42i [c: (1i, $B4), c: (2i, $B5), c: (default, $B6)] { # switch_1
$B4: { # case
store %tint_continue, true
@@ -380,7 +380,7 @@
$B1: {
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
- %tint_continue:ptr<function, bool, read_write> = var
+ %tint_continue:ptr<function, bool, read_write> = var undef
switch 42i [c: (default, $B4)] { # switch_1
$B4: { # case
store %tint_continue, true
@@ -393,7 +393,7 @@
continue # -> $B3
}
}
- %tint_continue_1:ptr<function, bool, read_write> = var # %tint_continue_1: 'tint_continue'
+ %tint_continue_1:ptr<function, bool, read_write> = var undef # %tint_continue_1: 'tint_continue'
switch 43i [c: (default, $B6)] { # switch_2
$B6: { # case
store %tint_continue_1, true
@@ -406,7 +406,7 @@
continue # -> $B3
}
}
- %tint_continue_2:ptr<function, bool, read_write> = var # %tint_continue_2: 'tint_continue'
+ %tint_continue_2:ptr<function, bool, read_write> = var undef # %tint_continue_2: 'tint_continue'
switch 44i [c: (default, $B8)] { # switch_3
$B8: { # case
store %tint_continue_2, true
@@ -500,7 +500,7 @@
$B2: { # body
if true [t: $B4] { # if_1
$B4: { # true
- %tint_continue:ptr<function, bool, read_write> = var
+ %tint_continue:ptr<function, bool, read_write> = var undef
switch 42i [c: (default, $B5)] { # switch_1
$B5: { # case
if true [t: $B6] { # if_2
@@ -592,10 +592,10 @@
$B1: {
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
- %tint_continue:ptr<function, bool, read_write> = var
+ %tint_continue:ptr<function, bool, read_write> = var undef
switch 42i [c: (default, $B4)] { # switch_1
$B4: { # case
- %tint_continue_1:ptr<function, bool, read_write> = var # %tint_continue_1: 'tint_continue'
+ %tint_continue_1:ptr<function, bool, read_write> = var undef # %tint_continue_1: 'tint_continue'
switch 42i [c: (default, $B5)] { # switch_2
$B5: { # case
store %tint_continue_1, true
diff --git a/src/tint/lang/core/ir/transform/remove_terminator_args_test.cc b/src/tint/lang/core/ir/transform/remove_terminator_args_test.cc
index 2fed34f..3d7f021 100644
--- a/src/tint/lang/core/ir/transform/remove_terminator_args_test.cc
+++ b/src/tint/lang/core/ir/transform/remove_terminator_args_test.cc
@@ -224,8 +224,8 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
- %3:ptr<function, u32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
+ %3:ptr<function, u32, read_write> = var undef
if true [t: $B2, f: $B3] { # if_1
$B2: { # true
store %2, 1i
@@ -308,8 +308,8 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
- %3:ptr<function, u32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
+ %3:ptr<function, u32, read_write> = var undef
switch 42i [c: (1i, $B2), c: (2i, $B3), c: (default, $B4)] { # switch_1
$B2: { # case
store %2, 1i
@@ -401,8 +401,8 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
- %3:ptr<function, u32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
+ %3:ptr<function, u32, read_write> = var undef
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
next_iteration # -> $B3
@@ -499,9 +499,9 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
- %3:ptr<function, u32, read_write> = var
+ %3:ptr<function, u32, read_write> = var undef
store %3, 2u
next_iteration # -> $B3
}
@@ -598,8 +598,8 @@
next_iteration # -> $B3
}
$B3: { # body
- %2:ptr<function, i32, read_write> = var
- %3:ptr<function, u32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
+ %3:ptr<function, u32, read_write> = var undef
if true [t: $B5] { # if_1
$B5: { # true
exit_loop # loop_1
@@ -697,13 +697,13 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
- %3:ptr<function, u32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
+ %3:ptr<function, u32, read_write> = var undef
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %4:ptr<function, f32, read_write> = var
+ %4:ptr<function, f32, read_write> = var undef
store %4, 1.0f
- %5:ptr<function, i32, read_write> = var
+ %5:ptr<function, i32, read_write> = var undef
store %5, 2i
next_iteration # -> $B3
}
@@ -787,8 +787,8 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
- %3:ptr<function, u32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
+ %3:ptr<function, u32, read_write> = var undef
if true [t: $B2, f: $B3] { # if_1
$B2: { # true
store %2, 1i
@@ -875,9 +875,9 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
- %3:ptr<function, u32, read_write> = var
+ %3:ptr<function, u32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
diff --git a/src/tint/lang/core/ir/transform/rename_conflicts_test.cc b/src/tint/lang/core/ir/transform/rename_conflicts_test.cc
index bcb965e..48d6133 100644
--- a/src/tint/lang/core/ir/transform/rename_conflicts_test.cc
+++ b/src/tint/lang/core/ir/transform/rename_conflicts_test.cc
@@ -81,7 +81,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
)";
@@ -102,8 +102,8 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
- %v_1:ptr<private, u32, read_write> = var # %v_1: 'v'
+ %v:ptr<private, i32, read_write> = var undef
+ %v_1:ptr<private, u32, read_write> = var undef # %v_1: 'v'
}
)";
@@ -111,8 +111,8 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
- %v_1:ptr<private, u32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
+ %v_1:ptr<private, u32, read_write> = var undef
}
)";
@@ -132,7 +132,7 @@
}
$B1: { # root
- %v:ptr<private, v, read_write> = var
+ %v:ptr<private, v, read_write> = var undef
}
)";
@@ -144,7 +144,7 @@
}
$B1: { # root
- %v_1:ptr<private, v, read_write> = var
+ %v_1:ptr<private, v, read_write> = var undef
}
)";
@@ -162,7 +162,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%v_1 = func():void { # %v_1: 'v'
@@ -175,7 +175,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%v_1 = func():void {
@@ -209,13 +209,13 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%f = func():i32 {
$B2: {
%3:i32 = load %v
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
+ %v_1:ptr<function, i32, read_write> = var undef # %v_1: 'v'
%5:i32 = load %v_1
%6:i32 = add %3, %5
ret %6
@@ -226,13 +226,13 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%f = func():i32 {
$B2: {
%3:i32 = load %v
- %v_1:ptr<function, i32, read_write> = var
+ %v_1:ptr<function, i32, read_write> = var undef
%5:i32 = load %v_1
%6:i32 = add %3, %5
ret %6
@@ -269,12 +269,12 @@
$B1: {
if true [t: $B2] { # if_1
$B2: { # true
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%3:i32 = load %v
ret %3
}
}
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
+ %v_1:ptr<function, i32, read_write> = var undef # %v_1: 'v'
%5:i32 = load %v_1
ret %5
}
@@ -311,10 +311,10 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
if true [t: $B2] { # if_1
$B2: { # true
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
+ %v_1:ptr<function, i32, read_write> = var undef # %v_1: 'v'
%4:i32 = load %v
%5:i32 = load %v_1
%6:i32 = add %4, %5
@@ -330,10 +330,10 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
if true [t: $B2] { # if_1
$B2: { # true
- %v_1:ptr<function, i32, read_write> = var
+ %v_1:ptr<function, i32, read_write> = var undef
%4:i32 = load %v
%5:i32 = load %v_1
%6:i32 = add %4, %5
@@ -369,7 +369,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
if true [t: $B2] { # if_1
$B2: { # true
%v_1:i32 = let 42i # %v_1: 'v'
@@ -387,7 +387,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
if true [t: $B2] { # if_1
$B2: { # true
%v_1:i32 = let 42i
@@ -434,12 +434,12 @@
$B1: {
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
%3:i32 = load %v
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
+ %v_1:ptr<function, i32, read_write> = var undef # %v_1: 'v'
%5:i32 = load %v_1
%6:i32 = add %3, %5
ret %6
@@ -456,12 +456,12 @@
$B1: {
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
%3:i32 = load %v
- %v_1:ptr<function, i32, read_write> = var
+ %v_1:ptr<function, i32, read_write> = var undef
%5:i32 = load %v_1
%6:i32 = add %3, %5
ret %6
@@ -509,12 +509,12 @@
next_iteration # -> $B3
}
$B3: { # body
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
continue # -> $B4
}
$B4: { # continuing
%3:i32 = load %v
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
+ %v_1:ptr<function, i32, read_write> = var undef # %v_1: 'v'
%5:i32 = load %v_1
%6:i32 = add %3, %5
ret %6
@@ -534,12 +534,12 @@
next_iteration # -> $B3
}
$B3: { # body
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
continue # -> $B4
}
$B4: { # continuing
%3:i32 = load %v
- %v_1:ptr<function, i32, read_write> = var
+ %v_1:ptr<function, i32, read_write> = var undef
%5:i32 = load %v_1
%6:i32 = add %3, %5
ret %6
@@ -569,7 +569,7 @@
auto* src = R"(
%f = func(%i32:i32):void {
$B1: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
ret
}
}
@@ -579,7 +579,7 @@
auto* expect = R"(
%f = func(%i32_1:i32):void {
$B1: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
ret
}
}
@@ -604,7 +604,7 @@
auto* src = R"(
%f = func(%vec2:i32):void {
$B1: {
- %3:ptr<function, vec3<i32>, read_write> = var
+ %3:ptr<function, vec3<i32>, read_write> = var undef
ret
}
}
@@ -632,7 +632,7 @@
auto* src = R"(
%f = func(%vec3:i32):void {
$B1: {
- %3:ptr<function, vec3<i32>, read_write> = var
+ %3:ptr<function, vec3<i32>, read_write> = var undef
ret
}
}
@@ -642,7 +642,7 @@
auto* expect = R"(
%f = func(%vec3_1:i32):void {
$B1: {
- %3:ptr<function, vec3<i32>, read_write> = var
+ %3:ptr<function, vec3<i32>, read_write> = var undef
ret
}
}
@@ -667,7 +667,7 @@
auto* src = R"(
%f = func(%mat3x2:i32):void {
$B1: {
- %3:ptr<function, mat2x4<f32>, read_write> = var
+ %3:ptr<function, mat2x4<f32>, read_write> = var undef
ret
}
}
@@ -695,7 +695,7 @@
auto* src = R"(
%f = func(%mat2x4:i32):void {
$B1: {
- %3:ptr<function, mat2x4<f32>, read_write> = var
+ %3:ptr<function, mat2x4<f32>, read_write> = var undef
ret
}
}
@@ -705,7 +705,7 @@
auto* expect = R"(
%f = func(%mat2x4_1:i32):void {
$B1: {
- %3:ptr<function, mat2x4<f32>, read_write> = var
+ %3:ptr<function, mat2x4<f32>, read_write> = var undef
ret
}
}
@@ -796,7 +796,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %f32:ptr<function, i32, read_write> = var
+ %f32:ptr<function, i32, read_write> = var undef
%3:i32 = construct
ret %3
}
@@ -823,7 +823,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %i32:ptr<function, i32, read_write> = var
+ %i32:ptr<function, i32, read_write> = var undef
%3:i32 = construct
ret %3
}
@@ -834,7 +834,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %i32_1:ptr<function, i32, read_write> = var
+ %i32_1:ptr<function, i32, read_write> = var undef
%3:i32 = construct
ret %3
}
@@ -914,7 +914,7 @@
auto* src = R"(
$B1: { # root
- %function:ptr<private, i32, read_write> = var
+ %function:ptr<private, i32, read_write> = var undef
}
)";
@@ -934,7 +934,7 @@
auto* src = R"(
$B1: { # root
- %private:ptr<private, i32, read_write> = var
+ %private:ptr<private, i32, read_write> = var undef
}
)";
@@ -942,7 +942,7 @@
auto* expect = R"(
$B1: { # root
- %private_1:ptr<private, i32, read_write> = var
+ %private_1:ptr<private, i32, read_write> = var undef
}
)";
@@ -959,7 +959,7 @@
auto* src = R"(
$B1: { # root
- %read:ptr<private, i32, read_write> = var
+ %read:ptr<private, i32, read_write> = var undef
}
)";
@@ -979,7 +979,7 @@
auto* src = R"(
$B1: { # root
- %read_write:ptr<private, i32, read_write> = var
+ %read_write:ptr<private, i32, read_write> = var undef
}
)";
@@ -987,7 +987,7 @@
auto* expect = R"(
$B1: { # root
- %read_write_1:ptr<private, i32, read_write> = var
+ %read_write_1:ptr<private, i32, read_write> = var undef
}
)";
@@ -1011,7 +1011,7 @@
auto* src = R"(
$B1: { # root
- %min:ptr<private, i32, read_write> = var
+ %min:ptr<private, i32, read_write> = var undef
}
%f = func():i32 {
@@ -1044,7 +1044,7 @@
auto* src = R"(
$B1: { # root
- %max:ptr<private, i32, read_write> = var
+ %max:ptr<private, i32, read_write> = var undef
}
%f = func():i32 {
@@ -1058,7 +1058,7 @@
auto* expect = R"(
$B1: { # root
- %max_1:ptr<private, i32, read_write> = var
+ %max_1:ptr<private, i32, read_write> = var undef
}
%f = func():i32 {
@@ -1092,7 +1092,7 @@
}
$B1: { # root
- %1:ptr<private, s, read_write> = var
+ %1:ptr<private, s, read_write> = var undef
}
%f32 = func():void {
@@ -1109,7 +1109,7 @@
}
$B1: { # root
- %1:ptr<private, s, read_write> = var
+ %1:ptr<private, s, read_write> = var undef
}
%f32_1 = func():void {
diff --git a/src/tint/lang/core/ir/transform/robustness_test.cc b/src/tint/lang/core/ir/transform/robustness_test.cc
index 791101e..6c58a95 100644
--- a/src/tint/lang/core/ir/transform/robustness_test.cc
+++ b/src/tint/lang/core/ir/transform/robustness_test.cc
@@ -79,7 +79,7 @@
auto* src = R"(
%foo = func():u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%3:u32 = load_vector_element %vec, 5u
ret %3
}
@@ -90,7 +90,7 @@
auto* expect = R"(
%foo = func():u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%3:u32 = load_vector_element %vec, 3u
ret %3
}
@@ -116,7 +116,7 @@
auto* src = R"(
%foo = func():u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%idx:u32 = let 5u
%4:u32 = load_vector_element %vec, %idx
ret %4
@@ -128,7 +128,7 @@
auto* expect = R"(
%foo = func():u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%idx:u32 = let 5u
%4:u32 = min %idx, 3u
%5:u32 = load_vector_element %vec, %4
@@ -157,7 +157,7 @@
auto* src = R"(
%foo = func(%idx:u32):u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%4:u32 = load_vector_element %vec, %idx
ret %4
}
@@ -168,7 +168,7 @@
auto* expect = R"(
%foo = func(%idx:u32):u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%4:u32 = min %idx, 3u
%5:u32 = load_vector_element %vec, %4
ret %5
@@ -196,7 +196,7 @@
auto* src = R"(
%foo = func(%idx:i32):u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%4:u32 = load_vector_element %vec, %idx
ret %4
}
@@ -207,7 +207,7 @@
auto* expect = R"(
%foo = func(%idx:i32):u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%4:u32 = convert %idx
%5:u32 = min %4, 3u
%6:u32 = load_vector_element %vec, %5
@@ -234,7 +234,7 @@
auto* src = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
store_vector_element %vec, 5u, 0u
ret
}
@@ -245,7 +245,7 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
store_vector_element %vec, 3u, 0u
ret
}
@@ -271,7 +271,7 @@
auto* src = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%idx:u32 = let 5u
store_vector_element %vec, %idx, 0u
ret
@@ -283,7 +283,7 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%idx:u32 = let 5u
%4:u32 = min %idx, 3u
store_vector_element %vec, %4, 0u
@@ -312,7 +312,7 @@
auto* src = R"(
%foo = func(%idx:u32):void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
store_vector_element %vec, %idx, 0u
ret
}
@@ -323,7 +323,7 @@
auto* expect = R"(
%foo = func(%idx:u32):void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%4:u32 = min %idx, 3u
store_vector_element %vec, %4, 0u
ret
@@ -351,7 +351,7 @@
auto* src = R"(
%foo = func(%idx:i32):void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
store_vector_element %vec, %idx, 0u
ret
}
@@ -362,7 +362,7 @@
auto* expect = R"(
%foo = func(%idx:i32):void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%4:u32 = convert %idx
%5:u32 = min %4, 3u
store_vector_element %vec, %5, 0u
@@ -390,7 +390,7 @@
auto* src = R"(
%foo = func():vec4<f32> {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %mat, 2u
%4:vec4<f32> = load %3
ret %4
@@ -421,7 +421,7 @@
auto* src = R"(
%foo = func():vec4<f32> {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%idx:u32 = let 2u
%4:ptr<function, vec4<f32>, read_write> = access %mat, %idx
%5:vec4<f32> = load %4
@@ -434,7 +434,7 @@
auto* expect = R"(
%foo = func():vec4<f32> {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%idx:u32 = let 2u
%4:u32 = min %idx, 3u
%5:ptr<function, vec4<f32>, read_write> = access %mat, %4
@@ -465,7 +465,7 @@
auto* src = R"(
%foo = func(%idx:u32):vec4<f32> {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%4:ptr<function, vec4<f32>, read_write> = access %mat, %idx
%5:vec4<f32> = load %4
ret %5
@@ -477,7 +477,7 @@
auto* expect = R"(
%foo = func(%idx:u32):vec4<f32> {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%4:u32 = min %idx, 3u
%5:ptr<function, vec4<f32>, read_write> = access %mat, %4
%6:vec4<f32> = load %5
@@ -507,7 +507,7 @@
auto* src = R"(
%foo = func(%idx:i32):vec4<f32> {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%4:ptr<function, vec4<f32>, read_write> = access %mat, %idx
%5:vec4<f32> = load %4
ret %5
@@ -519,7 +519,7 @@
auto* expect = R"(
%foo = func(%idx:i32):vec4<f32> {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%4:u32 = convert %idx
%5:u32 = min %4, 3u
%6:ptr<function, vec4<f32>, read_write> = access %mat, %5
@@ -548,7 +548,7 @@
auto* src = R"(
%foo = func():u32 {
$B1: {
- %arr:ptr<function, array<u32, 4>, read_write> = var
+ %arr:ptr<function, array<u32, 4>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %arr, 2u
%4:u32 = load %3
ret %4
@@ -579,7 +579,7 @@
auto* src = R"(
%foo = func():u32 {
$B1: {
- %arr:ptr<function, array<u32, 4>, read_write> = var
+ %arr:ptr<function, array<u32, 4>, read_write> = var undef
%idx:u32 = let 2u
%4:ptr<function, u32, read_write> = access %arr, %idx
%5:u32 = load %4
@@ -592,7 +592,7 @@
auto* expect = R"(
%foo = func():u32 {
$B1: {
- %arr:ptr<function, array<u32, 4>, read_write> = var
+ %arr:ptr<function, array<u32, 4>, read_write> = var undef
%idx:u32 = let 2u
%4:u32 = min %idx, 3u
%5:ptr<function, u32, read_write> = access %arr, %4
@@ -623,7 +623,7 @@
auto* src = R"(
%foo = func(%idx:u32):u32 {
$B1: {
- %arr:ptr<function, array<u32, 4>, read_write> = var
+ %arr:ptr<function, array<u32, 4>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %arr, %idx
%5:u32 = load %4
ret %5
@@ -635,7 +635,7 @@
auto* expect = R"(
%foo = func(%idx:u32):u32 {
$B1: {
- %arr:ptr<function, array<u32, 4>, read_write> = var
+ %arr:ptr<function, array<u32, 4>, read_write> = var undef
%4:u32 = min %idx, 3u
%5:ptr<function, u32, read_write> = access %arr, %4
%6:u32 = load %5
@@ -665,7 +665,7 @@
auto* src = R"(
%foo = func(%idx:i32):u32 {
$B1: {
- %arr:ptr<function, array<u32, 4>, read_write> = var
+ %arr:ptr<function, array<u32, 4>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %arr, %idx
%5:u32 = load %4
ret %5
@@ -677,7 +677,7 @@
auto* expect = R"(
%foo = func(%idx:i32):u32 {
$B1: {
- %arr:ptr<function, array<u32, 4>, read_write> = var
+ %arr:ptr<function, array<u32, 4>, read_write> = var undef
%4:u32 = convert %idx
%5:u32 = min %4, 3u
%6:ptr<function, u32, read_write> = access %arr, %5
@@ -712,7 +712,7 @@
auto* src = R"(
%foo = func(%idx1:u32, %idx2:u32, %idx3:u32, %idx4:u32):u32 {
$B1: {
- %arr:ptr<function, array<array<array<array<u32, 4>, 5>, 6>, 7>, read_write> = var
+ %arr:ptr<function, array<array<array<array<u32, 4>, 5>, 6>, 7>, read_write> = var undef
%7:ptr<function, u32, read_write> = access %arr, %idx1, %idx2, %idx3, %idx4
%8:u32 = load %7
ret %8
@@ -724,7 +724,7 @@
auto* expect = R"(
%foo = func(%idx1:u32, %idx2:u32, %idx3:u32, %idx4:u32):u32 {
$B1: {
- %arr:ptr<function, array<array<array<array<u32, 4>, 5>, 6>, 7>, read_write> = var
+ %arr:ptr<function, array<array<array<array<u32, 4>, 5>, 6>, 7>, read_write> = var undef
%7:u32 = min %idx1, 6u
%8:u32 = min %idx2, 5u
%9:u32 = min %idx3, 4u
@@ -768,7 +768,7 @@
%foo = func(%idx1:u32, %idx2:u32, %idx3:u32):vec4<f32> {
$B1: {
- %arr:ptr<function, array<structure, 8>, read_write> = var
+ %arr:ptr<function, array<structure, 8>, read_write> = var undef
%6:ptr<function, vec4<f32>, read_write> = access %arr, %idx1, 0u, %idx2, %idx3
%7:vec4<f32> = load %6
ret %7
@@ -784,7 +784,7 @@
%foo = func(%idx1:u32, %idx2:u32, %idx3:u32):vec4<f32> {
$B1: {
- %arr:ptr<function, array<structure, 8>, read_write> = var
+ %arr:ptr<function, array<structure, 8>, read_write> = var undef
%6:u32 = min %idx1, 7u
%7:u32 = min %idx2, 3u
%8:u32 = min %idx3, 2u
@@ -820,7 +820,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<private, vec4<u32>, read_write> = var
+ %vec:ptr<private, vec4<u32>, read_write> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -834,7 +834,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<private, vec4<u32>, read_write> = var
+ %vec:ptr<private, vec4<u32>, read_write> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -867,7 +867,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<private, vec4<u32>, read_write> = var
+ %vec:ptr<private, vec4<u32>, read_write> = var undef
}
%foo = func(%idx:u32):void {
@@ -881,7 +881,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<private, vec4<u32>, read_write> = var
+ %vec:ptr<private, vec4<u32>, read_write> = var undef
}
%foo = func(%idx:u32):void {
@@ -915,7 +915,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<private, array<u32, 4>, read_write> = var
+ %arr:ptr<private, array<u32, 4>, read_write> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -930,7 +930,7 @@
auto* expect = R"(
$B1: { # root
- %arr:ptr<private, array<u32, 4>, read_write> = var
+ %arr:ptr<private, array<u32, 4>, read_write> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -964,7 +964,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<push_constant, vec4<u32>, read> = var
+ %vec:ptr<push_constant, vec4<u32>, read> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -978,7 +978,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<push_constant, vec4<u32>, read> = var
+ %vec:ptr<push_constant, vec4<u32>, read> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -1011,7 +1011,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<push_constant, vec4<u32>, read> = var
+ %vec:ptr<push_constant, vec4<u32>, read> = var undef
}
%foo = func(%idx:u32):void {
@@ -1025,7 +1025,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<push_constant, vec4<u32>, read> = var
+ %vec:ptr<push_constant, vec4<u32>, read> = var undef
}
%foo = func(%idx:u32):void {
@@ -1059,7 +1059,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<push_constant, array<u32, 4>, read> = var
+ %arr:ptr<push_constant, array<u32, 4>, read> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -1074,7 +1074,7 @@
auto* expect = R"(
$B1: { # root
- %arr:ptr<push_constant, array<u32, 4>, read> = var
+ %arr:ptr<push_constant, array<u32, 4>, read> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -1109,7 +1109,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<storage, vec4<u32>, read_write> = var @binding_point(0, 0)
+ %vec:ptr<storage, vec4<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1123,7 +1123,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<storage, vec4<u32>, read_write> = var @binding_point(0, 0)
+ %vec:ptr<storage, vec4<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1160,7 +1160,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<storage, vec4<u32>, read_write> = var @binding_point(0, 0)
+ %vec:ptr<storage, vec4<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):void {
@@ -1174,7 +1174,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<storage, vec4<u32>, read_write> = var @binding_point(0, 0)
+ %vec:ptr<storage, vec4<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):void {
@@ -1212,7 +1212,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<storage, array<u32, 4>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1227,7 +1227,7 @@
auto* expect = R"(
$B1: { # root
- %arr:ptr<storage, array<u32, 4>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1265,7 +1265,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<uniform, vec4<u32>, read> = var @binding_point(0, 0)
+ %vec:ptr<uniform, vec4<u32>, read> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1279,7 +1279,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<uniform, vec4<u32>, read> = var @binding_point(0, 0)
+ %vec:ptr<uniform, vec4<u32>, read> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1316,7 +1316,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<uniform, vec4<u32>, read> = var @binding_point(0, 0)
+ %vec:ptr<uniform, vec4<u32>, read> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):void {
@@ -1330,7 +1330,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<uniform, vec4<u32>, read> = var @binding_point(0, 0)
+ %vec:ptr<uniform, vec4<u32>, read> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):void {
@@ -1368,7 +1368,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<uniform, array<u32, 4>, read> = var @binding_point(0, 0)
+ %arr:ptr<uniform, array<u32, 4>, read> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1383,7 +1383,7 @@
auto* expect = R"(
$B1: { # root
- %arr:ptr<uniform, array<u32, 4>, read> = var @binding_point(0, 0)
+ %arr:ptr<uniform, array<u32, 4>, read> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1420,7 +1420,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<workgroup, vec4<u32>, read_write> = var
+ %vec:ptr<workgroup, vec4<u32>, read_write> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -1434,7 +1434,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<workgroup, vec4<u32>, read_write> = var
+ %vec:ptr<workgroup, vec4<u32>, read_write> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -1467,7 +1467,7 @@
auto* src = R"(
$B1: { # root
- %vec:ptr<workgroup, vec4<u32>, read_write> = var
+ %vec:ptr<workgroup, vec4<u32>, read_write> = var undef
}
%foo = func(%idx:u32):void {
@@ -1481,7 +1481,7 @@
auto* expect = R"(
$B1: { # root
- %vec:ptr<workgroup, vec4<u32>, read_write> = var
+ %vec:ptr<workgroup, vec4<u32>, read_write> = var undef
}
%foo = func(%idx:u32):void {
@@ -1515,7 +1515,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<workgroup, array<u32, 4>, read_write> = var
+ %arr:ptr<workgroup, array<u32, 4>, read_write> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -1530,7 +1530,7 @@
auto* expect = R"(
$B1: { # root
- %arr:ptr<workgroup, array<u32, 4>, read_write> = var
+ %arr:ptr<workgroup, array<u32, 4>, read_write> = var undef
}
%foo = func(%idx:u32):u32 {
@@ -1694,7 +1694,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<storage, array<u32>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -1709,7 +1709,7 @@
auto* expect = R"(
$B1: { # root
- %arr:ptr<storage, array<u32>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -1750,7 +1750,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<storage, array<u32>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1765,7 +1765,7 @@
auto* expect = R"(
$B1: { # root
- %arr:ptr<storage, array<u32>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1813,7 +1813,7 @@
}
$B1: { # root
- %buffer:ptr<storage, structure, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, structure, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -1832,7 +1832,7 @@
}
$B1: { # root
- %buffer:ptr<storage, structure, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, structure, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -1883,7 +1883,7 @@
}
$B1: { # root
- %buffer:ptr<storage, structure, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, structure, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1902,7 +1902,7 @@
}
$B1: { # root
- %buffer:ptr<storage, structure, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, structure, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1944,7 +1944,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<storage, array<u32>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -1959,7 +1959,7 @@
auto* expect = R"(
$B1: { # root
- %arr:ptr<storage, array<u32>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):u32 {
@@ -2003,7 +2003,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
}
%foo = func():vec2<u32> {
@@ -2046,7 +2046,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
}
%foo = func(%level:u32):vec2<u32> {
@@ -2061,7 +2061,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
}
%foo = func(%level:u32):vec2<u32> {
@@ -2118,7 +2118,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_1d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_1d<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:i32, %level:i32):vec4<f32> {
@@ -2140,7 +2140,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_1d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_1d<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:i32, %level:i32):vec4<f32> {
@@ -2215,7 +2215,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %level:i32):vec4<f32> {
@@ -2237,7 +2237,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %level:i32):vec4<f32> {
@@ -2315,7 +2315,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %layer:i32, %level:i32):vec4<f32> {
@@ -2337,7 +2337,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %layer:i32, %level:i32):vec4<f32> {
@@ -2419,7 +2419,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec3<i32>, %level:i32):vec4<f32> {
@@ -2441,7 +2441,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec3<i32>, %level:i32):vec4<f32> {
@@ -2517,7 +2517,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_multisampled_2d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_multisampled_2d<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %level:i32):vec4<f32> {
@@ -2539,7 +2539,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_multisampled_2d<f32>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_multisampled_2d<f32>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %level:i32):vec4<f32> {
@@ -2604,7 +2604,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %level:i32):f32 {
@@ -2626,7 +2626,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %level:i32):f32 {
@@ -2703,7 +2703,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %layer:i32, %level:i32):f32 {
@@ -2725,7 +2725,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %layer:i32, %level:i32):f32 {
@@ -2805,7 +2805,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_depth_multisampled_2d, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_depth_multisampled_2d, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %index:i32):f32 {
@@ -2827,7 +2827,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_depth_multisampled_2d, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_depth_multisampled_2d, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %index:i32):f32 {
@@ -2889,7 +2889,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>):vec4<f32> {
@@ -2911,7 +2911,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_external, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_external, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>):vec4<f32> {
@@ -2979,7 +2979,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_1d<rgba8unorm, read_write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_1d<rgba8unorm, read_write>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:i32):vec4<f32> {
@@ -3001,7 +3001,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_1d<rgba8unorm, read_write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_1d<rgba8unorm, read_write>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:i32):vec4<f32> {
@@ -3069,7 +3069,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, read_write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, read_write>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>):vec4<f32> {
@@ -3091,7 +3091,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, read_write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, read_write>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>):vec4<f32> {
@@ -3163,7 +3163,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d_array<rgba8unorm, read_write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_2d_array<rgba8unorm, read_write>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %layer:i32):vec4<f32> {
@@ -3185,7 +3185,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d_array<rgba8unorm, read_write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_2d_array<rgba8unorm, read_write>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec2<i32>, %layer:i32):vec4<f32> {
@@ -3260,7 +3260,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_3d<rgba8unorm, read_write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_3d<rgba8unorm, read_write>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec3<i32>):vec4<f32> {
@@ -3282,7 +3282,7 @@
auto* expect = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_3d<rgba8unorm, read_write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_3d<rgba8unorm, read_write>, read> = var undef @binding_point(0, 0)
}
%load_signed = func(%coords:vec3<i32>):vec4<f32> {
@@ -3342,7 +3342,7 @@
auto* src = R"(
$B1: { # root
- %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var @binding_point(0, 0)
+ %texture:ptr<handle, texture_storage_2d<rgba8unorm, write>, read> = var undef @binding_point(0, 0)
}
%foo = func(%coords:vec2<i32>, %value:vec4<f32>):void {
@@ -3402,10 +3402,10 @@
auto* src = R"(
$B1: { # root
- %vec1:ptr<storage, vec4<u32>, read_write> = var @binding_point(1, 2)
- %vec2:ptr<storage, vec4<u32>, read_write> = var @binding_point(2, 3)
- %arr1:ptr<storage, array<u32, 4>, read_write> = var @binding_point(4, 5)
- %arr2:ptr<storage, array<u32, 4>, read_write> = var @binding_point(6, 7)
+ %vec1:ptr<storage, vec4<u32>, read_write> = var undef @binding_point(1, 2)
+ %vec2:ptr<storage, vec4<u32>, read_write> = var undef @binding_point(2, 3)
+ %arr1:ptr<storage, array<u32, 4>, read_write> = var undef @binding_point(4, 5)
+ %arr2:ptr<storage, array<u32, 4>, read_write> = var undef @binding_point(6, 7)
}
%foo = func(%idx:u32):void {
@@ -3426,10 +3426,10 @@
auto* expect = R"(
$B1: { # root
- %vec1:ptr<storage, vec4<u32>, read_write> = var @binding_point(1, 2)
- %vec2:ptr<storage, vec4<u32>, read_write> = var @binding_point(2, 3)
- %arr1:ptr<storage, array<u32, 4>, read_write> = var @binding_point(4, 5)
- %arr2:ptr<storage, array<u32, 4>, read_write> = var @binding_point(6, 7)
+ %vec1:ptr<storage, vec4<u32>, read_write> = var undef @binding_point(1, 2)
+ %vec2:ptr<storage, vec4<u32>, read_write> = var undef @binding_point(2, 3)
+ %arr1:ptr<storage, array<u32, 4>, read_write> = var undef @binding_point(4, 5)
+ %arr2:ptr<storage, array<u32, 4>, read_write> = var undef @binding_point(6, 7)
}
%foo = func(%idx:u32):void {
@@ -3477,7 +3477,7 @@
auto* src = R"(
$B1: { # root
- %arr:ptr<storage, array<u32, 4>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%idx:u32):void {
diff --git a/src/tint/lang/core/ir/transform/single_entry_point_test.cc b/src/tint/lang/core/ir/transform/single_entry_point_test.cc
index 10f2ab9..416570f 100644
--- a/src/tint/lang/core/ir/transform/single_entry_point_test.cc
+++ b/src/tint/lang/core/ir/transform/single_entry_point_test.cc
@@ -228,9 +228,9 @@
auto* src = R"(
$B1: { # root
- %v1:ptr<private, i32, read_write> = var
- %v2:ptr<private, i32, read_write> = var
- %v3:ptr<private, i32, read_write> = var
+ %v1:ptr<private, i32, read_write> = var undef
+ %v2:ptr<private, i32, read_write> = var undef
+ %v3:ptr<private, i32, read_write> = var undef
}
%foo = @fragment func():void {
@@ -250,8 +250,8 @@
auto* expect = R"(
$B1: { # root
- %v1:ptr<private, i32, read_write> = var
- %v2:ptr<private, i32, read_write> = var
+ %v1:ptr<private, i32, read_write> = var undef
+ %v2:ptr<private, i32, read_write> = var undef
}
%foo = @fragment func():void {
@@ -412,10 +412,10 @@
auto* src = R"(
$B1: { # root
- %unused_var:ptr<private, i32, read_write> = var
- %v1:ptr<private, i32, read_write> = var
- %v2:ptr<private, i32, read_write> = var
- %v3:ptr<private, i32, read_write> = var
+ %unused_var:ptr<private, i32, read_write> = var undef
+ %v1:ptr<private, i32, read_write> = var undef
+ %v2:ptr<private, i32, read_write> = var undef
+ %v3:ptr<private, i32, read_write> = var undef
}
%unused_func = func():void {
@@ -453,9 +453,9 @@
auto* expect = R"(
$B1: { # root
- %v1:ptr<private, i32, read_write> = var
- %v2:ptr<private, i32, read_write> = var
- %v3:ptr<private, i32, read_write> = var
+ %v1:ptr<private, i32, read_write> = var undef
+ %v2:ptr<private, i32, read_write> = var undef
+ %v3:ptr<private, i32, read_write> = var undef
}
%f1 = func():void {
@@ -699,13 +699,13 @@
auto* src = R"(
$B1: { # root
- %v1:ptr<private, i32, read_write> = var
- %v2:ptr<private, i32, read_write> = var
- %v3:ptr<private, i32, read_write> = var
- %v4:ptr<private, i32, read_write> = var
- %v5:ptr<private, i32, read_write> = var
- %v6:ptr<private, i32, read_write> = var
- %v7:ptr<private, i32, read_write> = var
+ %v1:ptr<private, i32, read_write> = var undef
+ %v2:ptr<private, i32, read_write> = var undef
+ %v3:ptr<private, i32, read_write> = var undef
+ %v4:ptr<private, i32, read_write> = var undef
+ %v5:ptr<private, i32, read_write> = var undef
+ %v6:ptr<private, i32, read_write> = var undef
+ %v7:ptr<private, i32, read_write> = var undef
}
%foo = @fragment func():void {
@@ -731,8 +731,8 @@
auto* expect = R"(
$B1: { # root
- %v1:ptr<private, i32, read_write> = var
- %v5:ptr<private, i32, read_write> = var
+ %v1:ptr<private, i32, read_write> = var undef
+ %v5:ptr<private, i32, read_write> = var undef
}
%foo = @fragment func():void {
@@ -893,8 +893,8 @@
$B1: { # root
%o1:i32 = override @id(1)
%o2:i32 = override @id(2)
- %a:ptr<workgroup, array<i32, %o1>, read_write> = var
- %b:ptr<workgroup, array<i32, %o2>, read_write> = var
+ %a:ptr<workgroup, array<i32, %o1>, read_write> = var undef
+ %b:ptr<workgroup, array<i32, %o2>, read_write> = var undef
}
%foo = @fragment func():void {
@@ -914,7 +914,7 @@
auto* expect = R"(
$B1: { # root
%o1:i32 = override @id(1)
- %a:ptr<workgroup, array<i32, %o1>, read_write> = var
+ %a:ptr<workgroup, array<i32, %o1>, read_write> = var undef
}
%foo = @fragment func():void {
diff --git a/src/tint/lang/core/ir/transform/std140_test.cc b/src/tint/lang/core/ir/transform/std140_test.cc
index 6f68b39..f7aee11 100644
--- a/src/tint/lang/core/ir/transform/std140_test.cc
+++ b/src/tint/lang/core/ir/transform/std140_test.cc
@@ -86,7 +86,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():mat2x4<f32> {
@@ -130,7 +130,7 @@
}
$B1: { # root
- %buffer:ptr<storage, MyStruct, read_write> = var @binding_point(0, 0)
+ %buffer:ptr<storage, MyStruct, read_write> = var undef @binding_point(0, 0)
}
%foo = func():mat2x4<f32> {
@@ -174,7 +174,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():mat2x2<f32> {
@@ -202,7 +202,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():mat2x2<f32> {
@@ -246,7 +246,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():mat3x2<f32> {
@@ -271,7 +271,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():mat3x2<f32> {
@@ -317,7 +317,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():vec2<f32> {
@@ -342,7 +342,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():vec2<f32> {
@@ -385,7 +385,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func(%column:i32):vec2<f32> {
@@ -410,7 +410,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func(%column:i32):vec2<f32> {
@@ -457,7 +457,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():f32 {
@@ -482,7 +482,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():f32 {
@@ -522,7 +522,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():MyStruct {
@@ -546,7 +546,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():MyStruct {
@@ -604,7 +604,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%foo = func():Outer {
@@ -636,7 +636,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():Outer {
@@ -649,7 +649,7 @@
%tint_convert_Outer = func(%tint_input:Outer_std140):Outer {
$B3: {
%7:array<Inner_std140, 4> = access %tint_input, 0u
- %8:ptr<function, array<Inner, 4>, read_write> = var
+ %8:ptr<function, array<Inner, 4>, read_write> = var undef
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -724,7 +724,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%foo = func():Inner {
@@ -757,7 +757,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():Inner {
@@ -816,7 +816,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%foo = func():Outer {
@@ -846,7 +846,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():Outer {
@@ -906,7 +906,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -944,7 +944,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -1014,7 +1014,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -1067,7 +1067,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -1083,7 +1083,7 @@
%11:mat3x2<f32> = construct %6, %8, %10
%12:vec2<f32> = access %11, 2u
%13:array<Inner_std140, 4> = load %3
- %14:ptr<function, array<Inner, 4>, read_write> = var
+ %14:ptr<function, array<Inner, 4>, read_write> = var undef
loop [i: $B3, b: $B4, c: $B5] { # loop_1
$B3: { # initializer
next_iteration 0u # -> $B4
@@ -1185,7 +1185,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -1242,7 +1242,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -1258,7 +1258,7 @@
%11:mat3x2<f32> = construct %6, %8, %10
%12:vec2<f32> = access %11, 2u
%13:array<Inner_std140, 4> = load %3
- %14:ptr<function, array<Inner, 4>, read_write> = var
+ %14:ptr<function, array<Inner, 4>, read_write> = var undef
loop [i: $B3, b: $B4, c: $B5] { # loop_1
$B3: { # initializer
next_iteration 0u # -> $B4
@@ -1363,7 +1363,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer, read> = var undef @binding_point(0, 0)
}
%foo = func(%arr_idx:i32, %col_idx:i32, %el_idx:i32):void {
@@ -1416,7 +1416,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, Outer_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, Outer_std140, read> = var undef @binding_point(0, 0)
}
%foo = func(%arr_idx:i32, %col_idx:i32, %el_idx:i32):void {
@@ -1432,7 +1432,7 @@
%14:mat3x2<f32> = construct %9, %11, %13
%15:vec2<f32> = access %14, %col_idx
%16:array<Inner_std140, 4> = load %6
- %17:ptr<function, array<Inner, 4>, read_write> = var
+ %17:ptr<function, array<Inner, 4>, read_write> = var undef
loop [i: $B3, b: $B4, c: $B5] { # loop_1
$B3: { # initializer
next_iteration 0u # -> $B4
@@ -1524,7 +1524,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -1561,7 +1561,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -1616,7 +1616,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():mat4x3<f32> {
@@ -1642,7 +1642,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():mat4x3<f32> {
@@ -1762,7 +1762,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%load_struct_a = func():mat4x4<f32> {
@@ -1842,7 +1842,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%load_struct_a = func():mat4x4<f32> {
@@ -1963,7 +1963,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -2009,7 +2009,7 @@
}
$B1: { # root
- %buffer:ptr<uniform, MyStruct_std140, read> = var @binding_point(0, 0)
+ %buffer:ptr<uniform, MyStruct_std140, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -2091,7 +2091,7 @@
}
$B1: { # root
- %u:ptr<uniform, S, read> = var @binding_point(0, 0)
+ %u:ptr<uniform, S, read> = var undef @binding_point(0, 0)
}
%F = func():f32 {
@@ -2125,7 +2125,7 @@
}
$B1: { # root
- %u:ptr<uniform, S_std140, read> = var @binding_point(0, 0)
+ %u:ptr<uniform, S_std140, read> = var undef @binding_point(0, 0)
}
%F = func():f32 {
@@ -2177,7 +2177,7 @@
}
$B1: { # root
- %u:ptr<uniform, S2, read> = var @binding_point(0, 0)
+ %u:ptr<uniform, S2, read> = var undef @binding_point(0, 0)
}
%F = func():f32 {
@@ -2223,7 +2223,7 @@
}
$B1: { # root
- %u:ptr<uniform, S2_std140, read> = var @binding_point(0, 0)
+ %u:ptr<uniform, S2_std140, read> = var undef @binding_point(0, 0)
}
%F = func():f32 {
@@ -2272,7 +2272,7 @@
}
$B1: { # root
- %u:ptr<uniform, S2, read> = var @binding_point(0, 0)
+ %u:ptr<uniform, S2, read> = var undef @binding_point(0, 0)
}
%F = func():f32 {
@@ -2308,7 +2308,7 @@
}
$B1: { # root
- %u:ptr<uniform, S2_std140, read> = var @binding_point(0, 0)
+ %u:ptr<uniform, S2_std140, read> = var undef @binding_point(0, 0)
}
%F = func():f32 {
diff --git a/src/tint/lang/core/ir/transform/substitute_overrides_test.cc b/src/tint/lang/core/ir/transform/substitute_overrides_test.cc
index 65a2f10..359b4df 100644
--- a/src/tint/lang/core/ir/transform/substitute_overrides_test.cc
+++ b/src/tint/lang/core/ir/transform/substitute_overrides_test.cc
@@ -873,7 +873,7 @@
auto* src = R"(
$B1: { # root
%x:u32 = override @id(2)
- %v:ptr<workgroup, array<i32, %x>, read_write> = var
+ %v:ptr<workgroup, array<i32, %x>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -885,7 +885,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<workgroup, array<i32, 5>, read_write> = var
+ %v:ptr<workgroup, array<i32, 5>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -922,7 +922,7 @@
$B1: { # root
%x:u32 = override @id(2)
%2:u32 = mul %x, 2u
- %v:ptr<workgroup, array<i32, %2>, read_write> = var
+ %v:ptr<workgroup, array<i32, %2>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -934,7 +934,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<workgroup, array<i32, 10>, read_write> = var
+ %v:ptr<workgroup, array<i32, 10>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -974,7 +974,7 @@
auto* src = R"(
$B1: { # root
%x:u32 = override @id(2)
- %v:ptr<workgroup, array<i32, %x>, read_write> = var
+ %v:ptr<workgroup, array<i32, %x>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -988,7 +988,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<workgroup, array<i32, 5>, read_write> = var
+ %v:ptr<workgroup, array<i32, 5>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1481,7 +1481,7 @@
auto* src = R"(
$B1: { # root
%x:i32 = override @id(0)
- %arr:ptr<storage, array<u32>, read_write> = var @binding_point(0, 0)
+ %arr:ptr<storage, array<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo2 = func():u32 {
@@ -1536,7 +1536,7 @@
%o3:f16 = override @id(3)
%5:vec4<f16> = construct %o0, %o1, %o2, %o3
%6:vec4<f16> = ceil %5
- %global:ptr<private, vec4<f16>, read_write> = var, %6
+ %global:ptr<private, vec4<f16>, read_write> = var %6
}
%foo2 = func():vec4<f16> {
@@ -1551,7 +1551,7 @@
auto* expect = R"(
$B1: { # root
- %global:ptr<private, vec4<f16>, read_write> = var, vec4<f16>(2.0h, 2.0h, 3.0h, 4.0h)
+ %global:ptr<private, vec4<f16>, read_write> = var vec4<f16>(2.0h, 2.0h, 3.0h, 4.0h)
}
%foo2 = func():vec4<f16> {
diff --git a/src/tint/lang/core/ir/transform/value_to_let_test.cc b/src/tint/lang/core/ir/transform/value_to_let_test.cc
index 219c619..92d2799 100644
--- a/src/tint/lang/core/ir/transform/value_to_let_test.cc
+++ b/src/tint/lang/core/ir/transform/value_to_let_test.cc
@@ -149,7 +149,7 @@
auto* src = R"(
$B1: { # root
- %i:ptr<private, i32, read_write> = var
+ %i:ptr<private, i32, read_write> = var undef
}
%rmw = func(%p:i32):i32 {
@@ -201,7 +201,7 @@
auto* src = R"(
$B1: { # root
- %i:ptr<private, i32, read_write> = var
+ %i:ptr<private, i32, read_write> = var undef
}
%rmw = func(%p:i32):i32 {
@@ -254,7 +254,7 @@
auto* src = R"(
$B1: { # root
- %i:ptr<private, i32, read_write> = var
+ %i:ptr<private, i32, read_write> = var undef
}
%rmw = func(%p:i32):i32 {
@@ -307,7 +307,7 @@
}
%F = func():i32 {
$B2: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%6:i32 = call %g, %v
%x:i32 = let %6
%8:i32 = call %g, %v
@@ -337,7 +337,7 @@
auto* src = R"(
%F = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%l:i32 = load %v
%4:i32 = add %l, %l
ret %4
@@ -349,7 +349,7 @@
auto* expect = R"(
%F = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%3:i32 = load %v
%l:i32 = let %3
%5:i32 = add %l, %l
@@ -375,7 +375,7 @@
auto* src = R"(
%F = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%l:i32 = load %v
store %v, 1i
ret %l
@@ -387,7 +387,7 @@
auto* expect = R"(
%F = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%3:i32 = load %v
%l:i32 = let %3
store %v, 1i
@@ -421,7 +421,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -443,7 +443,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -488,7 +488,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -510,7 +510,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -554,7 +554,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -575,7 +575,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -618,7 +618,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -639,7 +639,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -682,7 +682,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -703,7 +703,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<private, i32, read_write> = var
+ %v:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -750,7 +750,7 @@
auto* src = R"(
$B1: { # root
- %i:ptr<private, i32, read_write> = var
+ %i:ptr<private, i32, read_write> = var undef
}
%rmw = func(%p:i32):i32 {
@@ -775,7 +775,7 @@
auto* expect = R"(
$B1: { # root
- %i:ptr<private, i32, read_write> = var
+ %i:ptr<private, i32, read_write> = var undef
}
%rmw = func(%p:i32):i32 {
@@ -832,7 +832,7 @@
auto* src = R"(
$B1: { # root
- %i:ptr<private, i32, read_write> = var
+ %i:ptr<private, i32, read_write> = var undef
}
%rmw = func(%p:i32):i32 {
@@ -860,7 +860,7 @@
auto* expect = R"(
$B1: { # root
- %i:ptr<private, i32, read_write> = var
+ %i:ptr<private, i32, read_write> = var undef
}
%rmw = func(%p:i32):i32 {
@@ -908,7 +908,7 @@
auto* src = R"(
%F = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%3:i32 = load %v
%4:i32 = add %3, 1i
store %v, 2i
@@ -921,7 +921,7 @@
auto* expect = R"(
%F = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%3:i32 = load %v
%4:i32 = add %3, 1i
%5:i32 = let %4
@@ -956,7 +956,7 @@
%F = func():void {
$B1: {
%i:i32 = max 1i, 2i
- %v:ptr<function, i32, read_write> = var, %i
+ %v:ptr<function, i32, read_write> = var %i
%x:i32 = max 3i, 4i
%y:i32 = load %v
%z:i32 = add %y, %x
@@ -971,7 +971,7 @@
%F = func():void {
$B1: {
%i:i32 = max 1i, 2i
- %v:ptr<function, i32, read_write> = var, %i
+ %v:ptr<function, i32, read_write> = var %i
%x:i32 = max 3i, 4i
%y:i32 = load %v
%z:i32 = add %y, %x
@@ -1013,8 +1013,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1032,8 +1032,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1087,7 +1087,7 @@
}
%foo = func():void {
$B3: {
- %arr:ptr<function, array<i32, 4>, read_write> = var
+ %arr:ptr<function, array<i32, 4>, read_write> = var undef
%5:i32 = call %f
%6:ptr<function, i32, read_write> = access %arr, %5
%p:ptr<function, i32, read_write> = let %6
@@ -1114,7 +1114,7 @@
}
%foo = func():void {
$B3: {
- %arr:ptr<function, array<i32, 4>, read_write> = var
+ %arr:ptr<function, array<i32, 4>, read_write> = var undef
%5:i32 = call %f
%6:i32 = let %5
%7:ptr<function, i32, read_write> = access %arr, %6
@@ -1169,7 +1169,7 @@
}
%foo = func():void {
$B3: {
- %arr:ptr<function, array<i32, 4>, read_write> = var
+ %arr:ptr<function, array<i32, 4>, read_write> = var undef
%5:i32 = call %f
%6:i32 = add %5, 1i
%7:ptr<function, i32, read_write> = access %arr, %6
@@ -1197,7 +1197,7 @@
}
%foo = func():void {
$B3: {
- %arr:ptr<function, array<i32, 4>, read_write> = var
+ %arr:ptr<function, array<i32, 4>, read_write> = var undef
%5:i32 = call %f
%6:i32 = add %5, 1i
%7:i32 = let %6
diff --git a/src/tint/lang/core/ir/transform/vertex_pulling_test.cc b/src/tint/lang/core/ir/transform/vertex_pulling_test.cc
index ca784c6..0f07c17 100644
--- a/src/tint/lang/core/ir/transform/vertex_pulling_test.cc
+++ b/src/tint/lang/core/ir/transform/vertex_pulling_test.cc
@@ -105,7 +105,7 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -162,7 +162,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -208,7 +208,7 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -253,7 +253,7 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -299,7 +299,7 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_instance_index:u32 [@instance_index]):vec4<f32> [@position] {
@@ -343,7 +343,7 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_instance_index:u32 [@instance_index]):vec4<f32> [@position] {
@@ -396,7 +396,7 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -481,7 +481,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -553,9 +553,9 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
- %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var @binding_point(4, 1)
- %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var @binding_point(4, 2)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
+ %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var undef @binding_point(4, 1)
+ %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var undef @binding_point(4, 2)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index], %tint_instance_index:u32 [@instance_index]):vec4<f32> [@position] {
@@ -657,9 +657,9 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
- %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var @binding_point(4, 1)
- %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var @binding_point(4, 2)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
+ %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var undef @binding_point(4, 1)
+ %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var undef @binding_point(4, 2)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index], %tint_instance_index:u32 [@instance_index]):vec4<f32> [@position] {
@@ -750,10 +750,10 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
- %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var @binding_point(4, 1)
- %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var @binding_point(4, 2)
- %tint_vertex_buffer_3:ptr<storage, array<u32>, read> = var @binding_point(4, 3)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
+ %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var undef @binding_point(4, 1)
+ %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var undef @binding_point(4, 2)
+ %tint_vertex_buffer_3:ptr<storage, array<u32>, read> = var undef @binding_point(4, 3)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index], %tint_instance_index:u32 [@instance_index]):vec4<f32> [@position] {
@@ -836,7 +836,7 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%vertex_index:u32 [@vertex_index], %tint_instance_index:u32 [@instance_index]):vec4<f32> [@position] {
@@ -895,7 +895,7 @@
auto* expect = R"(
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%instance_index:u32 [@instance_index], %tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -985,9 +985,9 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
- %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var @binding_point(4, 1)
- %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var @binding_point(4, 2)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
+ %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var undef @binding_point(4, 1)
+ %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var undef @binding_point(4, 2)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index], %tint_instance_index:u32 [@instance_index]):vec4<f32> [@position] {
@@ -1113,9 +1113,9 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
- %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var @binding_point(4, 1)
- %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var @binding_point(4, 2)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
+ %tint_vertex_buffer_1:ptr<storage, array<u32>, read> = var undef @binding_point(4, 1)
+ %tint_vertex_buffer_2:ptr<storage, array<u32>, read> = var undef @binding_point(4, 2)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index], %tint_instance_index:u32 [@instance_index]):vec4<f32> [@position] {
@@ -1308,7 +1308,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -1646,7 +1646,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -1946,7 +1946,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -2159,7 +2159,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -2318,7 +2318,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -2443,7 +2443,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -2577,7 +2577,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -2721,7 +2721,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -2861,7 +2861,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -2992,7 +2992,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -3069,7 +3069,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
@@ -3135,7 +3135,7 @@
}
$B1: { # root
- %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var @binding_point(4, 0)
+ %tint_vertex_buffer_0:ptr<storage, array<u32>, read> = var undef @binding_point(4, 0)
}
%foo = @vertex func(%tint_vertex_index:u32 [@vertex_index]):vec4<f32> [@position] {
diff --git a/src/tint/lang/core/ir/transform/zero_init_workgroup_memory_test.cc b/src/tint/lang/core/ir/transform/zero_init_workgroup_memory_test.cc
index 6a73264..fd81d59 100644
--- a/src/tint/lang/core/ir/transform/zero_init_workgroup_memory_test.cc
+++ b/src/tint/lang/core/ir/transform/zero_init_workgroup_memory_test.cc
@@ -83,7 +83,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, i32, read_write> = var
+ %wgvar:ptr<workgroup, i32, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -113,7 +113,7 @@
auto* src = R"(
$B1: { # root
- %pvar:ptr<private, bool, read_write> = var
+ %pvar:ptr<private, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -127,7 +127,7 @@
auto* expect = R"(
$B1: { # root
- %pvar:ptr<private, bool, read_write> = var
+ %pvar:ptr<private, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -154,7 +154,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -168,7 +168,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -203,7 +203,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, i32, read_write> = var
+ %wgvar:ptr<workgroup, i32, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -217,7 +217,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, i32, read_write> = var
+ %wgvar:ptr<workgroup, i32, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -252,7 +252,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, u32, read_write> = var
+ %wgvar:ptr<workgroup, u32, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -266,7 +266,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, u32, read_write> = var
+ %wgvar:ptr<workgroup, u32, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -301,7 +301,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, f32, read_write> = var
+ %wgvar:ptr<workgroup, f32, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -315,7 +315,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, f32, read_write> = var
+ %wgvar:ptr<workgroup, f32, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -350,7 +350,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, f16, read_write> = var
+ %wgvar:ptr<workgroup, f16, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -364,7 +364,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, f16, read_write> = var
+ %wgvar:ptr<workgroup, f16, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -399,7 +399,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, atomic<i32>, read_write> = var
+ %wgvar:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -413,7 +413,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, atomic<i32>, read_write> = var
+ %wgvar:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -448,7 +448,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, atomic<u32>, read_write> = var
+ %wgvar:ptr<workgroup, atomic<u32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -462,7 +462,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, atomic<u32>, read_write> = var
+ %wgvar:ptr<workgroup, atomic<u32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -497,7 +497,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<i32, 4>, read_write> = var
+ %wgvar:ptr<workgroup, array<i32, 4>, read_write> = var undef
}
%main = @compute @workgroup_size(11u, 2u, 3u) func():void {
@@ -511,7 +511,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<i32, 4>, read_write> = var
+ %wgvar:ptr<workgroup, array<i32, 4>, read_write> = var undef
}
%main = @compute @workgroup_size(11u, 2u, 3u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -547,7 +547,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<u32, 5>, 7>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<u32, 5>, 7>, read_write> = var undef
}
%main = @compute @workgroup_size(11u, 2u, 3u) func():void {
@@ -561,7 +561,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<u32, 5>, 7>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<u32, 5>, 7>, read_write> = var undef
}
%main = @compute @workgroup_size(11u, 2u, 3u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -599,7 +599,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<array<i32, 7>, 5>, 3>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<array<i32, 7>, 5>, 3>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -613,7 +613,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<array<i32, 7>, 5>, 3>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<array<i32, 7>, 5>, 3>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -665,7 +665,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<array<i32, 1>, 5>, 3>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<array<i32, 1>, 5>, 3>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -679,7 +679,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<array<i32, 1>, 5>, 3>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<array<i32, 1>, 5>, 3>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -729,7 +729,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<array<i32, 3>, 1>, 5>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<array<i32, 3>, 1>, 5>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -743,7 +743,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<array<i32, 3>, 1>, 5>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<array<i32, 3>, 1>, 5>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -793,7 +793,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<array<i32, 3>, 5>, 1>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<array<i32, 3>, 5>, 1>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -807,7 +807,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<array<i32, 3>, 5>, 1>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<array<i32, 3>, 5>, 1>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -857,7 +857,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<i32, 1>, 1>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<i32, 1>, 1>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -871,7 +871,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, array<array<i32, 1>, 1>, read_write> = var
+ %wgvar:ptr<workgroup, array<array<i32, 1>, 1>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -918,7 +918,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, MyStruct, read_write> = var
+ %wgvar:ptr<workgroup, MyStruct, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -938,7 +938,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, MyStruct, read_write> = var
+ %wgvar:ptr<workgroup, MyStruct, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -993,7 +993,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, Outer, read_write> = var
+ %wgvar:ptr<workgroup, Outer, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1018,7 +1018,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, Outer, read_write> = var
+ %wgvar:ptr<workgroup, Outer, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -1073,7 +1073,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, Outer, read_write> = var
+ %wgvar:ptr<workgroup, Outer, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1098,7 +1098,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, Outer, read_write> = var
+ %wgvar:ptr<workgroup, Outer, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -1161,7 +1161,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, array<Outer, 7>, read_write> = var
+ %wgvar:ptr<workgroup, array<Outer, 7>, read_write> = var undef
}
%main = @compute @workgroup_size(7u, 3u, 2u) func():void {
@@ -1186,7 +1186,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, array<Outer, 7>, read_write> = var
+ %wgvar:ptr<workgroup, array<Outer, 7>, read_write> = var undef
}
%main = @compute @workgroup_size(7u, 3u, 2u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -1254,9 +1254,9 @@
auto* src = R"(
$B1: { # root
- %var_a:ptr<workgroup, bool, read_write> = var
- %var_b:ptr<workgroup, array<i32, 4>, read_write> = var
- %var_c:ptr<workgroup, array<array<u32, 5>, 7>, read_write> = var
+ %var_a:ptr<workgroup, bool, read_write> = var undef
+ %var_b:ptr<workgroup, array<i32, 4>, read_write> = var undef
+ %var_c:ptr<workgroup, array<array<u32, 5>, 7>, read_write> = var undef
}
%main = @compute @workgroup_size(11u, 2u, 3u) func():void {
@@ -1272,9 +1272,9 @@
auto* expect = R"(
$B1: { # root
- %var_a:ptr<workgroup, bool, read_write> = var
- %var_b:ptr<workgroup, array<i32, 4>, read_write> = var
- %var_c:ptr<workgroup, array<array<u32, 5>, 7>, read_write> = var
+ %var_a:ptr<workgroup, bool, read_write> = var undef
+ %var_b:ptr<workgroup, array<i32, 4>, read_write> = var undef
+ %var_c:ptr<workgroup, array<array<u32, 5>, 7>, read_write> = var undef
}
%main = @compute @workgroup_size(11u, 2u, 3u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -1335,10 +1335,10 @@
auto* src = R"(
$B1: { # root
- %var_a:ptr<workgroup, bool, read_write> = var
- %var_b:ptr<workgroup, i32, read_write> = var
- %var_c:ptr<workgroup, array<i32, 42>, read_write> = var
- %var_d:ptr<workgroup, array<array<u32, 6>, 7>, read_write> = var
+ %var_a:ptr<workgroup, bool, read_write> = var undef
+ %var_b:ptr<workgroup, i32, read_write> = var undef
+ %var_c:ptr<workgroup, array<i32, 42>, read_write> = var undef
+ %var_d:ptr<workgroup, array<array<u32, 6>, 7>, read_write> = var undef
}
%main = @compute @workgroup_size(11u, 2u, 3u) func():void {
@@ -1355,10 +1355,10 @@
auto* expect = R"(
$B1: { # root
- %var_a:ptr<workgroup, bool, read_write> = var
- %var_b:ptr<workgroup, i32, read_write> = var
- %var_c:ptr<workgroup, array<i32, 42>, read_write> = var
- %var_d:ptr<workgroup, array<array<u32, 6>, 7>, read_write> = var
+ %var_a:ptr<workgroup, bool, read_write> = var undef
+ %var_b:ptr<workgroup, i32, read_write> = var undef
+ %var_c:ptr<workgroup, array<i32, 42>, read_write> = var undef
+ %var_d:ptr<workgroup, array<array<u32, 6>, 7>, read_write> = var undef
}
%main = @compute @workgroup_size(11u, 2u, 3u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -1414,7 +1414,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%global_id:vec3<u32> [@global_invocation_id], %index:u32 [@local_invocation_index]):void {
@@ -1428,7 +1428,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%global_id:vec3<u32> [@global_invocation_id], %index:u32 [@local_invocation_index]):void {
@@ -1496,7 +1496,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%params:MyStruct):void {
@@ -1515,7 +1515,7 @@
}
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%params:MyStruct):void {
@@ -1567,7 +1567,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1599,7 +1599,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func(%tint_local_index:u32 [@local_invocation_index]):void {
@@ -1691,7 +1691,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%foo = func():void {
@@ -1748,7 +1748,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%foo = func():void {
@@ -1845,7 +1845,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%foo = func():void {
@@ -1879,7 +1879,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, bool, read_write> = var
+ %wgvar:ptr<workgroup, bool, read_write> = var undef
}
%foo = func():void {
diff --git a/src/tint/lang/core/ir/validator_test.cc b/src/tint/lang/core/ir/validator_test.cc
index 437fccd..93fdd9e 100644
--- a/src/tint/lang/core/ir/validator_test.cc
+++ b/src/tint/lang/core/ir/validator_test.cc
@@ -186,7 +186,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:38 error: var: instruction in root block does not have root block as parent
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -793,7 +793,7 @@
EXPECT_THAT(
res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:41 error: var: block instruction does not have same block as parent
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -922,7 +922,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:5 error: var: result instruction is undefined
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -943,7 +943,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:4:5 error: var: result instruction does not match instruction (possible double usage)
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -962,9 +962,9 @@
auto res = ir::Validate(mod);
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
- testing::HasSubstr(R"(:3:46 error: var: operand is not alive
- %2:ptr<function, f32, read_write> = var, %3
- ^^
+ testing::HasSubstr(R"(:3:45 error: var: operand is not alive
+ %2:ptr<function, f32, read_write> = var %3
+ ^^
)")) << res.Failure().reason.Str();
}
@@ -982,9 +982,9 @@
auto res = ir::Validate(mod);
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
- testing::HasSubstr(R"(:3:46 error: var: operand missing usage
- %2:ptr<function, f32, read_write> = var, %3
- ^^
+ testing::HasSubstr(R"(:3:45 error: var: operand missing usage
+ %2:ptr<function, f32, read_write> = var %3
+ ^^
)")) << res.Failure().reason.Str();
}
@@ -1338,7 +1338,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:2:51 error: var: %2 is not in scope
- %a:ptr<workgroup, array<i32, %2>, read_write> = var
+ %a:ptr<workgroup, array<i32, %2>, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
diff --git a/src/tint/lang/core/ir/validator_type_test.cc b/src/tint/lang/core/ir/validator_type_test.cc
index 0514ec8..8a6c77b 100644
--- a/src/tint/lang/core/ir/validator_type_test.cc
+++ b/src/tint/lang/core/ir/validator_type_test.cc
@@ -90,7 +90,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:5 error: var: abstracts are not permitted
- %af:ptr<function, abstract-float, read_write> = var
+ %af:ptr<function, abstract-float, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -106,7 +106,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:5 error: var: abstracts are not permitted
- %ai:ptr<function, abstract-int, read_write> = var
+ %ai:ptr<function, abstract-int, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -122,7 +122,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:5 error: var: abstracts are not permitted
- %af:ptr<function, vec2<abstract-float>, read_write> = var
+ %af:ptr<function, vec2<abstract-float>, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -138,7 +138,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(3:5 error: var: abstracts are not permitted
- %ai:ptr<function, vec3<abstract-int>, read_write> = var
+ %ai:ptr<function, vec3<abstract-int>, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -154,7 +154,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:5 error: var: abstracts are not permitted
- %af:ptr<function, mat2x2<abstract-float>, read_write> = var
+ %af:ptr<function, mat2x2<abstract-float>, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -170,7 +170,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:5 error: var: abstracts are not permitted
- %ai:ptr<function, mat3x4<abstract-int>, read_write> = var
+ %ai:ptr<function, mat3x4<abstract-int>, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -187,7 +187,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:6:3 error: var: abstracts are not permitted
- %1:ptr<private, MyStruct, read_write> = var
+ %1:ptr<private, MyStruct, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -204,7 +204,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:6:3 error: var: abstracts are not permitted
- %1:ptr<private, MyStruct, read_write> = var
+ %1:ptr<private, MyStruct, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
diff --git a/src/tint/lang/core/ir/validator_value_test.cc b/src/tint/lang/core/ir/validator_value_test.cc
index fe59720..32a8e5f 100644
--- a/src/tint/lang/core/ir/validator_value_test.cc
+++ b/src/tint/lang/core/ir/validator_value_test.cc
@@ -66,7 +66,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:2:38 error: var: expected between 0 and 1 operands, got 2
- %1:ptr<private, i32, read_write> = var, 0i
+ %1:ptr<private, i32, read_write> = var 0i, 1i
^^^
)")) << res.Failure().reason.Str();
}
@@ -80,7 +80,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:2:3 error: var: result is undefined
- undef = var, 0i
+ undef = var 0i
^^^^^
)")) << res.Failure().reason.Str();
}
@@ -92,7 +92,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:2:3 error: var: pointers to void are not permitted
- %1:ptr<private, void, read_write> = var
+ %1:ptr<private, void, read_write> = var undef
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)")) << res.Failure().reason.Str();
}
@@ -111,7 +111,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:5 error: var: result is undefined
- undef = var, 0i
+ undef = var 0i
^^^^^
)")) << res.Failure().reason.Str();
}
@@ -130,7 +130,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:13 error: var: expected exactly 1 results, got 0
- undef = var, 1i
+ undef = var 1i
^^^
)")) << res.Failure().reason.Str();
}
@@ -149,7 +149,7 @@
EXPECT_THAT(
res.Failure().reason.Str(),
testing::HasSubstr(R"(:3:14 error: var: result type 'f32' must be a pointer or a reference
- %2:f32 = var
+ %2:f32 = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -168,7 +168,7 @@
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(
R"(:3:41 error: var: '@input_attachment_index' is not valid for non-handle var
- %2:ptr<function, f32, read_write> = var @input_attachment_index(0)
+ %2:ptr<function, f32, read_write> = var undef @input_attachment_index(0)
^^^
)")) << res.Failure().reason.Str();
}
@@ -183,7 +183,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:39 error: var: vars in the 'function' address space must be in a function scope
- %1:ptr<function, f32, read_write> = var
+ %1:ptr<function, f32, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -202,7 +202,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:3:40 error: var: vars in a function scope must be in the 'function' address space
- %2:ptr<private, f32, read_write> = var
+ %2:ptr<private, f32, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -229,7 +229,7 @@
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:38 error: var: '@input_attachment_index' is not valid for non-handle var
- %1:ptr<private, f32, read_write> = var @input_attachment_index(0)
+ %1:ptr<private, f32, read_write> = var undef @input_attachment_index(0)
^^^
)")) << res.Failure().reason.Str();
}
@@ -244,7 +244,7 @@
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:38 error: var: '@input_attachment_index' is not valid for non-handle var
- %1:ptr<push_constant, f32, read> = var @input_attachment_index(0)
+ %1:ptr<push_constant, f32, read> = var undef @input_attachment_index(0)
^^^
)")) << res.Failure().reason.Str();
}
@@ -260,7 +260,7 @@
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:38 error: var: '@input_attachment_index' is not valid for non-handle var
- %1:ptr<storage, f32, read_write> = var @binding_point(0, 0) @input_attachment_index(0)
+ %1:ptr<storage, f32, read_write> = var undef @binding_point(0, 0) @input_attachment_index(0)
^^^
)")) << res.Failure().reason.Str();
}
@@ -276,7 +276,7 @@
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:32 error: var: '@input_attachment_index' is not valid for non-handle var
- %1:ptr<uniform, f32, read> = var @binding_point(0, 0) @input_attachment_index(0)
+ %1:ptr<uniform, f32, read> = var undef @binding_point(0, 0) @input_attachment_index(0)
^^^
)")) << res.Failure().reason.Str();
}
@@ -291,7 +291,7 @@
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:40 error: var: '@input_attachment_index' is not valid for non-handle var
- %1:ptr<workgroup, f32, read_write> = var @input_attachment_index(0)
+ %1:ptr<workgroup, f32, read_write> = var undef @input_attachment_index(0)
^^^
)")) << res.Failure().reason.Str();
}
@@ -310,7 +310,7 @@
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(
R"(:3:41 error: var: initializer type 'i32' does not match store type 'f32'
- %2:ptr<function, f32, read_write> = var, 1i
+ %2:ptr<function, f32, read_write> = var 1i
^^^
)")) << res.Failure().reason.Str();
}
@@ -332,9 +332,9 @@
auto res = ir::Validate(mod);
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
- testing::HasSubstr(R"(:5:46 error: var: operand type is undefined
- %j:ptr<function, f32, read_write> = var, %3
- ^^
+ testing::HasSubstr(R"(:5:45 error: var: operand type is undefined
+ %j:ptr<function, f32, read_write> = var %3
+ ^^
)")) << res.Failure().reason.Str();
}
@@ -355,7 +355,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:8:41 error: var: initializer type '<function>' does not match store type 'f32'
- %i:ptr<function, f32, read_write> = var, %invalid_init
+ %i:ptr<function, f32, read_write> = var %invalid_init
^^^
)")) << res.Failure().reason.Str();
}
@@ -381,7 +381,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:3:38 error: var: only variables in the function or private address space may be initialized
- %s:ptr<storage, f32, read_write> = var, 1.0f
+ %s:ptr<storage, f32, read_write> = var 1.0f
^^^
)")) << res.Failure().reason.Str();
}
@@ -394,7 +394,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:2:31 error: var: a resource variable is missing binding point
- %1:ptr<handle, i32, read> = var
+ %1:ptr<handle, i32, read> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -407,7 +407,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:2:38 error: var: a resource variable is missing binding point
- %1:ptr<storage, i32, read_write> = var
+ %1:ptr<storage, i32, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -420,7 +420,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:2:32 error: var: a resource variable is missing binding point
- %1:ptr<uniform, i32, read> = var
+ %1:ptr<uniform, i32, read> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -434,7 +434,7 @@
ASSERT_NE(res, Success);
EXPECT_THAT(res.Failure().reason.Str(),
testing::HasSubstr(R"(:2:38 error: var: a non-resource variable has binding point
- %1:ptr<private, i32, read_write> = var @binding_point(0, 0)
+ %1:ptr<private, i32, read_write> = var undef @binding_point(0, 0)
^^^
)")) << res.Failure().reason.Str();
}
@@ -453,7 +453,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:35 error: var: module scope variable has more than one IO annotation, [ @location, built-in ]
- %1:ptr<__in, vec4<f32>, read> = var @location(0) @builtin(position)
+ %1:ptr<__in, vec4<f32>, read> = var undef @location(0) @builtin(position)
^^^
)")) << res.Failure().reason.Str();
}
@@ -476,7 +476,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:6:41 error: var: module scope variable struct member has more than one IO annotation, [ built-in, @color ]
- %1:ptr<__out, MyStruct, read_write> = var
+ %1:ptr<__out, MyStruct, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -491,7 +491,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:35 error: var: module scope variable must have at least one IO annotation, e.g. a binding point, a location, etc
- %1:ptr<__in, vec4<f32>, read> = var
+ %1:ptr<__in, vec4<f32>, read> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -509,7 +509,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:6:41 error: var: module scope variable struct members must have at least one IO annotation, e.g. a binding point, a location, etc
- %1:ptr<__out, MyStruct, read_write> = var
+ %1:ptr<__out, MyStruct, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -524,7 +524,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:42 error: var: samplers and textures can only be declared in the 'handle' address space
- %1:ptr<private, sampler, read_write> = var
+ %1:ptr<private, sampler, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
@@ -539,7 +539,7 @@
res.Failure().reason.Str(),
testing::HasSubstr(
R"(:2:42 error: var: samplers and textures can only be declared in the 'handle' address space
- %1:ptr<private, sampler, read_write> = var
+ %1:ptr<private, sampler, read_write> = var undef
^^^
)")) << res.Failure().reason.Str();
}
diff --git a/src/tint/lang/glsl/ir/member_builtin_call_test.cc b/src/tint/lang/glsl/ir/member_builtin_call_test.cc
index b13d0a6..73f8afe 100644
--- a/src/tint/lang/glsl/ir/member_builtin_call_test.cc
+++ b/src/tint/lang/glsl/ir/member_builtin_call_test.cc
@@ -104,7 +104,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -170,7 +170,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -221,7 +221,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
diff --git a/src/tint/lang/glsl/writer/raise/builtin_polyfill_test.cc b/src/tint/lang/glsl/writer/raise/builtin_polyfill_test.cc
index c33a0c6..3ec60c2 100644
--- a/src/tint/lang/glsl/writer/raise/builtin_polyfill_test.cc
+++ b/src/tint/lang/glsl/writer/raise/builtin_polyfill_test.cc
@@ -218,7 +218,7 @@
}
$B1: { # root
- %v:ptr<workgroup, atomic<i32>, read_write> = var
+ %v:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -238,7 +238,7 @@
}
$B1: { # root
- %v:ptr<workgroup, atomic<i32>, read_write> = var
+ %v:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -270,7 +270,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<workgroup, atomic<i32>, read_write> = var
+ %v:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -285,7 +285,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<workgroup, atomic<i32>, read_write> = var
+ %v:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -314,7 +314,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<workgroup, atomic<u32>, read_write> = var
+ %v:ptr<workgroup, atomic<u32>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -329,7 +329,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<workgroup, atomic<u32>, read_write> = var
+ %v:ptr<workgroup, atomic<u32>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -357,7 +357,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<workgroup, atomic<i32>, read_write> = var
+ %v:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -372,7 +372,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<workgroup, atomic<i32>, read_write> = var
+ %v:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -585,7 +585,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -605,7 +605,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -906,7 +906,7 @@
%foo = func(%value:f32):f32 {
$B1: {
- %3:ptr<function, __modf_result_f32, read_write> = var
+ %3:ptr<function, __modf_result_f32, read_write> = var undef
%4:ptr<function, f32, read_write> = access %3, 1u
%5:f32 = glsl.modf %value, %4
%6:ptr<function, f32, read_write> = access %3, 0u
@@ -962,7 +962,7 @@
%foo = func(%value:vec4<f32>):vec4<f32> {
$B1: {
- %3:ptr<function, __modf_result_vec4_f32, read_write> = var
+ %3:ptr<function, __modf_result_vec4_f32, read_write> = var undef
%4:ptr<function, vec4<f32>, read_write> = access %3, 1u
%5:vec4<f32> = glsl.modf %value, %4
%6:ptr<function, vec4<f32>, read_write> = access %3, 0u
@@ -1019,7 +1019,7 @@
%foo = func(%value:f32):f32 {
$B1: {
- %3:ptr<function, __frexp_result_f32, read_write> = var
+ %3:ptr<function, __frexp_result_f32, read_write> = var undef
%4:ptr<function, i32, read_write> = access %3, 1u
%5:f32 = glsl.frexp %value, %4
%6:ptr<function, f32, read_write> = access %3, 0u
@@ -1077,7 +1077,7 @@
%foo = func(%value:vec4<f32>):vec4<f32> {
$B1: {
- %3:ptr<function, __frexp_result_vec4_f32, read_write> = var
+ %3:ptr<function, __frexp_result_vec4_f32, read_write> = var undef
%4:ptr<function, vec4<i32>, read_write> = access %3, 1u
%5:vec4<f32> = glsl.frexp %value, %4
%6:ptr<function, vec4<f32>, read_write> = access %3, 0u
@@ -1169,7 +1169,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %x:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(0.0f)
+ %x:ptr<function, vec2<f32>, read_write> = var vec2<f32>(0.0f)
%3:vec2<f32> = load %x
%4:vec2<f32> = quantizeToF16 %3
%a:vec2<f32> = let %4
@@ -1182,7 +1182,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %x:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(0.0f)
+ %x:ptr<function, vec2<f32>, read_write> = var vec2<f32>(0.0f)
%3:vec2<f32> = load %x
%4:vec2<f32> = call %tint_quantize_to_f16, %3
%a:vec2<f32> = let %4
diff --git a/src/tint/lang/glsl/writer/raise/offset_first_index_test.cc b/src/tint/lang/glsl/writer/raise/offset_first_index_test.cc
index 21363f7..bd0685b 100644
--- a/src/tint/lang/glsl/writer/raise/offset_first_index_test.cc
+++ b/src/tint/lang/glsl/writer/raise/offset_first_index_test.cc
@@ -94,8 +94,8 @@
auto* src = R"(
$B1: { # root
- %vertex_index:ptr<__in, u32, read> = var @builtin(vertex_index)
- %instance_index:ptr<__in, u32, read> = var @builtin(instance_index)
+ %vertex_index:ptr<__in, u32, read> = var undef @builtin(vertex_index)
+ %instance_index:ptr<__in, u32, read> = var undef @builtin(instance_index)
}
%foo = @vertex func():vec4<f32> [@position] {
@@ -146,8 +146,8 @@
auto* src = R"(
$B1: { # root
- %vertex_index:ptr<__in, u32, read> = var @builtin(vertex_index)
- %instance_index:ptr<__in, u32, read> = var @builtin(instance_index)
+ %vertex_index:ptr<__in, u32, read> = var undef @builtin(vertex_index)
+ %instance_index:ptr<__in, u32, read> = var undef @builtin(instance_index)
}
%foo = @vertex func():vec4<f32> [@position] {
@@ -168,9 +168,9 @@
}
$B1: { # root
- %vertex_index:ptr<__in, u32, read> = var @builtin(vertex_index)
- %instance_index:ptr<__in, u32, read> = var @builtin(instance_index)
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
+ %vertex_index:ptr<__in, u32, read> = var undef @builtin(vertex_index)
+ %instance_index:ptr<__in, u32, read> = var undef @builtin(instance_index)
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
}
%foo = @vertex func():vec4<f32> [@position] {
@@ -223,8 +223,8 @@
auto* src = R"(
$B1: { # root
- %vertex_index:ptr<__in, u32, read> = var @builtin(vertex_index)
- %instance_index:ptr<__in, u32, read> = var @builtin(instance_index)
+ %vertex_index:ptr<__in, u32, read> = var undef @builtin(vertex_index)
+ %instance_index:ptr<__in, u32, read> = var undef @builtin(instance_index)
}
%foo = @vertex func():vec4<f32> [@position] {
@@ -245,9 +245,9 @@
}
$B1: { # root
- %vertex_index:ptr<__in, u32, read> = var @builtin(vertex_index)
- %instance_index:ptr<__in, u32, read> = var @builtin(instance_index)
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
+ %vertex_index:ptr<__in, u32, read> = var undef @builtin(vertex_index)
+ %instance_index:ptr<__in, u32, read> = var undef @builtin(instance_index)
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
}
%foo = @vertex func():vec4<f32> [@position] {
@@ -300,8 +300,8 @@
auto* src = R"(
$B1: { # root
- %vertex_index:ptr<__in, u32, read> = var @builtin(vertex_index)
- %instance_index:ptr<__in, u32, read> = var @builtin(instance_index)
+ %vertex_index:ptr<__in, u32, read> = var undef @builtin(vertex_index)
+ %instance_index:ptr<__in, u32, read> = var undef @builtin(instance_index)
}
%foo = @vertex func():vec4<f32> [@position] {
@@ -323,9 +323,9 @@
}
$B1: { # root
- %vertex_index:ptr<__in, u32, read> = var @builtin(vertex_index)
- %instance_index:ptr<__in, u32, read> = var @builtin(instance_index)
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
+ %vertex_index:ptr<__in, u32, read> = var undef @builtin(vertex_index)
+ %instance_index:ptr<__in, u32, read> = var undef @builtin(instance_index)
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
}
%foo = @vertex func():vec4<f32> [@position] {
diff --git a/src/tint/lang/glsl/writer/raise/shader_io_test.cc b/src/tint/lang/glsl/writer/raise/shader_io_test.cc
index 49ccdc4..8b93d2e 100644
--- a/src/tint/lang/glsl/writer/raise/shader_io_test.cc
+++ b/src/tint/lang/glsl/writer/raise/shader_io_test.cc
@@ -108,10 +108,10 @@
auto* expect = R"(
$B1: { # root
- %foo_front_facing:ptr<__in, bool, read> = var @builtin(front_facing)
- %foo_position:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %foo_loc0_Input:ptr<__in, f32, read> = var @location(0)
- %foo_loc1_Input:ptr<__in, f32, read> = var @location(1) @interpolate(linear, sample)
+ %foo_front_facing:ptr<__in, bool, read> = var undef @builtin(front_facing)
+ %foo_position:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %foo_loc0_Input:ptr<__in, f32, read> = var undef @location(0)
+ %foo_loc1_Input:ptr<__in, f32, read> = var undef @location(1) @interpolate(linear, sample)
}
%foo_inner = func(%front_facing:bool, %position:vec4<f32>, %color1:f32, %color2:f32):void {
@@ -255,10 +255,10 @@
}
$B1: { # root
- %foo_front_facing:ptr<__in, bool, read> = var @builtin(front_facing)
- %foo_position:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %foo_loc0_Input:ptr<__in, f32, read> = var @location(0)
- %foo_loc1_Input:ptr<__in, f32, read> = var @location(1) @interpolate(linear, sample)
+ %foo_front_facing:ptr<__in, bool, read> = var undef @builtin(front_facing)
+ %foo_position:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %foo_loc0_Input:ptr<__in, f32, read> = var undef @location(0)
+ %foo_loc1_Input:ptr<__in, f32, read> = var undef @location(1) @interpolate(linear, sample)
}
%foo_inner = func(%inputs:Inputs):void {
@@ -379,10 +379,10 @@
}
$B1: { # root
- %foo_front_facing:ptr<__in, bool, read> = var @builtin(front_facing)
- %foo_position:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %foo_loc0_Input:ptr<__in, f32, read> = var @location(0)
- %foo_loc1_Input:ptr<__in, f32, read> = var @location(1) @interpolate(linear, sample)
+ %foo_front_facing:ptr<__in, bool, read> = var undef @builtin(front_facing)
+ %foo_position:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %foo_loc0_Input:ptr<__in, f32, read> = var undef @location(0)
+ %foo_loc1_Input:ptr<__in, f32, read> = var undef @location(1) @interpolate(linear, sample)
}
%foo_inner = func(%front_facing:bool, %inputs:Inputs, %color2:f32):void {
@@ -441,8 +441,8 @@
auto* expect = R"(
$B1: { # root
- %foo_position:ptr<__out, vec4<f32>, write> = var @invariant @builtin(position)
- %foo___point_size:ptr<__out, f32, write> = var @builtin(__point_size)
+ %foo_position:ptr<__out, vec4<f32>, write> = var undef @invariant @builtin(position)
+ %foo___point_size:ptr<__out, f32, write> = var undef @builtin(__point_size)
}
%foo_inner = func():vec4<f32> {
@@ -497,7 +497,7 @@
auto* expect = R"(
$B1: { # root
- %foo_loc1_Output:ptr<__out, vec4<f32>, write> = var @location(1)
+ %foo_loc1_Output:ptr<__out, vec4<f32>, write> = var undef @location(1)
}
%foo_inner = func():vec4<f32> {
@@ -599,10 +599,10 @@
}
$B1: { # root
- %foo_position:ptr<__out, vec4<f32>, write> = var @invariant @builtin(position)
- %foo_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %foo_loc1_Output:ptr<__out, f32, write> = var @location(1) @interpolate(linear, sample)
- %foo___point_size:ptr<__out, f32, write> = var @builtin(__point_size)
+ %foo_position:ptr<__out, vec4<f32>, write> = var undef @invariant @builtin(position)
+ %foo_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %foo_loc1_Output:ptr<__out, f32, write> = var undef @location(1) @interpolate(linear, sample)
+ %foo___point_size:ptr<__out, f32, write> = var undef @builtin(__point_size)
}
%foo_inner = func():Outputs {
@@ -700,8 +700,8 @@
}
$B1: { # root
- %foo_loc0_idx0_Output:ptr<__out, f32, write> = var @location(0) @blend_src(0)
- %foo_loc0_idx1_Output:ptr<__out, f32, write> = var @location(0) @blend_src(1)
+ %foo_loc0_idx0_Output:ptr<__out, f32, write> = var undef @location(0) @blend_src(0)
+ %foo_loc0_idx1_Output:ptr<__out, f32, write> = var undef @location(0) @blend_src(1)
}
%foo_inner = func():Output {
@@ -818,12 +818,12 @@
}
$B1: { # root
- %vert_position:ptr<__out, vec4<f32>, write> = var @builtin(position)
- %vert_loc0_Output:ptr<__out, vec4<f32>, write> = var @location(0)
- %vert___point_size:ptr<__out, f32, write> = var @builtin(__point_size)
- %frag_position:ptr<__in, vec4<f32>, read> = var @builtin(position)
- %frag_loc0_Input:ptr<__in, vec4<f32>, read> = var @location(0)
- %frag_loc0_Output:ptr<__out, vec4<f32>, write> = var @location(0)
+ %vert_position:ptr<__out, vec4<f32>, write> = var undef @builtin(position)
+ %vert_loc0_Output:ptr<__out, vec4<f32>, write> = var undef @location(0)
+ %vert___point_size:ptr<__out, f32, write> = var undef @builtin(__point_size)
+ %frag_position:ptr<__in, vec4<f32>, read> = var undef @builtin(position)
+ %frag_loc0_Input:ptr<__in, vec4<f32>, read> = var undef @location(0)
+ %frag_loc0_Output:ptr<__out, vec4<f32>, write> = var undef @location(0)
}
%vert_inner = func():Interface {
@@ -928,7 +928,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, read> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, read> = var undef @binding_point(0, 0)
}
%vert = @vertex func():Outputs {
@@ -947,10 +947,10 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, read> = var @binding_point(0, 0)
- %vert_position:ptr<__out, vec4<f32>, write> = var @builtin(position)
- %vert_loc0_Output:ptr<__out, vec4<f32>, write> = var @location(0)
- %vert___point_size:ptr<__out, f32, write> = var @builtin(__point_size)
+ %1:ptr<storage, Outputs, read> = var undef @binding_point(0, 0)
+ %vert_position:ptr<__out, vec4<f32>, write> = var undef @builtin(position)
+ %vert_loc0_Output:ptr<__out, vec4<f32>, write> = var undef @location(0)
+ %vert___point_size:ptr<__out, f32, write> = var undef @builtin(__point_size)
}
%vert_inner = func():Outputs {
@@ -1050,9 +1050,9 @@
}
$B1: { # root
- %foo_sample_mask:ptr<__in, array<i32, 1>, read> = var @builtin(sample_mask)
- %foo_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %foo_sample_mask_1:ptr<__out, array<i32, 1>, write> = var @builtin(sample_mask) # %foo_sample_mask_1: 'foo_sample_mask'
+ %foo_sample_mask:ptr<__in, array<i32, 1>, read> = var undef @builtin(sample_mask)
+ %foo_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %foo_sample_mask_1:ptr<__out, array<i32, 1>, write> = var undef @builtin(sample_mask) # %foo_sample_mask_1: 'foo_sample_mask'
}
%foo_inner = func(%mask_in:u32):Outputs {
@@ -1178,12 +1178,12 @@
}
$B1: { # root
- %vert_loc1_Input:ptr<__in, f32, read> = var @location(1)
- %vert_loc1_Input_1:ptr<__in, i32, read> = var @location(1) # %vert_loc1_Input_1: 'vert_loc1_Input'
- %vert_position:ptr<__out, vec4<f32>, write> = var @invariant @builtin(position)
- %vert___point_size:ptr<__out, f32, write> = var @builtin(__point_size)
- %frag1_loc1_Output:ptr<__out, f32, write> = var @location(1)
- %frag2_loc0_Output:ptr<__out, i32, write> = var @location(0)
+ %vert_loc1_Input:ptr<__in, f32, read> = var undef @location(1)
+ %vert_loc1_Input_1:ptr<__in, i32, read> = var undef @location(1) # %vert_loc1_Input_1: 'vert_loc1_Input'
+ %vert_position:ptr<__out, vec4<f32>, write> = var undef @invariant @builtin(position)
+ %vert___point_size:ptr<__out, f32, write> = var undef @builtin(__point_size)
+ %frag1_loc1_Output:ptr<__out, f32, write> = var undef @location(1)
+ %frag2_loc0_Output:ptr<__out, i32, write> = var undef @location(0)
}
%vert_inner = func(%input:MyStruct, %ival:i32):vec4<f32> {
@@ -1309,9 +1309,9 @@
}
$B1: { # root
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
- %foo_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %foo_frag_depth:ptr<__out, f32, write> = var @builtin(frag_depth)
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
+ %foo_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %foo_frag_depth:ptr<__out, f32, write> = var undef @builtin(frag_depth)
}
%foo_inner = func():Outputs {
@@ -1429,13 +1429,13 @@
}
$B1: { # root
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
- %ep1_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %ep1_frag_depth:ptr<__out, f32, write> = var @builtin(frag_depth)
- %ep2_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %ep2_frag_depth:ptr<__out, f32, write> = var @builtin(frag_depth)
- %ep3_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %ep3_frag_depth:ptr<__out, f32, write> = var @builtin(frag_depth)
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
+ %ep1_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %ep1_frag_depth:ptr<__out, f32, write> = var undef @builtin(frag_depth)
+ %ep2_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %ep2_frag_depth:ptr<__out, f32, write> = var undef @builtin(frag_depth)
+ %ep3_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %ep3_frag_depth:ptr<__out, f32, write> = var undef @builtin(frag_depth)
}
%ep1_inner = func():Outputs {
@@ -1542,9 +1542,9 @@
auto* expect = R"(
$B1: { # root
- %vert_loc0_Input:ptr<__in, vec4<f32>, read> = var @location(0)
- %vert_position:ptr<__out, vec4<f32>, write> = var @invariant @builtin(position)
- %vert___point_size:ptr<__out, f32, write> = var @builtin(__point_size)
+ %vert_loc0_Input:ptr<__in, vec4<f32>, read> = var undef @location(0)
+ %vert_position:ptr<__out, vec4<f32>, write> = var undef @invariant @builtin(position)
+ %vert___point_size:ptr<__out, f32, write> = var undef @builtin(__point_size)
}
%vert_inner = func(%val:vec4<f32>):vec4<f32> {
@@ -1627,13 +1627,13 @@
auto* expect = R"(
$B1: { # root
- %vert_loc5_Input:ptr<__in, vec4<f32>, read> = var @location(5)
- %vert_loc0_Input:ptr<__in, vec4<f32>, read> = var @location(0)
- %vert_loc4_Input:ptr<__in, vec4<f32>, read> = var @location(4)
- %vert_loc3_Input:ptr<__in, vec4<f32>, read> = var @location(3)
- %vert_loc7_Input:ptr<__in, vec4<f32>, read> = var @location(7)
- %vert_position:ptr<__out, vec4<f32>, write> = var @invariant @builtin(position)
- %vert___point_size:ptr<__out, f32, write> = var @builtin(__point_size)
+ %vert_loc5_Input:ptr<__in, vec4<f32>, read> = var undef @location(5)
+ %vert_loc0_Input:ptr<__in, vec4<f32>, read> = var undef @location(0)
+ %vert_loc4_Input:ptr<__in, vec4<f32>, read> = var undef @location(4)
+ %vert_loc3_Input:ptr<__in, vec4<f32>, read> = var undef @location(3)
+ %vert_loc7_Input:ptr<__in, vec4<f32>, read> = var undef @location(7)
+ %vert_position:ptr<__out, vec4<f32>, write> = var undef @invariant @builtin(position)
+ %vert___point_size:ptr<__out, f32, write> = var undef @builtin(__point_size)
}
%vert_inner = func(%val1:f32, %val2:vec2<f32>, %sentinel:vec4<f32>, %val3:vec3<f32>, %val4:vec4<f32>):vec4<f32> {
diff --git a/src/tint/lang/glsl/writer/raise/texture_builtins_from_uniform_test.cc b/src/tint/lang/glsl/writer/raise/texture_builtins_from_uniform_test.cc
index 5a8453d..505fa84 100644
--- a/src/tint/lang/glsl/writer/raise/texture_builtins_from_uniform_test.cc
+++ b/src/tint/lang/glsl/writer/raise/texture_builtins_from_uniform_test.cc
@@ -64,7 +64,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -85,7 +85,7 @@
}
$B1: { # root
- %1:ptr<uniform, TintTextureUniformData, read> = var @binding_point(0, 30)
+ %1:ptr<uniform, TintTextureUniformData, read> = var undef @binding_point(0, 30)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -119,7 +119,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_multisampled_2d, read_write> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_depth_multisampled_2d, read_write> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -140,7 +140,7 @@
}
$B1: { # root
- %1:ptr<uniform, TintTextureUniformData, read> = var @binding_point(0, 30)
+ %1:ptr<uniform, TintTextureUniformData, read> = var undef @binding_point(0, 30)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -175,7 +175,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -198,7 +198,7 @@
}
$B1: { # root
- %1:ptr<uniform, TintTextureUniformData, read> = var @binding_point(0, 30)
+ %1:ptr<uniform, TintTextureUniformData, read> = var undef @binding_point(0, 30)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -236,7 +236,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_multisampled_2d, read_write> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_depth_multisampled_2d, read_write> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -259,7 +259,7 @@
}
$B1: { # root
- %1:ptr<uniform, TintTextureUniformData, read> = var @binding_point(0, 30)
+ %1:ptr<uniform, TintTextureUniformData, read> = var undef @binding_point(0, 30)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
diff --git a/src/tint/lang/glsl/writer/raise/texture_polyfill_test.cc b/src/tint/lang/glsl/writer/raise/texture_polyfill_test.cc
index bca3244..9dcc216 100644
--- a/src/tint/lang/glsl/writer/raise/texture_polyfill_test.cc
+++ b/src/tint/lang/glsl/writer/raise/texture_polyfill_test.cc
@@ -63,7 +63,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_1d<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_1d<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -78,7 +78,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -115,7 +115,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec2<u32> {
@@ -130,7 +130,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = func():vec2<u32> {
@@ -166,7 +166,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec2<u32> {
@@ -181,7 +181,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = func():vec2<u32> {
@@ -217,7 +217,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_2d_array<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_2d_array<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -233,7 +233,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_2d_array<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_2d_array<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -271,7 +271,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_storage_2d<rg32float, read>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_storage_2d<rg32float, read>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -287,7 +287,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_storage_2d<rg32float, read>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_storage_2d<rg32float, read>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -322,7 +322,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_depth_multisampled_2d, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_depth_multisampled_2d, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -338,7 +338,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_depth_multisampled_2d, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_depth_multisampled_2d, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -375,7 +375,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_2d_array<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_2d_array<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -391,7 +391,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_2d_array<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_2d_array<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -428,7 +428,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_depth_2d_array, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_depth_2d_array, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -444,7 +444,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_2d_array<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_2d_array<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -482,7 +482,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_cube_array<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_cube_array<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -498,7 +498,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_cube_array<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_cube_array<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -535,7 +535,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_depth_cube_array, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_depth_cube_array, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -551,7 +551,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_cube_array<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_cube_array<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -590,7 +590,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_storage_2d_array<rg32float, read>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_storage_2d_array<rg32float, read>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -606,7 +606,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_storage_2d_array<rg32float, read>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_storage_2d_array<rg32float, read>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -644,7 +644,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_1d<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_1d<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -660,7 +660,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -698,7 +698,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_2d<i32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_2d<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -714,7 +714,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_2d<i32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_2d<i32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -750,7 +750,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_3d<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_3d<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -766,7 +766,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_3d<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_3d<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -805,7 +805,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_multisampled_2d<i32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_multisampled_2d<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -821,7 +821,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_multisampled_2d<i32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %v:ptr<handle, texture_multisampled_2d<i32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -859,7 +859,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<handle, texture_storage_2d<rg32float, read>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_storage_2d<rg32float, read>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -875,7 +875,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<handle, texture_storage_2d<rg32float, read>, read_write> = var @binding_point(0, 0)
+ %v:ptr<handle, texture_storage_2d<rg32float, read>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -914,7 +914,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_1d<r32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_1d<r32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -929,7 +929,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d<r32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d<r32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -968,7 +968,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d<rgba32sint, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d<rgba32sint, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -983,7 +983,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d<rgba32sint, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d<rgba32sint, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1022,7 +1022,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d_array<rgba32sint, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d_array<rgba32sint, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1037,7 +1037,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d_array<rgba32sint, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d_array<rgba32sint, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1077,7 +1077,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_3d<r32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_3d<r32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1092,7 +1092,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_3d<r32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_3d<r32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1130,7 +1130,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d_array<rgba32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d_array<rgba32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1145,7 +1145,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d_array<rgba32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d_array<rgba32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1182,7 +1182,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read_write> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_2d<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec2<u32> {
@@ -1197,7 +1197,7 @@
auto* expect = R"(
$B1: { # root
- %t:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler @binding_point(0, 0)
+ %t:ptr<handle, texture_2d<f32>, read_write> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = func():vec2<u32> {
@@ -1245,8 +1245,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1264,7 +1264,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1314,8 +1314,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1334,7 +1334,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1385,8 +1385,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1404,7 +1404,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1457,8 +1457,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1477,7 +1477,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1527,8 +1527,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1546,7 +1546,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<i32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<i32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1594,8 +1594,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1613,7 +1613,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<i32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<i32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1662,8 +1662,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1681,7 +1681,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<i32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<i32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1734,8 +1734,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1753,7 +1753,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<i32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<i32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1803,8 +1803,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1822,7 +1822,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1869,8 +1869,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1888,7 +1888,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1936,8 +1936,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1955,7 +1955,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2007,8 +2007,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2026,7 +2026,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2075,8 +2075,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_1d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_1d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2093,7 +2093,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2140,8 +2140,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2159,7 +2159,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2207,8 +2207,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2226,7 +2226,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2274,8 +2274,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2293,7 +2293,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2345,8 +2345,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2364,7 +2364,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2413,8 +2413,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2432,7 +2432,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2480,8 +2480,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2499,7 +2499,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2546,8 +2546,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2565,7 +2565,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_cube<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_cube<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2613,8 +2613,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2632,7 +2632,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_cube_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_cube_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2681,8 +2681,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2700,7 +2700,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2749,8 +2749,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2768,7 +2768,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2817,8 +2817,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2836,7 +2836,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2887,8 +2887,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2906,7 +2906,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2958,8 +2958,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2977,7 +2977,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3026,8 +3026,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3045,7 +3045,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3094,8 +3094,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3113,7 +3113,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3162,8 +3162,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3181,7 +3181,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3233,8 +3233,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3252,7 +3252,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3301,8 +3301,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3320,7 +3320,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3369,8 +3369,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3388,7 +3388,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3435,8 +3435,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3454,7 +3454,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_cube<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_cube<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3503,8 +3503,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3522,7 +3522,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_cube_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_cube_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3571,8 +3571,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3590,7 +3590,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3639,8 +3639,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3658,7 +3658,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3707,8 +3707,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3726,7 +3726,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3778,8 +3778,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3797,7 +3797,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3846,8 +3846,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3865,7 +3865,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3914,8 +3914,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3933,7 +3933,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3980,8 +3980,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3999,7 +3999,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_cube<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_cube<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4048,8 +4048,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4067,7 +4067,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_cube_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_cube_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4116,8 +4116,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4135,7 +4135,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4185,8 +4185,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4204,7 +4204,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4254,8 +4254,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4273,7 +4273,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4326,8 +4326,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4345,7 +4345,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4396,8 +4396,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4415,7 +4415,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4467,8 +4467,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4488,7 +4488,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4541,8 +4541,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4562,7 +4562,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4615,8 +4615,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4636,7 +4636,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4692,8 +4692,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4713,7 +4713,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_2d_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4766,8 +4766,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4787,7 +4787,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4840,8 +4840,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4861,7 +4861,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_3d<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4912,8 +4912,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4933,7 +4933,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_cube<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_cube<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4986,8 +4986,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5007,7 +5007,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_cube_array<f32>, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_cube_array<f32>, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5058,8 +5058,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5077,7 +5077,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5126,8 +5126,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5145,7 +5145,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5195,8 +5195,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5214,7 +5214,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5266,8 +5266,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5285,7 +5285,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5336,8 +5336,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5355,7 +5355,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_cube, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_cube, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5405,8 +5405,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5424,7 +5424,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5473,8 +5473,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5492,7 +5492,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5542,8 +5542,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5561,7 +5561,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5611,8 +5611,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5630,7 +5630,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5682,8 +5682,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5701,7 +5701,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_2d_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5750,8 +5750,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5769,7 +5769,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_cube, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_cube, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -5819,8 +5819,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5838,7 +5838,7 @@
auto* expect = R"(
$B1: { # root
- %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler @binding_point(0, 0)
+ %t_s:ptr<handle, texture_depth_cube_array, read> = combined_texture_sampler undef @binding_point(0, 0)
}
%foo = @fragment func():void {
diff --git a/src/tint/lang/hlsl/ir/member_builtin_call_test.cc b/src/tint/lang/hlsl/ir/member_builtin_call_test.cc
index 3a29d38..229f252 100644
--- a/src/tint/lang/hlsl/ir/member_builtin_call_test.cc
+++ b/src/tint/lang/hlsl/ir/member_builtin_call_test.cc
@@ -98,7 +98,7 @@
note: # Disassembly
$B1: { # root
- %t:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %t:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -141,7 +141,7 @@
note: # Disassembly
$B1: { # root
- %t:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %t:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -196,7 +196,7 @@
note: # Disassembly
$B1: { # root
- %t:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %t:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -295,7 +295,7 @@
note: # Disassembly
$B1: { # root
- %t:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %t:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -396,7 +396,7 @@
note: # Disassembly
$B1: { # root
- %t:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %t:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = func():void {
diff --git a/src/tint/lang/hlsl/writer/raise/builtin_polyfill_test.cc b/src/tint/lang/hlsl/writer/raise/builtin_polyfill_test.cc
index 16eb8df..81710a7 100644
--- a/src/tint/lang/hlsl/writer/raise/builtin_polyfill_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/builtin_polyfill_test.cc
@@ -295,7 +295,7 @@
%foo = @fragment func():void {
$B1: {
%2:vec2<f16> = construct 1.0h, 2.0h
- %a:ptr<function, vec2<f16>, read_write> = var, %2
+ %a:ptr<function, vec2<f16>, read_write> = var %2
%4:vec2<f16> = load %a
%5:i32 = bitcast %4
%b:i32 = let %5
@@ -309,7 +309,7 @@
%foo = @fragment func():void {
$B1: {
%2:vec2<f16> = construct 1.0h, 2.0h
- %a:ptr<function, vec2<f16>, read_write> = var, %2
+ %a:ptr<function, vec2<f16>, read_write> = var %2
%4:vec2<f16> = load %a
%5:i32 = call %tint_bitcast_from_f16, %4
%b:i32 = let %5
@@ -349,7 +349,7 @@
%foo = @fragment func():void {
$B1: {
%2:vec2<i32> = construct 1i, 2i
- %a:ptr<function, vec2<i32>, read_write> = var, %2
+ %a:ptr<function, vec2<i32>, read_write> = var %2
%4:vec2<i32> = load %a
%5:vec4<f16> = bitcast %4
%b:vec4<f16> = let %5
@@ -363,7 +363,7 @@
%foo = @fragment func():void {
$B1: {
%2:vec2<i32> = construct 1i, 2i
- %a:ptr<function, vec2<i32>, read_write> = var, %2
+ %a:ptr<function, vec2<i32>, read_write> = var %2
%4:vec2<i32> = load %a
%5:vec4<f16> = call %tint_bitcast_to_f16, %4
%b:vec4<f16> = let %5
@@ -490,7 +490,7 @@
auto* expect = R"(
%foo = func(%t:texture_1d<f32>):u32 {
$B1: {
- %3:ptr<function, vec2<u32>, read_write> = var
+ %3:ptr<function, vec2<u32>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, 0u
%5:ptr<function, u32, read_write> = access %3, 1u
%6:void = %t.GetDimensions 0u, %4, %5
@@ -529,7 +529,7 @@
auto* expect = R"(
%foo = func(%t:texture_cube_array<f32>):u32 {
$B1: {
- %3:ptr<function, vec3<u32>, read_write> = var
+ %3:ptr<function, vec3<u32>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, 0u
%5:ptr<function, u32, read_write> = access %3, 1u
%6:ptr<function, u32, read_write> = access %3, 2u
@@ -570,7 +570,7 @@
auto* expect = R"(
%foo = func(%t:texture_multisampled_2d<f32>):u32 {
$B1: {
- %3:ptr<function, vec3<u32>, read_write> = var
+ %3:ptr<function, vec3<u32>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, 0u
%5:ptr<function, u32, read_write> = access %3, 1u
%6:ptr<function, u32, read_write> = access %3, 2u
@@ -611,7 +611,7 @@
auto* expect = R"(
%foo = func(%t:texture_1d<f32>):u32 {
$B1: {
- %3:ptr<function, u32, read_write> = var
+ %3:ptr<function, u32, read_write> = var undef
%4:void = %t.GetDimensions %3
%5:u32 = load %3
ret %5
@@ -649,7 +649,7 @@
%foo = func(%t:texture_1d<f32>):u32 {
$B1: {
%3:u32 = convert 3i
- %4:ptr<function, vec2<u32>, read_write> = var
+ %4:ptr<function, vec2<u32>, read_write> = var undef
%5:ptr<function, u32, read_write> = access %4, 0u
%6:ptr<function, u32, read_write> = access %4, 1u
%7:void = %t.GetDimensions %3, %5, %6
@@ -689,7 +689,7 @@
auto* expect = R"(
%foo = func(%t:texture_1d<f32>):u32 {
$B1: {
- %3:ptr<function, vec2<u32>, read_write> = var
+ %3:ptr<function, vec2<u32>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, 0u
%5:ptr<function, u32, read_write> = access %3, 1u
%6:void = %t.GetDimensions 3u, %4, %5
@@ -729,7 +729,7 @@
auto* expect = R"(
%foo = func(%t:texture_2d<f32>):vec2<u32> {
$B1: {
- %3:ptr<function, vec2<u32>, read_write> = var
+ %3:ptr<function, vec2<u32>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, 0u
%5:ptr<function, u32, read_write> = access %3, 1u
%6:void = %t.GetDimensions %4, %5
@@ -769,7 +769,7 @@
%foo = func(%t:texture_2d<f32>):vec2<u32> {
$B1: {
%3:u32 = convert 3i
- %4:ptr<function, vec3<u32>, read_write> = var
+ %4:ptr<function, vec3<u32>, read_write> = var undef
%5:ptr<function, u32, read_write> = access %4, 0u
%6:ptr<function, u32, read_write> = access %4, 1u
%7:ptr<function, u32, read_write> = access %4, 2u
@@ -810,7 +810,7 @@
auto* expect = R"(
%foo = func(%t:texture_3d<f32>):vec3<u32> {
$B1: {
- %3:ptr<function, vec3<u32>, read_write> = var
+ %3:ptr<function, vec3<u32>, read_write> = var undef
%4:ptr<function, u32, read_write> = access %3, 0u
%5:ptr<function, u32, read_write> = access %3, 1u
%6:ptr<function, u32, read_write> = access %3, 2u
@@ -1114,7 +1114,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_1d<r32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_1d<r32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1129,7 +1129,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_1d<r32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_1d<r32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1165,7 +1165,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_3d<r32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_3d<r32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1180,7 +1180,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_3d<r32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_3d<r32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1216,7 +1216,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d_array<rgba32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d_array<rgba32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1231,7 +1231,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_storage_2d_array<rgba32float, read_write>, read> = var @binding_point(0, 0)
+ %1:ptr<handle, texture_storage_2d_array<rgba32float, read_write>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1277,8 +1277,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1296,8 +1296,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1345,8 +1345,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1365,8 +1365,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1415,8 +1415,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1434,8 +1434,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1486,8 +1486,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1506,8 +1506,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1555,8 +1555,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1574,8 +1574,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1620,8 +1620,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1639,8 +1639,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1686,8 +1686,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1705,8 +1705,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1756,8 +1756,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1775,8 +1775,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<i32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<i32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1823,8 +1823,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1842,8 +1842,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1888,8 +1888,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1907,8 +1907,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1953,8 +1953,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -1972,8 +1972,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2022,8 +2022,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2041,8 +2041,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2089,8 +2089,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_1d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_1d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2107,8 +2107,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_1d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_1d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2150,8 +2150,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2169,8 +2169,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2214,8 +2214,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2233,8 +2233,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2278,8 +2278,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2297,8 +2297,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2346,8 +2346,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2365,8 +2365,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2411,8 +2411,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2430,8 +2430,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2475,8 +2475,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2494,8 +2494,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2538,8 +2538,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2557,8 +2557,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2602,8 +2602,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2621,8 +2621,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2667,8 +2667,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2686,8 +2686,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2732,8 +2732,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2751,8 +2751,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2797,8 +2797,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2816,8 +2816,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2865,8 +2865,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2884,8 +2884,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2932,8 +2932,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2951,8 +2951,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -2998,8 +2998,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3017,8 +3017,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3063,8 +3063,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3082,8 +3082,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3128,8 +3128,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3147,8 +3147,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3196,8 +3196,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3215,8 +3215,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3261,8 +3261,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3280,8 +3280,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3326,8 +3326,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3345,8 +3345,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3389,8 +3389,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3408,8 +3408,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3454,8 +3454,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3473,8 +3473,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3519,8 +3519,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3538,8 +3538,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3583,8 +3583,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3602,8 +3602,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3648,8 +3648,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3667,8 +3667,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3716,8 +3716,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3735,8 +3735,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3781,8 +3781,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3800,8 +3800,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3846,8 +3846,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3865,8 +3865,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3911,8 +3911,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3930,8 +3930,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3976,8 +3976,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -3995,8 +3995,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4041,8 +4041,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4060,8 +4060,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4109,8 +4109,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4128,8 +4128,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4174,8 +4174,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4193,8 +4193,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4239,8 +4239,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4258,8 +4258,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler_comparison, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler_comparison, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4306,8 +4306,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4327,8 +4327,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4377,8 +4377,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4398,8 +4398,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4448,8 +4448,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4469,8 +4469,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4522,8 +4522,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4543,8 +4543,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4593,8 +4593,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4614,8 +4614,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4664,8 +4664,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4685,8 +4685,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4733,8 +4733,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4754,8 +4754,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4804,8 +4804,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4825,8 +4825,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4873,8 +4873,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4892,8 +4892,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4938,8 +4938,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -4957,8 +4957,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5003,8 +5003,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5022,8 +5022,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5071,8 +5071,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5090,8 +5090,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_2d_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_2d_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5136,8 +5136,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5155,8 +5155,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5201,8 +5201,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5220,8 +5220,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_3d<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_3d<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5264,8 +5264,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5283,8 +5283,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_cube<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5329,8 +5329,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5348,8 +5348,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_cube_array<f32>, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_cube_array<f32>, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5394,8 +5394,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5413,8 +5413,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5460,8 +5460,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5479,8 +5479,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5526,8 +5526,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5545,8 +5545,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5596,8 +5596,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5615,8 +5615,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_2d_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_2d_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5664,8 +5664,8 @@
auto* src = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5683,8 +5683,8 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<handle, texture_depth_cube_array, read> = var @binding_point(0, 0)
- %2:ptr<handle, sampler, read> = var @binding_point(0, 1)
+ %1:ptr<handle, texture_depth_cube_array, read> = var undef @binding_point(0, 0)
+ %2:ptr<handle, sampler, read> = var undef @binding_point(0, 1)
}
%foo = @fragment func():void {
@@ -5717,7 +5717,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %x:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(0.0f)
+ %x:ptr<function, vec2<f32>, read_write> = var vec2<f32>(0.0f)
%3:vec2<f32> = load %x
%4:vec2<f32> = quantizeToF16 %3
%a:vec2<f32> = let %4
@@ -5730,7 +5730,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %x:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(0.0f)
+ %x:ptr<function, vec2<f32>, read_write> = var vec2<f32>(0.0f)
%3:vec2<f32> = load %x
%4:vec2<u32> = hlsl.f32tof16 %3
%5:vec2<f32> = hlsl.f16tof32 %4
@@ -5766,7 +5766,7 @@
std::string src = R"(
$B1: { # root
- %v:ptr<workgroup, atomic<i32>, read_write> = var
+ %v:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = @fragment func():void {
@@ -5782,12 +5782,12 @@
std::string expect = R"(
$B1: { # root
- %v:ptr<workgroup, atomic<i32>, read_write> = var
+ %v:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:void = hlsl.)" + std::string(param.interlock) +
R"( %v, 123i, %3
%5:i32 = load %3
@@ -5837,7 +5837,7 @@
}
$B1: { # root
- %v:ptr<workgroup, SB, read_write> = var
+ %v:ptr<workgroup, SB, read_write> = var undef
}
%foo = @fragment func():void {
@@ -5858,13 +5858,13 @@
}
$B1: { # root
- %v:ptr<workgroup, SB, read_write> = var
+ %v:ptr<workgroup, SB, read_write> = var undef
}
%foo = @fragment func():void {
$B2: {
%3:ptr<workgroup, atomic<i32>, read_write> = access %v, 1u
- %4:ptr<function, i32, read_write> = var, 0i
+ %4:ptr<function, i32, read_write> = var 0i
%5:void = hlsl.InterlockedExchange %3, 123i, %4
ret
}
@@ -5899,7 +5899,7 @@
}
$B1: { # root
- %v:ptr<workgroup, SB, read_write> = var
+ %v:ptr<workgroup, SB, read_write> = var undef
}
%foo = @fragment func():void {
@@ -5921,13 +5921,13 @@
}
$B1: { # root
- %v:ptr<workgroup, SB, read_write> = var
+ %v:ptr<workgroup, SB, read_write> = var undef
}
%foo = @fragment func():void {
$B2: {
%3:ptr<workgroup, atomic<i32>, read_write> = access %v, 1u
- %4:ptr<function, i32, read_write> = var, 0i
+ %4:ptr<function, i32, read_write> = var 0i
%5:void = hlsl.InterlockedOr %3, 0i, %4
%6:i32 = load %4
%x:i32 = let %6
@@ -5966,7 +5966,7 @@
}
$B1: { # root
- %v:ptr<workgroup, SB, read_write> = var
+ %v:ptr<workgroup, SB, read_write> = var undef
}
%foo = @fragment func():void {
@@ -5991,19 +5991,19 @@
}
$B1: { # root
- %v:ptr<workgroup, SB, read_write> = var
+ %v:ptr<workgroup, SB, read_write> = var undef
}
%foo = @fragment func():void {
$B2: {
%3:ptr<workgroup, atomic<i32>, read_write> = access %v, 1u
- %4:ptr<function, i32, read_write> = var, 0i
+ %4:ptr<function, i32, read_write> = var 0i
%5:i32 = sub 0i, 123i
%6:void = hlsl.InterlockedAdd %3, %5, %4
%7:i32 = load %4
%x:i32 = let %7
%9:ptr<workgroup, atomic<u32>, read_write> = access %v, 2u
- %10:ptr<function, u32, read_write> = var, 0u
+ %10:ptr<function, u32, read_write> = var 0u
%11:u32 = sub 0u, 123u
%12:void = hlsl.InterlockedAdd %9, %11, %10
%13:u32 = load %10
@@ -6048,7 +6048,7 @@
}
$B1: { # root
- %v:ptr<workgroup, SB, read_write> = var
+ %v:ptr<workgroup, SB, read_write> = var undef
}
%foo = @fragment func():void {
@@ -6075,13 +6075,13 @@
}
$B1: { # root
- %v:ptr<workgroup, SB, read_write> = var
+ %v:ptr<workgroup, SB, read_write> = var undef
}
%foo = @fragment func():void {
$B2: {
%3:ptr<workgroup, atomic<i32>, read_write> = access %v, 1u
- %4:ptr<function, i32, read_write> = var, 0i
+ %4:ptr<function, i32, read_write> = var 0i
%5:void = hlsl.InterlockedCompareExchange %3, 123i, 345i, %4
%6:i32 = load %4
%7:bool = eq %6, 123i
@@ -6107,7 +6107,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(2.0f)
+ %u:ptr<function, vec2<f32>, read_write> = var vec2<f32>(2.0f)
%3:vec2<f32> = load %u
%4:u32 = pack2x16float %3
%a:u32 = let %4
@@ -6120,7 +6120,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(2.0f)
+ %u:ptr<function, vec2<f32>, read_write> = var vec2<f32>(2.0f)
%3:vec2<f32> = load %u
%4:vec2<u32> = hlsl.f32tof16 %3
%5:u32 = swizzle %4, x
@@ -6147,7 +6147,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:vec2<f32> = unpack2x16float %3
%a:vec2<f32> = let %4
@@ -6160,7 +6160,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:u32 = and %3, 65535u
%5:u32 = shr %3, 16u
@@ -6187,7 +6187,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(2.0f)
+ %u:ptr<function, vec2<f32>, read_write> = var vec2<f32>(2.0f)
%3:vec2<f32> = load %u
%4:u32 = pack2x16snorm %3
%a:u32 = let %4
@@ -6200,7 +6200,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(2.0f)
+ %u:ptr<function, vec2<f32>, read_write> = var vec2<f32>(2.0f)
%3:vec2<f32> = load %u
%4:vec2<f32> = clamp %3, vec2<f32>(-1.0f), vec2<f32>(1.0f)
%5:vec2<f32> = mul %4, 32767.0f
@@ -6233,7 +6233,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:vec2<f32> = unpack2x16snorm %3
%a:vec2<f32> = let %4
@@ -6246,7 +6246,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:i32 = convert %3
%5:i32 = shl %4, 16u
@@ -6276,7 +6276,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(2.0f)
+ %u:ptr<function, vec2<f32>, read_write> = var vec2<f32>(2.0f)
%3:vec2<f32> = load %u
%4:u32 = pack2x16unorm %3
%a:u32 = let %4
@@ -6289,7 +6289,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec2<f32>, read_write> = var, vec2<f32>(2.0f)
+ %u:ptr<function, vec2<f32>, read_write> = var vec2<f32>(2.0f)
%3:vec2<f32> = load %u
%4:vec2<f32> = clamp %3, vec2<f32>(0.0f), vec2<f32>(1.0f)
%5:vec2<f32> = mul %4, 65535.0f
@@ -6320,7 +6320,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:vec2<f32> = unpack2x16unorm %3
%a:vec2<f32> = let %4
@@ -6333,7 +6333,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:u32 = and %3, 65535u
%5:u32 = shr %3, 16u
@@ -6361,7 +6361,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<f32>, read_write> = var, vec4<f32>(2.0f)
+ %u:ptr<function, vec4<f32>, read_write> = var vec4<f32>(2.0f)
%3:vec4<f32> = load %u
%4:u32 = pack4x8snorm %3
%a:u32 = let %4
@@ -6374,7 +6374,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<f32>, read_write> = var, vec4<f32>(2.0f)
+ %u:ptr<function, vec4<f32>, read_write> = var vec4<f32>(2.0f)
%3:vec4<f32> = load %u
%4:vec4<f32> = clamp %3, vec4<f32>(-1.0f), vec4<f32>(1.0f)
%5:vec4<f32> = mul %4, 127.0f
@@ -6413,7 +6413,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:vec4<f32> = unpack4x8snorm %3
%a:vec4<f32> = let %4
@@ -6426,7 +6426,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:i32 = convert %3
%5:i32 = shl %4, 24u
@@ -6458,7 +6458,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<f32>, read_write> = var, vec4<f32>(2.0f)
+ %u:ptr<function, vec4<f32>, read_write> = var vec4<f32>(2.0f)
%3:vec4<f32> = load %u
%4:u32 = pack4x8unorm %3
%a:u32 = let %4
@@ -6471,7 +6471,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<f32>, read_write> = var, vec4<f32>(2.0f)
+ %u:ptr<function, vec4<f32>, read_write> = var vec4<f32>(2.0f)
%3:vec4<f32> = load %u
%4:vec4<f32> = clamp %3, vec4<f32>(0.0f), vec4<f32>(1.0f)
%5:vec4<f32> = mul %4, 255.0f
@@ -6508,7 +6508,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:vec4<f32> = unpack4x8unorm %3
%a:vec4<f32> = let %4
@@ -6521,7 +6521,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:u32 = and %3, 255u
%5:u32 = shr %3, 8u
@@ -6553,7 +6553,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<i32>, read_write> = var, vec4<i32>(2i)
+ %u:ptr<function, vec4<i32>, read_write> = var vec4<i32>(2i)
%3:vec4<i32> = load %u
%4:u32 = pack4xI8 %3
%a:u32 = let %4
@@ -6566,7 +6566,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<i32>, read_write> = var, vec4<i32>(2i)
+ %u:ptr<function, vec4<i32>, read_write> = var vec4<i32>(2i)
%3:vec4<i32> = load %u
%4:hlsl.int8_t4_packed = hlsl.pack_s8 %3
%5:u32 = hlsl.convert %4
@@ -6591,7 +6591,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:vec4<i32> = unpack4xI8 %3
%a:vec4<i32> = let %4
@@ -6604,7 +6604,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:hlsl.int8_t4_packed = hlsl.convert<hlsl.int8_t4_packed> %3
%5:vec4<i32> = hlsl.unpack_s8s32 %4
@@ -6629,7 +6629,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<u32>, read_write> = var, vec4<u32>(2u)
+ %u:ptr<function, vec4<u32>, read_write> = var vec4<u32>(2u)
%3:vec4<u32> = load %u
%4:u32 = pack4xU8 %3
%a:u32 = let %4
@@ -6642,7 +6642,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<u32>, read_write> = var, vec4<u32>(2u)
+ %u:ptr<function, vec4<u32>, read_write> = var vec4<u32>(2u)
%3:vec4<u32> = load %u
%4:hlsl.uint8_t4_packed = hlsl.pack_u8 %3
%5:u32 = hlsl.convert %4
@@ -6667,7 +6667,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:vec4<u32> = unpack4xU8 %3
%a:vec4<u32> = let %4
@@ -6680,7 +6680,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:hlsl.uint8_t4_packed = hlsl.convert<hlsl.uint8_t4_packed> %3
%5:vec4<u32> = hlsl.unpack_u8u32 %4
@@ -6704,7 +6704,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:u32 = dot4U8Packed %3, 3u
%a:u32 = let %4
@@ -6717,9 +6717,9 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
- %accumulator:ptr<function, u32, read_write> = var, 0u
+ %accumulator:ptr<function, u32, read_write> = var 0u
%5:u32 = hlsl.dot4add_u8packed %3, 3u, %accumulator
%a:u32 = let %5
ret
@@ -6742,7 +6742,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
%4:i32 = dot4I8Packed %3, 3u
%a:i32 = let %4
@@ -6755,9 +6755,9 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, u32, read_write> = var, 2u
+ %u:ptr<function, u32, read_write> = var 2u
%3:u32 = load %u
- %accumulator:ptr<function, i32, read_write> = var, 0i
+ %accumulator:ptr<function, i32, read_write> = var 0i
%5:i32 = hlsl.dot4add_i8packed %3, 3u, %accumulator
%a:i32 = let %5
ret
@@ -6780,7 +6780,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<i32>, read_write> = var, vec4<i32>(2i)
+ %u:ptr<function, vec4<i32>, read_write> = var vec4<i32>(2i)
%3:vec4<i32> = load %u
%4:u32 = pack4xI8Clamp %3
%a:u32 = let %4
@@ -6793,7 +6793,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, vec4<i32>, read_write> = var, vec4<i32>(2i)
+ %u:ptr<function, vec4<i32>, read_write> = var vec4<i32>(2i)
%3:vec4<i32> = load %u
%4:hlsl.int8_t4_packed = hlsl.pack_clamp_s8 %3
%5:u32 = hlsl.convert %4
@@ -6817,7 +6817,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, f32, read_write> = var, 0.25f
+ %u:ptr<function, f32, read_write> = var 0.25f
%3:f32 = load %u
%4:f32 = asinh %3
%a:f32 = let %4
@@ -6830,7 +6830,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, f32, read_write> = var, 0.25f
+ %u:ptr<function, f32, read_write> = var 0.25f
%3:f32 = load %u
%4:f32 = mul %3, %3
%5:f32 = add %4, 1.0f
@@ -6857,7 +6857,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, f16, read_write> = var, 1.25h
+ %u:ptr<function, f16, read_write> = var 1.25h
%3:f16 = load %u
%4:f16 = acosh %3
%a:f16 = let %4
@@ -6870,7 +6870,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, f16, read_write> = var, 1.25h
+ %u:ptr<function, f16, read_write> = var 1.25h
%3:f16 = load %u
%4:f16 = mul %3, %3
%5:f16 = sub %4, 1.0h
@@ -6897,7 +6897,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, f32, read_write> = var, 0.25f
+ %u:ptr<function, f32, read_write> = var 0.25f
%3:f32 = load %u
%4:f32 = atanh %3
%a:f32 = let %4
@@ -6910,7 +6910,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, f32, read_write> = var, 0.25f
+ %u:ptr<function, f32, read_write> = var 0.25f
%3:f32 = load %u
%4:f32 = add 1.0f, %3
%5:f32 = sub 1.0f, %3
@@ -6937,7 +6937,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, i32, read_write> = var, 1i
+ %u:ptr<function, i32, read_write> = var 1i
%3:i32 = load %u
%4:i32 = countOneBits %3
%a:i32 = let %4
@@ -6950,7 +6950,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, i32, read_write> = var, 1i
+ %u:ptr<function, i32, read_write> = var 1i
%3:i32 = load %u
%4:u32 = hlsl.asuint %3
%5:u32 = countOneBits %4
@@ -6975,7 +6975,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, i32, read_write> = var, 1i
+ %u:ptr<function, i32, read_write> = var 1i
%3:i32 = load %u
%4:i32 = reverseBits %3
%a:i32 = let %4
@@ -6988,7 +6988,7 @@
auto* expect = R"(
%foo = @fragment func():void {
$B1: {
- %u:ptr<function, i32, read_write> = var, 1i
+ %u:ptr<function, i32, read_write> = var 1i
%3:i32 = load %u
%4:u32 = hlsl.asuint %3
%5:u32 = reverseBits %4
@@ -7226,7 +7226,7 @@
%foo = @fragment func():void {
$B1: {
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
%3:f32 = load %2
%4:__modf_result_f32 = modf %3
%a:__modf_result_f32 = let %4
@@ -7244,9 +7244,9 @@
%foo = @fragment func():void {
$B1: {
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
%3:f32 = load %2
- %4:ptr<function, f32, read_write> = var
+ %4:ptr<function, f32, read_write> = var undef
%5:f32 = load %4
%6:f32 = hlsl.modf %3, %5
%7:f32 = load %4
@@ -7278,7 +7278,7 @@
%foo = @fragment func():void {
$B1: {
- %2:ptr<function, vec3<f32>, read_write> = var
+ %2:ptr<function, vec3<f32>, read_write> = var undef
%3:vec3<f32> = load %2
%4:__modf_result_vec3_f32 = modf %3
%a:__modf_result_vec3_f32 = let %4
@@ -7296,9 +7296,9 @@
%foo = @fragment func():void {
$B1: {
- %2:ptr<function, vec3<f32>, read_write> = var
+ %2:ptr<function, vec3<f32>, read_write> = var undef
%3:vec3<f32> = load %2
- %4:ptr<function, vec3<f32>, read_write> = var
+ %4:ptr<function, vec3<f32>, read_write> = var undef
%5:vec3<f32> = load %4
%6:vec3<f32> = hlsl.modf %3, %5
%7:vec3<f32> = load %4
@@ -7330,7 +7330,7 @@
%foo = @fragment func():void {
$B1: {
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
%3:f32 = load %2
%4:__frexp_result_f32 = frexp %3
%a:__frexp_result_f32 = let %4
@@ -7348,9 +7348,9 @@
%foo = @fragment func():void {
$B1: {
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
%3:f32 = load %2
- %4:ptr<function, f32, read_write> = var
+ %4:ptr<function, f32, read_write> = var undef
%5:f32 = load %4
%6:f32 = hlsl.frexp %3, %5
%7:i32 = hlsl.sign %3
@@ -7386,7 +7386,7 @@
%foo = @fragment func():void {
$B1: {
- %2:ptr<function, vec3<f32>, read_write> = var
+ %2:ptr<function, vec3<f32>, read_write> = var undef
%3:vec3<f32> = load %2
%4:__frexp_result_vec3_f32 = frexp %3
%a:__frexp_result_vec3_f32 = let %4
@@ -7404,9 +7404,9 @@
%foo = @fragment func():void {
$B1: {
- %2:ptr<function, vec3<f32>, read_write> = var
+ %2:ptr<function, vec3<f32>, read_write> = var undef
%3:vec3<f32> = load %2
- %4:ptr<function, vec3<f32>, read_write> = var
+ %4:ptr<function, vec3<f32>, read_write> = var undef
%5:vec3<f32> = load %4
%6:vec3<f32> = hlsl.frexp %3, %5
%7:vec3<i32> = hlsl.sign %3
diff --git a/src/tint/lang/hlsl/writer/raise/decompose_storage_access_test.cc b/src/tint/lang/hlsl/writer/raise/decompose_storage_access_test.cc
index 30862c5..ae51682 100644
--- a/src/tint/lang/hlsl/writer/raise/decompose_storage_access_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/decompose_storage_access_test.cc
@@ -99,7 +99,7 @@
}
$B1: { # root
- %v:ptr<storage, array<SB, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<SB, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -127,7 +127,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -179,7 +179,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -208,7 +208,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -250,7 +250,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -274,7 +274,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -314,7 +314,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -334,7 +334,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -368,7 +368,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec4<f32>, read> = var @binding_point(0, 0)
+ %v:ptr<storage, vec4<f32>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -391,7 +391,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -436,7 +436,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec4<f16>, read> = var @binding_point(0, 0)
+ %v:ptr<storage, vec4<f16>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -459,7 +459,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -498,7 +498,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x4<f32>, read> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x4<f32>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -519,7 +519,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -572,7 +572,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 5>, read> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 5>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -590,7 +590,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -605,7 +605,7 @@
}
%4 = func(%offset:u32):array<vec3<f32>, 5> {
$B3: {
- %a_1:ptr<function, array<vec3<f32>, 5>, read_write> = var, array<vec3<f32>, 5>(vec3<f32>(0.0f)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec3<f32>, 5>, read_write> = var array<vec3<f32>, 5>(vec3<f32>(0.0f)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -653,7 +653,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 42>, read> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 42>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -671,7 +671,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -686,7 +686,7 @@
}
%4 = func(%offset:u32):array<vec3<f32>, 42> {
$B3: {
- %a_1:ptr<function, array<vec3<f32>, 42>, read_write> = var, array<vec3<f32>, 42>(vec3<f32>(0.0f)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec3<f32>, 42>, read_write> = var array<vec3<f32>, 42>(vec3<f32>(0.0f)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -744,7 +744,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -767,7 +767,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -843,7 +843,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -876,7 +876,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -938,7 +938,7 @@
}
%31 = func(%offset_4:u32):array<vec3<f32>, 5> { # %offset_4: 'offset'
$B7: {
- %a_1:ptr<function, array<vec3<f32>, 5>, read_write> = var, array<vec3<f32>, 5>(vec3<f32>(0.0f)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec3<f32>, 5>, read_write> = var array<vec3<f32>, 5>(vec3<f32>(0.0f)) # %a_1: 'a'
loop [i: $B8, b: $B9, c: $B10] { # loop_1
$B8: { # initializer
next_iteration 0u # -> $B9
@@ -1022,7 +1022,7 @@
}
$B1: { # root
- %sb:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %sb:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1062,7 +1062,7 @@
}
$B1: { # root
- %sb:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %sb:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1131,16 +1131,16 @@
}
$B1: { # root
- %sb:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %sb:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %i:ptr<function, i32, read_write> = var, 4i
+ %i:ptr<function, i32, read_write> = var 4i
%4:i32 = load %i
- %j:ptr<function, u32, read_write> = var, 1u
+ %j:ptr<function, u32, read_write> = var 1u
%6:u32 = load %j
- %k:ptr<function, i32, read_write> = var, 2i
+ %k:ptr<function, i32, read_write> = var 2i
%8:i32 = load %k
%9:ptr<storage, vec3<f32>, read_write> = access %sb, 1u, %4, 1u, %6, 1u
%10:f32 = load_vector_element %9, %8
@@ -1170,16 +1170,16 @@
}
$B1: { # root
- %sb:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %sb:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %i:ptr<function, i32, read_write> = var, 4i
+ %i:ptr<function, i32, read_write> = var 4i
%4:i32 = load %i
- %j:ptr<function, u32, read_write> = var, 1u
+ %j:ptr<function, u32, read_write> = var 1u
%6:u32 = load %j
- %k:ptr<function, i32, read_write> = var, 2i
+ %k:ptr<function, i32, read_write> = var 2i
%8:i32 = load %k
%9:u32 = convert %4
%10:u32 = mul %9, 128u
@@ -1251,12 +1251,12 @@
}
$B1: { # root
- %sb:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %sb:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %j:ptr<function, u32, read_write> = var, 1u
+ %j:ptr<function, u32, read_write> = var 1u
%4:u32 = load %j
%5:ptr<storage, vec3<f32>, read_write> = access %sb, 1u, 4u, 1u, %4, 1u
%6:f32 = load_vector_element %5, 2u
@@ -1286,12 +1286,12 @@
}
$B1: { # root
- %sb:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %sb:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %j:ptr<function, u32, read_write> = var, 1u
+ %j:ptr<function, u32, read_write> = var 1u
%4:u32 = load %j
%5:u32 = mul %4, 32u
%6:u32 = add 568u, %5
@@ -1333,7 +1333,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1354,12 +1354,12 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = convert 16u
%5:void = %v.InterlockedExchange %4, 123i, %3
ret
@@ -1408,7 +1408,7 @@
}
$B1: { # root
- %v:ptr<storage, S2, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S2, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
@@ -1432,14 +1432,14 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
$B2: {
%4:u32 = mul %3, 32u
%5:u32 = mul %3, 4u
- %6:ptr<function, i32, read_write> = var, 0i
+ %6:ptr<function, i32, read_write> = var 0i
%7:u32 = add 16u, %4
%8:u32 = add %7, %5
%9:i32 = convert %8
@@ -1466,7 +1466,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1480,12 +1480,12 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = convert 0u
%5:void = %v.InterlockedExchange %4, 123i, %3
ret
@@ -1523,7 +1523,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1545,12 +1545,12 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = convert 16u
%5:void = %v.InterlockedOr %4, 0i, %3
%6:i32 = load %3
@@ -1601,7 +1601,7 @@
}
$B1: { # root
- %v:ptr<storage, S2, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S2, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
@@ -1626,14 +1626,14 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
$B2: {
%4:u32 = mul %3, 32u
%5:u32 = mul %3, 4u
- %6:ptr<function, i32, read_write> = var, 0i
+ %6:ptr<function, i32, read_write> = var 0i
%7:u32 = add 16u, %4
%8:u32 = add %7, %5
%9:i32 = convert %8
@@ -1662,7 +1662,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1677,12 +1677,12 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = convert 0u
%5:void = %v.InterlockedOr %4, 0i, %3
%6:i32 = load %3
@@ -1722,7 +1722,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1744,12 +1744,12 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = sub 0i, 123i
%5:i32 = convert 16u
%6:void = %v.InterlockedAdd %5, %4, %3
@@ -1801,7 +1801,7 @@
}
$B1: { # root
- %v:ptr<storage, S2, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S2, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
@@ -1826,14 +1826,14 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
$B2: {
%4:u32 = mul %3, 32u
%5:u32 = mul %3, 4u
- %6:ptr<function, i32, read_write> = var, 0i
+ %6:ptr<function, i32, read_write> = var 0i
%7:i32 = sub 0i, 123i
%8:u32 = add 16u, %4
%9:u32 = add %8, %5
@@ -1863,7 +1863,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1878,12 +1878,12 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = sub 0i, 123i
%5:i32 = convert 0u
%6:void = %v.InterlockedAdd %5, %4, %3
@@ -1931,7 +1931,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1958,12 +1958,12 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = convert 16u
%5:void = %v.InterlockedCompareExchange %4, 123i, 345i, %3
%6:i32 = load %3
@@ -2022,7 +2022,7 @@
}
$B1: { # root
- %v:ptr<storage, S2, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S2, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
@@ -2052,14 +2052,14 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
$B2: {
%4:u32 = mul %3, 32u
%5:u32 = mul %3, 4u
- %6:ptr<function, i32, read_write> = var, 0i
+ %6:ptr<function, i32, read_write> = var 0i
%7:u32 = add 16u, %4
%8:u32 = add %7, %5
%9:i32 = convert %8
@@ -2096,7 +2096,7 @@
}
$B1: { # root
- %v:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2116,12 +2116,12 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = convert 0u
%5:void = %v.InterlockedCompareExchange %4, 123i, 345i, %3
%6:i32 = load %3
@@ -2175,7 +2175,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2198,12 +2198,12 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, i32, read_write> = var, 0i
+ %3:ptr<function, i32, read_write> = var 0i
%4:i32 = convert 16u
%5:void = %v.)" +
std::string(params.interlock) + R"( %4, 123i, %3
@@ -2233,7 +2233,7 @@
auto src = R"(
$B1: { # root
- %v:ptr<storage, atomic<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, atomic<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2249,12 +2249,12 @@
auto expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, u32, read_write> = var, 0u
+ %3:ptr<function, u32, read_write> = var 0u
%4:void = %v.)" +
std::string(param.interlock) + R"( 0u, 123u, %3
%5:u32 = load %3
@@ -2303,7 +2303,7 @@
}
$B1: { # root
- %v:ptr<storage, S2, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S2, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
@@ -2328,14 +2328,14 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func(%3:u32 [@location(0)]):void {
$B2: {
%4:u32 = mul %3, 12u
%5:u32 = mul %3, 4u
- %6:ptr<function, u32, read_write> = var, 0u
+ %6:ptr<function, u32, read_write> = var 0u
%7:u32 = add 0u, %4
%8:u32 = add %7, %5
%9:void = %v.)" +
@@ -2379,7 +2379,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec4<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec4<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2396,7 +2396,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2431,7 +2431,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, f32, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, f32, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2445,7 +2445,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2473,7 +2473,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, f16, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, f16, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2487,7 +2487,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2514,7 +2514,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2528,7 +2528,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2556,7 +2556,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec3<f16>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec3<f16>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2570,7 +2570,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2597,7 +2597,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2611,7 +2611,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2640,7 +2640,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec3<f16>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec3<f16>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2654,7 +2654,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2682,7 +2682,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat2x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat2x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2697,7 +2697,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2726,7 +2726,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat2x3<f16>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat2x3<f16>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2741,7 +2741,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2769,7 +2769,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat2x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat2x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2784,7 +2784,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2813,7 +2813,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat2x3<f16>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat2x3<f16>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2828,7 +2828,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2855,7 +2855,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat2x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat2x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2869,7 +2869,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2909,7 +2909,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat2x3<f16>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat2x3<f16>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2923,7 +2923,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2961,7 +2961,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<f32, 5>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<f32, 5>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -2976,7 +2976,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3004,7 +3004,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<f16, 5>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<f16, 5>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3019,7 +3019,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3047,7 +3047,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 5>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 5>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3062,7 +3062,7 @@
auto* expect = R"(
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3128,7 +3128,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3148,7 +3148,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3186,7 +3186,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3206,7 +3206,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3263,7 +3263,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3293,7 +3293,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3351,7 +3351,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3381,7 +3381,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3477,7 +3477,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3507,7 +3507,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3615,7 +3615,7 @@
auto* src = R"(
$B1: { # root
- %sb:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %sb:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3630,12 +3630,12 @@
auto* expect = R"(
$B1: { # root
- %sb:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %sb:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, u32, read_write> = var
+ %3:ptr<function, u32, read_write> = var undef
%4:void = %sb.GetDimensions %3
%5:u32 = load %3
%6:u32 = div %5, 4u
@@ -3673,7 +3673,7 @@
}
$B1: { # root
- %sb:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %sb:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3694,12 +3694,12 @@
}
$B1: { # root
- %sb:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %sb:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, u32, read_write> = var
+ %3:ptr<function, u32, read_write> = var undef
%4:void = %sb.GetDimensions %3
%5:u32 = load %3
%6:u32 = sub %5, 4u
@@ -3734,7 +3734,7 @@
}
$B1: { # root
- %sb:ptr<storage, array<SB>, read> = var @binding_point(0, 0)
+ %sb:ptr<storage, array<SB>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3753,12 +3753,12 @@
}
$B1: { # root
- %sb:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %sb:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, u32, read_write> = var
+ %3:ptr<function, u32, read_write> = var undef
%4:void = %sb.GetDimensions %3
%5:u32 = load %3
%6:u32 = div %5, 4u
@@ -3791,7 +3791,7 @@
}
$B1: { # root
- %sb:ptr<storage, array<array<SB, 4>>, read_write> = var @binding_point(0, 0)
+ %sb:ptr<storage, array<array<SB, 4>>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3810,12 +3810,12 @@
}
$B1: { # root
- %sb:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %sb:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, u32, read_write> = var
+ %3:ptr<function, u32, read_write> = var undef
%4:void = %sb.GetDimensions %3
%5:u32 = load %3
%6:u32 = div %5, 16u
@@ -3843,7 +3843,7 @@
auto* src = R"(
$B1: { # root
- %sb:ptr<storage, array<i32>, read_write> = var @binding_point(0, 0)
+ %sb:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -3862,22 +3862,22 @@
auto* expect = R"(
$B1: { # root
- %sb:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %sb:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
$B2: {
- %3:ptr<function, u32, read_write> = var
+ %3:ptr<function, u32, read_write> = var undef
%4:void = %sb.GetDimensions %3
%5:u32 = load %3
%6:u32 = div %5, 4u
%a:u32 = let %6
- %8:ptr<function, u32, read_write> = var
+ %8:ptr<function, u32, read_write> = var undef
%9:void = %sb.GetDimensions %8
%10:u32 = load %8
%11:u32 = div %10, 4u
%b:u32 = let %11
- %13:ptr<function, u32, read_write> = var
+ %13:ptr<function, u32, read_write> = var undef
%14:void = %sb.GetDimensions %13
%15:u32 = load %13
%16:u32 = div %15, 4u
@@ -3935,9 +3935,9 @@
}
$B1: { # root
- %sb1:ptr<storage, SB1, read_write> = var @binding_point(0, 0)
- %sb2:ptr<storage, SB2, read_write> = var @binding_point(0, 1)
- %sb3:ptr<storage, array<i32>, read_write> = var @binding_point(0, 2)
+ %sb1:ptr<storage, SB1, read_write> = var undef @binding_point(0, 0)
+ %sb2:ptr<storage, SB2, read_write> = var undef @binding_point(0, 1)
+ %sb3:ptr<storage, array<i32>, read_write> = var undef @binding_point(0, 2)
}
%foo = @fragment func():void {
@@ -3968,26 +3968,26 @@
}
$B1: { # root
- %sb1:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
- %sb2:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 1)
- %sb3:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 2)
+ %sb1:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
+ %sb2:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 1)
+ %sb3:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 2)
}
%foo = @fragment func():void {
$B2: {
- %5:ptr<function, u32, read_write> = var
+ %5:ptr<function, u32, read_write> = var undef
%6:void = %sb1.GetDimensions %5
%7:u32 = load %5
%8:u32 = sub %7, 4u
%9:u32 = div %8, 4u
%len1:u32 = let %9
- %11:ptr<function, u32, read_write> = var
+ %11:ptr<function, u32, read_write> = var undef
%12:void = %sb2.GetDimensions %11
%13:u32 = load %11
%14:u32 = sub %13, 16u
%15:u32 = div %14, 16u
%len2:u32 = let %15
- %17:ptr<function, u32, read_write> = var
+ %17:ptr<function, u32, read_write> = var undef
%18:void = %sb3.GetDimensions %17
%19:u32 = load %17
%20:u32 = div %19, 4u
@@ -4025,7 +4025,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4048,7 +4048,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read_write> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read_write> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4098,7 +4098,7 @@
}
$B1: { # root
- %v:ptr<storage, SB, read> = var @binding_point(0, 0)
+ %v:ptr<storage, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4123,7 +4123,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4137,7 +4137,7 @@
}
%7 = func(%offset:u32):array<vec4<i32>, 2> {
$B3: {
- %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var, array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -4168,7 +4168,7 @@
}
%4 = func(%offset_1:u32):array<vec4<f32>, 2> { # %offset_1: 'offset'
$B8: {
- %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var, array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
+ %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
loop [i: $B9, b: $B10, c: $B11] { # loop_2
$B9: { # initializer
next_iteration 0u # -> $B10
@@ -4233,7 +4233,7 @@
}
$B1: { # root
- %v:ptr<storage, array<SB, 2>, read> = var @binding_point(0, 0)
+ %v:ptr<storage, array<SB, 2>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4259,7 +4259,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4273,7 +4273,7 @@
}
%7 = func(%offset:u32):array<vec4<i32>, 2> {
$B3: {
- %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var, array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -4304,7 +4304,7 @@
}
%4 = func(%offset_1:u32):array<vec4<f32>, 2> { # %offset_1: 'offset'
$B8: {
- %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var, array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
+ %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
loop [i: $B9, b: $B10, c: $B11] { # loop_2
$B9: { # initializer
next_iteration 0u # -> $B10
@@ -4369,7 +4369,7 @@
}
$B1: { # root
- %v:ptr<storage, array<SB, 2>, read> = var @binding_point(0, 0)
+ %v:ptr<storage, array<SB, 2>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4394,7 +4394,7 @@
}
$B1: { # root
- %v:hlsl.byte_address_buffer<read> = var @binding_point(0, 0)
+ %v:hlsl.byte_address_buffer<read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -4408,7 +4408,7 @@
}
%7 = func(%offset:u32):array<vec4<i32>, 2> {
$B3: {
- %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var, array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -4439,7 +4439,7 @@
}
%4 = func(%offset_1:u32):array<vec4<f32>, 2> { # %offset_1: 'offset'
$B8: {
- %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var, array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
+ %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
loop [i: $B9, b: $B10, c: $B11] { # loop_2
$B9: { # initializer
next_iteration 0u # -> $B10
diff --git a/src/tint/lang/hlsl/writer/raise/decompose_uniform_access_test.cc b/src/tint/lang/hlsl/writer/raise/decompose_uniform_access_test.cc
index 1bd4ef1..dcd8ad3 100644
--- a/src/tint/lang/hlsl/writer/raise/decompose_uniform_access_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/decompose_uniform_access_test.cc
@@ -99,7 +99,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<SB, 4>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<SB, 4>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -127,7 +127,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 8>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 8>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -183,7 +183,7 @@
}
$B1: { # root
- %v:ptr<uniform, SB, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -212,7 +212,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 2>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 2>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -247,7 +247,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, vec4<f32>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, vec4<f32>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -270,7 +270,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -316,7 +316,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, f16, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, f16, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -331,7 +331,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -367,7 +367,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, vec4<f16>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, vec4<f16>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -391,7 +391,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -454,7 +454,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, mat2x3<f16>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, mat2x3<f16>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -475,7 +475,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -546,7 +546,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, mat4x4<f32>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, mat4x4<f32>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -567,7 +567,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 4>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 4>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -629,7 +629,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, array<vec3<f32>, 5>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec3<f32>, 5>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -647,7 +647,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 5>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 5>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -664,7 +664,7 @@
}
%4 = func(%start_byte_offset:u32):array<vec3<f32>, 5> {
$B3: {
- %a_1:ptr<function, array<vec3<f32>, 5>, read_write> = var, array<vec3<f32>, 5>(vec3<f32>(0.0f)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec3<f32>, 5>, read_write> = var array<vec3<f32>, 5>(vec3<f32>(0.0f)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -715,7 +715,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, array<vec3<f32>, 42>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec3<f32>, 42>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -733,7 +733,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 42>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 42>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -750,7 +750,7 @@
}
%4 = func(%start_byte_offset:u32):array<vec3<f32>, 42> {
$B3: {
- %a_1:ptr<function, array<vec3<f32>, 42>, read_write> = var, array<vec3<f32>, 42>(vec3<f32>(0.0f)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec3<f32>, 42>, read_write> = var array<vec3<f32>, 42>(vec3<f32>(0.0f)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -811,7 +811,7 @@
}
$B1: { # root
- %v:ptr<uniform, SB, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -834,7 +834,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 1>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 1>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -918,7 +918,7 @@
}
$B1: { # root
- %v:ptr<uniform, SB, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -951,7 +951,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 10>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 10>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1027,7 +1027,7 @@
}
%37 = func(%start_byte_offset_4:u32):array<vec3<f32>, 5> { # %start_byte_offset_4: 'start_byte_offset'
$B7: {
- %a_1:ptr<function, array<vec3<f32>, 5>, read_write> = var, array<vec3<f32>, 5>(vec3<f32>(0.0f)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec3<f32>, 5>, read_write> = var array<vec3<f32>, 5>(vec3<f32>(0.0f)) # %a_1: 'a'
loop [i: $B8, b: $B9, c: $B10] { # loop_1
$B8: { # initializer
next_iteration 0u # -> $B9
@@ -1089,7 +1089,7 @@
}
$B1: { # root
- %v:ptr<uniform, SB, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1112,7 +1112,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 2>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 2>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1164,7 +1164,7 @@
}
$B1: { # root
- %v:ptr<uniform, SB, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, SB, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1189,7 +1189,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 4>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 4>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1203,7 +1203,7 @@
}
%7 = func(%start_byte_offset:u32):array<vec4<i32>, 2> {
$B3: {
- %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var, array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -1236,7 +1236,7 @@
}
%4 = func(%start_byte_offset_1:u32):array<vec4<f32>, 2> { # %start_byte_offset_1: 'start_byte_offset'
$B8: {
- %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var, array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
+ %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
loop [i: $B9, b: $B10, c: $B11] { # loop_2
$B9: { # initializer
next_iteration 0u # -> $B10
@@ -1303,7 +1303,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<SB, 2>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<SB, 2>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1329,7 +1329,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 8>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 8>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1343,7 +1343,7 @@
}
%7 = func(%start_byte_offset:u32):array<vec4<i32>, 2> {
$B3: {
- %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var, array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -1376,7 +1376,7 @@
}
%4 = func(%start_byte_offset_1:u32):array<vec4<f32>, 2> { # %start_byte_offset_1: 'start_byte_offset'
$B8: {
- %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var, array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
+ %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
loop [i: $B9, b: $B10, c: $B11] { # loop_2
$B9: { # initializer
next_iteration 0u # -> $B10
@@ -1443,7 +1443,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<SB, 2>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<SB, 2>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1468,7 +1468,7 @@
}
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 8>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 8>, read> = var undef @binding_point(0, 0)
}
%foo = @fragment func():void {
@@ -1482,7 +1482,7 @@
}
%7 = func(%start_byte_offset:u32):array<vec4<i32>, 2> {
$B3: {
- %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var, array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
+ %a_1:ptr<function, array<vec4<i32>, 2>, read_write> = var array<vec4<i32>, 2>(vec4<i32>(0i)) # %a_1: 'a'
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -1515,7 +1515,7 @@
}
%4 = func(%start_byte_offset_1:u32):array<vec4<f32>, 2> { # %start_byte_offset_1: 'start_byte_offset'
$B8: {
- %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var, array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
+ %a_2:ptr<function, array<vec4<f32>, 2>, read_write> = var array<vec4<f32>, 2>(vec4<f32>(0.0f)) # %a_2: 'a'
loop [i: $B9, b: $B10, c: $B11] { # loop_2
$B9: { # initializer
next_iteration 0u # -> $B10
diff --git a/src/tint/lang/hlsl/writer/raise/localize_struct_array_assignment_test.cc b/src/tint/lang/hlsl/writer/raise/localize_struct_array_assignment_test.cc
index 66df033..3d325ab 100644
--- a/src/tint/lang/hlsl/writer/raise/localize_struct_array_assignment_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/localize_struct_array_assignment_test.cc
@@ -72,13 +72,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
@@ -100,19 +100,19 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
%8:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u
%9:array<InnerS, 8> = load %8
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %9
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %9
%11:ptr<function, InnerS, read_write> = access %tint_array_copy, %5
store %11, %7
%12:array<InnerS, 8> = load %tint_array_copy
@@ -158,13 +158,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u
%6:u32 = load %dyn_index
%7:ptr<function, InnerS, read_write> = access %5, %6
@@ -187,20 +187,20 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u
%6:u32 = load %dyn_index
%7:ptr<function, InnerS, read_write> = access %5, %6
%8:InnerS = load %v
%9:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u
%10:array<InnerS, 8> = load %9
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %10
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %10
%12:ptr<function, InnerS, read_write> = access %tint_array_copy, %6
store %12, %8
%13:array<InnerS, 8> = load %tint_array_copy
@@ -250,13 +250,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s1, 0u, 0u, %5
%7:InnerS = load %v
@@ -282,19 +282,19 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s1, 0u, 0u, %5
%7:InnerS = load %v
%8:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u, 0u
%9:array<InnerS, 8> = load %8
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %9
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %9
%11:ptr<function, InnerS, read_write> = access %tint_array_copy, %5
store %11, %7
%12:array<InnerS, 8> = load %tint_array_copy
@@ -348,13 +348,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:ptr<function, S1, read_write> = access %s1, 0u
%6:ptr<function, array<InnerS, 8>, read_write> = access %5, 0u
%7:u32 = load %dyn_index
@@ -382,13 +382,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:ptr<function, S1, read_write> = access %s1, 0u
%6:ptr<function, array<InnerS, 8>, read_write> = access %5, 0u
%7:u32 = load %dyn_index
@@ -396,7 +396,7 @@
%9:InnerS = load %v
%10:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u, 0u
%11:array<InnerS, 8> = load %10
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %11
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %11
%13:ptr<function, InnerS, read_write> = access %tint_array_copy, %7
store %13, %9
%14:array<InnerS, 8> = load %tint_array_copy
@@ -448,13 +448,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s, 0u, %5, 0u, %5
%7:InnerS = load %v
@@ -480,19 +480,19 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s, 0u, %5, 0u, %5
%7:InnerS = load %v
%8:ptr<function, array<S1, 8>, read_write> = access %s, 0u
%9:array<S1, 8> = load %8
- %tint_array_copy:ptr<function, array<S1, 8>, read_write> = var, %9
+ %tint_array_copy:ptr<function, array<S1, 8>, read_write> = var %9
%11:ptr<function, InnerS, read_write> = access %tint_array_copy, %5, 0u, %5
store %11, %7
%12:array<S1, 8> = load %tint_array_copy
@@ -546,13 +546,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, OuterS, read_write> = var undef
%5:ptr<function, array<S1, 8>, read_write> = access %s, 0u
%6:u32 = load %dyn_index
%7:ptr<function, S1, read_write> = access %5, %6
@@ -582,13 +582,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, OuterS, read_write> = var undef
%5:ptr<function, array<S1, 8>, read_write> = access %s, 0u
%6:u32 = load %dyn_index
%7:ptr<function, S1, read_write> = access %5, %6
@@ -598,7 +598,7 @@
%11:InnerS = load %v
%12:ptr<function, array<S1, 8>, read_write> = access %s, 0u
%13:array<S1, 8> = load %12
- %tint_array_copy:ptr<function, array<S1, 8>, read_write> = var, %13
+ %tint_array_copy:ptr<function, array<S1, 8>, read_write> = var %13
%15:ptr<function, InnerS, read_write> = access %tint_array_copy, %6, 0u, %9
store %15, %11
%16:array<S1, 8> = load %tint_array_copy
@@ -650,13 +650,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s, 0u, 3u, 0u, %5
%7:InnerS = load %v
@@ -682,19 +682,19 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s, 0u, 3u, 0u, %5
%7:InnerS = load %v
%8:ptr<function, array<InnerS, 8>, read_write> = access %s, 0u, 3u, 0u
%9:array<InnerS, 8> = load %8
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %9
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %9
%11:ptr<function, InnerS, read_write> = access %tint_array_copy, %5
store %11, %7
%12:array<InnerS, 8> = load %tint_array_copy
@@ -740,13 +740,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s, 0u, 3u, %5
%7:InnerS = load %v
@@ -768,19 +768,19 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s, 0u, 3u, %5
%7:InnerS = load %v
%8:ptr<function, array<InnerS, 8>, read_write> = access %s, 0u, 3u
%9:array<InnerS, 8> = load %8
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %9
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %9
%11:ptr<function, InnerS, read_write> = access %tint_array_copy, %5
store %11, %7
%12:array<InnerS, 8> = load %tint_array_copy
@@ -829,13 +829,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
@@ -869,19 +869,19 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s1:ptr<function, OuterS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s1:ptr<function, OuterS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
%8:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u
%9:array<InnerS, 8> = load %8
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %9
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %9
%11:ptr<function, InnerS, read_write> = access %tint_array_copy, %5
store %11, %7
%12:array<InnerS, 8> = load %tint_array_copy
@@ -891,7 +891,7 @@
%15:InnerS = load %v
%16:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u
%17:array<InnerS, 8> = load %16
- %tint_array_copy_1:ptr<function, array<InnerS, 8>, read_write> = var, %17 # %tint_array_copy_1: 'tint_array_copy'
+ %tint_array_copy_1:ptr<function, array<InnerS, 8>, read_write> = var %17 # %tint_array_copy_1: 'tint_array_copy'
%19:ptr<function, InnerS, read_write> = access %tint_array_copy_1, %13
store %19, %15
%20:array<InnerS, 8> = load %tint_array_copy_1
@@ -903,7 +903,7 @@
%25:InnerS = load %v
%26:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u
%27:array<InnerS, 8> = load %26
- %tint_array_copy_2:ptr<function, array<InnerS, 8>, read_write> = var, %27 # %tint_array_copy_2: 'tint_array_copy'
+ %tint_array_copy_2:ptr<function, array<InnerS, 8>, read_write> = var %27 # %tint_array_copy_2: 'tint_array_copy'
%29:ptr<function, InnerS, read_write> = access %tint_array_copy_2, %21
store %29, %25
%30:array<InnerS, 8> = load %tint_array_copy_2
@@ -911,7 +911,7 @@
%31:InnerS = load %v
%32:ptr<function, array<InnerS, 8>, read_write> = access %s1, 0u
%33:array<InnerS, 8> = load %32
- %tint_array_copy_3:ptr<function, array<InnerS, 8>, read_write> = var, %33 # %tint_array_copy_3: 'tint_array_copy'
+ %tint_array_copy_3:ptr<function, array<InnerS, 8>, read_write> = var %33 # %tint_array_copy_3: 'tint_array_copy'
%35:ptr<function, InnerS, read_write> = access %tint_array_copy_3, %23
store %35, %31
%36:array<InnerS, 8> = load %tint_array_copy_3
@@ -958,13 +958,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %s1:ptr<private, OuterS, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %s1:ptr<private, OuterS, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<private, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
@@ -986,19 +986,19 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %s1:ptr<private, OuterS, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %s1:ptr<private, OuterS, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<private, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
%8:ptr<private, array<InnerS, 8>, read_write> = access %s1, 0u
%9:array<InnerS, 8> = load %8
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %9
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %9
%11:ptr<function, InnerS, read_write> = access %tint_array_copy, %5
store %11, %7
%12:array<InnerS, 8> = load %tint_array_copy
@@ -1047,13 +1047,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %s1:ptr<private, OuterS, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %s1:ptr<private, OuterS, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<private, InnerS, read_write> = access %s1, 0u, %5
%p:ptr<private, InnerS, read_write> = let %6
@@ -1076,19 +1076,19 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %s1:ptr<private, OuterS, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %s1:ptr<private, OuterS, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<private, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
%8:ptr<private, array<InnerS, 8>, read_write> = access %s1, 0u
%9:array<InnerS, 8> = load %8
- %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var, %9
+ %tint_array_copy:ptr<function, array<InnerS, 8>, read_write> = var %9
%11:ptr<function, InnerS, read_write> = access %tint_array_copy, %5
store %11, %7
%12:array<InnerS, 8> = load %tint_array_copy
@@ -1136,13 +1136,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %s1:ptr<storage, OuterS, read_write> = var @binding_point(0, 1)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %s1:ptr<storage, OuterS, read_write> = var undef @binding_point(0, 1)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<storage, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
@@ -1193,13 +1193,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %s1:ptr<workgroup, OuterS, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %s1:ptr<workgroup, OuterS, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<workgroup, InnerS, read_write> = access %s1, 0u, %5
%7:InnerS = load %v
@@ -1250,13 +1250,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %v:ptr<function, InnerS, read_write> = var
- %s:ptr<function, array<OuterS, 2>, read_write> = var
+ %v:ptr<function, InnerS, read_write> = var undef
+ %s:ptr<function, array<OuterS, 2>, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, InnerS, read_write> = access %s, %5, 0u, %5
%7:InnerS = load %v
diff --git a/src/tint/lang/hlsl/writer/raise/pixel_local_test.cc b/src/tint/lang/hlsl/writer/raise/pixel_local_test.cc
index f763353..aefddf0 100644
--- a/src/tint/lang/hlsl/writer/raise/pixel_local_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/pixel_local_test.cc
@@ -127,7 +127,7 @@
}
$B1: { # root
- %pl:ptr<pixel_local, PixelLocal, read_write> = var
+ %pl:ptr<pixel_local, PixelLocal, read_write> = var undef
}
%main = @fragment func(%3:params):vec4<f32> [@location(0)] {
@@ -167,7 +167,7 @@
}
$B1: { # root
- %pl:ptr<pixel_local, PixelLocal, read_write> = var
+ %pl:ptr<pixel_local, PixelLocal, read_write> = var undef
}
%main = @fragment func(%3:params):vec4<f32> [@location(0)] {
@@ -194,8 +194,8 @@
}
$B1: { # root
- %pl:ptr<private, PixelLocal, read_write> = var
- %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var @binding_point(7, 10)
+ %pl:ptr<private, PixelLocal, read_write> = var undef
+ %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var undef @binding_point(7, 10)
}
%main = @fragment func(%4:params):vec4<f32> [@location(0)] {
@@ -253,7 +253,7 @@
}
$B1: { # root
- %pl:ptr<pixel_local, PixelLocal, read_write> = var
+ %pl:ptr<pixel_local, PixelLocal, read_write> = var undef
}
%main = @fragment func(%3:params):vec4<f32> [@location(0)] {
@@ -286,8 +286,8 @@
}
$B1: { # root
- %pl:ptr<private, PixelLocal, read_write> = var
- %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var @binding_point(7, 10)
+ %pl:ptr<private, PixelLocal, read_write> = var undef
+ %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var undef @binding_point(7, 10)
}
%main = @fragment func(%4:params):vec4<f32> [@location(0)] {
@@ -352,7 +352,7 @@
}
$B1: { # root
- %pl:ptr<pixel_local, PixelLocal, read_write> = var
+ %pl:ptr<pixel_local, PixelLocal, read_write> = var undef
}
%main = @fragment func(%3:params):vec4<f32> [@location(0)] {
@@ -386,8 +386,8 @@
}
$B1: { # root
- %pl:ptr<private, PixelLocal, read_write> = var
- %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var @binding_point(7, 10)
+ %pl:ptr<private, PixelLocal, read_write> = var undef
+ %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var undef @binding_point(7, 10)
}
%main = @fragment func(%4:params):vec4<f32> [@location(0)] {
@@ -448,7 +448,7 @@
}
$B1: { # root
- %pl:ptr<pixel_local, PixelLocal, read_write> = var
+ %pl:ptr<pixel_local, PixelLocal, read_write> = var undef
}
%main = @fragment func(%3:params):vec4<f32> [@location(0)] {
@@ -477,8 +477,8 @@
}
$B1: { # root
- %pl:ptr<private, PixelLocal, read_write> = var
- %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var @binding_point(7, 10)
+ %pl:ptr<private, PixelLocal, read_write> = var undef
+ %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var undef @binding_point(7, 10)
}
%main = @fragment func(%4:params):vec4<f32> [@location(0)] {
@@ -550,7 +550,7 @@
}
$B1: { # root
- %pl:ptr<pixel_local, PixelLocal, read_write> = var
+ %pl:ptr<pixel_local, PixelLocal, read_write> = var undef
}
%main0 = @fragment func(%3:params):vec4<f32> [@location(0)] {
@@ -597,8 +597,8 @@
}
$B1: { # root
- %pl:ptr<private, PixelLocal, read_write> = var
- %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var @binding_point(7, 10)
+ %pl:ptr<private, PixelLocal, read_write> = var undef
+ %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var undef @binding_point(7, 10)
}
%main0 = @fragment func(%4:params):vec4<f32> [@location(0)] {
@@ -699,7 +699,7 @@
}
$B1: { # root
- %pl:ptr<pixel_local, PixelLocal, read_write> = var
+ %pl:ptr<pixel_local, PixelLocal, read_write> = var undef
}
%main = @fragment func(%3:params):vec4<f32> [@location(0)] {
@@ -728,10 +728,10 @@
}
$B1: { # root
- %pl:ptr<private, PixelLocal, read_write> = var
- %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var @binding_point(7, 10)
- %pixel_local_b:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32sint>, read> = var @binding_point(7, 12)
- %pixel_local_c:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32float>, read> = var @binding_point(7, 14)
+ %pl:ptr<private, PixelLocal, read_write> = var undef
+ %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var undef @binding_point(7, 10)
+ %pixel_local_b:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32sint>, read> = var undef @binding_point(7, 12)
+ %pixel_local_c:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32float>, read> = var undef @binding_point(7, 14)
}
%main = @fragment func(%6:params):vec4<f32> [@location(0)] {
@@ -806,7 +806,7 @@
}
$B1: { # root
- %pl:ptr<pixel_local, PixelLocal, read_write> = var
+ %pl:ptr<pixel_local, PixelLocal, read_write> = var undef
}
%main = @fragment func(%3:params):vec4<f32> [@location(0)] {
@@ -835,10 +835,10 @@
}
$B1: { # root
- %pl:ptr<private, PixelLocal, read_write> = var
- %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32float>, read> = var @binding_point(7, 10)
- %pixel_local_b:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var @binding_point(7, 12)
- %pixel_local_c:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32sint>, read> = var @binding_point(7, 14)
+ %pl:ptr<private, PixelLocal, read_write> = var undef
+ %pixel_local_a:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32float>, read> = var undef @binding_point(7, 10)
+ %pixel_local_b:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32uint>, read> = var undef @binding_point(7, 12)
+ %pixel_local_c:ptr<handle, hlsl.rasterizer_ordered_texture_2d<r32sint>, read> = var undef @binding_point(7, 14)
}
%main = @fragment func(%6:params):vec4<f32> [@location(0)] {
diff --git a/src/tint/lang/hlsl/writer/raise/promote_initializers_test.cc b/src/tint/lang/hlsl/writer/raise/promote_initializers_test.cc
index e63a111..cef5584 100644
--- a/src/tint/lang/hlsl/writer/raise/promote_initializers_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/promote_initializers_test.cc
@@ -50,7 +50,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %a:ptr<function, i32, read_write> = var, 0i
+ %a:ptr<function, i32, read_write> = var 0i
ret
}
}
@@ -81,7 +81,7 @@
%foo = @fragment func():void {
$B1: {
- %a:ptr<function, S, read_write> = var, S(1i)
+ %a:ptr<function, S, read_write> = var S(1i)
ret
}
}
@@ -104,7 +104,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %a:ptr<function, array<i32, 2>, read_write> = var, array<i32, 2>(0i)
+ %a:ptr<function, array<i32, 2>, read_write> = var array<i32, 2>(0i)
ret
}
}
@@ -290,7 +290,7 @@
}
$B1: { # root
- %a:ptr<private, S, read_write> = var, S(1i)
+ %a:ptr<private, S, read_write> = var S(1i)
}
)";
@@ -304,7 +304,7 @@
$B1: { # root
%1:S = construct 1i
%2:S = let %1
- %a:ptr<private, S, read_write> = var, %2
+ %a:ptr<private, S, read_write> = var %2
}
)";
@@ -332,7 +332,7 @@
}
$B1: { # root
- %a:ptr<private, S, read_write> = var, S(1i)
+ %a:ptr<private, S, read_write> = var S(1i)
}
)";
@@ -348,7 +348,7 @@
$B1: { # root
%1:S = construct 1i, 1i, 1i
%2:S = let %1
- %a:ptr<private, S, read_write> = var, %2
+ %a:ptr<private, S, read_write> = var %2
}
)";
@@ -364,7 +364,7 @@
auto* src = R"(
$B1: { # root
- %a:ptr<private, array<i32, 2>, read_write> = var, array<i32, 2>(0i)
+ %a:ptr<private, array<i32, 2>, read_write> = var array<i32, 2>(0i)
}
)";
@@ -373,7 +373,7 @@
auto* expect = R"(
$B1: { # root
%1:array<i32, 2> = let array<i32, 2>(0i)
- %a:ptr<private, array<i32, 2>, read_write> = var, %1
+ %a:ptr<private, array<i32, 2>, read_write> = var %1
}
)";
@@ -416,7 +416,7 @@
}
$B1: { # root
- %a:ptr<private, S, read_write> = var, S(A(1i, B(1.0f)))
+ %a:ptr<private, S, read_write> = var S(A(1i, B(1.0f)))
}
)";
@@ -443,7 +443,7 @@
%4:A = let %3
%5:S = construct %4
%6:S = let %5
- %a:ptr<private, S, read_write> = var, %6
+ %a:ptr<private, S, read_write> = var %6
}
)";
@@ -467,7 +467,7 @@
}
$B1: { # root
- %a:ptr<private, S, read_write> = var, S(array<i32, 3>(0i))
+ %a:ptr<private, S, read_write> = var S(array<i32, 3>(0i))
}
)";
@@ -481,7 +481,7 @@
$B1: { # root
%1:S = construct array<i32, 3>(0i)
%2:S = let %1
- %a:ptr<private, S, read_write> = var, %2
+ %a:ptr<private, S, read_write> = var %2
}
)";
@@ -536,11 +536,11 @@
}
$B1: { # root
- %a:ptr<private, A, read_write> = var, A(array<i32, 2>(9i, 10i))
- %b:ptr<private, B, read_write> = var, B(array<array<i32, 4>, 1>(array<i32, 4>(5i, 6i, 7i, 8i)))
- %c:ptr<private, C, read_write> = var, C(A(array<i32, 2>(1i, 2i)))
- %d:ptr<private, array<i32, 2>, read_write> = var, array<i32, 2>(11i, 12i)
- %e:ptr<private, array<array<array<i32, 3>, 2>, 1>, read_write> = var, array<array<array<i32, 3>, 2>, 1>(array<array<i32, 3>, 2>(array<i32, 3>(1i, 2i, 3i), array<i32, 3>(4i, 5i, 6i)))
+ %a:ptr<private, A, read_write> = var A(array<i32, 2>(9i, 10i))
+ %b:ptr<private, B, read_write> = var B(array<array<i32, 4>, 1>(array<i32, 4>(5i, 6i, 7i, 8i)))
+ %c:ptr<private, C, read_write> = var C(A(array<i32, 2>(1i, 2i)))
+ %d:ptr<private, array<i32, 2>, read_write> = var array<i32, 2>(11i, 12i)
+ %e:ptr<private, array<array<array<i32, 3>, 2>, 1>, read_write> = var array<array<array<i32, 3>, 2>, 1>(array<array<i32, 3>, 2>(array<i32, 3>(1i, 2i, 3i), array<i32, 3>(4i, 5i, 6i)))
}
)";
@@ -562,19 +562,19 @@
$B1: { # root
%1:A = construct array<i32, 2>(9i, 10i)
%2:A = let %1
- %a:ptr<private, A, read_write> = var, %2
+ %a:ptr<private, A, read_write> = var %2
%4:B = construct array<array<i32, 4>, 1>(array<i32, 4>(5i, 6i, 7i, 8i))
%5:B = let %4
- %b:ptr<private, B, read_write> = var, %5
+ %b:ptr<private, B, read_write> = var %5
%7:A = construct array<i32, 2>(1i, 2i)
%8:A = let %7
%9:C = construct %8
%10:C = let %9
- %c:ptr<private, C, read_write> = var, %10
+ %c:ptr<private, C, read_write> = var %10
%12:array<i32, 2> = let array<i32, 2>(11i, 12i)
- %d:ptr<private, array<i32, 2>, read_write> = var, %12
+ %d:ptr<private, array<i32, 2>, read_write> = var %12
%14:array<array<array<i32, 3>, 2>, 1> = let array<array<array<i32, 3>, 2>, 1>(array<array<i32, 3>, 2>(array<i32, 3>(1i, 2i, 3i), array<i32, 3>(4i, 5i, 6i)))
- %e:ptr<private, array<array<array<i32, 3>, 2>, 1>, read_write> = var, %14
+ %e:ptr<private, array<array<array<i32, 3>, 2>, 1>, read_write> = var %14
}
)";
diff --git a/src/tint/lang/hlsl/writer/raise/replace_default_only_switch_test.cc b/src/tint/lang/hlsl/writer/raise/replace_default_only_switch_test.cc
index 73640c7..9f22a5a 100644
--- a/src/tint/lang/hlsl/writer/raise/replace_default_only_switch_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/replace_default_only_switch_test.cc
@@ -185,7 +185,7 @@
auto* src = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 0i
+ %a:ptr<private, i32, read_write> = var 0i
}
%foo = @fragment func():void {
@@ -205,7 +205,7 @@
auto* expect = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 0i
+ %a:ptr<private, i32, read_write> = var 0i
}
%foo = @fragment func():void {
@@ -248,7 +248,7 @@
auto* src = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 0i
+ %a:ptr<private, i32, read_write> = var 0i
}
%foo = @fragment func():void {
@@ -273,7 +273,7 @@
auto* expect = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 0i
+ %a:ptr<private, i32, read_write> = var 0i
}
%foo = @fragment func():void {
@@ -321,7 +321,7 @@
auto* src = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 0i
+ %a:ptr<private, i32, read_write> = var 0i
}
%foo = @fragment func():void {
@@ -346,7 +346,7 @@
auto* expect = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 0i
+ %a:ptr<private, i32, read_write> = var 0i
}
%foo = @fragment func():void {
@@ -403,7 +403,7 @@
auto* src = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 0i
+ %a:ptr<private, i32, read_write> = var 0i
}
%foo = @fragment func():void {
@@ -439,7 +439,7 @@
auto* expect = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 0i
+ %a:ptr<private, i32, read_write> = var 0i
}
%foo = @fragment func():void {
diff --git a/src/tint/lang/hlsl/writer/raise/replace_non_indexable_mat_vec_stores_test.cc b/src/tint/lang/hlsl/writer/raise/replace_non_indexable_mat_vec_stores_test.cc
index 928e83d..0b5358c 100644
--- a/src/tint/lang/hlsl/writer/raise/replace_non_indexable_mat_vec_stores_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/replace_non_indexable_mat_vec_stores_test.cc
@@ -58,13 +58,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, vec3<f32>, read_write> = var
+ %v:ptr<function, vec3<f32>, read_write> = var undef
%5:u32 = load %dyn_index
store_vector_element %v, %5, 1.0f
store_vector_element %v, %static_index, 1.0f
@@ -77,13 +77,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, vec3<f32>, read_write> = var
+ %v:ptr<function, vec3<f32>, read_write> = var undef
%5:u32 = load %dyn_index
%6:vec3<f32> = load %v
%7:vec3<f32> = construct 1.0f
@@ -126,13 +126,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:ptr<function, vec3<f32>, read_write> = access %v, 0u
%6:u32 = load %dyn_index
store_vector_element %5, %6, 1.0f
@@ -150,13 +150,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:ptr<function, vec3<f32>, read_write> = access %v, 0u
%6:u32 = load %dyn_index
%7:vec3<f32> = load %5
@@ -195,13 +195,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, array<vec3<f32>, 8>, read_write> = var
+ %v:ptr<function, array<vec3<f32>, 8>, read_write> = var undef
%5:ptr<function, vec3<f32>, read_write> = access %v, 0u
%6:u32 = load %dyn_index
store_vector_element %5, %6, 1.0f
@@ -215,13 +215,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, array<vec3<f32>, 8>, read_write> = var
+ %v:ptr<function, array<vec3<f32>, 8>, read_write> = var undef
%5:ptr<function, vec3<f32>, read_write> = access %v, 0u
%6:u32 = load %dyn_index
%7:vec3<f32> = load %5
@@ -266,13 +266,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:ptr<function, vec3<f32>, read_write> = access %v, 0u, 0u
%6:u32 = load %dyn_index
store_vector_element %5, %6, 1.0f
@@ -290,13 +290,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:ptr<function, vec3<f32>, read_write> = access %v, 0u, 0u
%6:u32 = load %dyn_index
%7:vec3<f32> = load %5
@@ -337,7 +337,7 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%get_dynamic = func():u32 {
@@ -353,7 +353,7 @@
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B4: {
- %v:ptr<function, vec3<f32>, read_write> = var
+ %v:ptr<function, vec3<f32>, read_write> = var undef
%7:u32 = call %get_dynamic
store_vector_element %v, %7, 1.0f
%8:u32 = call %get_static
@@ -367,7 +367,7 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%get_dynamic = func():u32 {
@@ -383,7 +383,7 @@
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B4: {
- %v:ptr<function, vec3<f32>, read_write> = var
+ %v:ptr<function, vec3<f32>, read_write> = var undef
%7:u32 = call %get_dynamic
%8:vec3<f32> = load %v
%9:vec3<f32> = construct 1.0f
@@ -427,13 +427,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, vec3<f32>, read_write> = var
+ %v:ptr<function, vec3<f32>, read_write> = var undef
%p:ptr<function, vec3<f32>, read_write> = let %v
%6:u32 = load %dyn_index
store_vector_element %p, %6, 1.0f
@@ -447,13 +447,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, vec3<f32>, read_write> = var
+ %v:ptr<function, vec3<f32>, read_write> = var undef
%5:u32 = load %dyn_index
%6:vec3<f32> = load %v
%7:vec3<f32> = construct 1.0f
@@ -490,8 +490,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<private, vec3<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<private, vec3<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -509,8 +509,8 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<private, vec3<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<private, vec3<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -553,8 +553,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<storage, vec3<f32>, read_write> = var @binding_point(0, 1)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<storage, vec3<f32>, read_write> = var undef @binding_point(0, 1)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -594,8 +594,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<workgroup, vec3<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<workgroup, vec3<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -635,13 +635,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 1u
%6:u32 = load %dyn_index
store_vector_element %5, %6, 1.0f
@@ -655,13 +655,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 1u
%6:u32 = load %dyn_index
%7:vec4<f32> = load %5
@@ -705,13 +705,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 0u, 1u
%6:u32 = load %dyn_index
store_vector_element %5, %6, 1.0f
@@ -729,13 +729,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 0u, 1u
%6:u32 = load %dyn_index
%7:vec4<f32> = load %5
@@ -773,13 +773,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, array<mat2x4<f32>, 8>, read_write> = var
+ %v:ptr<function, array<mat2x4<f32>, 8>, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 7u, 1u
%6:u32 = load %dyn_index
store_vector_element %5, %6, 1.0f
@@ -793,13 +793,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, array<mat2x4<f32>, 8>, read_write> = var
+ %v:ptr<function, array<mat2x4<f32>, 8>, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 7u, 1u
%6:u32 = load %dyn_index
%7:vec4<f32> = load %5
@@ -844,13 +844,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 0u, 7u, 1u
%6:u32 = load %dyn_index
store_vector_element %5, %6, 1.0f
@@ -868,13 +868,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 0u, 7u, 1u
%6:u32 = load %dyn_index
%7:vec4<f32> = load %5
@@ -917,7 +917,7 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%get_dynamic = func():u32 {
@@ -933,7 +933,7 @@
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B4: {
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%7:ptr<function, vec4<f32>, read_write> = access %v, 1u
%8:u32 = call %get_dynamic
store_vector_element %7, %8, 1.0f
@@ -948,7 +948,7 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%get_dynamic = func():u32 {
@@ -964,7 +964,7 @@
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B4: {
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%7:ptr<function, vec4<f32>, read_write> = access %v, 1u
%8:u32 = call %get_dynamic
%9:vec4<f32> = load %7
@@ -1010,13 +1010,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 1u
%p:ptr<function, vec4<f32>, read_write> = let %5
%7:u32 = load %dyn_index
@@ -1031,13 +1031,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %v, 1u
%6:u32 = load %dyn_index
%7:vec4<f32> = load %5
@@ -1076,8 +1076,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<private, mat2x4<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<private, mat2x4<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1096,8 +1096,8 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<private, mat2x4<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<private, mat2x4<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1142,8 +1142,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<storage, mat2x4<f32>, read_write> = var @binding_point(0, 1)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<storage, mat2x4<f32>, read_write> = var undef @binding_point(0, 1)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1185,8 +1185,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<workgroup, mat2x4<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<workgroup, mat2x4<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1229,13 +1229,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, %6
@@ -1251,13 +1251,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, %6
@@ -1313,13 +1313,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, 0u, %6
@@ -1339,13 +1339,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, 0u, %6
@@ -1396,13 +1396,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, array<mat2x4<f32>, 8>, read_write> = var
+ %v:ptr<function, array<mat2x4<f32>, 8>, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, 7u, %6
@@ -1418,13 +1418,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, array<mat2x4<f32>, 8>, read_write> = var
+ %v:ptr<function, array<mat2x4<f32>, 8>, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, 7u, %6
@@ -1482,13 +1482,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, 0u, 7u, %6
@@ -1508,13 +1508,13 @@
}
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, S, read_write> = var
+ %v:ptr<function, S, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, 0u, 7u, %6
@@ -1569,7 +1569,7 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%get_dynamic = func():u32 {
@@ -1585,7 +1585,7 @@
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B4: {
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%7:vec4<f32> = construct 0.0f
%8:u32 = call %get_dynamic
%9:ptr<function, vec4<f32>, read_write> = access %v, %8
@@ -1602,7 +1602,7 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%get_dynamic = func():u32 {
@@ -1618,7 +1618,7 @@
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B4: {
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%7:vec4<f32> = construct 0.0f
%8:u32 = call %get_dynamic
%9:ptr<function, vec4<f32>, read_write> = access %v, %8
@@ -1685,13 +1685,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, %6
@@ -1709,13 +1709,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:vec4<f32> = construct 0.0f
%6:u32 = load %dyn_index
%7:ptr<function, vec4<f32>, read_write> = access %v, %6
@@ -1766,8 +1766,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<private, mat2x4<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<private, mat2x4<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1788,8 +1788,8 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<private, mat2x4<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<private, mat2x4<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1846,8 +1846,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<storage, mat2x4<f32>, read_write> = var @binding_point(0, 1)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<storage, mat2x4<f32>, read_write> = var undef @binding_point(0, 1)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1893,8 +1893,8 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
- %v:ptr<workgroup, mat2x4<f32>, read_write> = var
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
+ %v:ptr<workgroup, mat2x4<f32>, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -1938,13 +1938,13 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, vec4<f32>, read_write> = access %v, %5
%7:u32 = load %dyn_index
@@ -1960,13 +1960,13 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
%static_index:u32 = let 0u
- %v:ptr<function, mat2x4<f32>, read_write> = var
+ %v:ptr<function, mat2x4<f32>, read_write> = var undef
%5:u32 = load %dyn_index
%6:ptr<function, vec4<f32>, read_write> = access %v, %5
%7:u32 = load %dyn_index
diff --git a/src/tint/lang/hlsl/writer/raise/shader_io_test.cc b/src/tint/lang/hlsl/writer/raise/shader_io_test.cc
index 99fd4bd..53174f9 100644
--- a/src/tint/lang/hlsl/writer/raise/shader_io_test.cc
+++ b/src/tint/lang/hlsl/writer/raise/shader_io_test.cc
@@ -884,7 +884,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, read> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, read> = var undef @binding_point(0, 0)
}
%vert = @vertex func():Outputs {
@@ -908,7 +908,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, read> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, read> = var undef @binding_point(0, 0)
}
%vert_inner = func():Outputs {
@@ -983,7 +983,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, write> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, write> = var undef @binding_point(0, 0)
}
%frag = @fragment func():void {
@@ -1003,7 +1003,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, write> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, write> = var undef @binding_point(0, 0)
}
%frag = @fragment func():void {
@@ -1422,7 +1422,7 @@
auto* expect = R"(
$B1: { # root
- %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var @binding_point(0, 0)
+ %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var undef @binding_point(0, 0)
}
%foo_inner = func(%num_wgs:vec3<u32>):void {
@@ -1494,7 +1494,7 @@
}
$B1: { # root
- %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var @binding_point(0, 0)
+ %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var undef @binding_point(0, 0)
}
%foo_inner = func(%inputs:Inputs):void {
@@ -1543,7 +1543,7 @@
auto* expect = R"(
$B1: { # root
- %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var @binding_point(1, 23)
+ %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var undef @binding_point(1, 23)
}
%foo_inner = func(%num_wgs:vec3<u32>):void {
@@ -1589,16 +1589,16 @@
auto* src = R"(
$B1: { # root
- %1:ptr<storage, i32, read_write> = var @binding_point(0, 1)
- %2:ptr<storage, i32, read_write> = var @binding_point(1, 2)
- %3:ptr<storage, i32, read_write> = var @binding_point(2, 3)
- %4:ptr<storage, i32, read_write> = var @binding_point(3, 4)
- %5:ptr<storage, i32, read_write> = var @binding_point(4, 5)
- %6:ptr<storage, i32, read_write> = var @binding_point(5, 6)
- %7:ptr<storage, i32, read_write> = var @binding_point(6, 7)
- %8:ptr<storage, i32, read_write> = var @binding_point(7, 8)
- %9:ptr<storage, i32, read_write> = var @binding_point(8, 9)
- %10:ptr<storage, i32, read_write> = var @binding_point(9, 10)
+ %1:ptr<storage, i32, read_write> = var undef @binding_point(0, 1)
+ %2:ptr<storage, i32, read_write> = var undef @binding_point(1, 2)
+ %3:ptr<storage, i32, read_write> = var undef @binding_point(2, 3)
+ %4:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
+ %5:ptr<storage, i32, read_write> = var undef @binding_point(4, 5)
+ %6:ptr<storage, i32, read_write> = var undef @binding_point(5, 6)
+ %7:ptr<storage, i32, read_write> = var undef @binding_point(6, 7)
+ %8:ptr<storage, i32, read_write> = var undef @binding_point(7, 8)
+ %9:ptr<storage, i32, read_write> = var undef @binding_point(8, 9)
+ %10:ptr<storage, i32, read_write> = var undef @binding_point(9, 10)
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func(%num_wgs:vec3<u32> [@num_workgroups]):void {
@@ -1612,17 +1612,17 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<storage, i32, read_write> = var @binding_point(0, 1)
- %2:ptr<storage, i32, read_write> = var @binding_point(1, 2)
- %3:ptr<storage, i32, read_write> = var @binding_point(2, 3)
- %4:ptr<storage, i32, read_write> = var @binding_point(3, 4)
- %5:ptr<storage, i32, read_write> = var @binding_point(4, 5)
- %6:ptr<storage, i32, read_write> = var @binding_point(5, 6)
- %7:ptr<storage, i32, read_write> = var @binding_point(6, 7)
- %8:ptr<storage, i32, read_write> = var @binding_point(7, 8)
- %9:ptr<storage, i32, read_write> = var @binding_point(8, 9)
- %10:ptr<storage, i32, read_write> = var @binding_point(9, 10)
- %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var @binding_point(10, 0)
+ %1:ptr<storage, i32, read_write> = var undef @binding_point(0, 1)
+ %2:ptr<storage, i32, read_write> = var undef @binding_point(1, 2)
+ %3:ptr<storage, i32, read_write> = var undef @binding_point(2, 3)
+ %4:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
+ %5:ptr<storage, i32, read_write> = var undef @binding_point(4, 5)
+ %6:ptr<storage, i32, read_write> = var undef @binding_point(5, 6)
+ %7:ptr<storage, i32, read_write> = var undef @binding_point(6, 7)
+ %8:ptr<storage, i32, read_write> = var undef @binding_point(7, 8)
+ %9:ptr<storage, i32, read_write> = var undef @binding_point(8, 9)
+ %10:ptr<storage, i32, read_write> = var undef @binding_point(9, 10)
+ %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var undef @binding_point(10, 0)
}
%foo_inner = func(%num_wgs:vec3<u32>):void {
@@ -1677,7 +1677,7 @@
}
$B1: { # root
- %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var @binding_point(0, 0)
+ %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var undef @binding_point(0, 0)
}
%foo_inner = func(%invoc_id:vec3<u32>, %num_wgs:vec3<u32>):void {
@@ -1734,7 +1734,7 @@
}
$B1: { # root
- %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var @binding_point(0, 0)
+ %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var undef @binding_point(0, 0)
}
%foo_inner = func(%num_wgs:vec3<u32>, %invoc_id:vec3<u32>):void {
@@ -1821,7 +1821,7 @@
}
$B1: { # root
- %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var @binding_point(0, 0)
+ %tint_num_workgroups:ptr<uniform, vec3<u32>, read> = var undef @binding_point(0, 0)
}
%foo_inner = func(%invoc_id:vec3<u32>, %num_wgs:vec3<u32>, %invoc_index:u32, %sg_id:u32, %glob_id:vec3<u32>, %sg_size:u32, %wg_id:vec3<u32>):void {
@@ -3561,7 +3561,7 @@
}
$B1: { # root
- %tint_first_index_offset:ptr<uniform, tint_first_index_offset_struct, read> = var @binding_point(12, 34)
+ %tint_first_index_offset:ptr<uniform, tint_first_index_offset_struct, read> = var undef @binding_point(12, 34)
}
%foo_inner = func(%vert_idx:u32):vec4<f32> {
@@ -3630,7 +3630,7 @@
}
$B1: { # root
- %tint_first_index_offset:ptr<uniform, tint_first_index_offset_struct, read> = var @binding_point(12, 34)
+ %tint_first_index_offset:ptr<uniform, tint_first_index_offset_struct, read> = var undef @binding_point(12, 34)
}
%foo_inner = func(%inst_idx:u32):vec4<f32> {
@@ -3703,7 +3703,7 @@
}
$B1: { # root
- %tint_first_index_offset:ptr<uniform, tint_first_index_offset_struct, read> = var @binding_point(12, 34)
+ %tint_first_index_offset:ptr<uniform, tint_first_index_offset_struct, read> = var undef @binding_point(12, 34)
}
%foo_inner = func(%vert_idx:u32, %inst_idx:u32):vec4<f32> {
@@ -3780,7 +3780,7 @@
}
$B1: { # root
- %tint_first_index_offset:ptr<uniform, tint_first_index_offset_struct, read> = var @binding_point(12, 34)
+ %tint_first_index_offset:ptr<uniform, tint_first_index_offset_struct, read> = var undef @binding_point(12, 34)
}
%foo_inner = func(%inst_idx:u32, %vert_idx:u32):vec4<f32> {
diff --git a/src/tint/lang/msl/writer/raise/builtin_polyfill_test.cc b/src/tint/lang/msl/writer/raise/builtin_polyfill_test.cc
index d005d2d..29f80dc 100644
--- a/src/tint/lang/msl/writer/raise/builtin_polyfill_test.cc
+++ b/src/tint/lang/msl/writer/raise/builtin_polyfill_test.cc
@@ -472,7 +472,7 @@
}
%4 = func(%atomic_ptr:ptr<workgroup, atomic<i32>, read_write>, %cmp:i32, %val:i32):__atomic_compare_exchange_result_i32 {
$B3: {
- %old_value:ptr<function, i32, read_write> = var, %cmp
+ %old_value:ptr<function, i32, read_write> = var %cmp
%11:bool = msl.atomic_compare_exchange_weak_explicit %atomic_ptr, %old_value, %val, 0u, 0u
%12:i32 = load %old_value
%13:__atomic_compare_exchange_result_i32 = construct %12, %11
@@ -552,7 +552,7 @@
}
%4 = func(%atomic_ptr:ptr<workgroup, atomic<i32>, read_write>, %cmp:i32, %val:i32):__atomic_compare_exchange_result_i32 {
$B3: {
- %old_value:ptr<function, i32, read_write> = var, %cmp
+ %old_value:ptr<function, i32, read_write> = var %cmp
%13:bool = msl.atomic_compare_exchange_weak_explicit %atomic_ptr, %old_value, %val, 0u, 0u
%14:i32 = load %old_value
%15:__atomic_compare_exchange_result_i32 = construct %14, %13
@@ -645,7 +645,7 @@
}
%5 = func(%atomic_ptr:ptr<workgroup, atomic<i32>, read_write>, %cmp:i32, %val:i32):__atomic_compare_exchange_result_i32 {
$B3: {
- %old_value:ptr<function, i32, read_write> = var, %cmp
+ %old_value:ptr<function, i32, read_write> = var %cmp
%16:bool = msl.atomic_compare_exchange_weak_explicit %atomic_ptr, %old_value, %val, 0u, 0u
%17:i32 = load %old_value
%18:__atomic_compare_exchange_result_i32 = construct %17, %16
@@ -654,7 +654,7 @@
}
%7 = func(%atomic_ptr_1:ptr<workgroup, atomic<u32>, read_write>, %cmp_1:u32, %val_1:u32):__atomic_compare_exchange_result_u32 { # %atomic_ptr_1: 'atomic_ptr', %cmp_1: 'cmp', %val_1: 'val'
$B4: {
- %old_value_1:ptr<function, u32, read_write> = var, %cmp_1 # %old_value_1: 'old_value'
+ %old_value_1:ptr<function, u32, read_write> = var %cmp_1 # %old_value_1: 'old_value'
%23:bool = msl.atomic_compare_exchange_weak_explicit %atomic_ptr_1, %old_value_1, %val_1, 0u, 0u
%24:u32 = load %old_value_1
%25:__atomic_compare_exchange_result_u32 = construct %24, %23
@@ -735,7 +735,7 @@
}
%5 = func(%atomic_ptr:ptr<workgroup, atomic<i32>, read_write>, %cmp:i32, %val:i32):__atomic_compare_exchange_result_i32 {
$B3: {
- %old_value:ptr<function, i32, read_write> = var, %cmp
+ %old_value:ptr<function, i32, read_write> = var %cmp
%15:bool = msl.atomic_compare_exchange_weak_explicit %atomic_ptr, %old_value, %val, 0u, 0u
%16:i32 = load %old_value
%17:__atomic_compare_exchange_result_i32 = construct %16, %15
@@ -744,7 +744,7 @@
}
%7 = func(%atomic_ptr_1:ptr<storage, atomic<i32>, read_write>, %cmp_1:i32, %val_1:i32):__atomic_compare_exchange_result_i32 { # %atomic_ptr_1: 'atomic_ptr', %cmp_1: 'cmp', %val_1: 'val'
$B4: {
- %old_value_1:ptr<function, i32, read_write> = var, %cmp_1 # %old_value_1: 'old_value'
+ %old_value_1:ptr<function, i32, read_write> = var %cmp_1 # %old_value_1: 'old_value'
%22:bool = msl.atomic_compare_exchange_weak_explicit %atomic_ptr_1, %old_value_1, %val_1, 0u, 0u
%23:i32 = load %old_value_1
%24:__atomic_compare_exchange_result_i32 = construct %23, %22
@@ -1061,7 +1061,7 @@
%foo = func(%value:f32):f32 {
$B1: {
- %3:ptr<function, __frexp_result_f32, read_write> = var
+ %3:ptr<function, __frexp_result_f32, read_write> = var undef
%4:ptr<function, i32, read_write> = access %3, 1u
%5:i32 = load %4
%6:f32 = msl.frexp %value, %5
@@ -1121,7 +1121,7 @@
%foo = func(%value:vec4<f32>):vec4<f32> {
$B1: {
- %3:ptr<function, __frexp_result_vec4_f32, read_write> = var
+ %3:ptr<function, __frexp_result_vec4_f32, read_write> = var undef
%4:ptr<function, vec4<i32>, read_write> = access %3, 1u
%5:vec4<i32> = load %4
%6:vec4<f32> = msl.frexp %value, %5
@@ -1246,7 +1246,7 @@
%foo = func(%value:f32):f32 {
$B1: {
- %3:ptr<function, __modf_result_f32, read_write> = var
+ %3:ptr<function, __modf_result_f32, read_write> = var undef
%4:ptr<function, f32, read_write> = access %3, 1u
%5:f32 = load %4
%6:f32 = msl.modf %value, %5
@@ -1304,7 +1304,7 @@
%foo = func(%value:vec4<f32>):vec4<f32> {
$B1: {
- %3:ptr<function, __modf_result_vec4_f32, read_write> = var
+ %3:ptr<function, __modf_result_vec4_f32, read_write> = var undef
%4:ptr<function, vec4<f32>, read_write> = access %3, 1u
%5:vec4<f32> = load %4
%6:vec4<f32> = msl.modf %value, %5
@@ -3340,7 +3340,7 @@
$B1: {
%3:ptr<storage, f32, read_write> = access %p, 64u
%4:u64 = msl.convert 32u
- %5:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var
+ %5:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var undef
%6:subgroup_matrix_result<f32, 8, 8> = load %5
%7:void = msl.simdgroup_load %6, %3, %4, vec2<u64>(0u64), false
%8:subgroup_matrix_result<f32, 8, 8> = load %5
@@ -3381,7 +3381,7 @@
$B1: {
%3:ptr<workgroup, f16, read_write> = access %p, 64u
%4:u64 = msl.convert 32u
- %5:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var
+ %5:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var undef
%6:subgroup_matrix_result<f16, 8, 8> = load %5
%7:void = msl.simdgroup_load %6, %3, %4, vec2<u64>(0u64), false
%8:subgroup_matrix_result<f16, 8, 8> = load %5
@@ -3495,7 +3495,7 @@
auto* expect = R"(
%foo = func(%left:subgroup_matrix_left<f32, 4, 8>, %right:subgroup_matrix_right<f32, 8, 4>):subgroup_matrix_result<f32, 8, 8> {
$B1: {
- %4:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var
+ %4:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var undef
%5:subgroup_matrix_result<f32, 8, 8> = load %4
%6:void = msl.simdgroup_multiply %5, %left, %right
%7:subgroup_matrix_result<f32, 8, 8> = load %4
@@ -3534,7 +3534,7 @@
auto* expect = R"(
%foo = func(%left:subgroup_matrix_left<f16, 8, 4>, %right:subgroup_matrix_right<f16, 2, 8>):subgroup_matrix_result<f16, 2, 4> {
$B1: {
- %4:ptr<function, subgroup_matrix_result<f16, 2, 4>, read_write> = var
+ %4:ptr<function, subgroup_matrix_result<f16, 2, 4>, read_write> = var undef
%5:subgroup_matrix_result<f16, 2, 4> = load %4
%6:void = msl.simdgroup_multiply %5, %left, %right
%7:subgroup_matrix_result<f16, 2, 4> = load %4
@@ -3574,7 +3574,7 @@
auto* expect = R"(
%foo = func(%left:subgroup_matrix_left<f32, 4, 8>, %right:subgroup_matrix_right<f32, 8, 4>, %acc:subgroup_matrix_result<f32, 8, 8>):subgroup_matrix_result<f32, 8, 8> {
$B1: {
- %5:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var
+ %5:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var undef
%6:subgroup_matrix_result<f32, 8, 8> = load %5
%7:void = msl.simdgroup_multiply_accumulate %6, %left, %right, %acc
%8:subgroup_matrix_result<f32, 8, 8> = load %5
@@ -3614,7 +3614,7 @@
auto* expect = R"(
%foo = func(%left:subgroup_matrix_left<f16, 8, 4>, %right:subgroup_matrix_right<f16, 2, 8>, %acc:subgroup_matrix_result<f16, 2, 4>):subgroup_matrix_result<f16, 2, 4> {
$B1: {
- %5:ptr<function, subgroup_matrix_result<f16, 2, 4>, read_write> = var
+ %5:ptr<function, subgroup_matrix_result<f16, 2, 4>, read_write> = var undef
%6:subgroup_matrix_result<f16, 2, 4> = load %5
%7:void = msl.simdgroup_multiply_accumulate %6, %left, %right, %acc
%8:subgroup_matrix_result<f16, 2, 4> = load %5
diff --git a/src/tint/lang/msl/writer/raise/module_scope_vars_test.cc b/src/tint/lang/msl/writer/raise/module_scope_vars_test.cc
index 4b1c991..8addd3e 100644
--- a/src/tint/lang/msl/writer/raise/module_scope_vars_test.cc
+++ b/src/tint/lang/msl/writer/raise/module_scope_vars_test.cc
@@ -59,7 +59,7 @@
auto* src = R"(
%foo = @fragment func():void {
$B1: {
- %v:ptr<function, i32, read_write> = var
+ %v:ptr<function, i32, read_write> = var undef
%3:i32 = load %v
ret
}
@@ -90,8 +90,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var
- %b:ptr<private, i32, read_write> = var
+ %a:ptr<private, i32, read_write> = var undef
+ %b:ptr<private, i32, read_write> = var undef
}
%foo = @fragment func():void {
@@ -114,8 +114,8 @@
%foo = @fragment func():void {
$B1: {
- %a:ptr<private, i32, read_write> = var
- %b:ptr<private, i32, read_write> = var
+ %a:ptr<private, i32, read_write> = var undef
+ %b:ptr<private, i32, read_write> = var undef
%4:tint_module_vars_struct = construct %a, %b
%tint_module_vars:tint_module_vars_struct = let %4
%6:ptr<private, i32, read_write> = access %tint_module_vars, 0u
@@ -151,8 +151,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<private, i32, read_write> = var, 42i
- %b:ptr<private, i32, read_write> = var, -1i
+ %a:ptr<private, i32, read_write> = var 42i
+ %b:ptr<private, i32, read_write> = var -1i
}
%foo = @fragment func():void {
@@ -175,8 +175,8 @@
%foo = @fragment func():void {
$B1: {
- %a:ptr<private, i32, read_write> = var, 42i
- %b:ptr<private, i32, read_write> = var, -1i
+ %a:ptr<private, i32, read_write> = var 42i
+ %b:ptr<private, i32, read_write> = var -1i
%4:tint_module_vars_struct = construct %a, %b
%tint_module_vars:tint_module_vars_struct = let %4
%6:ptr<private, i32, read_write> = access %tint_module_vars, 0u
@@ -214,8 +214,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<storage, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
+ %a:ptr<storage, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
}
%foo = @fragment func():void {
@@ -275,8 +275,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<uniform, i32, read> = var @binding_point(1, 2)
- %b:ptr<uniform, i32, read> = var @binding_point(3, 4)
+ %a:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<uniform, i32, read> = var undef @binding_point(3, 4)
}
%foo = @fragment func():void {
@@ -334,8 +334,8 @@
auto* src = R"(
$B1: { # root
- %t:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %s:ptr<handle, sampler, read> = var @binding_point(3, 4)
+ %t:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %s:ptr<handle, sampler, read> = var undef @binding_point(3, 4)
}
%foo = @fragment func():void {
@@ -388,8 +388,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<workgroup, i32, read_write> = var
- %b:ptr<workgroup, i32, read_write> = var
+ %a:ptr<workgroup, i32, read_write> = var undef
+ %b:ptr<workgroup, i32, read_write> = var undef
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -459,9 +459,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<uniform, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
- %c:ptr<private, i32, read_write> = var
+ %a:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
+ %c:ptr<private, i32, read_write> = var undef
}
%foo = @fragment func():void {
@@ -487,7 +487,7 @@
%foo = @fragment func(%a:ptr<uniform, i32, read> [@binding_point(1, 2)], %b:ptr<storage, i32, read_write> [@binding_point(3, 4)]):void {
$B1: {
- %c:ptr<private, i32, read_write> = var
+ %c:ptr<private, i32, read_write> = var undef
%5:tint_module_vars_struct = construct %a, %b, %c
%tint_module_vars:tint_module_vars_struct = let %5
%7:ptr<uniform, i32, read> = access %tint_module_vars, 0u
@@ -532,8 +532,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<storage, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
+ %a:ptr<storage, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
}
%foo = @fragment func(%param:i32 [@location(1), @interpolate(flat)]):void {
@@ -601,8 +601,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<storage, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
+ %a:ptr<storage, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
}
%foo = func():void {
@@ -682,8 +682,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<storage, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
+ %a:ptr<storage, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
}
%foo = func(%param:i32):void {
@@ -767,8 +767,8 @@
auto* src = R"(
$B1: { # root
- %t:ptr<handle, texture_2d<f32>, read> = var @binding_point(1, 2)
- %s:ptr<handle, sampler, read> = var @binding_point(3, 4)
+ %t:ptr<handle, texture_2d<f32>, read> = var undef @binding_point(1, 2)
+ %s:ptr<handle, sampler, read> = var undef @binding_point(3, 4)
}
%foo = func(%param:i32):vec4<f32> {
@@ -842,8 +842,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<storage, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
+ %a:ptr<storage, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
}
%main = @fragment func():void {
@@ -921,8 +921,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<storage, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
+ %a:ptr<storage, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
}
%foo = func():i32 {
@@ -1007,8 +1007,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<storage, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
+ %a:ptr<storage, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
}
%bar = func():i32 {
@@ -1110,8 +1110,8 @@
auto* src = R"(
$B1: { # root
- %a:ptr<storage, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
+ %a:ptr<storage, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
}
%foo = func():i32 {
@@ -1212,9 +1212,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<uniform, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
- %c:ptr<private, i32, read_write> = var
+ %a:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
+ %c:ptr<private, i32, read_write> = var undef
}
%main_a = @fragment func():void {
@@ -1251,7 +1251,7 @@
%main_a = @fragment func(%a:ptr<uniform, i32, read> [@binding_point(1, 2)], %b:ptr<storage, i32, read_write> [@binding_point(3, 4)]):void {
$B1: {
- %c:ptr<private, i32, read_write> = var
+ %c:ptr<private, i32, read_write> = var undef
%5:tint_module_vars_struct = construct %a, %b, %c
%tint_module_vars:tint_module_vars_struct = let %5
%7:ptr<uniform, i32, read> = access %tint_module_vars, 0u
@@ -1269,7 +1269,7 @@
}
%main_b = @fragment func(%a_1:ptr<uniform, i32, read> [@binding_point(1, 2)], %b_1:ptr<storage, i32, read_write> [@binding_point(3, 4)]):void { # %a_1: 'a', %b_1: 'b'
$B2: {
- %c_1:ptr<private, i32, read_write> = var # %c_1: 'c'
+ %c_1:ptr<private, i32, read_write> = var undef # %c_1: 'c'
%20:tint_module_vars_struct = construct %a_1, %b_1, %c_1
%tint_module_vars_1:tint_module_vars_struct = let %20 # %tint_module_vars_1: 'tint_module_vars'
%22:ptr<uniform, i32, read> = access %tint_module_vars_1, 0u
@@ -1320,9 +1320,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<uniform, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
- %c:ptr<private, i32, read_write> = var
+ %a:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
+ %c:ptr<private, i32, read_write> = var undef
}
%main_a = @fragment func():void {
@@ -1369,7 +1369,7 @@
}
%main_b = @fragment func(%a_1:ptr<uniform, i32, read> [@binding_point(1, 2)]):void { # %a_1: 'a'
$B2: {
- %c:ptr<private, i32, read_write> = var
+ %c:ptr<private, i32, read_write> = var undef
%15:tint_module_vars_struct = construct %a_1, unused, %c
%tint_module_vars_1:tint_module_vars_struct = let %15 # %tint_module_vars_1: 'tint_module_vars'
%17:ptr<uniform, i32, read> = access %tint_module_vars_1, 0u
@@ -1420,9 +1420,9 @@
auto* src = R"(
$B1: { # root
- %a:ptr<uniform, i32, read> = var @binding_point(1, 2)
- %b:ptr<storage, i32, read_write> = var @binding_point(3, 4)
- %c:ptr<private, i32, read_write> = var
+ %a:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
+ %b:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
+ %c:ptr<private, i32, read_write> = var undef
}
%foo = func():i32 {
@@ -1481,7 +1481,7 @@
}
%main_b = @fragment func(%a_1:ptr<uniform, i32, read> [@binding_point(1, 2)]):void { # %a_1: 'a'
$B3: {
- %c:ptr<private, i32, read_write> = var
+ %c:ptr<private, i32, read_write> = var undef
%18:tint_module_vars_struct = construct %a_1, unused, %c
%tint_module_vars_2:tint_module_vars_struct = let %18 # %tint_module_vars_2: 'tint_module_vars'
%20:ptr<private, i32, read_write> = access %tint_module_vars_2, 2u
@@ -1521,9 +1521,9 @@
auto* src = R"(
$B1: { # root
- %1:ptr<uniform, i32, read> = var @binding_point(1, 2)
- %2:ptr<storage, i32, read_write> = var @binding_point(3, 4)
- %3:ptr<private, i32, read_write> = var
+ %1:ptr<uniform, i32, read> = var undef @binding_point(1, 2)
+ %2:ptr<storage, i32, read_write> = var undef @binding_point(3, 4)
+ %3:ptr<private, i32, read_write> = var undef
}
%foo = @fragment func():void {
@@ -1549,7 +1549,7 @@
%foo = @fragment func(%2:ptr<uniform, i32, read> [@binding_point(1, 2)], %3:ptr<storage, i32, read_write> [@binding_point(3, 4)]):void {
$B1: {
- %4:ptr<private, i32, read_write> = var
+ %4:ptr<private, i32, read_write> = var undef
%5:tint_module_vars_struct = construct %2, %3, %4
%tint_module_vars:tint_module_vars_struct = let %5
%7:ptr<uniform, i32, read> = access %tint_module_vars, 0u
diff --git a/src/tint/lang/msl/writer/raise/packed_vec3_test.cc b/src/tint/lang/msl/writer/raise/packed_vec3_test.cc
index bb265d4..f600d19 100644
--- a/src/tint/lang/msl/writer/raise/packed_vec3_test.cc
+++ b/src/tint/lang/msl/writer/raise/packed_vec3_test.cc
@@ -51,7 +51,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<private, vec3<u32>, read_write> = var
+ %v:ptr<private, vec3<u32>, read_write> = var undef
}
%foo = func():vec3<u32> {
@@ -82,7 +82,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, vec2<u32>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, vec2<u32>, read> = var undef @binding_point(0, 0)
}
%foo = func():vec2<u32> {
@@ -113,7 +113,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, mat3x2<f32>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, mat3x2<f32>, read> = var undef @binding_point(0, 0)
}
%foo = func():mat3x2<f32> {
@@ -144,7 +144,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, array<vec4<u32>, 3>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, array<vec4<u32>, 3>, read> = var undef @binding_point(0, 0)
}
%foo = func():array<vec4<u32>, 3> {
@@ -174,7 +174,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<workgroup, vec3<u32>, read_write> = var
+ %v:ptr<workgroup, vec3<u32>, read_write> = var undef
}
%foo = func():vec3<u32> {
@@ -188,7 +188,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<workgroup, __packed_vec3<u32>, read_write> = var
+ %v:ptr<workgroup, __packed_vec3<u32>, read_write> = var undef
}
%foo = func():vec3<u32> {
@@ -217,7 +217,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<uniform, vec3<u32>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, vec3<u32>, read> = var undef @binding_point(0, 0)
}
%foo = func():vec3<u32> {
@@ -231,7 +231,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<uniform, __packed_vec3<u32>, read> = var @binding_point(0, 0)
+ %v:ptr<uniform, __packed_vec3<u32>, read> = var undef @binding_point(0, 0)
}
%foo = func():vec3<u32> {
@@ -260,7 +260,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec3<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec3<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec3<u32> {
@@ -274,7 +274,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<storage, __packed_vec3<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, __packed_vec3<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec3<u32> {
@@ -305,7 +305,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec3<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec3<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -321,7 +321,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<storage, __packed_vec3<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, __packed_vec3<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -354,7 +354,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec3<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec3<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<u32>):void {
@@ -368,7 +368,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<storage, __packed_vec3<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, __packed_vec3<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<u32>):void {
@@ -402,7 +402,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, vec3<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, vec3<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:u32):void {
@@ -418,7 +418,7 @@
auto* expect = R"(
$B1: { # root
- %v:ptr<storage, __packed_vec3<u32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, __packed_vec3<u32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:u32):void {
@@ -448,7 +448,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():mat4x3<f32> {
@@ -466,7 +466,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():mat4x3<f32> {
@@ -508,7 +508,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec3<f32> {
@@ -536,7 +536,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec3<f32> {
@@ -582,7 +582,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():f32 {
@@ -610,7 +610,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():f32 {
@@ -651,7 +651,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:mat4x3<f32>):void {
@@ -669,7 +669,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:mat4x3<f32>):void {
@@ -718,7 +718,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<f32>):void {
@@ -743,7 +743,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<f32>):void {
@@ -788,7 +788,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:f32):void {
@@ -813,7 +813,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:f32):void {
@@ -848,7 +848,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat2x3<f16>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat2x3<f16>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():mat2x3<f16> {
@@ -866,7 +866,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f16_array_element, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f16_array_element, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():mat2x3<f16> {
@@ -899,7 +899,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<vec3<f32>, 2> {
@@ -917,7 +917,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<vec3<f32>, 2> {
@@ -957,7 +957,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 1024>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 1024>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<vec3<f32>, 1024> {
@@ -975,7 +975,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 1024>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 1024>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<vec3<f32>, 1024> {
@@ -986,7 +986,7 @@
}
%tint_load_array_packed_vec3 = func(%from:ptr<storage, array<tint_packed_vec3_f32_array_element, 1024>, read_write>):array<vec3<f32>, 1024> {
$B3: {
- %6:ptr<function, array<vec3<f32>, 1024>, read_write> = var
+ %6:ptr<function, array<vec3<f32>, 1024>, read_write> = var undef
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -1035,7 +1035,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec3<f32> {
@@ -1057,7 +1057,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec3<f32> {
@@ -1093,7 +1093,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():f32 {
@@ -1115,7 +1115,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():f32 {
@@ -1150,7 +1150,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<vec3<f32>, 2>):void {
@@ -1168,7 +1168,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<vec3<f32>, 2>):void {
@@ -1212,7 +1212,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 1024>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 1024>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<vec3<f32>, 1024>):void {
@@ -1230,7 +1230,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 1024>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 1024>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<vec3<f32>, 1024>):void {
@@ -1289,7 +1289,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<f32>):void {
@@ -1310,7 +1310,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<f32>):void {
@@ -1347,7 +1347,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:f32):void {
@@ -1368,7 +1368,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:f32):void {
@@ -1399,7 +1399,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f16>, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f16>, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<vec3<f16>, 2> {
@@ -1417,7 +1417,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f16_array_element, 2>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f16_array_element, 2>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<vec3<f16>, 2> {
@@ -1457,7 +1457,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<array<vec3<f32>, 2>, 3>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<vec3<f32>, 2>, 3>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<array<vec3<f32>, 2>, 3> {
@@ -1475,7 +1475,7 @@
}
$B1: { # root
- %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 3>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 3>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<array<vec3<f32>, 2>, 3> {
@@ -1527,7 +1527,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<array<vec3<f32>, 2>, 1024>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<vec3<f32>, 2>, 1024>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<array<vec3<f32>, 2>, 1024> {
@@ -1545,7 +1545,7 @@
}
$B1: { # root
- %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 1024>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 1024>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<array<vec3<f32>, 2>, 1024> {
@@ -1556,7 +1556,7 @@
}
%tint_load_array_packed_vec3 = func(%from:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 1024>, read_write>):array<array<vec3<f32>, 2>, 1024> {
$B3: {
- %6:ptr<function, array<array<vec3<f32>, 2>, 1024>, read_write> = var
+ %6:ptr<function, array<array<vec3<f32>, 2>, 1024>, read_write> = var undef
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -1614,7 +1614,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<array<vec3<f32>, 2>, 3>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<vec3<f32>, 2>, 3>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<vec3<f32>, 2> {
@@ -1633,7 +1633,7 @@
}
$B1: { # root
- %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 3>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 3>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():array<vec3<f32>, 2> {
@@ -1677,7 +1677,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<array<vec3<f32>, 2>, 3>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<vec3<f32>, 2>, 3>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<array<vec3<f32>, 2>, 3>):void {
@@ -1695,7 +1695,7 @@
}
$B1: { # root
- %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 3>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 3>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<array<vec3<f32>, 2>, 3>):void {
@@ -1753,7 +1753,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<array<vec3<f32>, 2>, 1024>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<vec3<f32>, 2>, 1024>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<array<vec3<f32>, 2>, 1024>):void {
@@ -1771,7 +1771,7 @@
}
$B1: { # root
- %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 1024>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 1024>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:array<array<vec3<f32>, 2>, 1024>):void {
@@ -1840,7 +1840,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec3<f32> {
@@ -1862,7 +1862,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():vec3<f32> {
@@ -1909,7 +1909,7 @@
}
$B1: { # root
- %v:ptr<storage, S, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
}
%foo = func():S {
@@ -1939,7 +1939,7 @@
}
$B1: { # root
- %v:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
}
%foo = func():S {
@@ -2017,7 +2017,7 @@
}
$B1: { # root
- %v:ptr<storage, S, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -2052,7 +2052,7 @@
}
$B1: { # root
- %v:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -2123,7 +2123,7 @@
}
$B1: { # root
- %v:ptr<storage, S, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:S):void {
@@ -2153,7 +2153,7 @@
}
$B1: { # root
- %v:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:S):void {
@@ -2242,7 +2242,7 @@
}
$B1: { # root
- %v:ptr<storage, S, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<f32>):void {
@@ -2277,7 +2277,7 @@
}
$B1: { # root
- %v:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:vec3<f32>):void {
@@ -2334,7 +2334,7 @@
}
$B1: { # root
- %v:ptr<storage, S, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
}
%foo = func():S {
@@ -2372,7 +2372,7 @@
}
$B1: { # root
- %v:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
}
%foo = func():S {
@@ -2470,7 +2470,7 @@
}
$B1: { # root
- %v:ptr<storage, S, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -2521,7 +2521,7 @@
}
$B1: { # root
- %v:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -2608,7 +2608,7 @@
}
$B1: { # root
- %v:ptr<storage, S, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:S):void {
@@ -2646,7 +2646,7 @@
}
$B1: { # root
- %v:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%value:S):void {
@@ -2756,7 +2756,7 @@
}
$B1: { # root
- %v:ptr<storage, S, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
}
)";
@@ -2786,7 +2786,7 @@
}
$B1: { # root
- %v:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
}
)";
@@ -2826,7 +2826,7 @@
}
$B1: { # root
- %v:ptr<storage, array<S, 16>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<S, 16>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -2862,7 +2862,7 @@
}
$B1: { # root
- %v:ptr<storage, array<S_packed_vec3, 16>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<S_packed_vec3, 16>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -2882,7 +2882,7 @@
}
%tint_load_array_packed_vec3 = func(%from:ptr<storage, array<S_packed_vec3, 16>, read_write>):array<S, 16> {
$B3: {
- %15:ptr<function, array<S, 16>, read_write> = var
+ %15:ptr<function, array<S, 16>, read_write> = var undef
loop [i: $B4, b: $B5, c: $B6] { # loop_1
$B4: { # initializer
next_iteration 0u # -> $B5
@@ -2922,7 +2922,7 @@
}
%tint_load_array_packed_vec3_1 = func(%from_2:ptr<storage, array<array<tint_packed_vec3_f32_array_element, 2>, 11>, read_write>):array<mat2x3<f32>, 11> { # %from_2: 'from'
$B9: {
- %33:ptr<function, array<mat2x3<f32>, 11>, read_write> = var
+ %33:ptr<function, array<mat2x3<f32>, 11>, read_write> = var undef
loop [i: $B10, b: $B11, c: $B12] { # loop_2
$B10: { # initializer
next_iteration 0u # -> $B11
@@ -3049,7 +3049,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -3073,7 +3073,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():void {
@@ -3127,7 +3127,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, mat4x3<f32>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, mat4x3<f32>, read_write> = var undef @binding_point(0, 0)
}
%bar = func(%mat:ptr<storage, mat4x3<f32>, read_write>, %col:ptr<storage, vec3<f32>, read_write>):void {
@@ -3157,7 +3157,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write> = var undef @binding_point(0, 0)
}
%bar = func(%mat:ptr<storage, array<tint_packed_vec3_f32_array_element, 4>, read_write>, %col:ptr<storage, __packed_vec3<f32>, read_write>):void {
@@ -3200,7 +3200,7 @@
auto* src = R"(
$B1: { # root
- %v:ptr<storage, array<vec3<f32>>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<vec3<f32>>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -3218,7 +3218,7 @@
}
$B1: { # root
- %v:ptr<storage, array<tint_packed_vec3_f32_array_element>, read_write> = var @binding_point(0, 0)
+ %v:ptr<storage, array<tint_packed_vec3_f32_array_element>, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -3254,9 +3254,9 @@
auto* src = R"(
$B1: { # root
- %u:ptr<uniform, array<vec3<f32>, 2>, read> = var @binding_point(0, 0)
- %s:ptr<storage, array<vec3<f32>, 2>, read_write> = var @binding_point(0, 1)
- %w:ptr<workgroup, array<vec3<f32>, 2>, read_write> = var
+ %u:ptr<uniform, array<vec3<f32>, 2>, read> = var undef @binding_point(0, 0)
+ %s:ptr<storage, array<vec3<f32>, 2>, read_write> = var undef @binding_point(0, 1)
+ %w:ptr<workgroup, array<vec3<f32>, 2>, read_write> = var undef
}
%foo = func():void {
@@ -3279,9 +3279,9 @@
}
$B1: { # root
- %u:ptr<uniform, array<tint_packed_vec3_f32_array_element, 2>, read> = var @binding_point(0, 0)
- %s:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var @binding_point(0, 1)
- %w:ptr<workgroup, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var
+ %u:ptr<uniform, array<tint_packed_vec3_f32_array_element, 2>, read> = var undef @binding_point(0, 0)
+ %s:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef @binding_point(0, 1)
+ %w:ptr<workgroup, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef
}
%foo = func():void {
@@ -3354,8 +3354,8 @@
auto* src = R"(
$B1: { # root
- %s:ptr<storage, array<vec3<f32>, 2>, read_write> = var @binding_point(0, 0)
- %w:ptr<workgroup, array<vec3<f32>, 2>, read_write> = var
+ %s:ptr<storage, array<vec3<f32>, 2>, read_write> = var undef @binding_point(0, 0)
+ %w:ptr<workgroup, array<vec3<f32>, 2>, read_write> = var undef
}
%foo = func():void {
@@ -3374,8 +3374,8 @@
}
$B1: { # root
- %s:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var @binding_point(0, 0)
- %w:ptr<workgroup, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var
+ %s:ptr<storage, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef @binding_point(0, 0)
+ %w:ptr<workgroup, array<tint_packed_vec3_f32_array_element, 2>, read_write> = var undef
}
%foo = func():void {
@@ -3448,9 +3448,9 @@
}
$B1: { # root
- %u:ptr<uniform, S, read> = var @binding_point(0, 0)
- %s:ptr<storage, S, read_write> = var @binding_point(0, 1)
- %w:ptr<workgroup, S, read_write> = var
+ %u:ptr<uniform, S, read> = var undef @binding_point(0, 0)
+ %s:ptr<storage, S, read_write> = var undef @binding_point(0, 1)
+ %w:ptr<workgroup, S, read_write> = var undef
}
%foo = func():void {
@@ -3479,9 +3479,9 @@
}
$B1: { # root
- %u:ptr<uniform, S_packed_vec3, read> = var @binding_point(0, 0)
- %s:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 1)
- %w:ptr<workgroup, S_packed_vec3, read_write> = var
+ %u:ptr<uniform, S_packed_vec3, read> = var undef @binding_point(0, 0)
+ %s:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 1)
+ %w:ptr<workgroup, S_packed_vec3, read_write> = var undef
}
%foo = func():void {
@@ -3561,8 +3561,8 @@
}
$B1: { # root
- %s:ptr<storage, S, read_write> = var @binding_point(0, 0)
- %w:ptr<workgroup, S, read_write> = var
+ %s:ptr<storage, S, read_write> = var undef @binding_point(0, 0)
+ %w:ptr<workgroup, S, read_write> = var undef
}
%foo = func():void {
@@ -3587,8 +3587,8 @@
}
$B1: { # root
- %s:ptr<storage, S_packed_vec3, read_write> = var @binding_point(0, 0)
- %w:ptr<workgroup, S_packed_vec3, read_write> = var
+ %s:ptr<storage, S_packed_vec3, read_write> = var undef @binding_point(0, 0)
+ %w:ptr<workgroup, S_packed_vec3, read_write> = var undef
}
%foo = func():void {
@@ -3652,7 +3652,7 @@
}
$B1: { # root
- %v:ptr<workgroup, S, read_write> = var
+ %v:ptr<workgroup, S, read_write> = var undef
}
%foo = func():u32 {
@@ -3677,7 +3677,7 @@
}
$B1: { # root
- %v:ptr<workgroup, S_packed_vec3, read_write> = var
+ %v:ptr<workgroup, S_packed_vec3, read_write> = var undef
}
%foo = func():u32 {
@@ -3717,7 +3717,7 @@
}
$B1: { # root
- %v:ptr<workgroup, S, read_write> = var
+ %v:ptr<workgroup, S, read_write> = var undef
}
%foo = func():u32 {
@@ -3743,7 +3743,7 @@
}
$B1: { # root
- %v:ptr<workgroup, S_packed_vec3, read_write> = var
+ %v:ptr<workgroup, S_packed_vec3, read_write> = var undef
}
%foo = func():u32 {
diff --git a/src/tint/lang/msl/writer/raise/shader_io_test.cc b/src/tint/lang/msl/writer/raise/shader_io_test.cc
index edabcb6..3e3f462 100644
--- a/src/tint/lang/msl/writer/raise/shader_io_test.cc
+++ b/src/tint/lang/msl/writer/raise/shader_io_test.cc
@@ -437,7 +437,7 @@
%foo = @vertex func():foo_outputs {
$B2: {
%4:vec4<f32> = call %foo_inner
- %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var undef
%6:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %6, %4
%7:foo_outputs = load %tint_wrapper_result
@@ -485,7 +485,7 @@
%foo = @fragment func():foo_outputs {
$B2: {
%4:vec4<f32> = call %foo_inner
- %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var undef
%6:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %6, %4
%7:foo_outputs = load %tint_wrapper_result
@@ -595,7 +595,7 @@
%6:vec4<f32> = access %5, 0u
%7:f32 = access %5, 1u
%8:f32 = access %5, 2u
- %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var undef
%10:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %10, %6
%11:ptr<function, f32, read_write> = access %tint_wrapper_result, 1u
@@ -687,7 +687,7 @@
%4:Output = call %foo_inner
%5:f32 = access %4, 0u
%6:f32 = access %4, 1u
- %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var undef
%8:ptr<function, f32, read_write> = access %tint_wrapper_result, 0u
store %8, %5
%9:ptr<function, f32, read_write> = access %tint_wrapper_result, 1u
@@ -826,7 +826,7 @@
%11:Interface = call %vert_inner
%12:vec4<f32> = access %11, 0u
%13:vec4<f32> = access %11, 1u
- %tint_wrapper_result:ptr<function, vert_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, vert_outputs, read_write> = var undef
%15:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %15, %12
%16:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 1u
@@ -840,7 +840,7 @@
%21:vec4<f32> = access %inputs_1, 0u
%22:Interface = construct %Interface_position, %21
%23:vec4<f32> = call %frag_inner, %22
- %tint_wrapper_result_1:ptr<function, frag_outputs, read_write> = var # %tint_wrapper_result_1: 'tint_wrapper_result'
+ %tint_wrapper_result_1:ptr<function, frag_outputs, read_write> = var undef # %tint_wrapper_result_1: 'tint_wrapper_result'
%25:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result_1, 0u
store %25, %23
%26:frag_outputs = load %tint_wrapper_result_1
@@ -903,7 +903,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, read> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, read> = var undef @binding_point(0, 0)
}
%vert = @vertex func():Outputs {
@@ -927,7 +927,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, read> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, read> = var undef @binding_point(0, 0)
}
%vert_inner = func():Outputs {
@@ -941,7 +941,7 @@
%5:Outputs = call %vert_inner
%6:vec4<f32> = access %5, 0u
%7:vec4<f32> = access %5, 1u
- %tint_wrapper_result:ptr<function, vert_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, vert_outputs, read_write> = var undef
%9:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %9, %6
%10:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 1u
@@ -1009,7 +1009,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, write> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, write> = var undef @binding_point(0, 0)
}
%frag = @fragment func():void {
@@ -1029,7 +1029,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, write> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, write> = var undef @binding_point(0, 0)
}
%frag = @fragment func():void {
@@ -1081,7 +1081,7 @@
%foo = @vertex func():foo_outputs {
$B2: {
%4:vec4<f32> = call %foo_inner
- %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var undef
%6:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %6, %4
%7:ptr<function, f32, read_write> = access %tint_wrapper_result, 1u
@@ -1208,7 +1208,7 @@
%4:Outputs = call %foo_inner
%5:vec4<f32> = access %4, 0u
%6:u32 = access %4, 1u
- %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var undef
%8:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %8, %5
%9:ptr<function, u32, read_write> = access %tint_wrapper_result, 1u
@@ -1257,7 +1257,7 @@
%foo = @fragment func():foo_outputs {
$B2: {
%3:vec4<f32> = call %foo_inner
- %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var undef
%5:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %5, %3
%6:ptr<function, u32, read_write> = access %tint_wrapper_result, 1u
@@ -1332,7 +1332,7 @@
%5:vec4<f32> = access %4, 0u
%6:u32 = access %4, 1u
%7:u32 = and %6, 12345678u
- %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var
+ %tint_wrapper_result:ptr<function, foo_outputs, read_write> = var undef
%9:ptr<function, vec4<f32>, read_write> = access %tint_wrapper_result, 0u
store %9, %5
%10:ptr<function, u32, read_write> = access %tint_wrapper_result, 1u
diff --git a/src/tint/lang/msl/writer/raise/simd_ballot_test.cc b/src/tint/lang/msl/writer/raise/simd_ballot_test.cc
index c026411..baa2f1b 100644
--- a/src/tint/lang/msl/writer/raise/simd_ballot_test.cc
+++ b/src/tint/lang/msl/writer/raise/simd_ballot_test.cc
@@ -65,7 +65,7 @@
auto* expect = R"(
$B1: { # root
- %tint_subgroup_size_mask:ptr<private, vec2<u32>, read_write> = var
+ %tint_subgroup_size_mask:ptr<private, vec2<u32>, read_write> = var undef
}
%foo = @fragment func(%user_subgroup_size:u32 [@location(0)], %tint_subgroup_size:u32 [@subgroup_size]):void {
@@ -118,7 +118,7 @@
auto* expect = R"(
$B1: { # root
- %tint_subgroup_size_mask:ptr<private, vec2<u32>, read_write> = var
+ %tint_subgroup_size_mask:ptr<private, vec2<u32>, read_write> = var undef
}
%foo = @fragment func(%tint_subgroup_size:u32 [@subgroup_size]):void {
@@ -202,7 +202,7 @@
auto* expect = R"(
$B1: { # root
- %tint_subgroup_size_mask:ptr<private, vec2<u32>, read_write> = var
+ %tint_subgroup_size_mask:ptr<private, vec2<u32>, read_write> = var undef
}
%foo = func(%pred:bool):vec4<u32> {
@@ -282,7 +282,7 @@
auto* expect = R"(
$B1: { # root
- %tint_subgroup_size_mask:ptr<private, vec2<u32>, read_write> = var
+ %tint_subgroup_size_mask:ptr<private, vec2<u32>, read_write> = var undef
}
%foo = @fragment func(%tint_subgroup_size:u32 [@subgroup_size]):void {
diff --git a/src/tint/lang/spirv/reader/import_glsl_std450_test.cc b/src/tint/lang/spirv/reader/import_glsl_std450_test.cc
index b4db5e5..8c55c24 100644
--- a/src/tint/lang/spirv/reader/import_glsl_std450_test.cc
+++ b/src/tint/lang/spirv/reader/import_glsl_std450_test.cc
@@ -862,7 +862,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, tint_symbol_2, read_write> = var
+ %2:ptr<function, tint_symbol_2, read_write> = var undef
%3:__modf_result_f32 = modf 50.0f
%4:f32 = access %3, 0u
%5:f32 = access %3, 1u
@@ -957,7 +957,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, tint_symbol_2, read_write> = var
+ %2:ptr<function, tint_symbol_2, read_write> = var undef
%3:__frexp_result_f32 = frexp 50.0f
%4:f32 = access %3, 0u
%5:i32 = access %3, 1u
diff --git a/src/tint/lang/spirv/reader/lower/builtins_test.cc b/src/tint/lang/spirv/reader/lower/builtins_test.cc
index 3494df5..91d6f1f 100644
--- a/src/tint/lang/spirv/reader/lower/builtins_test.cc
+++ b/src/tint/lang/spirv/reader/lower/builtins_test.cc
@@ -2620,7 +2620,7 @@
auto src = R"(
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
%3:f32 = spirv.modf 50.0f, %2
%4:f32 = mul %3, %3
%5:f32 = let %4
@@ -2640,7 +2640,7 @@
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
%3:__modf_result_f32 = modf 50.0f
%4:f32 = access %3, 1u
store %2, %4
@@ -2668,7 +2668,7 @@
auto src = R"(
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec2<f32>, read_write> = var
+ %2:ptr<function, vec2<f32>, read_write> = var undef
%3:vec2<f32> = spirv.modf vec2<f32>(50.0f), %2
%4:vec2<f32> = mul %3, %3
%5:vec2<f32> = let %4
@@ -2688,7 +2688,7 @@
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec2<f32>, read_write> = var
+ %2:ptr<function, vec2<f32>, read_write> = var undef
%3:__modf_result_vec2_f32 = modf vec2<f32>(50.0f)
%4:vec2<f32> = access %3, 1u
store %2, %4
@@ -2715,7 +2715,7 @@
auto src = R"(
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:f32 = spirv.frexp 50.0f, %2
%4:f32 = mul %3, %3
%5:f32 = let %4
@@ -2735,7 +2735,7 @@
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:__frexp_result_f32 = frexp 50.0f
%4:i32 = access %3, 1u
store %2, %4
@@ -2762,7 +2762,7 @@
auto src = R"(
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, u32, read_write> = var
+ %2:ptr<function, u32, read_write> = var undef
%3:f32 = spirv.frexp 50.0f, %2
%4:f32 = mul %3, %3
%5:f32 = let %4
@@ -2782,7 +2782,7 @@
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, u32, read_write> = var
+ %2:ptr<function, u32, read_write> = var undef
%3:__frexp_result_f32 = frexp 50.0f
%4:i32 = access %3, 1u
%5:u32 = bitcast %4
@@ -2811,7 +2811,7 @@
auto src = R"(
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec2<i32>, read_write> = var
+ %2:ptr<function, vec2<i32>, read_write> = var undef
%3:vec2<f32> = spirv.frexp vec2<f32>(50.0f), %2
%4:vec2<f32> = mul %3, %3
%5:vec2<f32> = let %4
@@ -2831,7 +2831,7 @@
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec2<i32>, read_write> = var
+ %2:ptr<function, vec2<i32>, read_write> = var undef
%3:__frexp_result_vec2_f32 = frexp vec2<f32>(50.0f)
%4:vec2<i32> = access %3, 1u
store %2, %4
@@ -2859,7 +2859,7 @@
auto src = R"(
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec2<u32>, read_write> = var
+ %2:ptr<function, vec2<u32>, read_write> = var undef
%3:vec2<f32> = spirv.frexp vec2<f32>(50.0f), %2
%4:vec2<f32> = mul %3, %3
%5:vec2<f32> = let %4
@@ -2879,7 +2879,7 @@
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec2<u32>, read_write> = var
+ %2:ptr<function, vec2<u32>, read_write> = var undef
%3:__frexp_result_vec2_f32 = frexp vec2<f32>(50.0f)
%4:vec2<i32> = access %3, 1u
%5:vec2<u32> = bitcast %4
diff --git a/src/tint/lang/spirv/reader/lower/shader_io_test.cc b/src/tint/lang/spirv/reader/lower/shader_io_test.cc
index 9b06a0b..35174f3 100644
--- a/src/tint/lang/spirv/reader/lower/shader_io_test.cc
+++ b/src/tint/lang/spirv/reader/lower/shader_io_test.cc
@@ -125,10 +125,10 @@
auto* src = R"(
$B1: { # root
- %front_facing:ptr<__in, bool, read> = var @builtin(front_facing)
- %position:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %color1:ptr<__in, f32, read> = var @location(0)
- %color2:ptr<__in, f32, read> = var @location(1) @interpolate(linear, sample)
+ %front_facing:ptr<__in, bool, read> = var undef @builtin(front_facing)
+ %position:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %color1:ptr<__in, f32, read> = var undef @location(0)
+ %color2:ptr<__in, f32, read> = var undef @location(1) @interpolate(linear, sample)
}
%foo = @fragment func():void {
@@ -236,10 +236,10 @@
auto* src = R"(
$B1: { # root
- %front_facing:ptr<__in, bool, read> = var @builtin(front_facing)
- %position:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %color1:ptr<__in, f32, read> = var @location(0)
- %color2:ptr<__in, f32, read> = var @location(1) @interpolate(linear, sample)
+ %front_facing:ptr<__in, bool, read> = var undef @builtin(front_facing)
+ %position:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %color1:ptr<__in, f32, read> = var undef @location(0)
+ %color2:ptr<__in, f32, read> = var undef @location(1) @interpolate(linear, sample)
}
%foo = func(%existing_param:f32):void {
@@ -351,9 +351,9 @@
auto* src = R"(
$B1: { # root
- %gid:ptr<__in, vec3<u32>, read> = var @builtin(global_invocation_id)
- %lid:ptr<__in, vec3<u32>, read> = var @builtin(local_invocation_id)
- %group_id:ptr<__in, vec3<u32>, read> = var @builtin(workgroup_id)
+ %gid:ptr<__in, vec3<u32>, read> = var undef @builtin(global_invocation_id)
+ %lid:ptr<__in, vec3<u32>, read> = var undef @builtin(local_invocation_id)
+ %group_id:ptr<__in, vec3<u32>, read> = var undef @builtin(workgroup_id)
}
%foo = func():void {
@@ -442,9 +442,9 @@
auto* src = R"(
$B1: { # root
- %gid:ptr<__in, vec3<u32>, read> = var @builtin(global_invocation_id)
- %lid:ptr<__in, vec3<u32>, read> = var @builtin(local_invocation_id)
- %group_id:ptr<__in, vec3<u32>, read> = var @builtin(workgroup_id)
+ %gid:ptr<__in, vec3<u32>, read> = var undef @builtin(global_invocation_id)
+ %lid:ptr<__in, vec3<u32>, read> = var undef @builtin(local_invocation_id)
+ %group_id:ptr<__in, vec3<u32>, read> = var undef @builtin(workgroup_id)
}
%main1 = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -538,9 +538,9 @@
auto* src = R"(
$B1: { # root
- %gid:ptr<__in, vec3<u32>, read> = var @builtin(global_invocation_id)
- %lid:ptr<__in, vec3<u32>, read> = var @builtin(local_invocation_id)
- %group_id:ptr<__in, vec3<u32>, read> = var @builtin(workgroup_id)
+ %gid:ptr<__in, vec3<u32>, read> = var undef @builtin(global_invocation_id)
+ %lid:ptr<__in, vec3<u32>, read> = var undef @builtin(local_invocation_id)
+ %group_id:ptr<__in, vec3<u32>, read> = var undef @builtin(workgroup_id)
}
%foo = func():void {
@@ -612,7 +612,7 @@
auto* src = R"(
$B1: { # root
- %lid:ptr<__in, vec3<u32>, read> = var @builtin(local_invocation_id)
+ %lid:ptr<__in, vec3<u32>, read> = var undef @builtin(local_invocation_id)
}
%foo = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -679,7 +679,7 @@
}
$B1: { # root
- %colors:ptr<__in, Colors, read> = var
+ %colors:ptr<__in, Colors, read> = var undef
}
%foo = func():void {
@@ -782,7 +782,7 @@
}
$B1: { # root
- %colors:ptr<__in, Colors, read> = var @location(1)
+ %colors:ptr<__in, Colors, read> = var undef @location(1)
}
%foo = func():void {
@@ -879,7 +879,7 @@
}
$B1: { # root
- %colors:ptr<__in, Colors, read> = var @interpolate(perspective, centroid)
+ %colors:ptr<__in, Colors, read> = var undef @interpolate(perspective, centroid)
}
%foo = func():void {
@@ -970,7 +970,7 @@
}
$B1: { # root
- %colors:ptr<__in, Colors, read> = var
+ %colors:ptr<__in, Colors, read> = var undef
}
%foo = func():void {
@@ -1035,7 +1035,7 @@
auto* src = R"(
$B1: { # root
- %position:ptr<__out, vec4<f32>, read_write> = var @builtin(position)
+ %position:ptr<__out, vec4<f32>, read_write> = var undef @builtin(position)
}
%foo = @vertex func():void {
@@ -1049,7 +1049,7 @@
auto* expect = R"(
$B1: { # root
- %position:ptr<private, vec4<f32>, read_write> = var
+ %position:ptr<private, vec4<f32>, read_write> = var undef
}
%foo_inner = func():void {
@@ -1090,7 +1090,7 @@
auto* src = R"(
$B1: { # root
- %position:ptr<__out, vec4<f32>, read_write> = var @invariant @builtin(position)
+ %position:ptr<__out, vec4<f32>, read_write> = var undef @invariant @builtin(position)
}
%foo = @vertex func():void {
@@ -1104,7 +1104,7 @@
auto* expect = R"(
$B1: { # root
- %position:ptr<private, vec4<f32>, read_write> = var
+ %position:ptr<private, vec4<f32>, read_write> = var undef
}
%foo_inner = func():void {
@@ -1144,7 +1144,7 @@
auto* src = R"(
$B1: { # root
- %color:ptr<__out, vec4<f32>, read_write> = var @location(1)
+ %color:ptr<__out, vec4<f32>, read_write> = var undef @location(1)
}
%foo = @fragment func():void {
@@ -1158,7 +1158,7 @@
auto* expect = R"(
$B1: { # root
- %color:ptr<private, vec4<f32>, read_write> = var
+ %color:ptr<private, vec4<f32>, read_write> = var undef
}
%foo_inner = func():void {
@@ -1200,7 +1200,7 @@
auto* src = R"(
$B1: { # root
- %color:ptr<__out, vec4<f32>, read_write> = var @location(1) @interpolate(perspective, centroid)
+ %color:ptr<__out, vec4<f32>, read_write> = var undef @location(1) @interpolate(perspective, centroid)
}
%foo = @fragment func():void {
@@ -1214,7 +1214,7 @@
auto* expect = R"(
$B1: { # root
- %color:ptr<private, vec4<f32>, read_write> = var
+ %color:ptr<private, vec4<f32>, read_write> = var undef
}
%foo_inner = func():void {
@@ -1273,9 +1273,9 @@
auto* src = R"(
$B1: { # root
- %position:ptr<__out, vec4<f32>, read_write> = var @invariant @builtin(position)
- %color1:ptr<__out, vec4<f32>, read_write> = var @location(1)
- %color2:ptr<__out, vec4<f32>, read_write> = var @location(1) @interpolate(perspective, centroid)
+ %position:ptr<__out, vec4<f32>, read_write> = var undef @invariant @builtin(position)
+ %color1:ptr<__out, vec4<f32>, read_write> = var undef @location(1)
+ %color2:ptr<__out, vec4<f32>, read_write> = var undef @location(1) @interpolate(perspective, centroid)
}
%foo = @vertex func():void {
@@ -1297,9 +1297,9 @@
}
$B1: { # root
- %position:ptr<private, vec4<f32>, read_write> = var
- %color1:ptr<private, vec4<f32>, read_write> = var
- %color2:ptr<private, vec4<f32>, read_write> = var
+ %position:ptr<private, vec4<f32>, read_write> = var undef
+ %color1:ptr<private, vec4<f32>, read_write> = var undef
+ %color2:ptr<private, vec4<f32>, read_write> = var undef
}
%foo_inner = func():void {
@@ -1377,8 +1377,8 @@
}
$B1: { # root
- %builtins:ptr<__out, Builtins, read_write> = var
- %colors:ptr<__out, Colors, read_write> = var
+ %builtins:ptr<__out, Builtins, read_write> = var undef
+ %colors:ptr<__out, Colors, read_write> = var undef
}
%foo = @vertex func():void {
@@ -1412,8 +1412,8 @@
}
$B1: { # root
- %builtins:ptr<private, Builtins, read_write> = var
- %colors:ptr<private, Colors, read_write> = var
+ %builtins:ptr<private, Builtins, read_write> = var undef
+ %colors:ptr<private, Colors, read_write> = var undef
}
%foo_inner = func():void {
@@ -1509,8 +1509,8 @@
}
$B1: { # root
- %builtins:ptr<__out, Builtins, read_write> = var
- %colors:ptr<__out, Colors, read_write> = var @location(1)
+ %builtins:ptr<__out, Builtins, read_write> = var undef
+ %colors:ptr<__out, Colors, read_write> = var undef @location(1)
}
%foo = @vertex func():void {
@@ -1544,8 +1544,8 @@
}
$B1: { # root
- %builtins:ptr<private, Builtins, read_write> = var
- %colors:ptr<private, Colors, read_write> = var
+ %builtins:ptr<private, Builtins, read_write> = var undef
+ %colors:ptr<private, Colors, read_write> = var undef
}
%foo_inner = func():void {
@@ -1634,8 +1634,8 @@
}
$B1: { # root
- %builtins:ptr<__out, Builtins, read_write> = var
- %colors:ptr<__out, Colors, read_write> = var @interpolate(perspective, centroid)
+ %builtins:ptr<__out, Builtins, read_write> = var undef
+ %colors:ptr<__out, Colors, read_write> = var undef @interpolate(perspective, centroid)
}
%foo = @vertex func():void {
@@ -1669,8 +1669,8 @@
}
$B1: { # root
- %builtins:ptr<private, Builtins, read_write> = var
- %colors:ptr<private, Colors, read_write> = var
+ %builtins:ptr<private, Builtins, read_write> = var undef
+ %colors:ptr<private, Colors, read_write> = var undef
}
%foo_inner = func():void {
@@ -1752,9 +1752,9 @@
auto* src = R"(
$B1: { # root
- %position:ptr<__out, vec4<f32>, read_write> = var @invariant @builtin(position)
- %color1:ptr<__out, vec4<f32>, read_write> = var @location(1)
- %color2:ptr<__out, vec4<f32>, read_write> = var @location(1) @interpolate(perspective, centroid)
+ %position:ptr<__out, vec4<f32>, read_write> = var undef @invariant @builtin(position)
+ %color1:ptr<__out, vec4<f32>, read_write> = var undef @location(1)
+ %color2:ptr<__out, vec4<f32>, read_write> = var undef @location(1) @interpolate(perspective, centroid)
}
%main1 = @vertex func():void {
@@ -1792,9 +1792,9 @@
}
$B1: { # root
- %position:ptr<private, vec4<f32>, read_write> = var
- %color1:ptr<private, vec4<f32>, read_write> = var
- %color2:ptr<private, vec4<f32>, read_write> = var
+ %position:ptr<private, vec4<f32>, read_write> = var undef
+ %color1:ptr<private, vec4<f32>, read_write> = var undef
+ %color2:ptr<private, vec4<f32>, read_write> = var undef
}
%main1_inner = func():void {
@@ -1869,7 +1869,7 @@
auto* src = R"(
$B1: { # root
- %color:ptr<__out, vec4<f32>, read_write> = var @location(1)
+ %color:ptr<__out, vec4<f32>, read_write> = var undef @location(1)
}
%foo = @fragment func():void {
@@ -1886,7 +1886,7 @@
auto* expect = R"(
$B1: { # root
- %color:ptr<private, vec4<f32>, read_write> = var
+ %color:ptr<private, vec4<f32>, read_write> = var undef
}
%foo_inner = func():void {
@@ -1932,7 +1932,7 @@
auto* src = R"(
$B1: { # root
- %color:ptr<__out, vec4<f32>, read_write> = var @location(1)
+ %color:ptr<__out, vec4<f32>, read_write> = var undef @location(1)
}
%foo = @fragment func():void {
@@ -1949,7 +1949,7 @@
auto* expect = R"(
$B1: { # root
- %color:ptr<private, vec4<f32>, read_write> = var
+ %color:ptr<private, vec4<f32>, read_write> = var undef
}
%foo_inner = func():void {
@@ -2017,10 +2017,10 @@
auto* src = R"(
$B1: { # root
- %position:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %color_in:ptr<__in, vec4<f32>, read> = var @location(0)
- %color_out_1:ptr<__out, vec4<f32>, read_write> = var @location(1)
- %color_out_2:ptr<__out, vec4<f32>, read_write> = var @location(2)
+ %position:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %color_in:ptr<__in, vec4<f32>, read> = var undef @location(0)
+ %color_out_1:ptr<__out, vec4<f32>, read_write> = var undef @location(1)
+ %color_out_2:ptr<__out, vec4<f32>, read_write> = var undef @location(2)
}
%foo = @fragment func():void {
@@ -2042,8 +2042,8 @@
}
$B1: { # root
- %color_out_1:ptr<private, vec4<f32>, read_write> = var
- %color_out_2:ptr<private, vec4<f32>, read_write> = var
+ %color_out_1:ptr<private, vec4<f32>, read_write> = var undef
+ %color_out_2:ptr<private, vec4<f32>, read_write> = var undef
}
%foo_inner = func(%position:vec4<f32>, %color_in:vec4<f32>):void {
@@ -2097,8 +2097,8 @@
auto* src = R"(
$B1: { # root
- %mask_in:ptr<__in, array<u32, 1>, read> = var @builtin(sample_mask)
- %mask_out:ptr<__out, array<u32, 1>, read_write> = var @builtin(sample_mask)
+ %mask_in:ptr<__in, array<u32, 1>, read> = var undef @builtin(sample_mask)
+ %mask_out:ptr<__out, array<u32, 1>, read_write> = var undef @builtin(sample_mask)
}
%foo = @fragment func():void {
@@ -2116,7 +2116,7 @@
auto* expect = R"(
$B1: { # root
- %mask_out:ptr<private, array<u32, 1>, read_write> = var
+ %mask_out:ptr<private, array<u32, 1>, read_write> = var undef
}
%foo_inner = func(%mask_in:array<u32, 1>):void {
@@ -2176,7 +2176,7 @@
}
$B1: { # root
- %builtins:ptr<__out, Builtins, read_write> = var
+ %builtins:ptr<__out, Builtins, read_write> = var undef
}
%foo = @vertex func():void {
@@ -2198,7 +2198,7 @@
}
$B1: { # root
- %builtins:ptr<private, Builtins, read_write> = var
+ %builtins:ptr<private, Builtins, read_write> = var undef
}
%foo_inner = func():void {
@@ -2268,7 +2268,7 @@
}
$B1: { # root
- %builtins:ptr<__out, Builtins, read_write> = var
+ %builtins:ptr<__out, Builtins, read_write> = var undef
}
%foo = @vertex func():void {
@@ -2290,7 +2290,7 @@
}
$B1: { # root
- %builtins:ptr<private, Builtins, read_write> = var
+ %builtins:ptr<private, Builtins, read_write> = var undef
}
%foo_inner = func():void {
@@ -2349,7 +2349,7 @@
}
$B1: { # root
- %builtins:ptr<__out, Builtins, read_write> = var
+ %builtins:ptr<__out, Builtins, read_write> = var undef
}
%foo = @vertex func():void {
@@ -2376,7 +2376,7 @@
}
$B1: { # root
- %builtins:ptr<private, Builtins, read_write> = var
+ %builtins:ptr<private, Builtins, read_write> = var undef
}
%foo_inner = func():void {
diff --git a/src/tint/lang/spirv/reader/lower/vector_element_pointer_test.cc b/src/tint/lang/spirv/reader/lower/vector_element_pointer_test.cc
index 710560f..e9bb764 100644
--- a/src/tint/lang/spirv/reader/lower/vector_element_pointer_test.cc
+++ b/src/tint/lang/spirv/reader/lower/vector_element_pointer_test.cc
@@ -76,7 +76,7 @@
auto* src = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %vec, 2u
ret
}
@@ -87,7 +87,7 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
ret
}
}
@@ -110,7 +110,7 @@
auto* src = R"(
%foo = func():u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %vec, 2u
%4:u32 = load %3
ret %4
@@ -122,7 +122,7 @@
auto* expect = R"(
%foo = func():u32 {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%3:u32 = load_vector_element %vec, 2u
ret %3
}
@@ -146,7 +146,7 @@
auto* src = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %vec, 2u
store %3, 42u
ret
@@ -158,7 +158,7 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
store_vector_element %vec, 2u, 42u
ret
}
@@ -185,12 +185,12 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
$B2: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%4:u32 = load %dyn_index
%5:ptr<function, u32, read_write> = access %vec, %4
store %5, 42u
@@ -202,12 +202,12 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
$B2: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%4:u32 = load %dyn_index
store_vector_element %vec, %4, 42u
ret
@@ -234,7 +234,7 @@
auto* src = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %vec, 2u
%4:u32 = load %3
%5:u32 = add %4, 1u
@@ -248,7 +248,7 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %vec:ptr<function, vec4<u32>, read_write> = var
+ %vec:ptr<function, vec4<u32>, read_write> = var undef
%3:u32 = load_vector_element %vec, 2u
%4:u32 = add %3, 1u
store_vector_element %vec, 2u, %4
@@ -274,7 +274,7 @@
auto* src = R"(
%foo = func():void {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%3:ptr<function, f32, read_write> = access %mat, 1u, 2u
store %3, 42.0f
ret
@@ -286,7 +286,7 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %mat:ptr<function, mat4x4<f32>, read_write> = var
+ %mat:ptr<function, mat4x4<f32>, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %mat, 1u
store_vector_element %3, 2u, 42.0f
ret
@@ -311,7 +311,7 @@
auto* src = R"(
%foo = func():void {
$B1: {
- %arr:ptr<function, array<vec4<f32>, 4>, read_write> = var
+ %arr:ptr<function, array<vec4<f32>, 4>, read_write> = var undef
%3:ptr<function, f32, read_write> = access %arr, 1u, 2u
store %3, 42.0f
ret
@@ -323,7 +323,7 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %arr:ptr<function, array<vec4<f32>, 4>, read_write> = var
+ %arr:ptr<function, array<vec4<f32>, 4>, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %arr, 1u
store_vector_element %3, 2u, 42.0f
ret
@@ -351,12 +351,12 @@
auto* src = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
$B2: {
- %arr:ptr<function, array<vec4<f32>, 4>, read_write> = var
+ %arr:ptr<function, array<vec4<f32>, 4>, read_write> = var undef
%4:u32 = load %dyn_index
%5:ptr<function, f32, read_write> = access %arr, %4, 2u
store %5, 42.0f
@@ -368,12 +368,12 @@
auto* expect = R"(
$B1: { # root
- %dyn_index:ptr<uniform, u32, read> = var @binding_point(0, 0)
+ %dyn_index:ptr<uniform, u32, read> = var undef @binding_point(0, 0)
}
%foo = func():void {
$B2: {
- %arr:ptr<function, array<vec4<f32>, 4>, read_write> = var
+ %arr:ptr<function, array<vec4<f32>, 4>, read_write> = var undef
%4:u32 = load %dyn_index
%5:ptr<function, vec4<f32>, read_write> = access %arr, %4
store_vector_element %5, 2u, 42.0f
@@ -408,7 +408,7 @@
%foo = func():void {
$B1: {
- %str:ptr<function, str, read_write> = var
+ %str:ptr<function, str, read_write> = var undef
%3:ptr<function, f32, read_write> = access %str, 0u, 2u
store %3, 42.0f
ret
@@ -424,7 +424,7 @@
%foo = func():void {
$B1: {
- %str:ptr<function, str, read_write> = var
+ %str:ptr<function, str, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %str, 0u
store_vector_element %3, 2u, 42.0f
ret
@@ -460,7 +460,7 @@
%foo = func():void {
$B1: {
- %arr:ptr<function, array<str, 4>, read_write> = var
+ %arr:ptr<function, array<str, 4>, read_write> = var undef
%3:ptr<function, f32, read_write> = access %arr, 1u, 0u, 3u, 2u, 1u
store %3, 42.0f
ret
@@ -476,7 +476,7 @@
%foo = func():void {
$B1: {
- %arr:ptr<function, array<str, 4>, read_write> = var
+ %arr:ptr<function, array<str, 4>, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %arr, 1u, 0u, 3u, 2u
store_vector_element %3, 1u, 42.0f
ret
diff --git a/src/tint/lang/spirv/reader/parser/function_test.cc b/src/tint/lang/spirv/reader/parser/function_test.cc
index 218c5b3..c4df303 100644
--- a/src/tint/lang/spirv/reader/parser/function_test.cc
+++ b/src/tint/lang/spirv/reader/parser/function_test.cc
@@ -118,7 +118,7 @@
)",
R"(
$B1: { # root
- %1:ptr<__out, f32, read_write> = var @builtin(frag_depth)
+ %1:ptr<__out, f32, read_write> = var undef @builtin(frag_depth)
}
%main = @fragment func():void {
diff --git a/src/tint/lang/spirv/reader/parser/import_glsl_std450_test.cc b/src/tint/lang/spirv/reader/parser/import_glsl_std450_test.cc
index 3a031e3..35a2792 100644
--- a/src/tint/lang/spirv/reader/parser/import_glsl_std450_test.cc
+++ b/src/tint/lang/spirv/reader/parser/import_glsl_std450_test.cc
@@ -714,7 +714,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, f32, read_write> = var
+ %2:ptr<function, f32, read_write> = var undef
%3:f32 = spirv.modf 50.0f, %2
ret
}
@@ -732,7 +732,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec2<f32>, read_write> = var
+ %2:ptr<function, vec2<f32>, read_write> = var undef
%3:vec2<f32> = spirv.modf vec2<f32>(50.0f, 60.0f), %2
ret
}
@@ -750,7 +750,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:f32 = spirv.frexp 50.0f, %2
ret
}
@@ -768,7 +768,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, u32, read_write> = var
+ %2:ptr<function, u32, read_write> = var undef
%3:f32 = spirv.frexp 50.0f, %2
ret
}
@@ -786,7 +786,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec2<u32>, read_write> = var
+ %2:ptr<function, vec2<u32>, read_write> = var undef
%3:vec2<f32> = spirv.frexp vec2<f32>(50.0f, 60.0f), %2
ret
}
diff --git a/src/tint/lang/spirv/reader/parser/memory_test.cc b/src/tint/lang/spirv/reader/parser/memory_test.cc
index cf74835..4af7b87 100644
--- a/src/tint/lang/spirv/reader/parser/memory_test.cc
+++ b/src/tint/lang/spirv/reader/parser/memory_test.cc
@@ -50,7 +50,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, u32, read_write> = var
+ %2:ptr<function, u32, read_write> = var undef
%3:u32 = load %2
ret
}
@@ -78,7 +78,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec4<u32>, read_write> = var
+ %2:ptr<function, vec4<u32>, read_write> = var undef
%3:vec4<u32> = load %2
ret
}
@@ -109,7 +109,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec4<u32>, read_write> = var
+ %2:ptr<function, vec4<u32>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 2u
%4:u32 = load %3
ret
@@ -140,7 +140,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, mat3x4<f32>, read_write> = var
+ %2:ptr<function, mat3x4<f32>, read_write> = var undef
%3:mat3x4<f32> = load %2
ret
}
@@ -173,7 +173,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, mat3x4<f32>, read_write> = var
+ %2:ptr<function, mat3x4<f32>, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %2, 2u
%4:vec4<f32> = load %3
ret
@@ -203,7 +203,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, array<u32, 4>, read_write> = var
+ %2:ptr<function, array<u32, 4>, read_write> = var undef
%3:array<u32, 4> = load %2
ret
}
@@ -235,7 +235,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, array<u32, 4>, read_write> = var
+ %2:ptr<function, array<u32, 4>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 2u
%4:u32 = load %3
ret
@@ -269,7 +269,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, tint_symbol_2, read_write> = var
+ %2:ptr<function, tint_symbol_2, read_write> = var undef
%3:tint_symbol_2 = load %2
ret
}
@@ -305,7 +305,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, tint_symbol_2, read_write> = var
+ %2:ptr<function, tint_symbol_2, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 1u
%4:u32 = load %3
ret
@@ -334,7 +334,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, u32, read_write> = var
+ %2:ptr<function, u32, read_write> = var undef
store %2, 42u
ret
}
@@ -363,7 +363,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec4<u32>, read_write> = var
+ %2:ptr<function, vec4<u32>, read_write> = var undef
store %2, vec4<u32>(0u)
ret
}
@@ -395,7 +395,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec4<u32>, read_write> = var
+ %2:ptr<function, vec4<u32>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 2u
store %3, 42u
ret
@@ -427,7 +427,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, mat3x4<f32>, read_write> = var
+ %2:ptr<function, mat3x4<f32>, read_write> = var undef
store %2, mat3x4<f32>(vec4<f32>(0.0f))
ret
}
@@ -461,7 +461,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, mat3x4<f32>, read_write> = var
+ %2:ptr<function, mat3x4<f32>, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %2, 2u
store %3, vec4<f32>(0.0f)
ret
@@ -492,7 +492,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, array<u32, 4>, read_write> = var
+ %2:ptr<function, array<u32, 4>, read_write> = var undef
store %2, array<u32, 4>(0u)
ret
}
@@ -525,7 +525,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, array<u32, 4>, read_write> = var
+ %2:ptr<function, array<u32, 4>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 2u
store %3, 42u
ret
@@ -560,7 +560,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, tint_symbol_2, read_write> = var
+ %2:ptr<function, tint_symbol_2, read_write> = var undef
store %2, tint_symbol_2(0u)
ret
}
@@ -597,7 +597,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, tint_symbol_2, read_write> = var
+ %2:ptr<function, tint_symbol_2, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 1u
store %3, 42u
ret
@@ -642,7 +642,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, array<tint_symbol_4, 4>, read_write> = var
+ %2:ptr<function, array<tint_symbol_4, 4>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 1u, 2u, 3u
%4:u32 = load %3
store %3, 42u
@@ -692,7 +692,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, array<tint_symbol_4, 4>, read_write> = var
+ %2:ptr<function, array<tint_symbol_4, 4>, read_write> = var undef
%3:ptr<function, tint_symbol_4, read_write> = access %2, 1u
%4:ptr<function, array<u32, 4>, read_write> = access %3, 2u
%5:ptr<function, u32, read_write> = access %4, 3u
@@ -725,7 +725,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, u32, read_write> = var
+ %2:ptr<function, u32, read_write> = var undef
%3:u32 = load %2
ret
}
@@ -770,7 +770,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, array<tint_symbol_4, 4>, read_write> = var
+ %2:ptr<function, array<tint_symbol_4, 4>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 1i, 2u, 3i
%4:u32 = load %3
store %3, 42u
@@ -816,7 +816,7 @@
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, array<tint_symbol_4, 4>, read_write> = var
+ %2:ptr<function, array<tint_symbol_4, 4>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %2, 1u, 2u, 3u
%4:u32 = load %3
store %3, 42u
@@ -863,8 +863,8 @@
}
$B1: { # root
- %1:ptr<storage, tint_symbol_1, read> = var @binding_point(1, 2)
- %2:ptr<storage, tint_symbol_1, read_write> = var @binding_point(1, 3)
+ %1:ptr<storage, tint_symbol_1, read> = var undef @binding_point(1, 2)
+ %2:ptr<storage, tint_symbol_1, read_write> = var undef @binding_point(1, 3)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
diff --git a/src/tint/lang/spirv/reader/parser/var_test.cc b/src/tint/lang/spirv/reader/parser/var_test.cc
index 3d7edfc..3de62a5 100644
--- a/src/tint/lang/spirv/reader/parser/var_test.cc
+++ b/src/tint/lang/spirv/reader/parser/var_test.cc
@@ -49,7 +49,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, u32, read_write> = var
+ %2:ptr<function, u32, read_write> = var undef
ret
}
}
@@ -76,7 +76,7 @@
R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, u32, read_write> = var, 42u
+ %2:ptr<function, u32, read_write> = var 42u
ret
}
}
@@ -101,7 +101,7 @@
)",
R"(
$B1: { # root
- %1:ptr<private, u32, read_write> = var
+ %1:ptr<private, u32, read_write> = var undef
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -131,7 +131,7 @@
)",
R"(
$B1: { # root
- %1:ptr<private, u32, read_write> = var, 42u
+ %1:ptr<private, u32, read_write> = var 42u
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -171,7 +171,7 @@
}
$B1: { # root
- %1:ptr<storage, tint_symbol_1, read> = var @binding_point(1, 2)
+ %1:ptr<storage, tint_symbol_1, read> = var undef @binding_point(1, 2)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -210,7 +210,7 @@
}
$B1: { # root
- %1:ptr<storage, tint_symbol_1, read_write> = var @binding_point(1, 2)
+ %1:ptr<storage, tint_symbol_1, read_write> = var undef @binding_point(1, 2)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -253,8 +253,8 @@
}
$B1: { # root
- %1:ptr<storage, tint_symbol_1, read> = var @binding_point(1, 2)
- %2:ptr<storage, tint_symbol_1, read_write> = var @binding_point(1, 3)
+ %1:ptr<storage, tint_symbol_1, read> = var undef @binding_point(1, 2)
+ %2:ptr<storage, tint_symbol_1, read_write> = var undef @binding_point(1, 3)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -293,7 +293,7 @@
}
$B1: { # root
- %1:ptr<uniform, tint_symbol_1, read> = var @binding_point(1, 2)
+ %1:ptr<uniform, tint_symbol_1, read> = var undef @binding_point(1, 2)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -324,7 +324,7 @@
)",
R"(
$B1: { # root
- %1:ptr<handle, sampler, read> = var @binding_point(1, 2)
+ %1:ptr<handle, sampler, read> = var undef @binding_point(1, 2)
}
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -385,57 +385,57 @@
BuiltinCase{
"vec4f",
"FragCoord",
- "%1:ptr<__in, vec4<f32>, read> = var @builtin(position)",
+ "%1:ptr<__in, vec4<f32>, read> = var undef @builtin(position)",
},
BuiltinCase{
"bool",
"FrontFacing",
- "%1:ptr<__in, bool, read> = var @builtin(front_facing)",
+ "%1:ptr<__in, bool, read> = var undef @builtin(front_facing)",
},
BuiltinCase{
"vec3u",
"GlobalInvocationId",
- "%1:ptr<__in, vec3<u32>, read> = var @builtin(global_invocation_id)",
+ "%1:ptr<__in, vec3<u32>, read> = var undef @builtin(global_invocation_id)",
},
BuiltinCase{
"u32",
"InstanceIndex",
- "%1:ptr<__in, u32, read> = var @builtin(instance_index)",
+ "%1:ptr<__in, u32, read> = var undef @builtin(instance_index)",
},
BuiltinCase{
"vec3u",
"LocalInvocationId",
- "%1:ptr<__in, vec3<u32>, read> = var @builtin(local_invocation_id)",
+ "%1:ptr<__in, vec3<u32>, read> = var undef @builtin(local_invocation_id)",
},
BuiltinCase{
"u32",
"LocalInvocationIndex",
- "%1:ptr<__in, u32, read> = var @builtin(local_invocation_index)",
+ "%1:ptr<__in, u32, read> = var undef @builtin(local_invocation_index)",
},
BuiltinCase{
"vec3u",
"NumWorkgroups",
- "%1:ptr<__in, vec3<u32>, read> = var @builtin(num_workgroups)",
+ "%1:ptr<__in, vec3<u32>, read> = var undef @builtin(num_workgroups)",
},
BuiltinCase{
"u32",
"SampleId",
- "%1:ptr<__in, u32, read> = var @builtin(sample_index)",
+ "%1:ptr<__in, u32, read> = var undef @builtin(sample_index)",
},
BuiltinCase{
"arr_u32_1",
"SampleMask",
- "%1:ptr<__in, array<u32, 1>, read> = var @builtin(sample_mask)",
+ "%1:ptr<__in, array<u32, 1>, read> = var undef @builtin(sample_mask)",
},
BuiltinCase{
"u32",
"VertexIndex",
- "%1:ptr<__in, u32, read> = var @builtin(vertex_index)",
+ "%1:ptr<__in, u32, read> = var undef @builtin(vertex_index)",
},
BuiltinCase{
"vec3u",
"WorkgroupId",
- "%1:ptr<__in, vec3<u32>, read> = var @builtin(workgroup_id)",
+ "%1:ptr<__in, vec3<u32>, read> = var undef @builtin(workgroup_id)",
}),
PrintBuiltinCase);
@@ -477,17 +477,17 @@
BuiltinCase{
"f32",
"PointSize",
- "%1:ptr<__out, f32, read_write> = var @builtin(__point_size)",
+ "%1:ptr<__out, f32, read_write> = var undef @builtin(__point_size)",
},
BuiltinCase{
"vec4f",
"Position",
- "%1:ptr<__out, vec4<f32>, read_write> = var @builtin(position)",
+ "%1:ptr<__out, vec4<f32>, read_write> = var undef @builtin(position)",
},
BuiltinCase{
"arr_u32_1",
"SampleMask",
- "%1:ptr<__out, array<u32, 1>, read_write> = var @builtin(sample_mask)",
+ "%1:ptr<__out, array<u32, 1>, read_write> = var undef @builtin(sample_mask)",
}),
PrintBuiltinCase);
@@ -512,7 +512,7 @@
OpReturn
OpFunctionEnd
)",
- "%1:ptr<__out, vec4<f32>, read_write> = var @invariant @builtin(position)");
+ "%1:ptr<__out, vec4<f32>, read_write> = var undef @invariant @builtin(position)");
}
struct LocationCase {
@@ -579,33 +579,33 @@
testing::Values(
LocationCase{
"OpDecorate %var Location 1 ",
- "var @location(1)",
+ "var undef @location(1)",
},
LocationCase{
"OpDecorate %var Location 2 "
"OpDecorate %var NoPerspective ",
- "var @location(2) @interpolate(linear, center)",
+ "var undef @location(2) @interpolate(linear, center)",
},
LocationCase{
"OpDecorate %var Location 3 "
"OpDecorate %var Flat ",
- "var @location(3) @interpolate(flat, center)",
+ "var undef @location(3) @interpolate(flat, center)",
},
LocationCase{
"OpDecorate %var Location 4 "
"OpDecorate %var Centroid ",
- "var @location(4) @interpolate(perspective, centroid)",
+ "var undef @location(4) @interpolate(perspective, centroid)",
},
LocationCase{
"OpDecorate %var Location 5 "
"OpDecorate %var Sample ",
- "var @location(5) @interpolate(perspective, sample)",
+ "var undef @location(5) @interpolate(perspective, sample)",
},
LocationCase{
"OpDecorate %var Location 6 "
"OpDecorate %var NoPerspective "
"OpDecorate %var Centroid ",
- "var @location(6) @interpolate(linear, centroid)",
+ "var undef @location(6) @interpolate(linear, centroid)",
}));
} // namespace
diff --git a/src/tint/lang/spirv/reader/reader_test.cc b/src/tint/lang/spirv/reader/reader_test.cc
index 8ee7d81..580e8e1 100644
--- a/src/tint/lang/spirv/reader/reader_test.cc
+++ b/src/tint/lang/spirv/reader/reader_test.cc
@@ -84,7 +84,7 @@
EXPECT_EQ(got, R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec4<u32>, read_write> = var
+ %2:ptr<function, vec4<u32>, read_write> = var undef
%3:u32 = load_vector_element %2, 2u
ret
}
@@ -118,7 +118,7 @@
EXPECT_EQ(got, R"(
%main = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %2:ptr<function, vec4<u32>, read_write> = var
+ %2:ptr<function, vec4<u32>, read_write> = var undef
store_vector_element %2, 2u, 42u
ret
}
@@ -234,8 +234,8 @@
}
$B1: { # root
- %1:ptr<private, f32, read_write> = var
- %2:ptr<private, tint_symbol_2, read_write> = var
+ %1:ptr<private, f32, read_write> = var undef
+ %2:ptr<private, tint_symbol_2, read_write> = var undef
}
%main_inner = func():void {
@@ -329,9 +329,9 @@
}
$B1: { # root
- %1:ptr<private, vec4<f32>, read_write> = var
- %2:ptr<private, array<f32, 1>, read_write> = var
- %3:ptr<private, f32, read_write> = var
+ %1:ptr<private, vec4<f32>, read_write> = var undef
+ %2:ptr<private, array<f32, 1>, read_write> = var undef
+ %3:ptr<private, f32, read_write> = var undef
}
%main_inner = func():VertexOutputs {
@@ -420,7 +420,7 @@
}
$B1: { # root
- %1:ptr<private, tint_symbol_2, read_write> = var
+ %1:ptr<private, tint_symbol_2, read_write> = var undef
}
%main_inner = func():void {
@@ -483,7 +483,7 @@
ASSERT_EQ(got, Success);
EXPECT_EQ(got, R"(
$B1: { # root
- %1:ptr<private, array<u32, 1>, read_write> = var
+ %1:ptr<private, array<u32, 1>, read_write> = var undef
}
%main_inner = func(%3:array<u32, 1>):void {
@@ -579,13 +579,13 @@
}
$B1: { # root
- %1:ptr<private, vec4<f32>, read_write> = var
- %2:ptr<private, vec4<f32>, read_write> = var
+ %1:ptr<private, vec4<f32>, read_write> = var undef
+ %2:ptr<private, vec4<f32>, read_write> = var undef
}
%frag_main_inner = func():FragOutput {
$B2: {
- %output:ptr<function, FragOutput, read_write> = var, FragOutput(vec4<f32>(0.0f))
+ %output:ptr<function, FragOutput, read_write> = var FragOutput(vec4<f32>(0.0f))
%5:ptr<function, vec4<f32>, read_write> = access %output, 0u
store %5, vec4<f32>(0.5f, 0.5f, 0.5f, 1.0f)
%6:ptr<function, vec4<f32>, read_write> = access %output, 1u
diff --git a/src/tint/lang/spirv/writer/raise/builtin_polyfill_test.cc b/src/tint/lang/spirv/writer/raise/builtin_polyfill_test.cc
index 5d2637e..a217f63 100644
--- a/src/tint/lang/spirv/writer/raise/builtin_polyfill_test.cc
+++ b/src/tint/lang/spirv/writer/raise/builtin_polyfill_test.cc
@@ -73,7 +73,7 @@
}
$B1: { # root
- %var:ptr<storage, Buffer, read_write> = var @binding_point(0, 0)
+ %var:ptr<storage, Buffer, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -94,7 +94,7 @@
}
$B1: { # root
- %var:ptr<storage, Buffer, read_write> = var @binding_point(0, 0)
+ %var:ptr<storage, Buffer, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -139,7 +139,7 @@
}
$B1: { # root
- %var:ptr<storage, Buffer, read_write> = var @binding_point(0, 0)
+ %var:ptr<storage, Buffer, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -162,7 +162,7 @@
}
$B1: { # root
- %var:ptr<storage, Buffer, read_write> = var @binding_point(0, 0)
+ %var:ptr<storage, Buffer, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -209,7 +209,7 @@
}
$B1: { # root
- %var:ptr<storage, Buffer, read_write> = var @binding_point(0, 0)
+ %var:ptr<storage, Buffer, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -232,7 +232,7 @@
}
$B1: { # root
- %var:ptr<storage, Buffer, read_write> = var @binding_point(0, 0)
+ %var:ptr<storage, Buffer, read_write> = var undef @binding_point(0, 0)
}
%foo = func():u32 {
@@ -267,7 +267,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %1:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%arg1:i32):i32 {
@@ -281,7 +281,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<storage, atomic<i32>, read_write> = var @binding_point(0, 0)
+ %1:ptr<storage, atomic<i32>, read_write> = var undef @binding_point(0, 0)
}
%foo = func(%arg1:i32):i32 {
@@ -311,7 +311,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -325,7 +325,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -355,7 +355,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -369,7 +369,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -407,7 +407,7 @@
}
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%cmp:i32, %val:i32):i32 {
@@ -427,7 +427,7 @@
}
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%cmp:i32, %val:i32):i32 {
@@ -460,7 +460,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -474,7 +474,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -502,7 +502,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func():i32 {
@@ -516,7 +516,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func():i32 {
@@ -546,7 +546,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -560,7 +560,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -590,7 +590,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<u32>, read_write> = var
+ %1:ptr<workgroup, atomic<u32>, read_write> = var undef
}
%foo = func(%arg1:u32):u32 {
@@ -604,7 +604,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<u32>, read_write> = var
+ %1:ptr<workgroup, atomic<u32>, read_write> = var undef
}
%foo = func(%arg1:u32):u32 {
@@ -634,7 +634,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -648,7 +648,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -678,7 +678,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<u32>, read_write> = var
+ %1:ptr<workgroup, atomic<u32>, read_write> = var undef
}
%foo = func(%arg1:u32):u32 {
@@ -692,7 +692,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<u32>, read_write> = var
+ %1:ptr<workgroup, atomic<u32>, read_write> = var undef
}
%foo = func(%arg1:u32):u32 {
@@ -722,7 +722,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -736,7 +736,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -766,7 +766,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):void {
@@ -780,7 +780,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):void {
@@ -810,7 +810,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -824,7 +824,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -854,7 +854,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
@@ -868,7 +868,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<workgroup, atomic<i32>, read_write> = var
+ %1:ptr<workgroup, atomic<i32>, read_write> = var undef
}
%foo = func(%arg1:i32):i32 {
diff --git a/src/tint/lang/spirv/writer/raise/merge_return_test.cc b/src/tint/lang/spirv/writer/raise/merge_return_test.cc
index 3c6446c..8b71ebb 100644
--- a/src/tint/lang/spirv/writer/raise/merge_return_test.cc
+++ b/src/tint/lang/spirv/writer/raise/merge_return_test.cc
@@ -337,8 +337,8 @@
auto* expect = R"(
%foo = func(%2:bool):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
if %2 [t: $B2, f: $B3] { # if_1
$B2: { # true
store %continue_execution, false
@@ -401,8 +401,8 @@
auto* expect = R"(
%foo = func(%2:bool):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%5:i32 = if %2 [t: $B2, f: $B3] { # if_1
$B2: { # true
store %continue_execution, false
@@ -466,8 +466,8 @@
auto* expect = R"(
%foo = func(%2:bool):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%5:i32 = if %2 [t: $B2, f: $B3] { # if_1
$B2: { # true
store %continue_execution, false
@@ -715,7 +715,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):void {
@@ -738,12 +738,12 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):void {
$B2: {
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %continue_execution:ptr<function, bool, read_write> = var true
if %3 [t: $B3, f: $B4] { # if_1
$B3: { # true
store %continue_execution, false
@@ -791,7 +791,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):void {
@@ -814,12 +814,12 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):void {
$B2: {
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %continue_execution:ptr<function, bool, read_write> = var true
if %3 [t: $B3, f: $B4] { # if_1
$B3: { # true
store %continue_execution, false
@@ -879,7 +879,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%condA:bool, %condB:bool, %condC:bool):i32 {
@@ -921,13 +921,13 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%condA:bool, %condB:bool, %condC:bool):i32 {
$B2: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
if %condA [t: $B3, f: $B4] { # if_1
$B3: { # true
store %continue_execution, false
@@ -1022,7 +1022,7 @@
});
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%condA:bool, %condB:bool, %condC:bool):i32 {
@@ -1060,13 +1060,13 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%condA:bool, %condB:bool, %condC:bool):i32 {
$B2: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
if %condA [t: $B3, f: $B4] { # if_1
$B3: { # true
store %continue_execution, false
@@ -1148,7 +1148,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%condA:bool, %condB:bool, %condC:bool):i32 {
@@ -1190,13 +1190,13 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%condA:bool, %condB:bool, %condC:bool):i32 {
$B2: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%8:i32 = if %condA [t: $B3, f: $B4] { # if_1
$B3: { # true
store %continue_execution, false
@@ -1312,8 +1312,8 @@
auto* expect = R"(
%foo = func(%2:i32):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%5:bool = eq %2, 1i
if %5 [t: $B2] { # if_1
$B2: { # true
@@ -1413,8 +1413,8 @@
auto* expect = R"(
%foo = func(%2:i32):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%5:bool = eq %2, 1i
if %5 [t: $B2] { # if_1
$B2: { # true
@@ -1529,8 +1529,8 @@
auto* expect = R"(
%foo = func(%2:i32):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%5:bool = eq %2, 1i
if %5 [t: $B2] { # if_1
$B2: { # true
@@ -1682,8 +1682,8 @@
auto* expect = R"(
%foo = func(%2:i32):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%5:bool = eq %2, 1i
%6:i32 = if %5 [t: $B2] { # if_1
$B2: { # true
@@ -1779,7 +1779,7 @@
auto* expect = R"(
%foo = func():i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
+ %return_value:ptr<function, i32, read_write> = var undef
loop [b: $B2] { # loop_1
$B2: { # body
store %return_value, 42i
@@ -1827,7 +1827,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):i32 {
@@ -1859,13 +1859,13 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):i32 {
$B2: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
if %3 [t: $B5, f: $B6] { # if_1
@@ -1941,7 +1941,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):i32 {
@@ -1972,13 +1972,13 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):i32 {
$B2: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
loop [b: $B3, c: $B4] { # loop_1
$B3: { # body
if %3 [t: $B5, f: $B6] { # if_1
@@ -2046,7 +2046,7 @@
});
auto* src = R"(
%b1 = block { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):i32 -> %b2 {
@@ -2078,13 +2078,13 @@
auto* expect = R"(
%b1 = block { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:bool):i32 -> %b2 {
%b2 = block {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%6:i32 = loop [b: %b3, c: %b4] { # loop_1
%b3 = block { # body
if %3 [t: %b5, f: %b6] { # if_1
@@ -2163,8 +2163,8 @@
auto* expect = R"(
%foo = func(%2:i32):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
switch %2 [c: (1i, $B2), c: (default, $B3)] { # switch_1
$B2: { # case
store %continue_execution, false
@@ -2220,7 +2220,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:i32):i32 {
@@ -2251,13 +2251,13 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
%foo = func(%3:i32):i32 {
$B2: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
switch %3 [c: (1i, $B3), c: (default, $B4)] { # switch_1
$B3: { # case
%6:bool = eq %3, 1i
@@ -2344,8 +2344,8 @@
auto* expect = R"(
%foo = func(%2:i32):i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
%5:i32 = switch %2 [c: (1i, $B2), c: (2i, $B3), c: (3i, $B4), c: (default, $B5)] { # switch_1
$B2: { # case
store %continue_execution, false
@@ -2416,7 +2416,7 @@
auto* expect = R"(
%foo = func():void {
$B1: {
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %continue_execution:ptr<function, bool, read_write> = var true
loop [b: $B2] { # loop_1
$B2: { # body
if true [t: $B3] { # if_1
@@ -2477,8 +2477,8 @@
auto* expect = R"(
%foo = func():i32 {
$B1: {
- %return_value:ptr<function, i32, read_write> = var
- %continue_execution:ptr<function, bool, read_write> = var, true
+ %return_value:ptr<function, i32, read_write> = var undef
+ %continue_execution:ptr<function, bool, read_write> = var true
if true [t: $B2] { # if_1
$B2: { # true
if true [t: $B3] { # if_2
diff --git a/src/tint/lang/spirv/writer/raise/pass_matrix_by_pointer_test.cc b/src/tint/lang/spirv/writer/raise/pass_matrix_by_pointer_test.cc
index e50d515..bc22a20 100644
--- a/src/tint/lang/spirv/writer/raise/pass_matrix_by_pointer_test.cc
+++ b/src/tint/lang/spirv/writer/raise/pass_matrix_by_pointer_test.cc
@@ -59,7 +59,7 @@
auto* src = R"(
$B1: { # root
- %var:ptr<private, array<f32, 4>, read_write> = var
+ %var:ptr<private, array<f32, 4>, read_write> = var undef
}
%target = func(%value:array<f32, 4>):f32 {
@@ -105,7 +105,7 @@
auto* src = R"(
$B1: { # root
- %var:ptr<private, mat3x3<f32>, read_write> = var
+ %var:ptr<private, mat3x3<f32>, read_write> = var undef
}
%target = func(%value:ptr<private, mat3x3<f32>, read_write>):vec3<f32> {
@@ -143,7 +143,7 @@
auto* src = R"(
$B1: { # root
- %var:ptr<private, mat3x3<f32>, read_write> = var
+ %var:ptr<private, mat3x3<f32>, read_write> = var undef
}
%caller = func():f32 {
@@ -183,7 +183,7 @@
auto* src = R"(
$B1: { # root
- %var:ptr<private, mat3x3<f32>, read_write> = var
+ %var:ptr<private, mat3x3<f32>, read_write> = var undef
}
%target = func(%value:mat3x3<f32>):mat3x3<f32> {
@@ -204,7 +204,7 @@
auto* expect = R"(
$B1: { # root
- %var:ptr<private, mat3x3<f32>, read_write> = var
+ %var:ptr<private, mat3x3<f32>, read_write> = var undef
}
%target = func(%3:ptr<function, mat3x3<f32>, read_write>):mat3x3<f32> {
@@ -217,7 +217,7 @@
%caller = func():mat3x3<f32> {
$B3: {
%7:mat3x3<f32> = load %var
- %8:ptr<function, mat3x3<f32>, read_write> = var, %7
+ %8:ptr<function, mat3x3<f32>, read_write> = var %7
%9:mat3x3<f32> = call %target, %8
ret %9
}
@@ -255,7 +255,7 @@
auto* src = R"(
$B1: { # root
- %var:ptr<private, array<mat3x3<f32>, 4>, read_write> = var
+ %var:ptr<private, array<mat3x3<f32>, 4>, read_write> = var undef
}
%target = func(%value_a:mat3x3<f32>, %scalar:f32, %value_b:mat3x3<f32>):mat3x3<f32> {
@@ -280,7 +280,7 @@
auto* expect = R"(
$B1: { # root
- %var:ptr<private, array<mat3x3<f32>, 4>, read_write> = var
+ %var:ptr<private, array<mat3x3<f32>, 4>, read_write> = var undef
}
%target = func(%3:ptr<function, mat3x3<f32>, read_write>, %scalar:f32, %5:ptr<function, mat3x3<f32>, read_write>):mat3x3<f32> {
@@ -298,8 +298,8 @@
%12:mat3x3<f32> = load %11
%13:ptr<private, mat3x3<f32>, read_write> = access %var, 1u
%14:mat3x3<f32> = load %13
- %15:ptr<function, mat3x3<f32>, read_write> = var, %12
- %16:ptr<function, mat3x3<f32>, read_write> = var, %14
+ %15:ptr<function, mat3x3<f32>, read_write> = var %12
+ %16:ptr<function, mat3x3<f32>, read_write> = var %14
%17:mat3x3<f32> = call %target, %15, 2.0f, %16
ret %17
}
@@ -332,7 +332,7 @@
auto* src = R"(
$B1: { # root
- %var:ptr<private, mat3x3<f32>, read_write> = var
+ %var:ptr<private, mat3x3<f32>, read_write> = var undef
}
%target = func(%value:mat3x3<f32>):mat3x3<f32> {
@@ -354,7 +354,7 @@
auto* expect = R"(
$B1: { # root
- %var:ptr<private, mat3x3<f32>, read_write> = var
+ %var:ptr<private, mat3x3<f32>, read_write> = var undef
}
%target = func(%3:ptr<function, mat3x3<f32>, read_write>):mat3x3<f32> {
@@ -368,7 +368,7 @@
%caller = func():mat3x3<f32> {
$B3: {
%8:mat3x3<f32> = load %var
- %9:ptr<function, mat3x3<f32>, read_write> = var, %8
+ %9:ptr<function, mat3x3<f32>, read_write> = var %8
%10:mat3x3<f32> = call %target, %9
ret %10
}
@@ -413,7 +413,7 @@
auto* src = R"(
$B1: { # root
- %var:ptr<private, mat3x3<f32>, read_write> = var
+ %var:ptr<private, mat3x3<f32>, read_write> = var undef
}
%target = func(%value:mat3x3<f32>, %scalar:f32):mat3x3<f32> {
@@ -448,7 +448,7 @@
auto* expect = R"(
$B1: { # root
- %var:ptr<private, mat3x3<f32>, read_write> = var
+ %var:ptr<private, mat3x3<f32>, read_write> = var undef
}
%target = func(%3:ptr<function, mat3x3<f32>, read_write>, %scalar:f32):mat3x3<f32> {
@@ -461,7 +461,7 @@
%caller_a = func():mat3x3<f32> {
$B3: {
%8:mat3x3<f32> = load %var
- %9:ptr<function, mat3x3<f32>, read_write> = var, %8
+ %9:ptr<function, mat3x3<f32>, read_write> = var %8
%10:mat3x3<f32> = call %target, %9, 2.0f
ret %10
}
@@ -469,7 +469,7 @@
%caller_b = func():mat3x3<f32> {
$B4: {
%12:mat3x3<f32> = load %var
- %13:ptr<function, mat3x3<f32>, read_write> = var, %12
+ %13:ptr<function, mat3x3<f32>, read_write> = var %12
%14:mat3x3<f32> = call %target, %13, 3.0f
ret %14
}
@@ -477,7 +477,7 @@
%caller_c = func():mat3x3<f32> {
$B5: {
%16:mat3x3<f32> = load %var
- %17:ptr<function, mat3x3<f32>, read_write> = var, %16
+ %17:ptr<function, mat3x3<f32>, read_write> = var %16
%18:mat3x3<f32> = call %target, %17, 4.0f
ret %18
}
@@ -512,7 +512,7 @@
auto* src = R"(
$B1: { # root
- %var:ptr<private, array<mat3x3<f32>, 2>, read_write> = var
+ %var:ptr<private, array<mat3x3<f32>, 2>, read_write> = var undef
}
%target = func(%value:array<mat3x3<f32>, 2>):mat3x3<f32> {
@@ -535,7 +535,7 @@
auto* expect = R"(
$B1: { # root
- %var:ptr<private, array<mat3x3<f32>, 2>, read_write> = var
+ %var:ptr<private, array<mat3x3<f32>, 2>, read_write> = var undef
}
%target = func(%3:ptr<function, array<mat3x3<f32>, 2>, read_write>):mat3x3<f32> {
@@ -550,7 +550,7 @@
%caller = func():mat3x3<f32> {
$B3: {
%9:array<mat3x3<f32>, 2> = load %var
- %10:ptr<function, array<mat3x3<f32>, 2>, read_write> = var, %9
+ %10:ptr<function, array<mat3x3<f32>, 2>, read_write> = var %9
%11:mat3x3<f32> = call %target, %10
ret %11
}
@@ -593,7 +593,7 @@
}
$B1: { # root
- %var:ptr<private, MyStruct, read_write> = var
+ %var:ptr<private, MyStruct, read_write> = var undef
}
%target = func(%value:MyStruct):mat3x3<f32> {
@@ -621,7 +621,7 @@
}
$B1: { # root
- %var:ptr<private, MyStruct, read_write> = var
+ %var:ptr<private, MyStruct, read_write> = var undef
}
%target = func(%3:ptr<function, MyStruct, read_write>):mat3x3<f32> {
@@ -636,7 +636,7 @@
%caller = func():mat3x3<f32> {
$B3: {
%9:MyStruct = load %var
- %10:ptr<function, MyStruct, read_write> = var, %9
+ %10:ptr<function, MyStruct, read_write> = var %9
%11:mat3x3<f32> = call %target, %10
ret %11
}
@@ -683,7 +683,7 @@
}
$B1: { # root
- %var:ptr<private, array<MyStruct, 4>, read_write> = var
+ %var:ptr<private, array<MyStruct, 4>, read_write> = var undef
}
%target = func(%value:array<MyStruct, 4>):mat3x3<f32> {
@@ -713,7 +713,7 @@
}
$B1: { # root
- %var:ptr<private, array<MyStruct, 4>, read_write> = var
+ %var:ptr<private, array<MyStruct, 4>, read_write> = var undef
}
%target = func(%3:ptr<function, array<MyStruct, 4>, read_write>):mat3x3<f32> {
@@ -730,7 +730,7 @@
%caller = func():mat3x3<f32> {
$B3: {
%11:array<MyStruct, 4> = load %var
- %12:ptr<function, array<MyStruct, 4>, read_write> = var, %11
+ %12:ptr<function, array<MyStruct, 4>, read_write> = var %11
%13:mat3x3<f32> = call %target, %12
ret %13
}
diff --git a/src/tint/lang/spirv/writer/raise/shader_io_test.cc b/src/tint/lang/spirv/writer/raise/shader_io_test.cc
index e328df9..a0eb7f9 100644
--- a/src/tint/lang/spirv/writer/raise/shader_io_test.cc
+++ b/src/tint/lang/spirv/writer/raise/shader_io_test.cc
@@ -108,10 +108,10 @@
auto* expect = R"(
$B1: { # root
- %foo_front_facing_Input:ptr<__in, bool, read> = var @builtin(front_facing)
- %foo_position_Input:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %foo_loc0_Input:ptr<__in, f32, read> = var @location(0)
- %foo_loc1_Input:ptr<__in, f32, read> = var @location(1) @interpolate(linear, sample)
+ %foo_front_facing_Input:ptr<__in, bool, read> = var undef @builtin(front_facing)
+ %foo_position_Input:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %foo_loc0_Input:ptr<__in, f32, read> = var undef @location(0)
+ %foo_loc1_Input:ptr<__in, f32, read> = var undef @location(1) @interpolate(linear, sample)
}
%foo_inner = func(%front_facing:bool, %position:vec4<f32>, %color1:f32, %color2:f32):void {
@@ -255,10 +255,10 @@
}
$B1: { # root
- %foo_front_facing_Input:ptr<__in, bool, read> = var @builtin(front_facing)
- %foo_position_Input:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %foo_loc0_Input:ptr<__in, f32, read> = var @location(0)
- %foo_loc1_Input:ptr<__in, f32, read> = var @location(1) @interpolate(linear, sample)
+ %foo_front_facing_Input:ptr<__in, bool, read> = var undef @builtin(front_facing)
+ %foo_position_Input:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %foo_loc0_Input:ptr<__in, f32, read> = var undef @location(0)
+ %foo_loc1_Input:ptr<__in, f32, read> = var undef @location(1) @interpolate(linear, sample)
}
%foo_inner = func(%inputs:Inputs):void {
@@ -379,10 +379,10 @@
}
$B1: { # root
- %foo_front_facing_Input:ptr<__in, bool, read> = var @builtin(front_facing)
- %foo_position_Input:ptr<__in, vec4<f32>, read> = var @invariant @builtin(position)
- %foo_loc0_Input:ptr<__in, f32, read> = var @location(0)
- %foo_loc1_Input:ptr<__in, f32, read> = var @location(1) @interpolate(linear, sample)
+ %foo_front_facing_Input:ptr<__in, bool, read> = var undef @builtin(front_facing)
+ %foo_position_Input:ptr<__in, vec4<f32>, read> = var undef @invariant @builtin(position)
+ %foo_loc0_Input:ptr<__in, f32, read> = var undef @location(0)
+ %foo_loc1_Input:ptr<__in, f32, read> = var undef @location(1) @interpolate(linear, sample)
}
%foo_inner = func(%front_facing:bool, %inputs:Inputs, %color2:f32):void {
@@ -441,7 +441,7 @@
auto* expect = R"(
$B1: { # root
- %foo_position_Output:ptr<__out, vec4<f32>, write> = var @invariant @builtin(position)
+ %foo_position_Output:ptr<__out, vec4<f32>, write> = var undef @invariant @builtin(position)
}
%foo_inner = func():vec4<f32> {
@@ -487,7 +487,7 @@
auto* expect = R"(
$B1: { # root
- %foo_loc1_Output:ptr<__out, vec4<f32>, write> = var @location(1)
+ %foo_loc1_Output:ptr<__out, vec4<f32>, write> = var undef @location(1)
}
%foo_inner = func():vec4<f32> {
@@ -589,9 +589,9 @@
}
$B1: { # root
- %foo_position_Output:ptr<__out, vec4<f32>, write> = var @invariant @builtin(position)
- %foo_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %foo_loc1_Output:ptr<__out, f32, write> = var @location(1) @interpolate(linear, sample)
+ %foo_position_Output:ptr<__out, vec4<f32>, write> = var undef @invariant @builtin(position)
+ %foo_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %foo_loc1_Output:ptr<__out, f32, write> = var undef @location(1) @interpolate(linear, sample)
}
%foo_inner = func():Outputs {
@@ -680,8 +680,8 @@
}
$B1: { # root
- %foo_loc0_idx0_Output:ptr<__out, f32, write> = var @location(0) @blend_src(0)
- %foo_loc0_idx1_Output:ptr<__out, f32, write> = var @location(0) @blend_src(1)
+ %foo_loc0_idx0_Output:ptr<__out, f32, write> = var undef @location(0) @blend_src(0)
+ %foo_loc0_idx1_Output:ptr<__out, f32, write> = var undef @location(0) @blend_src(1)
}
%foo_inner = func():Output {
@@ -798,11 +798,11 @@
}
$B1: { # root
- %vert_position_Output:ptr<__out, vec4<f32>, write> = var @builtin(position)
- %vert_loc0_Output:ptr<__out, vec4<f32>, write> = var @location(0)
- %frag_position_Input:ptr<__in, vec4<f32>, read> = var @builtin(position)
- %frag_loc0_Input:ptr<__in, vec4<f32>, read> = var @location(0)
- %frag_loc0_Output:ptr<__out, vec4<f32>, write> = var @location(0)
+ %vert_position_Output:ptr<__out, vec4<f32>, write> = var undef @builtin(position)
+ %vert_loc0_Output:ptr<__out, vec4<f32>, write> = var undef @location(0)
+ %frag_position_Input:ptr<__in, vec4<f32>, read> = var undef @builtin(position)
+ %frag_loc0_Input:ptr<__in, vec4<f32>, read> = var undef @location(0)
+ %frag_loc0_Output:ptr<__out, vec4<f32>, write> = var undef @location(0)
}
%vert_inner = func():Interface {
@@ -898,7 +898,7 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, read> = var @binding_point(0, 0)
+ %1:ptr<storage, Outputs, read> = var undef @binding_point(0, 0)
}
%vert = @vertex func():Outputs {
@@ -917,9 +917,9 @@
}
$B1: { # root
- %1:ptr<storage, Outputs, read> = var @binding_point(0, 0)
- %vert_position_Output:ptr<__out, vec4<f32>, write> = var @builtin(position)
- %vert_loc0_Output:ptr<__out, vec4<f32>, write> = var @location(0)
+ %1:ptr<storage, Outputs, read> = var undef @binding_point(0, 0)
+ %vert_position_Output:ptr<__out, vec4<f32>, write> = var undef @builtin(position)
+ %vert_loc0_Output:ptr<__out, vec4<f32>, write> = var undef @location(0)
}
%vert_inner = func():Outputs {
@@ -1010,9 +1010,9 @@
}
$B1: { # root
- %foo_sample_mask_Input:ptr<__in, array<u32, 1>, read> = var @builtin(sample_mask)
- %foo_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %foo_sample_mask_Output:ptr<__out, array<u32, 1>, write> = var @builtin(sample_mask)
+ %foo_sample_mask_Input:ptr<__in, array<u32, 1>, read> = var undef @builtin(sample_mask)
+ %foo_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %foo_sample_mask_Output:ptr<__out, array<u32, 1>, write> = var undef @builtin(sample_mask)
}
%foo_inner = func(%mask_in:u32):Outputs {
@@ -1136,11 +1136,11 @@
}
$B1: { # root
- %vert_loc1_Input:ptr<__in, f32, read> = var @location(1)
- %vert_loc1_Input_1:ptr<__in, i32, read> = var @location(1) # %vert_loc1_Input_1: 'vert_loc1_Input'
- %vert_position_Output:ptr<__out, vec4<f32>, write> = var @invariant @builtin(position)
- %frag1_loc1_Output:ptr<__out, f32, write> = var @location(1)
- %frag2_loc0_Output:ptr<__out, i32, write> = var @location(0)
+ %vert_loc1_Input:ptr<__in, f32, read> = var undef @location(1)
+ %vert_loc1_Input_1:ptr<__in, i32, read> = var undef @location(1) # %vert_loc1_Input_1: 'vert_loc1_Input'
+ %vert_position_Output:ptr<__out, vec4<f32>, write> = var undef @invariant @builtin(position)
+ %frag1_loc1_Output:ptr<__out, f32, write> = var undef @location(1)
+ %frag2_loc0_Output:ptr<__out, i32, write> = var undef @location(0)
}
%vert_inner = func(%input:MyStruct, %ival:i32):vec4<f32> {
@@ -1257,9 +1257,9 @@
}
$B1: { # root
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
- %foo_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %foo_frag_depth_Output:ptr<__out, f32, write> = var @builtin(frag_depth)
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
+ %foo_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %foo_frag_depth_Output:ptr<__out, f32, write> = var undef @builtin(frag_depth)
}
%foo_inner = func():Outputs {
@@ -1377,13 +1377,13 @@
}
$B1: { # root
- %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var
- %ep1_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %ep1_frag_depth_Output:ptr<__out, f32, write> = var @builtin(frag_depth)
- %ep2_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %ep2_frag_depth_Output:ptr<__out, f32, write> = var @builtin(frag_depth)
- %ep3_loc0_Output:ptr<__out, f32, write> = var @location(0)
- %ep3_frag_depth_Output:ptr<__out, f32, write> = var @builtin(frag_depth)
+ %tint_push_constants:ptr<push_constant, tint_push_constant_struct, read> = var undef
+ %ep1_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %ep1_frag_depth_Output:ptr<__out, f32, write> = var undef @builtin(frag_depth)
+ %ep2_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %ep2_frag_depth_Output:ptr<__out, f32, write> = var undef @builtin(frag_depth)
+ %ep3_loc0_Output:ptr<__out, f32, write> = var undef @location(0)
+ %ep3_frag_depth_Output:ptr<__out, f32, write> = var undef @builtin(frag_depth)
}
%ep1_inner = func():Outputs {
@@ -1485,8 +1485,8 @@
auto* expect = R"(
$B1: { # root
- %foo_position_Output:ptr<__out, vec4<f32>, write> = var @builtin(position)
- %foo___point_size_Output:ptr<__out, f32, write> = var @builtin(__point_size)
+ %foo_position_Output:ptr<__out, vec4<f32>, write> = var undef @builtin(position)
+ %foo___point_size_Output:ptr<__out, f32, write> = var undef @builtin(__point_size)
}
%foo_inner = func():vec4<f32> {
@@ -1574,10 +1574,10 @@
}
$B1: { # root
- %main_loc1_Input:ptr<__in, f16, read> = var @location(1)
- %main_loc2_Input:ptr<__in, vec4<f16>, read> = var @location(2)
- %main_loc1_Output:ptr<__out, f16, write> = var @location(1)
- %main_loc2_Output:ptr<__out, vec4<f16>, write> = var @location(2)
+ %main_loc1_Input:ptr<__in, f16, read> = var undef @location(1)
+ %main_loc2_Input:ptr<__in, vec4<f16>, read> = var undef @location(2)
+ %main_loc1_Output:ptr<__out, f16, write> = var undef @location(1)
+ %main_loc2_Output:ptr<__out, vec4<f16>, write> = var undef @location(2)
}
%main_inner = func(%in1:f16, %in2:vec4<f16>):Outputs {
@@ -1669,10 +1669,10 @@
}
$B1: { # root
- %main_loc1_Input:ptr<__in, f32, read> = var @location(1)
- %main_loc2_Input:ptr<__in, vec4<f32>, read> = var @location(2)
- %main_loc1_Output:ptr<__out, f32, write> = var @location(1)
- %main_loc2_Output:ptr<__out, vec4<f32>, write> = var @location(2)
+ %main_loc1_Input:ptr<__in, f32, read> = var undef @location(1)
+ %main_loc2_Input:ptr<__in, vec4<f32>, read> = var undef @location(2)
+ %main_loc1_Output:ptr<__out, f32, write> = var undef @location(1)
+ %main_loc2_Output:ptr<__out, vec4<f32>, write> = var undef @location(2)
}
%main_inner = func(%in1:f16, %in2:vec4<f16>):Outputs {
diff --git a/src/tint/lang/spirv/writer/raise/var_for_dynamic_index_test.cc b/src/tint/lang/spirv/writer/raise/var_for_dynamic_index_test.cc
index e774858..f48e401 100644
--- a/src/tint/lang/spirv/writer/raise/var_for_dynamic_index_test.cc
+++ b/src/tint/lang/spirv/writer/raise/var_for_dynamic_index_test.cc
@@ -177,7 +177,7 @@
auto* expect = R"(
%foo = func(%2:array<i32, 4>, %3:i32):i32 {
$B1: {
- %4:ptr<function, array<i32, 4>, read_write> = var, %2
+ %4:ptr<function, array<i32, 4>, read_write> = var %2
%5:ptr<function, i32, read_write> = access %4, %3
%6:i32 = load %5
ret %6
@@ -203,7 +203,7 @@
auto* expect = R"(
%foo = func(%2:mat2x2<f32>, %3:i32):vec2<f32> {
$B1: {
- %4:ptr<function, mat2x2<f32>, read_write> = var, %2
+ %4:ptr<function, mat2x2<f32>, read_write> = var %2
%5:ptr<function, vec2<f32>, read_write> = access %4, %3
%6:vec2<f32> = load %5
ret %6
@@ -229,7 +229,7 @@
auto* expect = R"(
%foo = func(%2:mat2x2<f32>, %3:i32):f32 {
$B1: {
- %4:ptr<function, mat2x2<f32>, read_write> = var, %2
+ %4:ptr<function, mat2x2<f32>, read_write> = var %2
%5:ptr<function, vec2<f32>, read_write> = access %4, %3
%6:f32 = load_vector_element %5, %3
ret %6
@@ -255,7 +255,7 @@
auto* expect = R"(
%foo = func(%2:array<array<array<i32, 4>, 4>, 4>, %3:i32):i32 {
$B1: {
- %4:ptr<function, array<array<array<i32, 4>, 4>, 4>, read_write> = var, %2
+ %4:ptr<function, array<array<array<i32, 4>, 4>, 4>, read_write> = var %2
%5:ptr<function, i32, read_write> = access %4, %3, 1u, %3
%6:i32 = load %5
ret %6
@@ -282,7 +282,7 @@
%foo = func(%2:array<array<array<i32, 4>, 4>, 4>, %3:i32):i32 {
$B1: {
%4:array<i32, 4> = access %2, 1u, 2u
- %5:ptr<function, array<i32, 4>, read_write> = var, %4
+ %5:ptr<function, array<i32, 4>, read_write> = var %4
%6:ptr<function, i32, read_write> = access %5, %3
%7:i32 = load %6
ret %7
@@ -309,7 +309,7 @@
%foo = func(%2:array<array<array<array<i32, 4>, 4>, 4>, 4>, %3:i32):i32 {
$B1: {
%4:array<array<array<i32, 4>, 4>, 4> = access %2, 1u
- %5:ptr<function, array<array<array<i32, 4>, 4>, 4>, read_write> = var, %4
+ %5:ptr<function, array<array<array<i32, 4>, 4>, 4>, read_write> = var %4
%6:ptr<function, i32, read_write> = access %5, %3, 2u, %3
%7:i32 = load %6
ret %7
@@ -348,7 +348,7 @@
%foo = func(%2:MyStruct, %3:i32):f32 {
$B1: {
%4:mat4x4<f32> = access %2, 1u
- %5:ptr<function, mat4x4<f32>, read_write> = var, %4
+ %5:ptr<function, mat4x4<f32>, read_write> = var %4
%6:ptr<function, vec4<f32>, read_write> = access %5, %3
%7:f32 = load_vector_element %6, 0u
ret %7
@@ -378,7 +378,7 @@
auto* expect = R"(
%foo = func(%2:array<i32, 4>, %3:i32, %4:i32, %5:i32):i32 {
$B1: {
- %6:ptr<function, array<i32, 4>, read_write> = var, %2
+ %6:ptr<function, array<i32, 4>, read_write> = var %2
%7:ptr<function, i32, read_write> = access %6, %3
%8:i32 = load %7
%9:ptr<function, i32, read_write> = access %6, %4
@@ -413,7 +413,7 @@
%foo = func(%2:array<array<array<i32, 4>, 4>, 4>, %3:i32, %4:i32, %5:i32):i32 {
$B1: {
%6:array<i32, 4> = access %2, 1u, 2u
- %7:ptr<function, array<i32, 4>, read_write> = var, %6
+ %7:ptr<function, array<i32, 4>, read_write> = var %6
%8:ptr<function, i32, read_write> = access %7, %3
%9:i32 = load %8
%10:ptr<function, i32, read_write> = access %7, %4
@@ -470,7 +470,7 @@
auto* expect = R"(
%func = func(%2:array<i32, 4>, %3:bool, %4:i32, %5:i32):i32 {
$B1: {
- %6:ptr<function, array<i32, 4>, read_write> = var, %2
+ %6:ptr<function, array<i32, 4>, read_write> = var %2
if %3 [t: $B2, f: $B3] { # if_1
$B2: { # true
%7:ptr<function, i32, read_write> = access %6, %4
@@ -535,7 +535,7 @@
%func = func(%2:array<array<i32, 4>, 4>, %3:bool, %4:i32, %5:i32):i32 {
$B1: {
%6:array<i32, 4> = access %2, 0u
- %7:ptr<function, array<i32, 4>, read_write> = var, %6
+ %7:ptr<function, array<i32, 4>, read_write> = var %6
if %3 [t: $B2, f: $B3] { # if_1
$B2: { # true
%8:ptr<function, i32, read_write> = access %7, %4
@@ -618,7 +618,7 @@
next_iteration array<i32, 4>(0i) # -> $B3
}
$B3 (%5:array<i32, 4>): { # body
- %6:ptr<function, array<i32, 4>, read_write> = var, %5
+ %6:ptr<function, array<i32, 4>, read_write> = var %5
if %2 [t: $B4, f: $B5] { # if_1
$B4: { # true
%7:ptr<function, i32, read_write> = access %6, %3
@@ -708,7 +708,7 @@
}
$B3 (%5:array<array<i32, 4>, 4>): { # body
%6:array<i32, 4> = access %5, 0u
- %7:ptr<function, array<i32, 4>, read_write> = var, %6
+ %7:ptr<function, array<i32, 4>, read_write> = var %6
if %2 [t: $B4, f: $B5] { # if_1
$B4: { # true
%8:ptr<function, i32, read_write> = access %7, %3
@@ -782,7 +782,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, array<i32, 4>, read_write> = var, array<i32, 4>(0i)
+ %1:ptr<private, array<i32, 4>, read_write> = var array<i32, 4>(0i)
}
%func_a = func(%3:i32):i32 {
@@ -862,7 +862,7 @@
auto* expect = R"(
$B1: { # root
- %1:ptr<private, array<i32, 4>, read_write> = var, array<i32, 4>(0i)
+ %1:ptr<private, array<i32, 4>, read_write> = var array<i32, 4>(0i)
}
%func_a = func(%3:i32):i32 {
diff --git a/src/tint/lang/wgsl/reader/lower/lower_test.cc b/src/tint/lang/wgsl/reader/lower/lower_test.cc
index bda9b7a..68263e0 100644
--- a/src/tint/lang/wgsl/reader/lower/lower_test.cc
+++ b/src/tint/lang/wgsl/reader/lower/lower_test.cc
@@ -85,7 +85,7 @@
auto* src = R"(
$B1: { # root
- %wgvar:ptr<workgroup, i32, read_write> = var
+ %wgvar:ptr<workgroup, i32, read_write> = var undef
}
%f = func():i32 {
@@ -99,7 +99,7 @@
auto* expect = R"(
$B1: { # root
- %wgvar:ptr<workgroup, i32, read_write> = var
+ %wgvar:ptr<workgroup, i32, read_write> = var undef
}
%f = func():i32 {
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/accessor_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/accessor_test.cc
index 21c72af..e2e0431 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/accessor_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/accessor_test.cc
@@ -50,7 +50,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, array<u32, 3>, read_write> = var
+ %a:ptr<function, array<u32, 3>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %a, 2u
%4:u32 = load %3
%b:u32 = let %4
@@ -76,7 +76,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, array<u32, 3>, read_write> = var
+ %a:ptr<function, array<u32, 3>, read_write> = var undef
%p:ptr<function, array<u32, 3>, read_write> = let %a
%4:ptr<function, u32, read_write> = access %p, 2u
%5:u32 = load %4
@@ -103,7 +103,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, array<u32, 3>, read_write> = var
+ %a:ptr<function, array<u32, 3>, read_write> = var undef
%p:ptr<function, array<u32, 3>, read_write> = let %a
%4:ptr<function, u32, read_write> = access %p, 2u
%5:u32 = load %4
@@ -156,7 +156,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, vec3<u32>, read_write> = var
+ %a:ptr<function, vec3<u32>, read_write> = var undef
%3:u32 = load_vector_element %a, 2u
%b:u32 = let %3
ret
@@ -181,7 +181,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, vec3<u32>, read_write> = var
+ %a:ptr<function, vec3<u32>, read_write> = var undef
%p:ptr<function, vec3<u32>, read_write> = let %a
%4:u32 = load_vector_element %p, 2u
%b:u32 = let %4
@@ -207,7 +207,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, vec3<u32>, read_write> = var
+ %a:ptr<function, vec3<u32>, read_write> = var undef
%p:ptr<function, vec3<u32>, read_write> = let %a
%4:u32 = load_vector_element %p, 2u
%b:u32 = let %4
@@ -231,7 +231,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, array<array<f32, 4>, 3>, read_write> = var
+ %a:ptr<function, array<array<f32, 4>, 3>, read_write> = var undef
%3:ptr<function, f32, read_write> = access %a, 2u, 3u
%4:f32 = load %3
%b:f32 = let %4
@@ -257,7 +257,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, array<array<f32, 4>, 3>, read_write> = var
+ %a:ptr<function, array<array<f32, 4>, 3>, read_write> = var undef
%p:ptr<function, array<array<f32, 4>, 3>, read_write> = let %a
%4:ptr<function, f32, read_write> = access %p, 2u, 3u
%5:f32 = load %4
@@ -284,7 +284,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, array<array<f32, 4>, 3>, read_write> = var
+ %a:ptr<function, array<array<f32, 4>, 3>, read_write> = var undef
%p:ptr<function, array<array<f32, 4>, 3>, read_write> = let %a
%4:ptr<function, f32, read_write> = access %p, 2u, 3u
%5:f32 = load %4
@@ -309,7 +309,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, mat3x4<f32>, read_write> = var
+ %a:ptr<function, mat3x4<f32>, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %a, 2u
%4:f32 = load_vector_element %3, 3u
%b:f32 = let %4
@@ -341,7 +341,7 @@
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, MyStruct, read_write> = var
+ %a:ptr<function, MyStruct, read_write> = var undef
%3:ptr<function, i32, read_write> = access %a, 0u
%4:i32 = load %3
%b:i32 = let %4
@@ -375,7 +375,7 @@
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, MyStruct, read_write> = var
+ %a:ptr<function, MyStruct, read_write> = var undef
%p:ptr<function, MyStruct, read_write> = let %a
%4:ptr<function, i32, read_write> = access %p, 0u
%5:i32 = load %4
@@ -410,7 +410,7 @@
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, MyStruct, read_write> = var
+ %a:ptr<function, MyStruct, read_write> = var undef
%p:ptr<function, MyStruct, read_write> = let %a
%4:ptr<function, i32, read_write> = access %p, 0u
%5:i32 = load %4
@@ -453,7 +453,7 @@
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, Outer, read_write> = var
+ %a:ptr<function, Outer, read_write> = var undef
%3:ptr<function, f32, read_write> = access %a, 1u, 0u
%4:f32 = load %3
%b:f32 = let %4
@@ -501,7 +501,7 @@
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, array<Outer, 4>, read_write> = var
+ %a:ptr<function, array<Outer, 4>, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %a, 0u, 1u, 1u, 2u
%4:vec4<f32> = load %3
%b:vec4<f32> = let %4
@@ -525,7 +525,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, array<u32, 4>, read_write> = var
+ %a:ptr<function, array<u32, 4>, read_write> = var undef
%3:ptr<function, u32, read_write> = access %a, 2u
store %3, 0u
ret
@@ -548,7 +548,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, vec2<f32>, read_write> = var
+ %a:ptr<function, vec2<f32>, read_write> = var undef
%3:f32 = load_vector_element %a, 1u
%b:f32 = let %3
ret
@@ -573,7 +573,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, vec2<f32>, read_write> = var
+ %a:ptr<function, vec2<f32>, read_write> = var undef
%p:ptr<function, vec2<f32>, read_write> = let %a
%4:f32 = load_vector_element %p, 1u
%b:f32 = let %4
@@ -599,7 +599,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, vec2<f32>, read_write> = var
+ %a:ptr<function, vec2<f32>, read_write> = var undef
%p:ptr<function, vec2<f32>, read_write> = let %a
%4:f32 = load_vector_element %p, 1u
%b:f32 = let %4
@@ -623,7 +623,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, vec3<f32>, read_write> = var
+ %a:ptr<function, vec3<f32>, read_write> = var undef
%3:vec3<f32> = load %a
%4:vec4<f32> = swizzle %3, zyxz
%b:vec4<f32> = let %4
@@ -647,7 +647,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, vec3<f32>, read_write> = var
+ %a:ptr<function, vec3<f32>, read_write> = var undef
%3:vec3<f32> = load %a
%4:vec3<f32> = swizzle %3, zyx
%5:vec2<f32> = swizzle %4, yy
@@ -684,7 +684,7 @@
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, MyStruct, read_write> = var
+ %a:ptr<function, MyStruct, read_write> = var undef
%3:ptr<function, vec4<f32>, read_write> = access %a, 1u
%4:vec4<f32> = load %3
%5:vec3<f32> = swizzle %4, zyx
@@ -987,7 +987,7 @@
$B1: {
%i:i32 = let 1i
%3:i32 = access vec3<i32>(1i, 2i, 3i), %i
- %b:ptr<function, i32, read_write> = var, %3
+ %b:ptr<function, i32, read_write> = var %3
ret
}
}
@@ -1012,7 +1012,7 @@
$B1: {
%i:i32 = let 1i
%3:i32 = access vec2<i32>(1i, 2i), %i
- %b:ptr<function, i32, read_write> = var, %3
+ %b:ptr<function, i32, read_write> = var %3
ret
}
}
@@ -1039,7 +1039,7 @@
%3:i32 = add %i, 2i
%4:i32 = sub %3, 3i
%5:i32 = access vec2<i32>(1i, 2i), %4
- %b:ptr<function, i32, read_write> = var, %5
+ %b:ptr<function, i32, read_write> = var %5
ret
}
}
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/binary_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/binary_test.cc
index 77bc1f0..99f5d922 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/binary_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/binary_test.cc
@@ -68,7 +68,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -91,7 +91,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -138,7 +138,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, i32, read_write> = var
+ %v1:ptr<private, i32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -161,7 +161,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -208,7 +208,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -255,7 +255,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -302,7 +302,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -349,7 +349,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, bool, read_write> = var
+ %v1:ptr<private, bool, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -396,7 +396,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, bool, read_write> = var
+ %v1:ptr<private, bool, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -443,7 +443,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -708,7 +708,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -755,7 +755,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, u32, read_write> = var
+ %v1:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/builtin_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/builtin_test.cc
index 745d8c1..5c5ec53 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/builtin_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/builtin_test.cc
@@ -44,7 +44,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %i:ptr<private, f32, read_write> = var, 1.0f
+ %i:ptr<private, f32, read_write> = var 1.0f
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/call_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/call_test.cc
index a8f4514..f7c7e2f 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/call_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/call_test.cc
@@ -111,7 +111,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %i:ptr<private, i32, read_write> = var, 1i
+ %i:ptr<private, i32, read_write> = var 1i
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -133,7 +133,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %i:ptr<private, vec3<f32>, read_write> = var, vec3<f32>(0.0f)
+ %i:ptr<private, vec3<f32>, read_write> = var vec3<f32>(0.0f)
}
)");
@@ -148,7 +148,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %i:ptr<private, f32, read_write> = var, 1.0f
+ %i:ptr<private, f32, read_write> = var 1.0f
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/program_to_ir_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/program_to_ir_test.cc
index 3effdd6..fdbde28 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/program_to_ir_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/program_to_ir_test.cc
@@ -724,7 +724,7 @@
$B1: {
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -773,7 +773,7 @@
$B1: {
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
next_iteration # -> $B3
}
$B3: { # body
@@ -1382,7 +1382,7 @@
auto m = res.Move();
EXPECT_EQ(core::ir::Disassembler(m).Plain(), R"($B1: { # root
%x:i32 = override, 1i @id(0)
- %arr:ptr<workgroup, array<u32, %x>, read_write> = var
+ %arr:ptr<workgroup, array<u32, %x>, read_write> = var undef
}
%a = func():void {
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/shadowing_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/shadowing_test.cc
index aaa224d..f338610 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/shadowing_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/shadowing_test.cc
@@ -59,7 +59,7 @@
%f = func():i32 {
$B1: {
- %S:ptr<function, S, read_write> = var, S(0i)
+ %S:ptr<function, S, read_write> = var S(0i)
%3:ptr<function, i32, read_write> = access %S, 0u
%4:i32 = load %3
ret %4
@@ -108,7 +108,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %i:ptr<private, i32, read_write> = var, 1i
+ %i:ptr<private, i32, read_write> = var 1i
}
%f = func():i32 {
@@ -118,7 +118,7 @@
store %i, %4
%5:i32 = load %i
%6:i32 = add %5, 1i
- %i_1:ptr<function, i32, read_write> = var, %6 # %i_1: 'i'
+ %i_1:ptr<function, i32, read_write> = var %6 # %i_1: 'i'
%8:i32 = load %i_1
ret %8
}
@@ -140,7 +140,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %i:ptr<private, i32, read_write> = var, 1i
+ %i:ptr<private, i32, read_write> = var 1i
}
%f = func():i32 {
@@ -174,7 +174,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
if true [t: $B2] { # if_1
$B2: { # true
%3:i32 = load %i
@@ -182,7 +182,7 @@
store %i, %4
%5:i32 = load %i
%6:i32 = add %5, 1i
- %i_1:ptr<function, i32, read_write> = var, %6 # %i_1: 'i'
+ %i_1:ptr<function, i32, read_write> = var %6 # %i_1: 'i'
%8:i32 = load %i_1
%9:i32 = add %8, 1i
store %i_1, %9
@@ -213,7 +213,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
if true [t: $B2] { # if_1
$B2: { # true
%3:i32 = load %i
@@ -248,7 +248,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
%3:i32 = load %i
@@ -263,7 +263,7 @@
}
%5:i32 = load %i
%6:i32 = add %5, 1i
- %i_1:ptr<function, i32, read_write> = var, %6 # %i_1: 'i'
+ %i_1:ptr<function, i32, read_write> = var %6 # %i_1: 'i'
%8:i32 = load %i_1
ret %8
}
@@ -294,7 +294,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
%3:i32 = load %i
@@ -338,10 +338,10 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
- %i_1:ptr<function, f32, read_write> = var, 0.0f # %i_1: 'i'
+ %i_1:ptr<function, f32, read_write> = var 0.0f # %i_1: 'i'
next_iteration # -> $B3
}
$B3: { # body
@@ -382,7 +382,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
%i_1:f32 = let 0.0f # %i_1: 'i'
@@ -425,10 +425,10 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
- %x:ptr<function, i32, read_write> = var, 0i
+ %x:ptr<function, i32, read_write> = var 0i
next_iteration # -> $B3
}
$B3: { # body
@@ -444,7 +444,7 @@
}
%6:i32 = load %i
%7:i32 = add %6, 1i
- %i_1:ptr<function, i32, read_write> = var, %7 # %i_1: 'i'
+ %i_1:ptr<function, i32, read_write> = var %7 # %i_1: 'i'
%9:i32 = load %i_1
ret %9
}
@@ -472,10 +472,10 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
- %x:ptr<function, i32, read_write> = var, 0i
+ %x:ptr<function, i32, read_write> = var 0i
next_iteration # -> $B3
}
$B3: { # body
@@ -523,7 +523,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
%3:i32 = load %i
@@ -535,7 +535,7 @@
}
%5:i32 = load %i
%6:i32 = add %5, 1i
- %i_1:ptr<function, i32, read_write> = var, %6 # %i_1: 'i'
+ %i_1:ptr<function, i32, read_write> = var %6 # %i_1: 'i'
%8:i32 = load %i_1
%9:bool = eq %8, 3i
if %9 [t: $B5] { # if_2
@@ -577,7 +577,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
%3:i32 = load %i
@@ -631,7 +631,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
%3:i32 = load %i
@@ -646,7 +646,7 @@
$B3: { # continuing
%5:i32 = load %i
%6:i32 = add %5, 1i
- %i_1:ptr<function, i32, read_write> = var, %6 # %i_1: 'i'
+ %i_1:ptr<function, i32, read_write> = var %6 # %i_1: 'i'
%8:i32 = load %i_1
%9:bool = gt %8, 2i
break_if %9 # -> [t: exit_loop loop_1, f: $B2]
@@ -681,7 +681,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
%3:i32 = load %i
@@ -731,7 +731,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
%3:i32 = load %i
switch %3 [c: (0i, $B2), c: (1i, $B3), c: (default, $B4)] { # switch_1
$B2: { # case
@@ -741,7 +741,7 @@
$B3: { # case
%5:i32 = load %i
%6:i32 = add %5, 1i
- %i_1:ptr<function, i32, read_write> = var, %6 # %i_1: 'i'
+ %i_1:ptr<function, i32, read_write> = var %6 # %i_1: 'i'
%8:i32 = load %i_1
ret %8
}
@@ -779,7 +779,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"(%f = func():i32 {
$B1: {
- %i:ptr<function, i32, read_write> = var
+ %i:ptr<function, i32, read_write> = var undef
%3:i32 = load %i
switch %3 [c: (0i, $B2), c: (1i, $B3), c: (default, $B4)] { # switch_1
$B2: { # case
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/store_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/store_test.cc
index 210fb29..fdb75ca 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/store_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/store_test.cc
@@ -45,7 +45,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %a:ptr<private, u32, read_write> = var
+ %a:ptr<private, u32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/unary_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/unary_test.cc
index f9427c4..12cb159 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/unary_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/unary_test.cc
@@ -141,7 +141,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, i32, read_write> = var
+ %v1:ptr<private, i32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
@@ -165,7 +165,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %v1:ptr<private, i32, read_write> = var
+ %v1:ptr<private, i32, read_write> = var undef
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
diff --git a/src/tint/lang/wgsl/reader/program_to_ir/var_test.cc b/src/tint/lang/wgsl/reader/program_to_ir/var_test.cc
index 5e5de67..29037bb 100644
--- a/src/tint/lang/wgsl/reader/program_to_ir/var_test.cc
+++ b/src/tint/lang/wgsl/reader/program_to_ir/var_test.cc
@@ -43,7 +43,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %a:ptr<private, u32, read_write> = var
+ %a:ptr<private, u32, read_write> = var undef
}
)");
@@ -57,7 +57,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %a:ptr<private, u32, read_write> = var, 2u
+ %a:ptr<private, u32, read_write> = var 2u
}
)");
@@ -70,7 +70,7 @@
ASSERT_EQ(m, Success);
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(), R"($B1: { # root
- %a:ptr<storage, u32, read> = var @binding_point(2, 3)
+ %a:ptr<storage, u32, read> = var undef @binding_point(2, 3)
}
)");
@@ -86,7 +86,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, u32, read_write> = var
+ %a:ptr<function, u32, read_write> = var undef
ret
}
}
@@ -104,7 +104,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, u32, read_write> = var, 2u
+ %a:ptr<function, u32, read_write> = var 2u
ret
}
}
@@ -122,10 +122,10 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, u32, read_write> = var
+ %a:ptr<function, u32, read_write> = var undef
%3:u32 = load %a
%4:u32 = add %3, 2u
- %b:ptr<function, u32, read_write> = var, %4
+ %b:ptr<function, u32, read_write> = var %4
ret
}
}
@@ -142,7 +142,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, i32, read_write> = var
+ %a:ptr<function, i32, read_write> = var undef
store %a, 42i
ret
}
@@ -184,7 +184,7 @@
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %a:ptr<function, array<array<array<i32, 5>, 5>, 5>, read_write> = var
+ %a:ptr<function, array<array<array<i32, 5>, 5>, 5>, read_write> = var undef
%5:i32 = call %f, 1i
%6:i32 = call %f, 2i
%7:i32 = call %f, 3i
@@ -230,7 +230,7 @@
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %a:ptr<function, array<vec4<f32>, 5>, read_write> = var
+ %a:ptr<function, array<vec4<f32>, 5>, read_write> = var undef
%5:i32 = call %f, 1i
%6:ptr<function, vec4<f32>, read_write> = access %a, %5
%7:i32 = call %f, 2i
@@ -278,7 +278,7 @@
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %a:ptr<function, array<mat3x4<f32>, 5>, read_write> = var
+ %a:ptr<function, array<mat3x4<f32>, 5>, read_write> = var undef
%5:i32 = call %f, 1i
%6:i32 = call %f, 2i
%7:ptr<function, vec4<f32>, read_write> = access %a, %5, %6
@@ -305,7 +305,7 @@
EXPECT_EQ(core::ir::Disassembler(m.Get()).Plain(),
R"(%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B1: {
- %a:ptr<function, i32, read_write> = var
+ %a:ptr<function, i32, read_write> = var undef
%3:i32 = load %a
%4:i32 = add %3, 42i
store %a, %4
@@ -349,7 +349,7 @@
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %a:ptr<function, array<array<array<i32, 5>, 5>, 5>, read_write> = var
+ %a:ptr<function, array<array<array<i32, 5>, 5>, 5>, read_write> = var undef
%5:i32 = call %f, 1i
%6:i32 = call %f, 2i
%7:i32 = call %f, 3i
@@ -401,7 +401,7 @@
}
%test_function = @compute @workgroup_size(1u, 1u, 1u) func():void {
$B2: {
- %a:ptr<function, array<mat3x4<f32>, 5>, read_write> = var
+ %a:ptr<function, array<mat3x4<f32>, 5>, read_write> = var undef
%5:i32 = call %f, 1i
%6:i32 = call %f, 2i
%7:ptr<function, vec4<f32>, read_write> = access %a, %5, %6
diff --git a/src/tint/lang/wgsl/writer/ir_to_program/ir_to_program_test.cc b/src/tint/lang/wgsl/writer/ir_to_program/ir_to_program_test.cc
index dba05cb..1605a88 100644
--- a/src/tint/lang/wgsl/writer/ir_to_program/ir_to_program_test.cc
+++ b/src/tint/lang/wgsl/writer/ir_to_program/ir_to_program_test.cc
@@ -2218,7 +2218,7 @@
TEST_F(IRToProgramTest, For_IncInInit_Cmp) {
// %b1 = block { # root
- // %i:ptr<storage, u32, read_write> = var @binding_point(0, 0)
+ // %i:ptr<storage, u32, read_write> = var undef @binding_point(0, 0)
// }
//
// %f = func():void -> %b2 {
diff --git a/src/tint/lang/wgsl/writer/raise/ptr_to_ref_test.cc b/src/tint/lang/wgsl/writer/raise/ptr_to_ref_test.cc
index da66ad8..a63c6c4 100644
--- a/src/tint/lang/wgsl/writer/raise/ptr_to_ref_test.cc
+++ b/src/tint/lang/wgsl/writer/raise/ptr_to_ref_test.cc
@@ -102,7 +102,7 @@
auto* src = R"(
$B1: { # root
- %1:ptr<private, i32, read_write> = var
+ %1:ptr<private, i32, read_write> = var undef
}
)";
@@ -110,7 +110,7 @@
auto* expect = R"(
$B1: { # root
- %1:ref<private, i32, read_write> = var
+ %1:ref<private, i32, read_write> = var undef
}
)";
@@ -130,7 +130,7 @@
auto* src = R"(
%1 = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:i32 = load %2
ret %3
}
@@ -141,7 +141,7 @@
auto* expect = R"(
%1 = func():i32 {
$B1: {
- %2:ref<function, i32, read_write> = var
+ %2:ref<function, i32, read_write> = var undef
%3:i32 = load %2
ret %3
}
@@ -164,7 +164,7 @@
auto* src = R"(
%1 = func():void {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 42i
ret
}
@@ -175,7 +175,7 @@
auto* expect = R"(
%1 = func():void {
$B1: {
- %2:ref<function, i32, read_write> = var
+ %2:ref<function, i32, read_write> = var undef
store %2, 42i
ret
}
@@ -271,7 +271,7 @@
}
%3 = func():void {
$B2: {
- %4:ptr<function, i32, read_write> = var
+ %4:ptr<function, i32, read_write> = var undef
%5:void = call %1, %4
ret
}
@@ -287,7 +287,7 @@
}
%3 = func():void {
$B2: {
- %4:ref<function, i32, read_write> = var
+ %4:ref<function, i32, read_write> = var undef
%5:ptr<function, i32, read_write> = ref-to-ptr %4
%6:void = call %1, %5
ret
diff --git a/src/tint/lang/wgsl/writer/raise/raise_test.cc b/src/tint/lang/wgsl/writer/raise/raise_test.cc
index dbc2544..75e3cb1 100644
--- a/src/tint/lang/wgsl/writer/raise/raise_test.cc
+++ b/src/tint/lang/wgsl/writer/raise/raise_test.cc
@@ -91,7 +91,7 @@
auto* src = R"(
$B1: { # root
- %W:ptr<workgroup, i32, read_write> = var
+ %W:ptr<workgroup, i32, read_write> = var undef
}
%f = func():i32 {
@@ -107,7 +107,7 @@
auto* expect = R"(
$B1: { # root
- %W:ref<workgroup, i32, read_write> = var
+ %W:ref<workgroup, i32, read_write> = var undef
}
%f = func():i32 {
@@ -138,7 +138,7 @@
auto* src = R"(
$B1: { # root
- %W:ptr<workgroup, i32, read_write> = var
+ %W:ptr<workgroup, i32, read_write> = var undef
}
%f = func():i32 {
@@ -155,7 +155,7 @@
auto* expect = R"(
$B1: { # root
- %W:ref<workgroup, i32, read_write> = var
+ %W:ref<workgroup, i32, read_write> = var undef
}
%f = func():i32 {
diff --git a/src/tint/lang/wgsl/writer/raise/value_to_let_test.cc b/src/tint/lang/wgsl/writer/raise/value_to_let_test.cc
index 4449bd8..9cf5e38 100644
--- a/src/tint/lang/wgsl/writer/raise/value_to_let_test.cc
+++ b/src/tint/lang/wgsl/writer/raise/value_to_let_test.cc
@@ -64,7 +64,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
store %2, 2i
@@ -78,7 +78,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
%4:i32 = let %3
@@ -847,7 +847,7 @@
}
%f = func():i32 {
$B2: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
store %3, 1i
%4:i32 = load %3
%5:void = call %a
@@ -866,7 +866,7 @@
}
%f = func():i32 {
$B2: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
store %3, 1i
%4:i32 = load %3
%5:i32 = let %4
@@ -902,7 +902,7 @@
}
%f = func():i32 {
$B2: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
store %3, 1i
%4:i32 = load %3
%5:i32 = call %a
@@ -921,7 +921,7 @@
}
%f = func():i32 {
$B2: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
store %3, 1i
%4:i32 = load %3
%5:i32 = let %4
@@ -957,7 +957,7 @@
}
%f = func():i32 {
$B2: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
store %3, 1i
%4:i32 = load %3
%5:i32 = call %a
@@ -977,7 +977,7 @@
}
%f = func():i32 {
$B2: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
store %3, 1i
%4:i32 = load %3
%5:i32 = call %a
@@ -1013,7 +1013,7 @@
}
%f = func():i32 {
$B2: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
store %3, 1i
%4:i32 = load %3
%5:i32 = call %a
@@ -1033,7 +1033,7 @@
}
%f = func():i32 {
$B2: {
- %3:ptr<function, i32, read_write> = var
+ %3:ptr<function, i32, read_write> = var undef
store %3, 1i
%4:i32 = load %3
%5:i32 = let %4
@@ -1075,7 +1075,7 @@
}
%f = func():i32 {
$B2: {
- %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var
+ %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var undef
%5:i32 = call %a, 1i
%6:i32 = call %a, 2i
%7:i32 = call %a, 3i
@@ -1096,7 +1096,7 @@
}
%f = func():i32 {
$B2: {
- %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var
+ %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var undef
%5:i32 = call %a, 1i
%6:i32 = call %a, 2i
%7:i32 = call %a, 3i
@@ -1135,7 +1135,7 @@
}
%f = func():i32 {
$B2: {
- %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var
+ %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var undef
%5:i32 = call %a, 2i
%6:i32 = call %a, 1i
%7:i32 = call %a, 3i
@@ -1156,7 +1156,7 @@
}
%f = func():i32 {
$B2: {
- %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var
+ %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var undef
%5:i32 = call %a, 2i
%6:i32 = let %5
%7:i32 = call %a, 1i
@@ -1196,7 +1196,7 @@
}
%f = func():i32 {
$B2: {
- %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var
+ %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var undef
%5:i32 = call %a, 3i
%6:i32 = call %a, 1i
%7:i32 = call %a, 2i
@@ -1217,7 +1217,7 @@
}
%f = func():i32 {
$B2: {
- %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var
+ %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var undef
%5:i32 = call %a, 3i
%6:i32 = let %5
%7:i32 = call %a, 1i
@@ -1257,7 +1257,7 @@
}
%f = func():i32 {
$B2: {
- %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var
+ %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var undef
%5:i32 = call %a, 3i
%6:i32 = call %a, 2i
%7:i32 = call %a, 1i
@@ -1278,7 +1278,7 @@
}
%f = func():i32 {
$B2: {
- %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var
+ %4:ptr<function, array<array<array<i32, 3>, 4>, 5>, read_write> = var undef
%5:i32 = call %a, 3i
%6:i32 = let %5
%7:i32 = call %a, 2i
@@ -1582,7 +1582,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var, 1i
+ %2:ptr<function, i32, read_write> = var 1i
%3:i32 = load %2
%4:i32 = add %3, 2i
if true [t: $B2] { # if_1
@@ -1600,7 +1600,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var, 1i
+ %2:ptr<function, i32, read_write> = var 1i
%3:i32 = load %2
%4:i32 = add %3, 2i
%5:i32 = let %4
@@ -1678,7 +1678,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var, 1i
+ %2:ptr<function, i32, read_write> = var 1i
%3:i32 = load %2
%4:bool = eq %3, 2i
if %4 [t: $B2] { # if_1
@@ -1696,7 +1696,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var, 1i
+ %2:ptr<function, i32, read_write> = var 1i
%3:i32 = load %2
%4:bool = eq %3, 2i
if %4 [t: $B2] { # if_1
@@ -1731,7 +1731,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
if true [t: $B2] { # if_1
@@ -1750,7 +1750,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
%4:i32 = let %3
@@ -1822,7 +1822,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var, 1i
+ %2:ptr<function, i32, read_write> = var 1i
%3:i32 = load %2
%4:i32 = add %3, 2i
switch 3i [c: (default, $B2)] { # switch_1
@@ -1840,7 +1840,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var, 1i
+ %2:ptr<function, i32, read_write> = var 1i
%3:i32 = load %2
%4:i32 = add %3, 2i
%5:i32 = let %4
@@ -1919,7 +1919,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var, 1i
+ %2:ptr<function, i32, read_write> = var 1i
%3:i32 = load %2
switch %3 [c: (default, $B2)] { # switch_1
$B2: { # case
@@ -1936,7 +1936,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var, 1i
+ %2:ptr<function, i32, read_write> = var 1i
%3:i32 = load %2
switch %3 [c: (default, $B2)] { # switch_1
$B2: { # case
@@ -1971,7 +1971,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
switch 1i [c: (default, $B2)] { # switch_1
@@ -1990,7 +1990,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
%4:i32 = let %3
@@ -2030,7 +2030,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:i32 = add 1i, 2i
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
@@ -2073,7 +2073,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:i32 = load %2
%4:i32 = add %3, 2i
loop [i: $B2, b: $B3] { # loop_1
@@ -2095,7 +2095,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:i32 = load %2
%4:i32 = add %3, 2i
%5:i32 = let %4
@@ -2136,7 +2136,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
loop [i: $B2, b: $B3] { # loop_1
@@ -2158,7 +2158,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
%4:i32 = let %3
@@ -2227,7 +2227,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:i32 = load %2
%4:i32 = add %3, 2i
loop [b: $B2] { # loop_1
@@ -2245,7 +2245,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:i32 = load %2
%4:i32 = add %3, 2i
%5:i32 = let %4
@@ -2281,7 +2281,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
loop [b: $B2] { # loop_1
@@ -2300,7 +2300,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
%4:i32 = let %3
@@ -2372,7 +2372,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:i32 = load %2
%4:i32 = add %3, 2i
loop [b: $B2, c: $B3] { # loop_1
@@ -2396,7 +2396,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
%3:i32 = load %2
%4:i32 = add %3, 2i
%5:i32 = let %4
@@ -2435,7 +2435,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
loop [b: $B2, c: $B3] { # loop_1
@@ -2457,7 +2457,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
%3:i32 = load %2
%4:i32 = let %3
@@ -2500,7 +2500,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
@@ -2523,7 +2523,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
loop [i: $B2, b: $B3] { # loop_1
$B2: { # initializer
@@ -2568,7 +2568,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
@@ -2594,7 +2594,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
loop [i: $B2, b: $B3, c: $B4] { # loop_1
$B2: { # initializer
@@ -2642,7 +2642,7 @@
auto* src = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
@@ -2665,7 +2665,7 @@
auto* expect = R"(
%f = func():i32 {
$B1: {
- %2:ptr<function, i32, read_write> = var
+ %2:ptr<function, i32, read_write> = var undef
store %2, 1i
loop [b: $B2, c: $B3] { # loop_1
$B2: { # body
diff --git a/test/tint/builtins/gen/literal/subgroupMatrixMultiply/5677fc.wgsl.expected.msl b/test/tint/builtins/gen/literal/subgroupMatrixMultiply/5677fc.wgsl.expected.msl
index cbfd782..224c568 100644
--- a/test/tint/builtins/gen/literal/subgroupMatrixMultiply/5677fc.wgsl.expected.msl
+++ b/test/tint/builtins/gen/literal/subgroupMatrixMultiply/5677fc.wgsl.expected.msl
@@ -42,7 +42,7 @@
%5:subgroup_matrix_result<f32, 8, 8> = load %4
%6:void = msl.simdgroup_multiply %5, %2, %3
%7:subgroup_matrix_result<f32, 8, 8> = load %4
- %res:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var, %7
+ %res:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var %7
%9:subgroup_matrix_result<f32, 8, 8> = load %res
ret %9
}
diff --git a/test/tint/builtins/gen/literal/subgroupMatrixMultiply/8744bd.wgsl.expected.msl b/test/tint/builtins/gen/literal/subgroupMatrixMultiply/8744bd.wgsl.expected.msl
index 73cdd5a..6e92206 100644
--- a/test/tint/builtins/gen/literal/subgroupMatrixMultiply/8744bd.wgsl.expected.msl
+++ b/test/tint/builtins/gen/literal/subgroupMatrixMultiply/8744bd.wgsl.expected.msl
@@ -42,7 +42,7 @@
%5:subgroup_matrix_result<f16, 8, 8> = load %4
%6:void = msl.simdgroup_multiply %5, %2, %3
%7:subgroup_matrix_result<f16, 8, 8> = load %4
- %res:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var, %7
+ %res:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var %7
%9:subgroup_matrix_result<f16, 8, 8> = load %res
ret %9
}
diff --git a/test/tint/builtins/gen/literal/subgroupMatrixMultiplyAccumulate/071472.wgsl.expected.msl b/test/tint/builtins/gen/literal/subgroupMatrixMultiplyAccumulate/071472.wgsl.expected.msl
index a1dfab6..fece4d7 100644
--- a/test/tint/builtins/gen/literal/subgroupMatrixMultiplyAccumulate/071472.wgsl.expected.msl
+++ b/test/tint/builtins/gen/literal/subgroupMatrixMultiplyAccumulate/071472.wgsl.expected.msl
@@ -43,7 +43,7 @@
%6:subgroup_matrix_result<f32, 8, 8> = load %5
%7:void = msl.simdgroup_multiply_accumulate %6, %2, %3, %4
%8:subgroup_matrix_result<f32, 8, 8> = load %5
- %res:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var, %8
+ %res:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var %8
%10:subgroup_matrix_result<f32, 8, 8> = load %res
ret %10
}
diff --git a/test/tint/builtins/gen/literal/subgroupMatrixMultiplyAccumulate/c4062a.wgsl.expected.msl b/test/tint/builtins/gen/literal/subgroupMatrixMultiplyAccumulate/c4062a.wgsl.expected.msl
index d955d95..5f83ee0 100644
--- a/test/tint/builtins/gen/literal/subgroupMatrixMultiplyAccumulate/c4062a.wgsl.expected.msl
+++ b/test/tint/builtins/gen/literal/subgroupMatrixMultiplyAccumulate/c4062a.wgsl.expected.msl
@@ -43,7 +43,7 @@
%6:subgroup_matrix_result<f16, 8, 8> = load %5
%7:void = msl.simdgroup_multiply_accumulate %6, %2, %3, %4
%8:subgroup_matrix_result<f16, 8, 8> = load %5
- %res:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var, %8
+ %res:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var %8
%10:subgroup_matrix_result<f16, 8, 8> = load %res
ret %10
}
diff --git a/test/tint/builtins/gen/var/subgroupMatrixMultiply/5677fc.wgsl.expected.msl b/test/tint/builtins/gen/var/subgroupMatrixMultiply/5677fc.wgsl.expected.msl
index 14655f4..42a8fd7 100644
--- a/test/tint/builtins/gen/var/subgroupMatrixMultiply/5677fc.wgsl.expected.msl
+++ b/test/tint/builtins/gen/var/subgroupMatrixMultiply/5677fc.wgsl.expected.msl
@@ -39,16 +39,16 @@
%subgroupMatrixMultiply_5677fc = func():subgroup_matrix_result<f32, 8, 8> {
$B1: {
%2:subgroup_matrix_left<f16, 8, 8> = construct
- %arg_0:ptr<function, subgroup_matrix_left<f16, 8, 8>, read_write> = var, %2
+ %arg_0:ptr<function, subgroup_matrix_left<f16, 8, 8>, read_write> = var %2
%4:subgroup_matrix_right<f16, 8, 8> = construct
- %arg_1:ptr<function, subgroup_matrix_right<f16, 8, 8>, read_write> = var, %4
+ %arg_1:ptr<function, subgroup_matrix_right<f16, 8, 8>, read_write> = var %4
%6:subgroup_matrix_left<f16, 8, 8> = load %arg_0
%7:subgroup_matrix_right<f16, 8, 8> = load %arg_1
%8:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var
%9:subgroup_matrix_result<f32, 8, 8> = load %8
%10:void = msl.simdgroup_multiply %9, %6, %7
%11:subgroup_matrix_result<f32, 8, 8> = load %8
- %res:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var, %11
+ %res:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var %11
%13:subgroup_matrix_result<f32, 8, 8> = load %res
ret %13
}
diff --git a/test/tint/builtins/gen/var/subgroupMatrixMultiply/8744bd.wgsl.expected.msl b/test/tint/builtins/gen/var/subgroupMatrixMultiply/8744bd.wgsl.expected.msl
index a4f8fe0..5a771cd 100644
--- a/test/tint/builtins/gen/var/subgroupMatrixMultiply/8744bd.wgsl.expected.msl
+++ b/test/tint/builtins/gen/var/subgroupMatrixMultiply/8744bd.wgsl.expected.msl
@@ -39,16 +39,16 @@
%subgroupMatrixMultiply_8744bd = func():subgroup_matrix_result<f16, 8, 8> {
$B1: {
%2:subgroup_matrix_left<f32, 8, 8> = construct
- %arg_0:ptr<function, subgroup_matrix_left<f32, 8, 8>, read_write> = var, %2
+ %arg_0:ptr<function, subgroup_matrix_left<f32, 8, 8>, read_write> = var %2
%4:subgroup_matrix_right<f32, 8, 8> = construct
- %arg_1:ptr<function, subgroup_matrix_right<f32, 8, 8>, read_write> = var, %4
+ %arg_1:ptr<function, subgroup_matrix_right<f32, 8, 8>, read_write> = var %4
%6:subgroup_matrix_left<f32, 8, 8> = load %arg_0
%7:subgroup_matrix_right<f32, 8, 8> = load %arg_1
%8:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var
%9:subgroup_matrix_result<f16, 8, 8> = load %8
%10:void = msl.simdgroup_multiply %9, %6, %7
%11:subgroup_matrix_result<f16, 8, 8> = load %8
- %res:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var, %11
+ %res:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var %11
%13:subgroup_matrix_result<f16, 8, 8> = load %res
ret %13
}
diff --git a/test/tint/builtins/gen/var/subgroupMatrixMultiplyAccumulate/071472.wgsl.expected.msl b/test/tint/builtins/gen/var/subgroupMatrixMultiplyAccumulate/071472.wgsl.expected.msl
index f609d11..5bca816 100644
--- a/test/tint/builtins/gen/var/subgroupMatrixMultiplyAccumulate/071472.wgsl.expected.msl
+++ b/test/tint/builtins/gen/var/subgroupMatrixMultiplyAccumulate/071472.wgsl.expected.msl
@@ -40,11 +40,11 @@
%subgroupMatrixMultiplyAccumulate_071472 = func():subgroup_matrix_result<f32, 8, 8> {
$B1: {
%2:subgroup_matrix_left<f16, 8, 8> = construct
- %arg_0:ptr<function, subgroup_matrix_left<f16, 8, 8>, read_write> = var, %2
+ %arg_0:ptr<function, subgroup_matrix_left<f16, 8, 8>, read_write> = var %2
%4:subgroup_matrix_right<f16, 8, 8> = construct
- %arg_1:ptr<function, subgroup_matrix_right<f16, 8, 8>, read_write> = var, %4
+ %arg_1:ptr<function, subgroup_matrix_right<f16, 8, 8>, read_write> = var %4
%6:subgroup_matrix_result<f32, 8, 8> = construct
- %arg_2:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var, %6
+ %arg_2:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var %6
%8:subgroup_matrix_left<f16, 8, 8> = load %arg_0
%9:subgroup_matrix_right<f16, 8, 8> = load %arg_1
%10:subgroup_matrix_result<f32, 8, 8> = load %arg_2
@@ -52,7 +52,7 @@
%12:subgroup_matrix_result<f32, 8, 8> = load %11
%13:void = msl.simdgroup_multiply_accumulate %12, %8, %9, %10
%14:subgroup_matrix_result<f32, 8, 8> = load %11
- %res:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var, %14
+ %res:ptr<function, subgroup_matrix_result<f32, 8, 8>, read_write> = var %14
%16:subgroup_matrix_result<f32, 8, 8> = load %res
ret %16
}
diff --git a/test/tint/builtins/gen/var/subgroupMatrixMultiplyAccumulate/c4062a.wgsl.expected.msl b/test/tint/builtins/gen/var/subgroupMatrixMultiplyAccumulate/c4062a.wgsl.expected.msl
index 25abe34..aef3052 100644
--- a/test/tint/builtins/gen/var/subgroupMatrixMultiplyAccumulate/c4062a.wgsl.expected.msl
+++ b/test/tint/builtins/gen/var/subgroupMatrixMultiplyAccumulate/c4062a.wgsl.expected.msl
@@ -40,11 +40,11 @@
%subgroupMatrixMultiplyAccumulate_c4062a = func():subgroup_matrix_result<f16, 8, 8> {
$B1: {
%2:subgroup_matrix_left<f32, 8, 8> = construct
- %arg_0:ptr<function, subgroup_matrix_left<f32, 8, 8>, read_write> = var, %2
+ %arg_0:ptr<function, subgroup_matrix_left<f32, 8, 8>, read_write> = var %2
%4:subgroup_matrix_right<f32, 8, 8> = construct
- %arg_1:ptr<function, subgroup_matrix_right<f32, 8, 8>, read_write> = var, %4
+ %arg_1:ptr<function, subgroup_matrix_right<f32, 8, 8>, read_write> = var %4
%6:subgroup_matrix_result<f16, 8, 8> = construct
- %arg_2:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var, %6
+ %arg_2:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var %6
%8:subgroup_matrix_left<f32, 8, 8> = load %arg_0
%9:subgroup_matrix_right<f32, 8, 8> = load %arg_1
%10:subgroup_matrix_result<f16, 8, 8> = load %arg_2
@@ -52,7 +52,7 @@
%12:subgroup_matrix_result<f16, 8, 8> = load %11
%13:void = msl.simdgroup_multiply_accumulate %12, %8, %9, %10
%14:subgroup_matrix_result<f16, 8, 8> = load %11
- %res:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var, %14
+ %res:ptr<function, subgroup_matrix_result<f16, 8, 8>, read_write> = var %14
%16:subgroup_matrix_result<f16, 8, 8> = load %res
ret %16
}