[ir] Rename all shadowing declarations
The RenameConflicts transform does not take expression inlining into
account, which can lead to expressions referencing the wrong
declaration when used in a variable initializer in languages that do
not have the same scoping rules as WGSL.
Make the transform just rename all shadowing declarations
instead. This results in some declarations being renamed
unnecessarily, but fixes cases where we are generate code that is
incorrect (and causing FXC failures).
Fixed: 373646532
Change-Id: I3a607b61fb45b2280c7cd6e50fa2f9cdc53d47eb
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/211435
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: James Price <jrprice@google.com>
diff --git a/src/tint/lang/core/ir/transform/direct_variable_access_wgsl_test.cc b/src/tint/lang/core/ir/transform/direct_variable_access_wgsl_test.cc
index fe09686..31d49a1 100644
--- a/src/tint/lang/core/ir/transform/direct_variable_access_wgsl_test.cc
+++ b/src/tint/lang/core/ir/transform/direct_variable_access_wgsl_test.cc
@@ -606,16 +606,16 @@
fn b() {
let v = first();
let v_1 = second();
- for(var i : i32 = 0i; (i < 3i); a(10i, array<u32, 2u>(u32(v), u32(v_1)), 20i)) {
- i = (i + 1i);
+ for(var i_1 : i32 = 0i; (i_1 < 3i); a(10i, array<u32, 2u>(u32(v), u32(v_1)), 20i)) {
+ i_1 = (i_1 + 1i);
}
}
fn c() {
let v_2 = first();
let v_3 = second();
- for(var i : i32 = 0i; (i < 3i); a(10i, array<u32, 2u>(u32(v_2), u32(v_3)), 20i)) {
- i = (i + 1i);
+ for(var i_2 : i32 = 0i; (i_2 < 3i); a(10i, array<u32, 2u>(u32(v_2), u32(v_3)), 20i)) {
+ i_2 = (i_2 + 1i);
}
}
diff --git a/src/tint/lang/core/ir/transform/rename_conflicts.cc b/src/tint/lang/core/ir/transform/rename_conflicts.cc
index b98400b..4dfab8e 100644
--- a/src/tint/lang/core/ir/transform/rename_conflicts.cc
+++ b/src/tint/lang/core/ir/transform/rename_conflicts.cc
@@ -87,7 +87,7 @@
for (auto* param : fn->Params()) {
EnsureResolvable(param->Type());
if (auto symbol = ir.NameOf(param); symbol.IsValid()) {
- Declare(scopes.Back(), param, symbol.NameView());
+ Declare(param, symbol);
}
}
Process(fn->Block());
@@ -111,9 +111,8 @@
// Declare all the user types
for (auto* ty : ir.Types()) {
if (auto* str = ty->As<core::type::Struct>()) {
- auto name = str->Name().NameView();
if (!IsBuiltinStruct(str)) {
- Declare(scopes.Front(), const_cast<core::type::Struct*>(str), name);
+ Declare(const_cast<core::type::Struct*>(str), str->Name());
}
}
}
@@ -122,7 +121,7 @@
for (auto* inst : *ir.root_block) {
for (auto* result : inst->Results()) {
if (auto symbol = ir.NameOf(result)) {
- Declare(scopes.Front(), result, symbol.NameView());
+ Declare(result, symbol);
}
}
}
@@ -130,7 +129,7 @@
// Declare all the functions
for (core::ir::Function* fn : ir.functions) {
if (auto symbol = ir.NameOf(fn); symbol.IsValid()) {
- Declare(scopes.Back(), fn, symbol.NameView());
+ Declare(fn, symbol);
}
}
}
@@ -207,7 +206,7 @@
// Register new operands and check their types can resolve
for (auto* result : inst->Results()) {
if (auto symbol = ir.NameOf(result); symbol.IsValid()) {
- Declare(scopes.Back(), result, symbol.NameView());
+ Declare(result, symbol);
}
}
}
@@ -263,26 +262,37 @@
}
}
- /// Registers the declaration @p thing in the scope @p scope with the name @p name
- /// If there is an existing declaration with the given name in @p scope then @p thing will be
- /// renamed.
- void Declare(Scope& scope, CastableBase* thing, std::string_view name) {
- auto add = scope.Add(name, thing);
- if (!add && add.value != thing) {
- // Multiple declarations with the same name in the same scope.
- // Rename the later declaration.
- Rename(thing, name);
+ /// Registers the declaration @p thing in the current scope with the name @p name
+ /// If there is an existing declaration with the given name in any parent scope then @p thing
+ /// will be renamed.
+ void Declare(CastableBase* thing, Symbol name) {
+ // Check if the declaration would shadow another declaration in the current scope or any
+ // parent scope, and rename it if so.
+ for (auto& scope : tint::Reverse(scopes)) {
+ if (auto decl = scope.Get(name.NameView())) {
+ if (*decl.value != thing) {
+ name = Rename(thing, name.NameView());
+ break;
+ }
+ }
}
+
+ // Add the declaration to the current scope, and make sure that it was either successfully
+ // added or has already been added.
+ auto add = scopes.Back().Add(name.NameView(), thing);
+ TINT_ASSERT(add || add.value == thing);
}
/// Rename changes the name of @p thing with the old name of @p old_name
- void Rename(CastableBase* thing, std::string_view old_name) {
+ /// @returns the new name
+ Symbol Rename(CastableBase* thing, std::string_view old_name) {
Symbol new_name = ir.symbols.New(old_name);
Switch(
thing, //
[&](core::ir::Value* value) { ir.SetName(value, new_name); },
[&](core::type::Struct* str) { str->SetName(new_name); }, //
TINT_ICE_ON_NO_MATCH);
+ return new_name;
}
/// @return true if @p s is a builtin (non-user declared) structure.
diff --git a/src/tint/lang/core/ir/transform/rename_conflicts.h b/src/tint/lang/core/ir/transform/rename_conflicts.h
index 8086476..29b6d4a 100644
--- a/src/tint/lang/core/ir/transform/rename_conflicts.h
+++ b/src/tint/lang/core/ir/transform/rename_conflicts.h
@@ -39,7 +39,7 @@
/// RenameConflicts is a transform that renames declarations which prevent identifiers from
/// resolving to the correct declaration, and those with identical identifiers declared in the same
-/// scope.
+/// scope or a parent scope.
/// @param module the module to transform
/// @returns success or failure
Result<SuccessType> RenameConflicts(core::ir::Module& module);
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 bd4cb60..e418b0c 100644
--- a/src/tint/lang/core/ir/transform/rename_conflicts_test.cc
+++ b/src/tint/lang/core/ir/transform/rename_conflicts_test.cc
@@ -190,7 +190,7 @@
EXPECT_EQ(expect, str());
}
-TEST_F(IRToProgramRenameConflictsTest, NoModify_RootBlockVar_ShadowedBy_FnVar) {
+TEST_F(IRToProgramRenameConflictsTest, RootBlockVar_ShadowedBy_FnVar) {
b.Append(mod.root_block, [&] {
auto* outer = b.Var(ty.ptr<private_, i32>());
b.ir.SetName(outer, "v");
@@ -224,46 +224,6 @@
)";
EXPECT_EQ(src, str());
- auto* expect = src;
-
- Run();
-
- EXPECT_EQ(expect, str());
-}
-
-TEST_F(IRToProgramRenameConflictsTest, Conflict_RootBlockVar_ShadowedBy_FnVar) {
- b.Append(mod.root_block, [&] {
- auto* outer = b.Var(ty.ptr<private_, i32>());
- b.ir.SetName(outer, "v");
-
- auto* fn = b.Function("f", ty.i32());
- b.Append(fn->Block(), [&] {
- auto* inner = b.Var(ty.ptr<function, i32>());
- b.ir.SetName(inner, "v");
-
- auto* load_outer = b.Load(outer);
- auto* load_inner = b.Load(inner);
- b.Return(fn, b.Add(ty.i32(), load_outer, load_inner));
- });
- });
-
- auto* src = R"(
-$B1: { # root
- %v:ptr<private, i32, read_write> = var
-}
-
-%f = func():i32 {
- $B2: {
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
- %4:i32 = load %v
- %5:i32 = load %v_1
- %6:i32 = add %4, %5
- ret %6
- }
-}
-)";
- EXPECT_EQ(src, str());
-
auto* expect = R"(
$B1: { # root
%v:ptr<private, i32, read_write> = var
@@ -271,10 +231,10 @@
%f = func():i32 {
$B2: {
+ %3:i32 = load %v
%v_1:ptr<function, i32, read_write> = var
- %4:i32 = load %v
%5:i32 = load %v_1
- %6:i32 = add %4, %5
+ %6:i32 = add %3, %5
ret %6
}
}
@@ -285,40 +245,38 @@
EXPECT_EQ(expect, str());
}
-TEST_F(IRToProgramRenameConflictsTest, NoModify_FnVar_ShadowedBy_IfVar) {
+TEST_F(IRToProgramRenameConflictsTest, NoModify_FnVar_After_IfVar) {
auto* fn = b.Function("f", ty.i32());
b.Append(fn->Block(), [&] {
- auto* outer = b.Var(ty.ptr<function, i32>());
- b.ir.SetName(outer, "v");
-
auto* if_ = b.If(true);
b.Append(if_->True(), [&] {
- auto* load_outer = b.Load(outer);
-
auto* inner = b.Var(ty.ptr<function, i32>());
b.ir.SetName(inner, "v");
auto* load_inner = b.Load(inner);
- b.Return(fn, b.Add(ty.i32(), load_outer, load_inner));
+ b.Return(fn, load_inner);
});
- b.Unreachable();
+ auto* outer = b.Var(ty.ptr<function, i32>());
+ b.ir.SetName(outer, "v");
+
+ auto* load_outer = b.Load(outer);
+ b.Return(fn, load_outer);
});
auto* src = R"(
%f = func():i32 {
$B1: {
- %v:ptr<function, i32, read_write> = var
if true [t: $B2] { # if_1
$B2: { # true
+ %v:ptr<function, i32, read_write> = var
%3:i32 = load %v
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
- %5:i32 = load %v_1
- %6:i32 = add %3, %5
- ret %6
+ ret %3
}
}
- unreachable
+ %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
+ %5:i32 = load %v_1
+ ret %5
}
}
)";
@@ -448,7 +406,7 @@
EXPECT_EQ(expect, str());
}
-TEST_F(IRToProgramRenameConflictsTest, NoModify_LoopInitVar_ShadowedBy_LoopBodyVar) {
+TEST_F(IRToProgramRenameConflictsTest, LoopInitVar_ShadowedBy_LoopBodyVar) {
auto* fn = b.Function("f", ty.i32());
b.Append(fn->Block(), [&] {
auto* loop = b.Loop();
@@ -493,57 +451,6 @@
)";
EXPECT_EQ(src, str());
- auto* expect = src;
-
- Run();
-
- EXPECT_EQ(expect, str());
-}
-
-TEST_F(IRToProgramRenameConflictsTest, Conflict_LoopInitVar_ShadowedBy_LoopBodyVar) {
- auto* fn = b.Function("f", ty.i32());
- b.Append(fn->Block(), [&] {
- auto* loop = b.Loop();
- b.Append(loop->Initializer(), [&] {
- auto* outer = b.Var(ty.ptr<function, i32>());
- b.ir.SetName(outer, "v");
- b.NextIteration(loop);
-
- b.Append(loop->Body(), [&] {
- auto* inner = b.Var(ty.ptr<function, i32>());
- b.ir.SetName(inner, "v");
-
- auto* load_outer = b.Load(outer);
- auto* load_inner = b.Load(inner);
- b.Return(fn, b.Add(ty.i32(), load_outer, load_inner));
- });
- });
-
- b.Unreachable();
- });
-
- auto* src = R"(
-%f = func():i32 {
- $B1: {
- loop [i: $B2, b: $B3] { # loop_1
- $B2: { # initializer
- %v:ptr<function, i32, read_write> = var
- next_iteration # -> $B3
- }
- $B3: { # body
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
- %4:i32 = load %v
- %5:i32 = load %v_1
- %6:i32 = add %4, %5
- ret %6
- }
- }
- unreachable
- }
-}
-)";
- EXPECT_EQ(src, str());
-
auto* expect = R"(
%f = func():i32 {
$B1: {
@@ -553,10 +460,10 @@
next_iteration # -> $B3
}
$B3: { # body
+ %3:i32 = load %v
%v_1:ptr<function, i32, read_write> = var
- %4:i32 = load %v
%5:i32 = load %v_1
- %6:i32 = add %4, %5
+ %6:i32 = add %3, %5
ret %6
}
}
@@ -570,7 +477,7 @@
EXPECT_EQ(expect, str());
}
-TEST_F(IRToProgramRenameConflictsTest, NoModify_LoopBodyVar_ShadowedBy_LoopContVar) {
+TEST_F(IRToProgramRenameConflictsTest, LoopBodyVar_ShadowedBy_LoopContVar) {
auto* fn = b.Function("f", ty.i32());
b.Append(fn->Block(), [&] {
auto* loop = b.Loop();
@@ -619,61 +526,6 @@
)";
EXPECT_EQ(src, str());
- auto* expect = src;
-
- Run();
-
- EXPECT_EQ(expect, str());
-}
-
-TEST_F(IRToProgramRenameConflictsTest, Conflict_LoopBodyVar_ShadowedBy_LoopContVar) {
- auto* fn = b.Function("f", ty.i32());
- b.Append(fn->Block(), [&] {
- auto* loop = b.Loop();
- b.Append(loop->Initializer(), [&] { b.NextIteration(loop); });
- b.Append(loop->Body(), [&] {
- auto* outer = b.Var(ty.ptr<function, i32>());
- b.ir.SetName(outer, "v");
- b.Continue(loop);
-
- b.Append(loop->Continuing(), [&] {
- auto* inner = b.Var(ty.ptr<function, i32>());
- b.ir.SetName(inner, "v");
-
- auto* load_outer = b.Load(outer);
- auto* load_inner = b.Load(inner);
- b.Return(fn, b.Add(ty.i32(), load_outer, load_inner));
- });
- });
-
- b.Unreachable();
- });
-
- auto* src = R"(
-%f = func():i32 {
- $B1: {
- loop [i: $B2, b: $B3, c: $B4] { # loop_1
- $B2: { # initializer
- next_iteration # -> $B3
- }
- $B3: { # body
- %v:ptr<function, i32, read_write> = var
- continue # -> $B4
- }
- $B4: { # continuing
- %v_1:ptr<function, i32, read_write> = var # %v_1: 'v'
- %4:i32 = load %v
- %5:i32 = load %v_1
- %6:i32 = add %4, %5
- ret %6
- }
- }
- unreachable
- }
-}
-)";
- EXPECT_EQ(src, str());
-
auto* expect = R"(
%f = func():i32 {
$B1: {
@@ -686,10 +538,10 @@
continue # -> $B4
}
$B4: { # continuing
+ %3:i32 = load %v
%v_1:ptr<function, i32, read_write> = var
- %4:i32 = load %v
%5:i32 = load %v_1
- %6:i32 = add %4, %5
+ %6:i32 = add %3, %5
ret %6
}
}
diff --git a/src/tint/lang/hlsl/writer/access_test.cc b/src/tint/lang/hlsl/writer/access_test.cc
index 698f8e8..00ef4d4 100644
--- a/src/tint/lang/hlsl/writer/access_test.cc
+++ b/src/tint/lang/hlsl/writer/access_test.cc
@@ -964,24 +964,24 @@
uint4 v[1];
};
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
- uint4 v = src;
+ uint4 v_1 = src;
uint4 mask = (65535u).xxxx;
uint4 shift = (16u).xxxx;
- float4 t_low = f16tof32((v & mask));
- float4 t_high = f16tof32(((v >> shift) & mask));
- float16_t v_1 = float16_t(t_low.x);
- float16_t v_2 = float16_t(t_high.x);
- float16_t v_3 = float16_t(t_low.y);
- return vector<float16_t, 4>(v_1, v_2, v_3, float16_t(t_high.y));
+ float4 t_low = f16tof32((v_1 & mask));
+ float4 t_high = f16tof32(((v_1 >> shift) & mask));
+ float16_t v_2 = float16_t(t_low.x);
+ float16_t v_3 = float16_t(t_high.x);
+ float16_t v_4 = float16_t(t_low.y);
+ return vector<float16_t, 4>(v_2, v_3, v_4, float16_t(t_high.y));
}
void foo() {
uint x = 1u;
vector<float16_t, 4> a = tint_bitcast_to_f16(v[0u]);
float16_t b = float16_t(f16tof32(v[0u].x));
- uint v_4 = (uint(min(x, 3u)) * 2u);
- uint v_5 = v[(v_4 / 16u)][((v_4 % 16u) / 4u)];
- float16_t c = float16_t(f16tof32((v_5 >> ((((v_4 % 4u) == 0u)) ? (0u) : (16u)))));
+ uint v_5 = (uint(min(x, 3u)) * 2u);
+ uint v_6 = v[(v_5 / 16u)][((v_5 % 16u) / 4u)];
+ float16_t c = float16_t(f16tof32((v_6 >> ((((v_5 % 4u) == 0u)) ? (0u) : (16u)))));
float16_t d = float16_t(f16tof32(v[0u].y));
float16_t e = float16_t(f16tof32((v[0u].y >> 16u)));
}
@@ -1076,24 +1076,24 @@
uint4 v[1];
};
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
- uint4 v = src;
+ uint4 v_1 = src;
uint4 mask = (65535u).xxxx;
uint4 shift = (16u).xxxx;
- float4 t_low = f16tof32((v & mask));
- float4 t_high = f16tof32(((v >> shift) & mask));
- float16_t v_1 = float16_t(t_low.x);
- float16_t v_2 = float16_t(t_high.x);
- float16_t v_3 = float16_t(t_low.y);
- return vector<float16_t, 4>(v_1, v_2, v_3, float16_t(t_high.y));
+ float4 t_low = f16tof32((v_1 & mask));
+ float4 t_high = f16tof32(((v_1 >> shift) & mask));
+ float16_t v_2 = float16_t(t_low.x);
+ float16_t v_3 = float16_t(t_high.x);
+ float16_t v_4 = float16_t(t_low.y);
+ return vector<float16_t, 4>(v_2, v_3, v_4, float16_t(t_high.y));
}
-matrix<float16_t, 2, 3> v_4(uint start_byte_offset) {
- vector<float16_t, 3> v_5 = tint_bitcast_to_f16(v[(start_byte_offset / 16u)]).xyz;
- return matrix<float16_t, 2, 3>(v_5, tint_bitcast_to_f16(v[((8u + start_byte_offset) / 16u)]).xyz);
+matrix<float16_t, 2, 3> v_5(uint start_byte_offset) {
+ vector<float16_t, 3> v_6 = tint_bitcast_to_f16(v[(start_byte_offset / 16u)]).xyz;
+ return matrix<float16_t, 2, 3>(v_6, tint_bitcast_to_f16(v[((8u + start_byte_offset) / 16u)]).xyz);
}
void foo() {
- matrix<float16_t, 2, 3> a = v_4(0u);
+ matrix<float16_t, 2, 3> a = v_5(0u);
vector<float16_t, 3> b = tint_bitcast_to_f16(v[0u]).xyz;
float16_t c = float16_t(f16tof32(v[0u].w));
}
@@ -1192,22 +1192,22 @@
uint4 v[1];
};
vector<float16_t, 2> tint_bitcast_to_f16(uint src) {
- uint v = src;
- float t_low = f16tof32((v & 65535u));
- float t_high = f16tof32(((v >> 16u) & 65535u));
- float16_t v_1 = float16_t(t_low);
- return vector<float16_t, 2>(v_1, float16_t(t_high));
+ uint v_1 = src;
+ float t_low = f16tof32((v_1 & 65535u));
+ float t_high = f16tof32(((v_1 >> 16u) & 65535u));
+ float16_t v_2 = float16_t(t_low);
+ return vector<float16_t, 2>(v_2, float16_t(t_high));
}
-matrix<float16_t, 2, 2> v_2(uint start_byte_offset) {
- uint4 v_3 = v[(start_byte_offset / 16u)];
- vector<float16_t, 2> v_4 = tint_bitcast_to_f16((((((start_byte_offset % 16u) / 4u) == 2u)) ? (v_3.z) : (v_3.x)));
- uint4 v_5 = v[((4u + start_byte_offset) / 16u)];
- return matrix<float16_t, 2, 2>(v_4, tint_bitcast_to_f16(((((((4u + start_byte_offset) % 16u) / 4u) == 2u)) ? (v_5.z) : (v_5.x))));
+matrix<float16_t, 2, 2> v_3(uint start_byte_offset) {
+ uint4 v_4 = v[(start_byte_offset / 16u)];
+ vector<float16_t, 2> v_5 = tint_bitcast_to_f16((((((start_byte_offset % 16u) / 4u) == 2u)) ? (v_4.z) : (v_4.x)));
+ uint4 v_6 = v[((4u + start_byte_offset) / 16u)];
+ return matrix<float16_t, 2, 2>(v_5, tint_bitcast_to_f16(((((((4u + start_byte_offset) % 16u) / 4u) == 2u)) ? (v_6.z) : (v_6.x))));
}
void foo() {
- matrix<float16_t, 2, 2> a = v_2(0u);
+ matrix<float16_t, 2, 2> a = v_3(0u);
vector<float16_t, 2> b = tint_bitcast_to_f16(v[0u].x);
float16_t c = float16_t(f16tof32((v[0u].y >> 16u)));
}
@@ -1280,41 +1280,41 @@
uint4 v[3];
};
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
- uint4 v = src;
+ uint4 v_1 = src;
uint4 mask = (65535u).xxxx;
uint4 shift = (16u).xxxx;
- float4 t_low = f16tof32((v & mask));
- float4 t_high = f16tof32(((v >> shift) & mask));
- float16_t v_1 = float16_t(t_low.x);
- float16_t v_2 = float16_t(t_high.x);
- float16_t v_3 = float16_t(t_low.y);
- return vector<float16_t, 4>(v_1, v_2, v_3, float16_t(t_high.y));
+ float4 t_low = f16tof32((v_1 & mask));
+ float4 t_high = f16tof32(((v_1 >> shift) & mask));
+ float16_t v_2 = float16_t(t_low.x);
+ float16_t v_3 = float16_t(t_high.x);
+ float16_t v_4 = float16_t(t_low.y);
+ return vector<float16_t, 4>(v_2, v_3, v_4, float16_t(t_high.y));
}
typedef vector<float16_t, 3> ary_ret[5];
-ary_ret v_4(uint start_byte_offset) {
+ary_ret v_5(uint start_byte_offset) {
vector<float16_t, 3> a[5] = (vector<float16_t, 3>[5])0;
{
- uint v_5 = 0u;
- v_5 = 0u;
+ uint v_6 = 0u;
+ v_6 = 0u;
while(true) {
- uint v_6 = v_5;
- if ((v_6 >= 5u)) {
+ uint v_7 = v_6;
+ if ((v_7 >= 5u)) {
break;
}
- a[v_6] = tint_bitcast_to_f16(v[((start_byte_offset + (v_6 * 8u)) / 16u)]).xyz;
+ a[v_7] = tint_bitcast_to_f16(v[((start_byte_offset + (v_7 * 8u)) / 16u)]).xyz;
{
- v_5 = (v_6 + 1u);
+ v_6 = (v_7 + 1u);
}
continue;
}
}
- vector<float16_t, 3> v_7[5] = a;
- return v_7;
+ vector<float16_t, 3> v_8[5] = a;
+ return v_8;
}
void foo() {
- vector<float16_t, 3> a[5] = v_4(0u);
+ vector<float16_t, 3> a[5] = v_5(0u);
vector<float16_t, 3> b = tint_bitcast_to_f16(v[1u]).xyz;
}
diff --git a/src/tint/lang/wgsl/ir_roundtrip_test.cc b/src/tint/lang/wgsl/ir_roundtrip_test.cc
index 4d8d5cd..71f98aa 100644
--- a/src/tint/lang/wgsl/ir_roundtrip_test.cc
+++ b/src/tint/lang/wgsl/ir_roundtrip_test.cc
@@ -3064,8 +3064,8 @@
}
fn f() -> i32 {
- var S : S = S();
- return S.i;
+ var S_1 : S = S();
+ return S_1.i;
}
)");
}
@@ -3076,8 +3076,8 @@
i : i32,
}
-fn f(S : S) -> i32 {
- return S.i;
+fn f(S_1 : S) -> i32 {
+ return S_1.i;
}
)");
}
@@ -3088,8 +3088,8 @@
fn f() -> i32 {
i = (i + 1i);
- var i : i32 = (i + 1i);
- return i;
+ var i_1 : i32 = (i + 1i);
+ return i_1;
}
)");
}
@@ -3100,8 +3100,8 @@
fn f() -> i32 {
i = (i + 1i);
- let i = (i + 1i);
- return i;
+ let i_1 = (i + 1i);
+ return i_1;
}
)");
}
@@ -3112,8 +3112,8 @@
var i : i32;
if (true) {
i = (i + 1i);
- var i : i32 = (i + 1i);
- i = (i + 1i);
+ var i_1 : i32 = (i + 1i);
+ i_1 = (i_1 + 1i);
}
return i;
}
@@ -3126,8 +3126,8 @@
var i : i32;
if (true) {
i = (i + 1i);
- let i = (i + 1i);
- return i;
+ let i_1 = (i + 1i);
+ return i_1;
}
return i;
}
@@ -3139,8 +3139,8 @@
fn f() -> i32 {
var i : i32;
while((i < 4i)) {
- var i : i32 = (i + 1i);
- return i;
+ var i_1 : i32 = (i + 1i);
+ return i_1;
}
return i;
}
@@ -3152,8 +3152,8 @@
fn f() -> i32 {
var i : i32;
while((i < 4i)) {
- let i = (i + 1i);
- return i;
+ let i_1 = (i + 1i);
+ return i_1;
}
return i;
}
@@ -3164,8 +3164,8 @@
RUN_TEST(R"(
fn f() -> i32 {
var i : i32;
- for(var i : f32 = 0.0f; (i < 4.0f); ) {
- let j = i;
+ for(var i_1 : f32 = 0.0f; (i_1 < 4.0f); ) {
+ let j = i_1;
}
return i;
}
@@ -3176,8 +3176,8 @@
RUN_TEST(R"(
fn f() -> i32 {
var i : i32;
- for(let i = 0.0f; (i < 4.0f); ) {
- let j = i;
+ for(let i_1 = 0.0f; (i_1 < 4.0f); ) {
+ let j = i_1;
}
return i;
}
@@ -3189,8 +3189,8 @@
fn f() -> i32 {
var i : i32;
for(var x : i32 = 0i; (i < 4i); ) {
- var i : i32 = (i + 1i);
- return i;
+ var i_1 : i32 = (i + 1i);
+ return i_1;
}
return i;
}
@@ -3202,8 +3202,8 @@
fn f() -> i32 {
var i : i32;
for(var x : i32 = 0i; (i < 4i); ) {
- let i = (i + 1i);
- return i;
+ let i_1 = (i + 1i);
+ return i_1;
}
return i;
}
@@ -3218,8 +3218,8 @@
if ((i == 2i)) {
break;
}
- var i : i32 = (i + 1i);
- if ((i == 3i)) {
+ var i_1 : i32 = (i + 1i);
+ if ((i_1 == 3i)) {
break;
}
}
@@ -3236,8 +3236,8 @@
if ((i == 2i)) {
break;
}
- let i = (i + 1i);
- if ((i == 3i)) {
+ let i_1 = (i + 1i);
+ if ((i_1 == 3i)) {
break;
}
}
@@ -3256,8 +3256,8 @@
}
continuing {
- var i : i32 = (i + 1i);
- break if (i > 2i);
+ var i_1 : i32 = (i + 1i);
+ break if (i_1 > 2i);
}
}
return i;
@@ -3275,8 +3275,8 @@
}
continuing {
- let i = (i + 1i);
- break if (i > 2i);
+ let i_1 = (i + 1i);
+ break if (i_1 > 2i);
}
}
return i;
@@ -3293,8 +3293,8 @@
return i;
}
case 1i: {
- var i : i32 = (i + 1i);
- return i;
+ var i_1 : i32 = (i + 1i);
+ return i_1;
}
default: {
return i;
@@ -3313,8 +3313,8 @@
return i;
}
case 1i: {
- let i = (i + 1i);
- return i;
+ let i_1 = (i + 1i);
+ return i_1;
}
default: {
return i;
diff --git a/test/tint/buffer/uniform/std140/array/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 6d70e20..2effafb 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -18,7 +18,7 @@
typedef float2x2 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float2x2 a[4] = (float2x2[4])0;
+ float2x2 a_1[4] = (float2x2[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -27,14 +27,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 16u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 16u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float2x2 v_7[4] = a;
+ float2x2 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 6d70e20..2effafb 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -18,7 +18,7 @@
typedef float2x2 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float2x2 a[4] = (float2x2[4])0;
+ float2x2 a_1[4] = (float2x2[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -27,14 +27,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 16u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 16u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float2x2 v_7[4] = a;
+ float2x2 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index ee3b975..45afd05 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -12,7 +12,7 @@
typedef float2x2 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float2x2 a[4] = (float2x2[4])0;
+ float2x2 a_1[4] = (float2x2[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -21,14 +21,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 16u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 16u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float2x2 v_7[4] = a;
+ float2x2 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index ee3b975..45afd05 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -12,7 +12,7 @@
typedef float2x2 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float2x2 a[4] = (float2x2[4])0;
+ float2x2 a_1[4] = (float2x2[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -21,14 +21,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 16u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 16u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float2x2 v_7[4] = a;
+ float2x2 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 98fcc3e..658ae5b 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float2x2 v_1(uint start_byte_offset) {
@@ -28,7 +28,7 @@
typedef float2x2 ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- float2x2 a[4] = (float2x2[4])0;
+ float2x2 a_2[4] = (float2x2[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -37,14 +37,14 @@
if ((v_7 >= 4u)) {
break;
}
- a[v_7] = v_1((start_byte_offset + (v_7 * 16u)));
+ a_2[v_7] = v_1((start_byte_offset + (v_7 * 16u)));
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- float2x2 v_8[4] = a;
+ float2x2 v_8[4] = a_2;
return v_8;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 98fcc3e..658ae5b 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float2x2 v_1(uint start_byte_offset) {
@@ -28,7 +28,7 @@
typedef float2x2 ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- float2x2 a[4] = (float2x2[4])0;
+ float2x2 a_2[4] = (float2x2[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -37,14 +37,14 @@
if ((v_7 >= 4u)) {
break;
}
- a[v_7] = v_1((start_byte_offset + (v_7 * 16u)));
+ a_2[v_7] = v_1((start_byte_offset + (v_7 * 16u)));
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- float2x2 v_8[4] = a;
+ float2x2 v_8[4] = a_2;
return v_8;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
index c2540ec..1754ce8 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
@@ -23,8 +23,8 @@
float c(vec2 v) {
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.msl
index e6b9e92..1fb5ecc 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat2x2_f32/to_fn.wgsl.expected.ir.msl
@@ -30,8 +30,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
kernel void f(const constant tint_array<float2x2, 4>* u [[buffer(0)]], device float* s [[buffer(1)]]) {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index f6ca2dd..3ce8c14 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -28,7 +28,7 @@
typedef matrix<float16_t, 2, 3> ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- matrix<float16_t, 2, 3> a[4] = (matrix<float16_t, 2, 3>[4])0;
+ matrix<float16_t, 2, 3> a_1[4] = (matrix<float16_t, 2, 3>[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -37,14 +37,14 @@
if ((v_8 >= 4u)) {
break;
}
- a[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
+ a_1[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- matrix<float16_t, 2, 3> v_9[4] = a;
+ matrix<float16_t, 2, 3> v_9[4] = a_1;
return v_9;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 80cd2e2..e5e8c59 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -22,7 +22,7 @@
typedef matrix<float16_t, 2, 3> ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- matrix<float16_t, 2, 3> a[4] = (matrix<float16_t, 2, 3>[4])0;
+ matrix<float16_t, 2, 3> a_1[4] = (matrix<float16_t, 2, 3>[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -31,14 +31,14 @@
if ((v_8 >= 4u)) {
break;
}
- a[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
+ a_1[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- matrix<float16_t, 2, 3> v_9[4] = a;
+ matrix<float16_t, 2, 3> v_9[4] = a_1;
return v_9;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 6b1c919..d854d7a 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -38,7 +38,7 @@
typedef matrix<float16_t, 2, 3> ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- matrix<float16_t, 2, 3> a[4] = (matrix<float16_t, 2, 3>[4])0;
+ matrix<float16_t, 2, 3> a_2[4] = (matrix<float16_t, 2, 3>[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -47,14 +47,14 @@
if ((v_8 >= 4u)) {
break;
}
- a[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
+ a_2[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- matrix<float16_t, 2, 3> v_9[4] = a;
+ matrix<float16_t, 2, 3> v_9[4] = a_2;
return v_9;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
index c010131..f105a48 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
@@ -24,8 +24,8 @@
float16_t c(f16vec3 v) {
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.msl
index 009291d..b20bcdf 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f16/to_fn.wgsl.expected.ir.msl
@@ -35,8 +35,8 @@
return v[0u];
}
-half d(half f) {
- return f;
+half d(half f_1) {
+ return f_1;
}
tint_array<half2x3, 4> tint_load_array_packed_vec3(const constant tint_array<tint_array<tint_packed_vec3_f16_array_element, 2>, 4>* const from) {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 8e107b4..671cea2 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -16,7 +16,7 @@
typedef float2x3 ary_ret[4];
ary_ret v_2(uint start_byte_offset) {
- float2x3 a[4] = (float2x3[4])0;
+ float2x3 a_1[4] = (float2x3[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
@@ -25,14 +25,14 @@
if ((v_4 >= 4u)) {
break;
}
- a[v_4] = v((start_byte_offset + (v_4 * 32u)));
+ a_1[v_4] = v((start_byte_offset + (v_4 * 32u)));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
- float2x3 v_5[4] = a;
+ float2x3 v_5[4] = a_1;
return v_5;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 8e107b4..671cea2 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -16,7 +16,7 @@
typedef float2x3 ary_ret[4];
ary_ret v_2(uint start_byte_offset) {
- float2x3 a[4] = (float2x3[4])0;
+ float2x3 a_1[4] = (float2x3[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
@@ -25,14 +25,14 @@
if ((v_4 >= 4u)) {
break;
}
- a[v_4] = v((start_byte_offset + (v_4 * 32u)));
+ a_1[v_4] = v((start_byte_offset + (v_4 * 32u)));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
- float2x3 v_5[4] = a;
+ float2x3 v_5[4] = a_1;
return v_5;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index f712367..9d8e406 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -10,7 +10,7 @@
typedef float2x3 ary_ret[4];
ary_ret v_2(uint start_byte_offset) {
- float2x3 a[4] = (float2x3[4])0;
+ float2x3 a_1[4] = (float2x3[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
@@ -19,14 +19,14 @@
if ((v_4 >= 4u)) {
break;
}
- a[v_4] = v((start_byte_offset + (v_4 * 32u)));
+ a_1[v_4] = v((start_byte_offset + (v_4 * 32u)));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
- float2x3 v_5[4] = a;
+ float2x3 v_5[4] = a_1;
return v_5;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index f712367..9d8e406 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -10,7 +10,7 @@
typedef float2x3 ary_ret[4];
ary_ret v_2(uint start_byte_offset) {
- float2x3 a[4] = (float2x3[4])0;
+ float2x3 a_1[4] = (float2x3[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
@@ -19,14 +19,14 @@
if ((v_4 >= 4u)) {
break;
}
- a[v_4] = v((start_byte_offset + (v_4 * 32u)));
+ a_1[v_4] = v((start_byte_offset + (v_4 * 32u)));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
- float2x3 v_5[4] = a;
+ float2x3 v_5[4] = a_1;
return v_5;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index f71a50f..9d7e15c 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float2x3 v_1(uint start_byte_offset) {
@@ -26,7 +26,7 @@
typedef float2x3 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float2x3 a[4] = (float2x3[4])0;
+ float2x3 a_2[4] = (float2x3[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -35,14 +35,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v_1((start_byte_offset + (v_5 * 32u)));
+ a_2[v_5] = v_1((start_byte_offset + (v_5 * 32u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float2x3 v_6[4] = a;
+ float2x3 v_6[4] = a_2;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index f71a50f..9d7e15c 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float2x3 v_1(uint start_byte_offset) {
@@ -26,7 +26,7 @@
typedef float2x3 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float2x3 a[4] = (float2x3[4])0;
+ float2x3 a_2[4] = (float2x3[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -35,14 +35,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v_1((start_byte_offset + (v_5 * 32u)));
+ a_2[v_5] = v_1((start_byte_offset + (v_5 * 32u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float2x3 v_6[4] = a;
+ float2x3 v_6[4] = a_2;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
index 32e027e..6a5df66 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -25,8 +25,8 @@
float c(vec3 v) {
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.msl
index 42f4425..0dacc11 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat2x3_f32/to_fn.wgsl.expected.ir.msl
@@ -35,8 +35,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
tint_array<float2x3, 4> tint_load_array_packed_vec3(const constant tint_array<tint_array<tint_packed_vec3_f32_array_element, 2>, 4>* const from) {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 99d4b1a..1bc6732 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -28,7 +28,7 @@
typedef matrix<float16_t, 2, 4> ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- matrix<float16_t, 2, 4> a[4] = (matrix<float16_t, 2, 4>[4])0;
+ matrix<float16_t, 2, 4> a_1[4] = (matrix<float16_t, 2, 4>[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -37,14 +37,14 @@
if ((v_8 >= 4u)) {
break;
}
- a[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
+ a_1[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- matrix<float16_t, 2, 4> v_9[4] = a;
+ matrix<float16_t, 2, 4> v_9[4] = a_1;
return v_9;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 52c9991..fa150d3 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -22,7 +22,7 @@
typedef matrix<float16_t, 2, 4> ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- matrix<float16_t, 2, 4> a[4] = (matrix<float16_t, 2, 4>[4])0;
+ matrix<float16_t, 2, 4> a_1[4] = (matrix<float16_t, 2, 4>[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -31,14 +31,14 @@
if ((v_8 >= 4u)) {
break;
}
- a[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
+ a_1[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- matrix<float16_t, 2, 4> v_9[4] = a;
+ matrix<float16_t, 2, 4> v_9[4] = a_1;
return v_9;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index efaeb09..ad6a896 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -38,7 +38,7 @@
typedef matrix<float16_t, 2, 4> ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- matrix<float16_t, 2, 4> a[4] = (matrix<float16_t, 2, 4>[4])0;
+ matrix<float16_t, 2, 4> a_2[4] = (matrix<float16_t, 2, 4>[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -47,14 +47,14 @@
if ((v_8 >= 4u)) {
break;
}
- a[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
+ a_2[v_8] = v_4((start_byte_offset + (v_8 * 16u)));
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- matrix<float16_t, 2, 4> v_9[4] = a;
+ matrix<float16_t, 2, 4> v_9[4] = a_2;
return v_9;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
index 0333687..52cbc91 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
@@ -24,8 +24,8 @@
float16_t c(f16vec4 v) {
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.msl
index d9e3ab4..8647cd7 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f16/to_fn.wgsl.expected.ir.msl
@@ -30,8 +30,8 @@
return v[0u];
}
-half d(half f) {
- return f;
+half d(half f_1) {
+ return f_1;
}
kernel void f(const constant tint_array<half2x4, 4>* u [[buffer(0)]], device half* s [[buffer(1)]]) {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 55fd935..8285982 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -16,7 +16,7 @@
typedef float2x4 ary_ret[4];
ary_ret v_2(uint start_byte_offset) {
- float2x4 a[4] = (float2x4[4])0;
+ float2x4 a_1[4] = (float2x4[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
@@ -25,14 +25,14 @@
if ((v_4 >= 4u)) {
break;
}
- a[v_4] = v((start_byte_offset + (v_4 * 32u)));
+ a_1[v_4] = v((start_byte_offset + (v_4 * 32u)));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
- float2x4 v_5[4] = a;
+ float2x4 v_5[4] = a_1;
return v_5;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 55fd935..8285982 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -16,7 +16,7 @@
typedef float2x4 ary_ret[4];
ary_ret v_2(uint start_byte_offset) {
- float2x4 a[4] = (float2x4[4])0;
+ float2x4 a_1[4] = (float2x4[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
@@ -25,14 +25,14 @@
if ((v_4 >= 4u)) {
break;
}
- a[v_4] = v((start_byte_offset + (v_4 * 32u)));
+ a_1[v_4] = v((start_byte_offset + (v_4 * 32u)));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
- float2x4 v_5[4] = a;
+ float2x4 v_5[4] = a_1;
return v_5;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index d0b6415..a55696a 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -10,7 +10,7 @@
typedef float2x4 ary_ret[4];
ary_ret v_2(uint start_byte_offset) {
- float2x4 a[4] = (float2x4[4])0;
+ float2x4 a_1[4] = (float2x4[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
@@ -19,14 +19,14 @@
if ((v_4 >= 4u)) {
break;
}
- a[v_4] = v((start_byte_offset + (v_4 * 32u)));
+ a_1[v_4] = v((start_byte_offset + (v_4 * 32u)));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
- float2x4 v_5[4] = a;
+ float2x4 v_5[4] = a_1;
return v_5;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index d0b6415..a55696a 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -10,7 +10,7 @@
typedef float2x4 ary_ret[4];
ary_ret v_2(uint start_byte_offset) {
- float2x4 a[4] = (float2x4[4])0;
+ float2x4 a_1[4] = (float2x4[4])0;
{
uint v_3 = 0u;
v_3 = 0u;
@@ -19,14 +19,14 @@
if ((v_4 >= 4u)) {
break;
}
- a[v_4] = v((start_byte_offset + (v_4 * 32u)));
+ a_1[v_4] = v((start_byte_offset + (v_4 * 32u)));
{
v_3 = (v_4 + 1u);
}
continue;
}
}
- float2x4 v_5[4] = a;
+ float2x4 v_5[4] = a_1;
return v_5;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index bea48ff..bd7435f 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float2x4 v_1(uint start_byte_offset) {
@@ -26,7 +26,7 @@
typedef float2x4 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float2x4 a[4] = (float2x4[4])0;
+ float2x4 a_2[4] = (float2x4[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -35,14 +35,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v_1((start_byte_offset + (v_5 * 32u)));
+ a_2[v_5] = v_1((start_byte_offset + (v_5 * 32u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float2x4 v_6[4] = a;
+ float2x4 v_6[4] = a_2;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index bea48ff..bd7435f 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float2x4 v_1(uint start_byte_offset) {
@@ -26,7 +26,7 @@
typedef float2x4 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float2x4 a[4] = (float2x4[4])0;
+ float2x4 a_2[4] = (float2x4[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -35,14 +35,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v_1((start_byte_offset + (v_5 * 32u)));
+ a_2[v_5] = v_1((start_byte_offset + (v_5 * 32u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float2x4 v_6[4] = a;
+ float2x4 v_6[4] = a_2;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
index 4c83613..208c738 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -17,8 +17,8 @@
float c(vec4 v) {
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.msl
index c217440..4ca8572 100644
--- a/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat2x4_f32/to_fn.wgsl.expected.ir.msl
@@ -30,8 +30,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
kernel void f(const constant tint_array<float2x4, 4>* u [[buffer(0)]], device float* s [[buffer(1)]]) {
diff --git a/test/tint/buffer/uniform/std140/array/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 20fd768..0ab3df2 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -17,7 +17,7 @@
typedef float3x3 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float3x3 a[4] = (float3x3[4])0;
+ float3x3 a_1[4] = (float3x3[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -26,14 +26,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v((start_byte_offset + (v_5 * 48u)));
+ a_1[v_5] = v((start_byte_offset + (v_5 * 48u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float3x3 v_6[4] = a;
+ float3x3 v_6[4] = a_1;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 20fd768..0ab3df2 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -17,7 +17,7 @@
typedef float3x3 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float3x3 a[4] = (float3x3[4])0;
+ float3x3 a_1[4] = (float3x3[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -26,14 +26,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v((start_byte_offset + (v_5 * 48u)));
+ a_1[v_5] = v((start_byte_offset + (v_5 * 48u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float3x3 v_6[4] = a;
+ float3x3 v_6[4] = a_1;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 6c83daf..3ee4bd7 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -11,7 +11,7 @@
typedef float3x3 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float3x3 a[4] = (float3x3[4])0;
+ float3x3 a_1[4] = (float3x3[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -20,14 +20,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v((start_byte_offset + (v_5 * 48u)));
+ a_1[v_5] = v((start_byte_offset + (v_5 * 48u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float3x3 v_6[4] = a;
+ float3x3 v_6[4] = a_1;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 6c83daf..3ee4bd7 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -11,7 +11,7 @@
typedef float3x3 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float3x3 a[4] = (float3x3[4])0;
+ float3x3 a_1[4] = (float3x3[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -20,14 +20,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v((start_byte_offset + (v_5 * 48u)));
+ a_1[v_5] = v((start_byte_offset + (v_5 * 48u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float3x3 v_6[4] = a;
+ float3x3 v_6[4] = a_1;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index b183c50..b935a2b 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float3x3 v_1(uint start_byte_offset) {
@@ -27,7 +27,7 @@
typedef float3x3 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float3x3 a[4] = (float3x3[4])0;
+ float3x3 a_2[4] = (float3x3[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -36,14 +36,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v_1((start_byte_offset + (v_6 * 48u)));
+ a_2[v_6] = v_1((start_byte_offset + (v_6 * 48u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float3x3 v_7[4] = a;
+ float3x3 v_7[4] = a_2;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index b183c50..b935a2b 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float3x3 v_1(uint start_byte_offset) {
@@ -27,7 +27,7 @@
typedef float3x3 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float3x3 a[4] = (float3x3[4])0;
+ float3x3 a_2[4] = (float3x3[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -36,14 +36,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v_1((start_byte_offset + (v_6 * 48u)));
+ a_2[v_6] = v_1((start_byte_offset + (v_6 * 48u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float3x3 v_7[4] = a;
+ float3x3 v_7[4] = a_2;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
index 1fa350b..7156933 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -27,8 +27,8 @@
float c(vec3 v) {
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.msl
index b39c60c..f2633c3 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat3x3_f32/to_fn.wgsl.expected.ir.msl
@@ -35,8 +35,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
tint_array<float3x3, 4> tint_load_array_packed_vec3(const constant tint_array<tint_array<tint_packed_vec3_f32_array_element, 3>, 4>* const from) {
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 97ac371..b711284 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -17,7 +17,7 @@
typedef float3x4 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float3x4 a[4] = (float3x4[4])0;
+ float3x4 a_1[4] = (float3x4[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -26,14 +26,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v((start_byte_offset + (v_5 * 48u)));
+ a_1[v_5] = v((start_byte_offset + (v_5 * 48u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float3x4 v_6[4] = a;
+ float3x4 v_6[4] = a_1;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 97ac371..b711284 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -17,7 +17,7 @@
typedef float3x4 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float3x4 a[4] = (float3x4[4])0;
+ float3x4 a_1[4] = (float3x4[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -26,14 +26,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v((start_byte_offset + (v_5 * 48u)));
+ a_1[v_5] = v((start_byte_offset + (v_5 * 48u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float3x4 v_6[4] = a;
+ float3x4 v_6[4] = a_1;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 35f64d9..276e3cc 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -11,7 +11,7 @@
typedef float3x4 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float3x4 a[4] = (float3x4[4])0;
+ float3x4 a_1[4] = (float3x4[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -20,14 +20,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v((start_byte_offset + (v_5 * 48u)));
+ a_1[v_5] = v((start_byte_offset + (v_5 * 48u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float3x4 v_6[4] = a;
+ float3x4 v_6[4] = a_1;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 35f64d9..276e3cc 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -11,7 +11,7 @@
typedef float3x4 ary_ret[4];
ary_ret v_3(uint start_byte_offset) {
- float3x4 a[4] = (float3x4[4])0;
+ float3x4 a_1[4] = (float3x4[4])0;
{
uint v_4 = 0u;
v_4 = 0u;
@@ -20,14 +20,14 @@
if ((v_5 >= 4u)) {
break;
}
- a[v_5] = v((start_byte_offset + (v_5 * 48u)));
+ a_1[v_5] = v((start_byte_offset + (v_5 * 48u)));
{
v_4 = (v_5 + 1u);
}
continue;
}
}
- float3x4 v_6[4] = a;
+ float3x4 v_6[4] = a_1;
return v_6;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 42b5206..843b987 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float3x4 v_1(uint start_byte_offset) {
@@ -27,7 +27,7 @@
typedef float3x4 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float3x4 a[4] = (float3x4[4])0;
+ float3x4 a_2[4] = (float3x4[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -36,14 +36,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v_1((start_byte_offset + (v_6 * 48u)));
+ a_2[v_6] = v_1((start_byte_offset + (v_6 * 48u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float3x4 v_7[4] = a;
+ float3x4 v_7[4] = a_2;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 42b5206..843b987 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float3x4 v_1(uint start_byte_offset) {
@@ -27,7 +27,7 @@
typedef float3x4 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float3x4 a[4] = (float3x4[4])0;
+ float3x4 a_2[4] = (float3x4[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -36,14 +36,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v_1((start_byte_offset + (v_6 * 48u)));
+ a_2[v_6] = v_1((start_byte_offset + (v_6 * 48u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float3x4 v_7[4] = a;
+ float3x4 v_7[4] = a_2;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
index 09b737e..b3acfe9 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -17,8 +17,8 @@
float c(vec4 v) {
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.msl
index dbb0e85..4978604 100644
--- a/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat3x4_f32/to_fn.wgsl.expected.ir.msl
@@ -30,8 +30,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
kernel void f(const constant tint_array<float3x4, 4>* u [[buffer(0)]], device float* s [[buffer(1)]]) {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 7f47e53..d328413 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -30,7 +30,7 @@
typedef matrix<float16_t, 4, 2> ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- matrix<float16_t, 4, 2> a[4] = (matrix<float16_t, 4, 2>[4])0;
+ matrix<float16_t, 4, 2> a_1[4] = (matrix<float16_t, 4, 2>[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -39,14 +39,14 @@
if ((v_12 >= 4u)) {
break;
}
- a[v_12] = v_2((start_byte_offset + (v_12 * 16u)));
+ a_1[v_12] = v_2((start_byte_offset + (v_12 * 16u)));
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 2> v_13[4] = a;
+ matrix<float16_t, 4, 2> v_13[4] = a_1;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 3fe5c8a..b772e28 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -24,7 +24,7 @@
typedef matrix<float16_t, 4, 2> ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- matrix<float16_t, 4, 2> a[4] = (matrix<float16_t, 4, 2>[4])0;
+ matrix<float16_t, 4, 2> a_1[4] = (matrix<float16_t, 4, 2>[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -33,14 +33,14 @@
if ((v_12 >= 4u)) {
break;
}
- a[v_12] = v_2((start_byte_offset + (v_12 * 16u)));
+ a_1[v_12] = v_2((start_byte_offset + (v_12 * 16u)));
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 2> v_13[4] = a;
+ matrix<float16_t, 4, 2> v_13[4] = a_1;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 3008650..b40b91c 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
vector<float16_t, 2> tint_bitcast_to_f16(uint src) {
@@ -40,7 +40,7 @@
typedef matrix<float16_t, 4, 2> ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- matrix<float16_t, 4, 2> a[4] = (matrix<float16_t, 4, 2>[4])0;
+ matrix<float16_t, 4, 2> a_2[4] = (matrix<float16_t, 4, 2>[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -49,14 +49,14 @@
if ((v_12 >= 4u)) {
break;
}
- a[v_12] = v_2((start_byte_offset + (v_12 * 16u)));
+ a_2[v_12] = v_2((start_byte_offset + (v_12 * 16u)));
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 2> v_13[4] = a;
+ matrix<float16_t, 4, 2> v_13[4] = a_2;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
index c6fbcb5..bdde7d0 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
@@ -26,8 +26,8 @@
float16_t c(f16vec2 v) {
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.msl
index c9f5a13..4bfb291 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f16/to_fn.wgsl.expected.ir.msl
@@ -30,8 +30,8 @@
return v[0u];
}
-half d(half f) {
- return f;
+half d(half f_1) {
+ return f_1;
}
kernel void f(const constant tint_array<half4x2, 4>* u [[buffer(0)]], device half* s [[buffer(1)]]) {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 9f2f124..271a1e9 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -22,7 +22,7 @@
typedef float4x2 ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- float4x2 a[4] = (float4x2[4])0;
+ float4x2 a_1[4] = (float4x2[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -31,14 +31,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v((start_byte_offset + (v_10 * 32u)));
+ a_1[v_10] = v((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- float4x2 v_11[4] = a;
+ float4x2 v_11[4] = a_1;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 9f2f124..271a1e9 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -22,7 +22,7 @@
typedef float4x2 ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- float4x2 a[4] = (float4x2[4])0;
+ float4x2 a_1[4] = (float4x2[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -31,14 +31,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v((start_byte_offset + (v_10 * 32u)));
+ a_1[v_10] = v((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- float4x2 v_11[4] = a;
+ float4x2 v_11[4] = a_1;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 15d0cb9..7b797ef 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -16,7 +16,7 @@
typedef float4x2 ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- float4x2 a[4] = (float4x2[4])0;
+ float4x2 a_1[4] = (float4x2[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -25,14 +25,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v((start_byte_offset + (v_10 * 32u)));
+ a_1[v_10] = v((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- float4x2 v_11[4] = a;
+ float4x2 v_11[4] = a_1;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 15d0cb9..7b797ef 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -16,7 +16,7 @@
typedef float4x2 ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- float4x2 a[4] = (float4x2[4])0;
+ float4x2 a_1[4] = (float4x2[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -25,14 +25,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v((start_byte_offset + (v_10 * 32u)));
+ a_1[v_10] = v((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- float4x2 v_11[4] = a;
+ float4x2 v_11[4] = a_1;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 8d124ca..ab8344d 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float4x2 v_1(uint start_byte_offset) {
@@ -32,7 +32,7 @@
typedef float4x2 ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- float4x2 a[4] = (float4x2[4])0;
+ float4x2 a_2[4] = (float4x2[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -41,14 +41,14 @@
if ((v_11 >= 4u)) {
break;
}
- a[v_11] = v_1((start_byte_offset + (v_11 * 32u)));
+ a_2[v_11] = v_1((start_byte_offset + (v_11 * 32u)));
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- float4x2 v_12[4] = a;
+ float4x2 v_12[4] = a_2;
return v_12;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 8d124ca..ab8344d 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float4x2 v_1(uint start_byte_offset) {
@@ -32,7 +32,7 @@
typedef float4x2 ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- float4x2 a[4] = (float4x2[4])0;
+ float4x2 a_2[4] = (float4x2[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -41,14 +41,14 @@
if ((v_11 >= 4u)) {
break;
}
- a[v_11] = v_1((start_byte_offset + (v_11 * 32u)));
+ a_2[v_11] = v_1((start_byte_offset + (v_11 * 32u)));
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- float4x2 v_12[4] = a;
+ float4x2 v_12[4] = a_2;
return v_12;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
index 32f8a1e..a2d699b 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
@@ -25,8 +25,8 @@
float c(vec2 v) {
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.msl
index 3278094..6e3ab62 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat4x2_f32/to_fn.wgsl.expected.ir.msl
@@ -30,8 +30,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
kernel void f(const constant tint_array<float4x2, 4>* u [[buffer(0)]], device float* s [[buffer(1)]]) {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 43ded58..a859f06 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -30,7 +30,7 @@
typedef matrix<float16_t, 4, 3> ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- matrix<float16_t, 4, 3> a[4] = (matrix<float16_t, 4, 3>[4])0;
+ matrix<float16_t, 4, 3> a_1[4] = (matrix<float16_t, 4, 3>[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -39,14 +39,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
+ a_1[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 3> v_11[4] = a;
+ matrix<float16_t, 4, 3> v_11[4] = a_1;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index e592466..e36e68e 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -24,7 +24,7 @@
typedef matrix<float16_t, 4, 3> ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- matrix<float16_t, 4, 3> a[4] = (matrix<float16_t, 4, 3>[4])0;
+ matrix<float16_t, 4, 3> a_1[4] = (matrix<float16_t, 4, 3>[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -33,14 +33,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
+ a_1[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 3> v_11[4] = a;
+ matrix<float16_t, 4, 3> v_11[4] = a_1;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index be1ca95..5b8f8e2 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -40,7 +40,7 @@
typedef matrix<float16_t, 4, 3> ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- matrix<float16_t, 4, 3> a[4] = (matrix<float16_t, 4, 3>[4])0;
+ matrix<float16_t, 4, 3> a_2[4] = (matrix<float16_t, 4, 3>[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -49,14 +49,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
+ a_2[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 3> v_11[4] = a;
+ matrix<float16_t, 4, 3> v_11[4] = a_2;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
index ec34483..d61f0fa 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
@@ -26,8 +26,8 @@
float16_t c(f16vec3 v) {
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.msl
index 95602fc..9057f56 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f16/to_fn.wgsl.expected.ir.msl
@@ -35,8 +35,8 @@
return v[0u];
}
-half d(half f) {
- return f;
+half d(half f_1) {
+ return f_1;
}
tint_array<half4x3, 4> tint_load_array_packed_vec3(const constant tint_array<tint_array<tint_packed_vec3_f16_array_element, 4>, 4>* const from) {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 9026609..261a42a 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -18,7 +18,7 @@
typedef float4x3 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float4x3 a[4] = (float4x3[4])0;
+ float4x3 a_1[4] = (float4x3[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -27,14 +27,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 64u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 64u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float4x3 v_7[4] = a;
+ float4x3 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 9026609..261a42a 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -18,7 +18,7 @@
typedef float4x3 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float4x3 a[4] = (float4x3[4])0;
+ float4x3 a_1[4] = (float4x3[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -27,14 +27,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 64u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 64u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float4x3 v_7[4] = a;
+ float4x3 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 2571784..a2b189f 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -12,7 +12,7 @@
typedef float4x3 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float4x3 a[4] = (float4x3[4])0;
+ float4x3 a_1[4] = (float4x3[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -21,14 +21,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 64u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 64u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float4x3 v_7[4] = a;
+ float4x3 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 2571784..a2b189f 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -12,7 +12,7 @@
typedef float4x3 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float4x3 a[4] = (float4x3[4])0;
+ float4x3 a_1[4] = (float4x3[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -21,14 +21,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 64u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 64u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float4x3 v_7[4] = a;
+ float4x3 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 28ac281..6799e52 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float4x3 v_1(uint start_byte_offset) {
@@ -28,7 +28,7 @@
typedef float4x3 ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- float4x3 a[4] = (float4x3[4])0;
+ float4x3 a_2[4] = (float4x3[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -37,14 +37,14 @@
if ((v_7 >= 4u)) {
break;
}
- a[v_7] = v_1((start_byte_offset + (v_7 * 64u)));
+ a_2[v_7] = v_1((start_byte_offset + (v_7 * 64u)));
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- float4x3 v_8[4] = a;
+ float4x3 v_8[4] = a_2;
return v_8;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 28ac281..6799e52 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float4x3 v_1(uint start_byte_offset) {
@@ -28,7 +28,7 @@
typedef float4x3 ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- float4x3 a[4] = (float4x3[4])0;
+ float4x3 a_2[4] = (float4x3[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -37,14 +37,14 @@
if ((v_7 >= 4u)) {
break;
}
- a[v_7] = v_1((start_byte_offset + (v_7 * 64u)));
+ a_2[v_7] = v_1((start_byte_offset + (v_7 * 64u)));
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- float4x3 v_8[4] = a;
+ float4x3 v_8[4] = a_2;
return v_8;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
index 03427f5..058a933 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -29,8 +29,8 @@
float c(vec3 v) {
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.msl
index 06d3fbd..f586308 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat4x3_f32/to_fn.wgsl.expected.ir.msl
@@ -35,8 +35,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
tint_array<float4x3, 4> tint_load_array_packed_vec3(const constant tint_array<tint_array<tint_packed_vec3_f32_array_element, 4>, 4>* const from) {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index e2fae72..0d28f3d 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -30,7 +30,7 @@
typedef matrix<float16_t, 4, 4> ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- matrix<float16_t, 4, 4> a[4] = (matrix<float16_t, 4, 4>[4])0;
+ matrix<float16_t, 4, 4> a_1[4] = (matrix<float16_t, 4, 4>[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -39,14 +39,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
+ a_1[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 4> v_11[4] = a;
+ matrix<float16_t, 4, 4> v_11[4] = a_1;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 48db6f4..5d9eb59 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -24,7 +24,7 @@
typedef matrix<float16_t, 4, 4> ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- matrix<float16_t, 4, 4> a[4] = (matrix<float16_t, 4, 4>[4])0;
+ matrix<float16_t, 4, 4> a_1[4] = (matrix<float16_t, 4, 4>[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -33,14 +33,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
+ a_1[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 4> v_11[4] = a;
+ matrix<float16_t, 4, 4> v_11[4] = a_1;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 8271702..b077f05 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -40,7 +40,7 @@
typedef matrix<float16_t, 4, 4> ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- matrix<float16_t, 4, 4> a[4] = (matrix<float16_t, 4, 4>[4])0;
+ matrix<float16_t, 4, 4> a_2[4] = (matrix<float16_t, 4, 4>[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -49,14 +49,14 @@
if ((v_10 >= 4u)) {
break;
}
- a[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
+ a_2[v_10] = v_4((start_byte_offset + (v_10 * 32u)));
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- matrix<float16_t, 4, 4> v_11[4] = a;
+ matrix<float16_t, 4, 4> v_11[4] = a_2;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
index 5e298cf..779a8c6 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
@@ -26,8 +26,8 @@
float16_t c(f16vec4 v) {
return v[0u];
}
-float16_t d(float16_t f) {
- return f;
+float16_t d(float16_t f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.msl
index a226163..8aa0dbf 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f16/to_fn.wgsl.expected.ir.msl
@@ -30,8 +30,8 @@
return v[0u];
}
-half d(half f) {
- return f;
+half d(half f_1) {
+ return f_1;
}
kernel void f(const constant tint_array<half4x4, 4>* u [[buffer(0)]], device half* s [[buffer(1)]]) {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 5899d6d..3418d32 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -18,7 +18,7 @@
typedef float4x4 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float4x4 a[4] = (float4x4[4])0;
+ float4x4 a_1[4] = (float4x4[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -27,14 +27,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 64u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 64u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float4x4 v_7[4] = a;
+ float4x4 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 5899d6d..3418d32 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -18,7 +18,7 @@
typedef float4x4 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float4x4 a[4] = (float4x4[4])0;
+ float4x4 a_1[4] = (float4x4[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -27,14 +27,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 64u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 64u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float4x4 v_7[4] = a;
+ float4x4 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index ca5028d..b21cc65 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -12,7 +12,7 @@
typedef float4x4 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float4x4 a[4] = (float4x4[4])0;
+ float4x4 a_1[4] = (float4x4[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -21,14 +21,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 64u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 64u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float4x4 v_7[4] = a;
+ float4x4 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index ca5028d..b21cc65 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -12,7 +12,7 @@
typedef float4x4 ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- float4x4 a[4] = (float4x4[4])0;
+ float4x4 a_1[4] = (float4x4[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -21,14 +21,14 @@
if ((v_6 >= 4u)) {
break;
}
- a[v_6] = v((start_byte_offset + (v_6 * 64u)));
+ a_1[v_6] = v((start_byte_offset + (v_6 * 64u)));
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- float4x4 v_7[4] = a;
+ float4x4 v_7[4] = a_1;
return v_7;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 321b96b..1696d55 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float4x4 v_1(uint start_byte_offset) {
@@ -28,7 +28,7 @@
typedef float4x4 ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- float4x4 a[4] = (float4x4[4])0;
+ float4x4 a_2[4] = (float4x4[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -37,14 +37,14 @@
if ((v_7 >= 4u)) {
break;
}
- a[v_7] = v_1((start_byte_offset + (v_7 * 64u)));
+ a_2[v_7] = v_1((start_byte_offset + (v_7 * 64u)));
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- float4x4 v_8[4] = a;
+ float4x4 v_8[4] = a_2;
return v_8;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 321b96b..1696d55 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -15,8 +15,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
float4x4 v_1(uint start_byte_offset) {
@@ -28,7 +28,7 @@
typedef float4x4 ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- float4x4 a[4] = (float4x4[4])0;
+ float4x4 a_2[4] = (float4x4[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -37,14 +37,14 @@
if ((v_7 >= 4u)) {
break;
}
- a[v_7] = v_1((start_byte_offset + (v_7 * 64u)));
+ a_2[v_7] = v_1((start_byte_offset + (v_7 * 64u)));
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- float4x4 v_8[4] = a;
+ float4x4 v_8[4] = a_2;
return v_8;
}
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
index 378ebc9..f98aa42 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -17,8 +17,8 @@
float c(vec4 v) {
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.msl
index 718e716..3b8cfe9 100644
--- a/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/array/mat4x4_f32/to_fn.wgsl.expected.ir.msl
@@ -30,8 +30,8 @@
return v[0u];
}
-float d(float f) {
- return f;
+float d(float f_1) {
+ return f_1;
}
kernel void f(const constant tint_array<float4x4, 4>* u [[buffer(0)]], device float* s [[buffer(1)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 76ca3f2..4dbfb64 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -38,7 +38,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -48,14 +48,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -67,7 +67,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -77,14 +77,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 38cfc8d..6fc158e 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -32,7 +32,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -42,14 +42,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -61,7 +61,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -71,14 +71,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 00f5fb6..37dceb9 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 2> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 2> tint_bitcast_to_f16(uint src) {
@@ -47,7 +47,7 @@
typedef S ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -57,14 +57,14 @@
break;
}
S v_13 = v_6((start_byte_offset + (v_12 * 128u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- S v_14[4] = a;
+ S v_14[4] = a_2;
return v_14;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.glsl
index f8cf783..3f21cc6 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.glsl
@@ -55,7 +55,7 @@
}
void d(f16vec2 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat2(tint_input.m_col0, tint_input.m_col1), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.msl
index c1314b3..82a5fb6 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f16/to_fn.wgsl.expected.ir.msl
@@ -37,7 +37,7 @@
void d(half2 v) {
}
-void e(half f) {
+void e(half f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 9d0c20c..9d27718 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -30,7 +30,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -40,14 +40,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -59,7 +59,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -69,14 +69,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 9d0c20c..9d27718 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -30,7 +30,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -40,14 +40,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -59,7 +59,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -69,14 +69,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index a18c41f..162ff25 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -24,7 +24,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -34,14 +34,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -53,7 +53,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -63,14 +63,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index a18c41f..162ff25 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -24,7 +24,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -34,14 +34,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -53,7 +53,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -63,14 +63,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index e841b4b..12ea459 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float2x2 v_1(uint start_byte_offset) {
@@ -39,7 +39,7 @@
typedef S ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -49,14 +49,14 @@
break;
}
S v_12 = v_5((start_byte_offset + (v_11 * 128u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- S v_13[4] = a;
+ S v_13[4] = a_2;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index e841b4b..12ea459 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float2x2 v_1(uint start_byte_offset) {
@@ -39,7 +39,7 @@
typedef S ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -49,14 +49,14 @@
break;
}
S v_12 = v_5((start_byte_offset + (v_11 * 128u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- S v_13[4] = a;
+ S v_13[4] = a_2;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
index ecb6df3..6910b4a 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
@@ -52,7 +52,7 @@
}
void d(vec2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, mat2(tint_input.m_col0, tint_input.m_col1), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.msl
index 5d023ae..7a210f2 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x2_f32/to_fn.wgsl.expected.ir.msl
@@ -38,7 +38,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index e2d36d2..9632b91 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -40,7 +40,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -50,14 +50,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -69,7 +69,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -79,14 +79,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 7809a22..bb7ed5b 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -34,7 +34,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -44,14 +44,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -63,7 +63,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -73,14 +73,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 018c902..bb4115e 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 3> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -49,7 +49,7 @@
typedef S ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -59,14 +59,14 @@
break;
}
S v_13 = v_6((start_byte_offset + (v_12 * 128u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- S v_14[4] = a;
+ S v_14[4] = a_2;
return v_14;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
index 123e06a..4b9d0cd 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
@@ -53,7 +53,7 @@
}
void d(f16vec3 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat2x3(tint_input.m_col0, tint_input.m_col1), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.msl
index b78030c..7927c78 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f16/to_fn.wgsl.expected.ir.msl
@@ -49,7 +49,7 @@
void d(half3 v) {
}
-void e(half f) {
+void e(half f_1) {
}
S tint_load_struct_packed_vec3(const constant S_packed_vec3* const from) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index ff319a8..1fbbe0b 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -28,7 +28,7 @@
typedef Inner ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -38,14 +38,14 @@
break;
}
Inner v_7 = v_2((start_byte_offset + (v_6 * 64u)));
- a[v_6] = v_7;
+ a_2[v_6] = v_7;
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- Inner v_8[4] = a;
+ Inner v_8[4] = a_2;
return v_8;
}
@@ -57,7 +57,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_12(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -67,14 +67,14 @@
break;
}
Outer v_15 = v_9((start_byte_offset + (v_14 * 256u)));
- a[v_14] = v_15;
+ a_1[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Outer v_16[4] = a;
+ Outer v_16[4] = a_1;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index ff319a8..1fbbe0b 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -28,7 +28,7 @@
typedef Inner ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -38,14 +38,14 @@
break;
}
Inner v_7 = v_2((start_byte_offset + (v_6 * 64u)));
- a[v_6] = v_7;
+ a_2[v_6] = v_7;
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- Inner v_8[4] = a;
+ Inner v_8[4] = a_2;
return v_8;
}
@@ -57,7 +57,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_12(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -67,14 +67,14 @@
break;
}
Outer v_15 = v_9((start_byte_offset + (v_14 * 256u)));
- a[v_14] = v_15;
+ a_1[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Outer v_16[4] = a;
+ Outer v_16[4] = a_1;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index e736df3..b6765f0 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -22,7 +22,7 @@
typedef Inner ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -32,14 +32,14 @@
break;
}
Inner v_7 = v_2((start_byte_offset + (v_6 * 64u)));
- a[v_6] = v_7;
+ a_2[v_6] = v_7;
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- Inner v_8[4] = a;
+ Inner v_8[4] = a_2;
return v_8;
}
@@ -51,7 +51,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_12(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -61,14 +61,14 @@
break;
}
Outer v_15 = v_9((start_byte_offset + (v_14 * 256u)));
- a[v_14] = v_15;
+ a_1[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Outer v_16[4] = a;
+ Outer v_16[4] = a_1;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index e736df3..b6765f0 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -22,7 +22,7 @@
typedef Inner ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -32,14 +32,14 @@
break;
}
Inner v_7 = v_2((start_byte_offset + (v_6 * 64u)));
- a[v_6] = v_7;
+ a_2[v_6] = v_7;
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- Inner v_8[4] = a;
+ Inner v_8[4] = a_2;
return v_8;
}
@@ -51,7 +51,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_12(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -61,14 +61,14 @@
break;
}
Outer v_15 = v_9((start_byte_offset + (v_14 * 256u)));
- a[v_14] = v_15;
+ a_1[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Outer v_16[4] = a;
+ Outer v_16[4] = a_1;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 48d0f1d..624a306 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float2x3 v_1(uint start_byte_offset) {
@@ -37,7 +37,7 @@
typedef S ary_ret[4];
ary_ret v_7(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_8 = 0u;
v_8 = 0u;
@@ -47,14 +47,14 @@
break;
}
S v_10 = v_3((start_byte_offset + (v_9 * 128u)));
- a[v_9] = v_10;
+ a_2[v_9] = v_10;
{
v_8 = (v_9 + 1u);
}
continue;
}
}
- S v_11[4] = a;
+ S v_11[4] = a_2;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 48d0f1d..624a306 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float2x3 v_1(uint start_byte_offset) {
@@ -37,7 +37,7 @@
typedef S ary_ret[4];
ary_ret v_7(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_8 = 0u;
v_8 = 0u;
@@ -47,14 +47,14 @@
break;
}
S v_10 = v_3((start_byte_offset + (v_9 * 128u)));
- a[v_9] = v_10;
+ a_2[v_9] = v_10;
{
v_8 = (v_9 + 1u);
}
continue;
}
}
- S v_11[4] = a;
+ S v_11[4] = a_2;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
index 0ff1911..c5139c7 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -50,7 +50,7 @@
}
void d(vec3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, mat2x3(tint_input.m_col0, tint_input.m_col1), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.msl
index 1e75304..00532d1 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x3_f32/to_fn.wgsl.expected.ir.msl
@@ -49,7 +49,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_load_struct_packed_vec3(const constant S_packed_vec3* const from) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index bf53660..7c4ea56 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -40,7 +40,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -50,14 +50,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -69,7 +69,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -79,14 +79,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index c304e25..91a8bda 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -34,7 +34,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -44,14 +44,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -63,7 +63,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -73,14 +73,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index b22b725..f6e38be 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 4> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -49,7 +49,7 @@
typedef S ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -59,14 +59,14 @@
break;
}
S v_13 = v_6((start_byte_offset + (v_12 * 128u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- S v_14[4] = a;
+ S v_14[4] = a_2;
return v_14;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
index 5d03635..73fbba8 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
@@ -53,7 +53,7 @@
}
void d(f16vec4 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat2x4(tint_input.m_col0, tint_input.m_col1), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.msl
index 58d0e91..5e47561 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f16/to_fn.wgsl.expected.ir.msl
@@ -38,7 +38,7 @@
void d(half4 v) {
}
-void e(half f) {
+void e(half f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 9000020..f9c904a 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -28,7 +28,7 @@
typedef Inner ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -38,14 +38,14 @@
break;
}
Inner v_7 = v_2((start_byte_offset + (v_6 * 64u)));
- a[v_6] = v_7;
+ a_2[v_6] = v_7;
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- Inner v_8[4] = a;
+ Inner v_8[4] = a_2;
return v_8;
}
@@ -57,7 +57,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_12(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -67,14 +67,14 @@
break;
}
Outer v_15 = v_9((start_byte_offset + (v_14 * 256u)));
- a[v_14] = v_15;
+ a_1[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Outer v_16[4] = a;
+ Outer v_16[4] = a_1;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 9000020..f9c904a 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -28,7 +28,7 @@
typedef Inner ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -38,14 +38,14 @@
break;
}
Inner v_7 = v_2((start_byte_offset + (v_6 * 64u)));
- a[v_6] = v_7;
+ a_2[v_6] = v_7;
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- Inner v_8[4] = a;
+ Inner v_8[4] = a_2;
return v_8;
}
@@ -57,7 +57,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_12(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -67,14 +67,14 @@
break;
}
Outer v_15 = v_9((start_byte_offset + (v_14 * 256u)));
- a[v_14] = v_15;
+ a_1[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Outer v_16[4] = a;
+ Outer v_16[4] = a_1;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 422aacc..7de9bac 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -22,7 +22,7 @@
typedef Inner ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -32,14 +32,14 @@
break;
}
Inner v_7 = v_2((start_byte_offset + (v_6 * 64u)));
- a[v_6] = v_7;
+ a_2[v_6] = v_7;
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- Inner v_8[4] = a;
+ Inner v_8[4] = a_2;
return v_8;
}
@@ -51,7 +51,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_12(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -61,14 +61,14 @@
break;
}
Outer v_15 = v_9((start_byte_offset + (v_14 * 256u)));
- a[v_14] = v_15;
+ a_1[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Outer v_16[4] = a;
+ Outer v_16[4] = a_1;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 422aacc..7de9bac 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -22,7 +22,7 @@
typedef Inner ary_ret[4];
ary_ret v_4(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_5 = 0u;
v_5 = 0u;
@@ -32,14 +32,14 @@
break;
}
Inner v_7 = v_2((start_byte_offset + (v_6 * 64u)));
- a[v_6] = v_7;
+ a_2[v_6] = v_7;
{
v_5 = (v_6 + 1u);
}
continue;
}
}
- Inner v_8[4] = a;
+ Inner v_8[4] = a_2;
return v_8;
}
@@ -51,7 +51,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_12(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -61,14 +61,14 @@
break;
}
Outer v_15 = v_9((start_byte_offset + (v_14 * 256u)));
- a[v_14] = v_15;
+ a_1[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Outer v_16[4] = a;
+ Outer v_16[4] = a_1;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 0c73777..dd81176 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float2x4 v_1(uint start_byte_offset) {
@@ -37,7 +37,7 @@
typedef S ary_ret[4];
ary_ret v_7(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_8 = 0u;
v_8 = 0u;
@@ -47,14 +47,14 @@
break;
}
S v_10 = v_3((start_byte_offset + (v_9 * 128u)));
- a[v_9] = v_10;
+ a_2[v_9] = v_10;
{
v_8 = (v_9 + 1u);
}
continue;
}
}
- S v_11[4] = a;
+ S v_11[4] = a_2;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 0c73777..dd81176 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float2x4 v_1(uint start_byte_offset) {
@@ -37,7 +37,7 @@
typedef S ary_ret[4];
ary_ret v_7(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_8 = 0u;
v_8 = 0u;
@@ -47,14 +47,14 @@
break;
}
S v_10 = v_3((start_byte_offset + (v_9 * 128u)));
- a[v_9] = v_10;
+ a_2[v_9] = v_10;
{
v_8 = (v_9 + 1u);
}
continue;
}
}
- S v_11[4] = a;
+ S v_11[4] = a_2;
return v_11;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
index 52411d3..a12b5fc 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -41,7 +41,7 @@
}
void d(vec4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.msl
index ef2c5bf..a872ae8 100644
--- a/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat2x4_f32/to_fn.wgsl.expected.ir.msl
@@ -38,7 +38,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 4aa4a3d..7c48cc8 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -40,7 +40,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -50,14 +50,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -69,7 +69,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -79,14 +79,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index a1e3996..469cbb8 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -34,7 +34,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -44,14 +44,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -63,7 +63,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -73,14 +73,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 07fa7de..f9590ee 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 2> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 2> tint_bitcast_to_f16(uint src) {
@@ -49,7 +49,7 @@
typedef S ary_ret[4];
ary_ret v_12(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -59,14 +59,14 @@
break;
}
S v_15 = v_8((start_byte_offset + (v_14 * 128u)));
- a[v_14] = v_15;
+ a_2[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- S v_16[4] = a;
+ S v_16[4] = a_2;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.glsl
index 2ab4c47..73fee1c 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.glsl
@@ -55,7 +55,7 @@
}
void d(f16vec2 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat3x2(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.msl
index 96c72ed..93c9bdf 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f16/to_fn.wgsl.expected.ir.msl
@@ -37,7 +37,7 @@
void d(half2 v) {
}
-void e(half f) {
+void e(half f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 02f3ddf..1890eac 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -32,7 +32,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -42,14 +42,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -61,7 +61,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -71,14 +71,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 02f3ddf..1890eac 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -32,7 +32,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -42,14 +42,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -61,7 +61,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -71,14 +71,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 1f070fa..be105a9 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -26,7 +26,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -36,14 +36,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -55,7 +55,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -65,14 +65,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 1f070fa..be105a9 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -26,7 +26,7 @@
typedef Inner ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -36,14 +36,14 @@
break;
}
Inner v_11 = v_6((start_byte_offset + (v_10 * 64u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- Inner v_12[4] = a;
+ Inner v_12[4] = a_2;
return v_12;
}
@@ -55,7 +55,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_16(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_17 = 0u;
v_17 = 0u;
@@ -65,14 +65,14 @@
break;
}
Outer v_19 = v_13((start_byte_offset + (v_18 * 256u)));
- a[v_18] = v_19;
+ a_1[v_18] = v_19;
{
v_17 = (v_18 + 1u);
}
continue;
}
}
- Outer v_20[4] = a;
+ Outer v_20[4] = a_1;
return v_20;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index ec5d419..1210e44 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float3x2 v_1(uint start_byte_offset) {
@@ -41,7 +41,7 @@
typedef S ary_ret[4];
ary_ret v_11(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_12 = 0u;
v_12 = 0u;
@@ -51,14 +51,14 @@
break;
}
S v_14 = v_7((start_byte_offset + (v_13 * 128u)));
- a[v_13] = v_14;
+ a_2[v_13] = v_14;
{
v_12 = (v_13 + 1u);
}
continue;
}
}
- S v_15[4] = a;
+ S v_15[4] = a_2;
return v_15;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index ec5d419..1210e44 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float3x2 v_1(uint start_byte_offset) {
@@ -41,7 +41,7 @@
typedef S ary_ret[4];
ary_ret v_11(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_12 = 0u;
v_12 = 0u;
@@ -51,14 +51,14 @@
break;
}
S v_14 = v_7((start_byte_offset + (v_13 * 128u)));
- a[v_13] = v_14;
+ a_2[v_13] = v_14;
{
v_12 = (v_13 + 1u);
}
continue;
}
}
- S v_15[4] = a;
+ S v_15[4] = a_2;
return v_15;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.glsl
index 6968ab3..7916ded 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.glsl
@@ -51,7 +51,7 @@
}
void d(vec2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, mat3x2(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.msl
index 4a8fe9a..6320e4b 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x2_f32/to_fn.wgsl.expected.ir.msl
@@ -38,7 +38,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 73927c5..1a226d9 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -41,7 +41,7 @@
typedef Inner ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -51,14 +51,14 @@
break;
}
Inner v_12 = v_7((start_byte_offset + (v_11 * 64u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- Inner v_13[4] = a;
+ Inner v_13[4] = a_2;
return v_13;
}
@@ -70,7 +70,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_17(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_18 = 0u;
v_18 = 0u;
@@ -80,14 +80,14 @@
break;
}
Outer v_20 = v_14((start_byte_offset + (v_19 * 256u)));
- a[v_19] = v_20;
+ a_1[v_19] = v_20;
{
v_18 = (v_19 + 1u);
}
continue;
}
}
- Outer v_21[4] = a;
+ Outer v_21[4] = a_1;
return v_21;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index e66934f..03235d1 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -35,7 +35,7 @@
typedef Inner ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -45,14 +45,14 @@
break;
}
Inner v_12 = v_7((start_byte_offset + (v_11 * 64u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- Inner v_13[4] = a;
+ Inner v_13[4] = a_2;
return v_13;
}
@@ -64,7 +64,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_17(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_18 = 0u;
v_18 = 0u;
@@ -74,14 +74,14 @@
break;
}
Outer v_20 = v_14((start_byte_offset + (v_19 * 256u)));
- a[v_19] = v_20;
+ a_1[v_19] = v_20;
{
v_18 = (v_19 + 1u);
}
continue;
}
}
- Outer v_21[4] = a;
+ Outer v_21[4] = a_1;
return v_21;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 1cb6bf3..0b4a6c4 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 3> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -50,7 +50,7 @@
typedef S ary_ret[4];
ary_ret v_11(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_12 = 0u;
v_12 = 0u;
@@ -60,14 +60,14 @@
break;
}
S v_14 = v_7((start_byte_offset + (v_13 * 128u)));
- a[v_13] = v_14;
+ a_2[v_13] = v_14;
{
v_12 = (v_13 + 1u);
}
continue;
}
}
- S v_15[4] = a;
+ S v_15[4] = a_2;
return v_15;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.glsl
index 1398210..28cc96f 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.glsl
@@ -52,7 +52,7 @@
}
void d(f16vec3 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat3(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.msl
index c5f3265..48e5193 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f16/to_fn.wgsl.expected.ir.msl
@@ -49,7 +49,7 @@
void d(half3 v) {
}
-void e(half f) {
+void e(half f_1) {
}
S tint_load_struct_packed_vec3(const constant S_packed_vec3* const from) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index af1d01f..8e45147 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -29,7 +29,7 @@
typedef Inner ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -39,14 +39,14 @@
break;
}
Inner v_8 = v_3((start_byte_offset + (v_7 * 64u)));
- a[v_7] = v_8;
+ a_2[v_7] = v_8;
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- Inner v_9[4] = a;
+ Inner v_9[4] = a_2;
return v_9;
}
@@ -58,7 +58,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_13(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -68,14 +68,14 @@
break;
}
Outer v_16 = v_10((start_byte_offset + (v_15 * 256u)));
- a[v_15] = v_16;
+ a_1[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- Outer v_17[4] = a;
+ Outer v_17[4] = a_1;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index af1d01f..8e45147 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -29,7 +29,7 @@
typedef Inner ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -39,14 +39,14 @@
break;
}
Inner v_8 = v_3((start_byte_offset + (v_7 * 64u)));
- a[v_7] = v_8;
+ a_2[v_7] = v_8;
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- Inner v_9[4] = a;
+ Inner v_9[4] = a_2;
return v_9;
}
@@ -58,7 +58,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_13(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -68,14 +68,14 @@
break;
}
Outer v_16 = v_10((start_byte_offset + (v_15 * 256u)));
- a[v_15] = v_16;
+ a_1[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- Outer v_17[4] = a;
+ Outer v_17[4] = a_1;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 6460b52..0fddbf7 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -23,7 +23,7 @@
typedef Inner ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -33,14 +33,14 @@
break;
}
Inner v_8 = v_3((start_byte_offset + (v_7 * 64u)));
- a[v_7] = v_8;
+ a_2[v_7] = v_8;
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- Inner v_9[4] = a;
+ Inner v_9[4] = a_2;
return v_9;
}
@@ -52,7 +52,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_13(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -62,14 +62,14 @@
break;
}
Outer v_16 = v_10((start_byte_offset + (v_15 * 256u)));
- a[v_15] = v_16;
+ a_1[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- Outer v_17[4] = a;
+ Outer v_17[4] = a_1;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 6460b52..0fddbf7 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -23,7 +23,7 @@
typedef Inner ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -33,14 +33,14 @@
break;
}
Inner v_8 = v_3((start_byte_offset + (v_7 * 64u)));
- a[v_7] = v_8;
+ a_2[v_7] = v_8;
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- Inner v_9[4] = a;
+ Inner v_9[4] = a_2;
return v_9;
}
@@ -52,7 +52,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_13(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -62,14 +62,14 @@
break;
}
Outer v_16 = v_10((start_byte_offset + (v_15 * 256u)));
- a[v_15] = v_16;
+ a_1[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- Outer v_17[4] = a;
+ Outer v_17[4] = a_1;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index fda2593..e426821 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float3x3 v_1(uint start_byte_offset) {
@@ -38,7 +38,7 @@
typedef S ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -48,14 +48,14 @@
break;
}
S v_11 = v_4((start_byte_offset + (v_10 * 128u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- S v_12[4] = a;
+ S v_12[4] = a_2;
return v_12;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index fda2593..e426821 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float3x3 v_1(uint start_byte_offset) {
@@ -38,7 +38,7 @@
typedef S ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -48,14 +48,14 @@
break;
}
S v_11 = v_4((start_byte_offset + (v_10 * 128u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- S v_12[4] = a;
+ S v_12[4] = a_2;
return v_12;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
index 8a2cad5..c19ff27 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -48,7 +48,7 @@
}
void d(vec3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, mat3(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.msl
index 2da8af4..1ac9b1f 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x3_f32/to_fn.wgsl.expected.ir.msl
@@ -48,7 +48,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_load_struct_packed_vec3(const constant S_packed_vec3* const from) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index f97753f..cb3f82c 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -41,7 +41,7 @@
typedef Inner ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -51,14 +51,14 @@
break;
}
Inner v_12 = v_7((start_byte_offset + (v_11 * 64u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- Inner v_13[4] = a;
+ Inner v_13[4] = a_2;
return v_13;
}
@@ -70,7 +70,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_17(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_18 = 0u;
v_18 = 0u;
@@ -80,14 +80,14 @@
break;
}
Outer v_20 = v_14((start_byte_offset + (v_19 * 256u)));
- a[v_19] = v_20;
+ a_1[v_19] = v_20;
{
v_18 = (v_19 + 1u);
}
continue;
}
}
- Outer v_21[4] = a;
+ Outer v_21[4] = a_1;
return v_21;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index c5013aa..13ee62a 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -35,7 +35,7 @@
typedef Inner ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -45,14 +45,14 @@
break;
}
Inner v_12 = v_7((start_byte_offset + (v_11 * 64u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- Inner v_13[4] = a;
+ Inner v_13[4] = a_2;
return v_13;
}
@@ -64,7 +64,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_17(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_18 = 0u;
v_18 = 0u;
@@ -74,14 +74,14 @@
break;
}
Outer v_20 = v_14((start_byte_offset + (v_19 * 256u)));
- a[v_19] = v_20;
+ a_1[v_19] = v_20;
{
v_18 = (v_19 + 1u);
}
continue;
}
}
- Outer v_21[4] = a;
+ Outer v_21[4] = a_1;
return v_21;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 6d60d5b..d9b6fd6 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 4> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -50,7 +50,7 @@
typedef S ary_ret[4];
ary_ret v_11(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_12 = 0u;
v_12 = 0u;
@@ -60,14 +60,14 @@
break;
}
S v_14 = v_7((start_byte_offset + (v_13 * 128u)));
- a[v_13] = v_14;
+ a_2[v_13] = v_14;
{
v_12 = (v_13 + 1u);
}
continue;
}
}
- S v_15[4] = a;
+ S v_15[4] = a_2;
return v_15;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.glsl
index bab47a0..809bf60 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.glsl
@@ -52,7 +52,7 @@
}
void d(f16vec4 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat3x4(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.msl
index 940e6b6..0723fb0 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f16/to_fn.wgsl.expected.ir.msl
@@ -38,7 +38,7 @@
void d(half4 v) {
}
-void e(half f) {
+void e(half f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 97f6d49..a752ac8 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -29,7 +29,7 @@
typedef Inner ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -39,14 +39,14 @@
break;
}
Inner v_8 = v_3((start_byte_offset + (v_7 * 64u)));
- a[v_7] = v_8;
+ a_2[v_7] = v_8;
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- Inner v_9[4] = a;
+ Inner v_9[4] = a_2;
return v_9;
}
@@ -58,7 +58,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_13(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -68,14 +68,14 @@
break;
}
Outer v_16 = v_10((start_byte_offset + (v_15 * 256u)));
- a[v_15] = v_16;
+ a_1[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- Outer v_17[4] = a;
+ Outer v_17[4] = a_1;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 97f6d49..a752ac8 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -29,7 +29,7 @@
typedef Inner ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -39,14 +39,14 @@
break;
}
Inner v_8 = v_3((start_byte_offset + (v_7 * 64u)));
- a[v_7] = v_8;
+ a_2[v_7] = v_8;
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- Inner v_9[4] = a;
+ Inner v_9[4] = a_2;
return v_9;
}
@@ -58,7 +58,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_13(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -68,14 +68,14 @@
break;
}
Outer v_16 = v_10((start_byte_offset + (v_15 * 256u)));
- a[v_15] = v_16;
+ a_1[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- Outer v_17[4] = a;
+ Outer v_17[4] = a_1;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 3a92bc7..09abd3c 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -23,7 +23,7 @@
typedef Inner ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -33,14 +33,14 @@
break;
}
Inner v_8 = v_3((start_byte_offset + (v_7 * 64u)));
- a[v_7] = v_8;
+ a_2[v_7] = v_8;
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- Inner v_9[4] = a;
+ Inner v_9[4] = a_2;
return v_9;
}
@@ -52,7 +52,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_13(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -62,14 +62,14 @@
break;
}
Outer v_16 = v_10((start_byte_offset + (v_15 * 256u)));
- a[v_15] = v_16;
+ a_1[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- Outer v_17[4] = a;
+ Outer v_17[4] = a_1;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 3a92bc7..09abd3c 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -23,7 +23,7 @@
typedef Inner ary_ret[4];
ary_ret v_5(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_6 = 0u;
v_6 = 0u;
@@ -33,14 +33,14 @@
break;
}
Inner v_8 = v_3((start_byte_offset + (v_7 * 64u)));
- a[v_7] = v_8;
+ a_2[v_7] = v_8;
{
v_6 = (v_7 + 1u);
}
continue;
}
}
- Inner v_9[4] = a;
+ Inner v_9[4] = a_2;
return v_9;
}
@@ -52,7 +52,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_13(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -62,14 +62,14 @@
break;
}
Outer v_16 = v_10((start_byte_offset + (v_15 * 256u)));
- a[v_15] = v_16;
+ a_1[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- Outer v_17[4] = a;
+ Outer v_17[4] = a_1;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index c8a3c59..2c42947 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float3x4 v_1(uint start_byte_offset) {
@@ -38,7 +38,7 @@
typedef S ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -48,14 +48,14 @@
break;
}
S v_11 = v_4((start_byte_offset + (v_10 * 128u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- S v_12[4] = a;
+ S v_12[4] = a_2;
return v_12;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index c8a3c59..2c42947 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float3x4 v_1(uint start_byte_offset) {
@@ -38,7 +38,7 @@
typedef S ary_ret[4];
ary_ret v_8(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_9 = 0u;
v_9 = 0u;
@@ -48,14 +48,14 @@
break;
}
S v_11 = v_4((start_byte_offset + (v_10 * 128u)));
- a[v_10] = v_11;
+ a_2[v_10] = v_11;
{
v_9 = (v_10 + 1u);
}
continue;
}
}
- S v_12[4] = a;
+ S v_12[4] = a_2;
return v_12;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
index e6cef1c..064cae5 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -37,7 +37,7 @@
}
void d(vec4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.msl
index bec14bf..db2c19b 100644
--- a/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat3x4_f32/to_fn.wgsl.expected.ir.msl
@@ -37,7 +37,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 4d1ae5a..567e07e 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -42,7 +42,7 @@
typedef Inner ary_ret[4];
ary_ret v_12(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -52,14 +52,14 @@
break;
}
Inner v_15 = v_10((start_byte_offset + (v_14 * 64u)));
- a[v_14] = v_15;
+ a_2[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Inner v_16[4] = a;
+ Inner v_16[4] = a_2;
return v_16;
}
@@ -71,7 +71,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_20(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_21 = 0u;
v_21 = 0u;
@@ -81,14 +81,14 @@
break;
}
Outer v_23 = v_17((start_byte_offset + (v_22 * 256u)));
- a[v_22] = v_23;
+ a_1[v_22] = v_23;
{
v_21 = (v_22 + 1u);
}
continue;
}
}
- Outer v_24[4] = a;
+ Outer v_24[4] = a_1;
return v_24;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index ebac656..2fa5c48 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -36,7 +36,7 @@
typedef Inner ary_ret[4];
ary_ret v_12(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -46,14 +46,14 @@
break;
}
Inner v_15 = v_10((start_byte_offset + (v_14 * 64u)));
- a[v_14] = v_15;
+ a_2[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- Inner v_16[4] = a;
+ Inner v_16[4] = a_2;
return v_16;
}
@@ -65,7 +65,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_20(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_21 = 0u;
v_21 = 0u;
@@ -75,14 +75,14 @@
break;
}
Outer v_23 = v_17((start_byte_offset + (v_22 * 256u)));
- a[v_22] = v_23;
+ a_1[v_22] = v_23;
{
v_21 = (v_22 + 1u);
}
continue;
}
}
- Outer v_24[4] = a;
+ Outer v_24[4] = a_1;
return v_24;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 9ce677f..1a54175 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 2> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 2> tint_bitcast_to_f16(uint src) {
@@ -51,7 +51,7 @@
typedef S ary_ret[4];
ary_ret v_14(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -61,14 +61,14 @@
break;
}
S v_17 = v_10((start_byte_offset + (v_16 * 128u)));
- a[v_16] = v_17;
+ a_2[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- S v_18[4] = a;
+ S v_18[4] = a_2;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
index a9d1d9f..ea7adcb 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
@@ -55,7 +55,7 @@
}
void d(f16vec2 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat4x2(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2, tint_input.m_col3), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.msl
index f7e5ca4..f007151 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f16/to_fn.wgsl.expected.ir.msl
@@ -37,7 +37,7 @@
void d(half2 v) {
}
-void e(half f) {
+void e(half f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index e69f32e..76c40e7 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -34,7 +34,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -44,14 +44,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -63,7 +63,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -73,14 +73,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index e69f32e..76c40e7 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -34,7 +34,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -44,14 +44,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -63,7 +63,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -73,14 +73,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 2ab1fbd..a44b515 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -28,7 +28,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -38,14 +38,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -57,7 +57,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -67,14 +67,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 2ab1fbd..a44b515 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -28,7 +28,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -38,14 +38,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -57,7 +57,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -67,14 +67,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 197e6cc..77d9611 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float4x2 v_1(uint start_byte_offset) {
@@ -43,7 +43,7 @@
typedef S ary_ret[4];
ary_ret v_13(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -53,14 +53,14 @@
break;
}
S v_16 = v_9((start_byte_offset + (v_15 * 128u)));
- a[v_15] = v_16;
+ a_2[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- S v_17[4] = a;
+ S v_17[4] = a_2;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 197e6cc..77d9611 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float4x2 v_1(uint start_byte_offset) {
@@ -43,7 +43,7 @@
typedef S ary_ret[4];
ary_ret v_13(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_14 = 0u;
v_14 = 0u;
@@ -53,14 +53,14 @@
break;
}
S v_16 = v_9((start_byte_offset + (v_15 * 128u)));
- a[v_15] = v_16;
+ a_2[v_15] = v_16;
{
v_14 = (v_15 + 1u);
}
continue;
}
}
- S v_17[4] = a;
+ S v_17[4] = a_2;
return v_17;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
index db8dd7d..8e3fd65 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
@@ -50,7 +50,7 @@
}
void d(vec2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, mat4x2(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2, tint_input.m_col3), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.msl
index 676abc9..e458897 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x2_f32/to_fn.wgsl.expected.ir.msl
@@ -38,7 +38,7 @@
void d(float2 v) {
}
-void e(float f) {
+void e(float f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 68e3bcb..4278f21 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -42,7 +42,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -52,14 +52,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -71,7 +71,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -81,14 +81,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 01abb40..0373960 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -36,7 +36,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -46,14 +46,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -65,7 +65,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -75,14 +75,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 098dd78..d4e42f8 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 3> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -51,7 +51,7 @@
typedef S ary_ret[4];
ary_ret v_12(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -61,14 +61,14 @@
break;
}
S v_15 = v_8((start_byte_offset + (v_14 * 128u)));
- a[v_14] = v_15;
+ a_2[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- S v_16[4] = a;
+ S v_16[4] = a_2;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
index d551cc6..d5784d4 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
@@ -51,7 +51,7 @@
}
void d(f16vec3 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat4x3(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2, tint_input.m_col3), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.msl
index d1d9285..cfdc82c 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f16/to_fn.wgsl.expected.ir.msl
@@ -49,7 +49,7 @@
void d(half3 v) {
}
-void e(half f) {
+void e(half f_1) {
}
S tint_load_struct_packed_vec3(const constant S_packed_vec3* const from) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 3ff1304..cbe24d0 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -30,7 +30,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -40,14 +40,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -59,7 +59,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -69,14 +69,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 3ff1304..cbe24d0 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -30,7 +30,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -40,14 +40,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -59,7 +59,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -69,14 +69,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index c2ba7a9..354533c 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -24,7 +24,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -34,14 +34,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -53,7 +53,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -63,14 +63,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index c2ba7a9..354533c 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -24,7 +24,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -34,14 +34,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -53,7 +53,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -63,14 +63,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 4509585..a212808 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float4x3 v_1(uint start_byte_offset) {
@@ -39,7 +39,7 @@
typedef S ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -49,14 +49,14 @@
break;
}
S v_12 = v_5((start_byte_offset + (v_11 * 192u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- S v_13[4] = a;
+ S v_13[4] = a_2;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 4509585..a212808 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float4x3 v_1(uint start_byte_offset) {
@@ -39,7 +39,7 @@
typedef S ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -49,14 +49,14 @@
break;
}
S v_12 = v_5((start_byte_offset + (v_11 * 192u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- S v_13[4] = a;
+ S v_13[4] = a_2;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
index bd36f51..a7d8fd7 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -62,7 +62,7 @@
}
void d(vec3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, mat4x3(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2, tint_input.m_col3), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.msl
index ba4ee63..c5b6564 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x3_f32/to_fn.wgsl.expected.ir.msl
@@ -49,7 +49,7 @@
void d(float3 v) {
}
-void e(float f) {
+void e(float f_1) {
}
S tint_load_struct_packed_vec3(const constant S_packed_vec3* const from) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index ec9cff9..b6d0f07 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -42,7 +42,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -52,14 +52,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -71,7 +71,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -81,14 +81,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 8b3fadb..8375781 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -36,7 +36,7 @@
typedef Inner ary_ret[4];
ary_ret v_10(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_11 = 0u;
v_11 = 0u;
@@ -46,14 +46,14 @@
break;
}
Inner v_13 = v_8((start_byte_offset + (v_12 * 64u)));
- a[v_12] = v_13;
+ a_2[v_12] = v_13;
{
v_11 = (v_12 + 1u);
}
continue;
}
}
- Inner v_14[4] = a;
+ Inner v_14[4] = a_2;
return v_14;
}
@@ -65,7 +65,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_18(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_19 = 0u;
v_19 = 0u;
@@ -75,14 +75,14 @@
break;
}
Outer v_21 = v_15((start_byte_offset + (v_20 * 256u)));
- a[v_20] = v_21;
+ a_1[v_20] = v_21;
{
v_19 = (v_20 + 1u);
}
continue;
}
}
- Outer v_22[4] = a;
+ Outer v_22[4] = a_1;
return v_22;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 0ba935d..8a0f55b 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(vector<float16_t, 4> v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
@@ -51,7 +51,7 @@
typedef S ary_ret[4];
ary_ret v_12(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_13 = 0u;
v_13 = 0u;
@@ -61,14 +61,14 @@
break;
}
S v_15 = v_8((start_byte_offset + (v_14 * 128u)));
- a[v_14] = v_15;
+ a_2[v_14] = v_15;
{
v_13 = (v_14 + 1u);
}
continue;
}
}
- S v_16[4] = a;
+ S v_16[4] = a_2;
return v_16;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
index 3f1aa6f..02df3aa 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
@@ -51,7 +51,7 @@
}
void d(f16vec4 v) {
}
-void e(float16_t f) {
+void e(float16_t f_1) {
}
S tint_convert_S(S_std140 tint_input) {
return S(tint_input.before, f16mat4(tint_input.m_col0, tint_input.m_col1, tint_input.m_col2, tint_input.m_col3), tint_input.after);
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.msl
index 01780d2..15d1ca4 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f16/to_fn.wgsl.expected.ir.msl
@@ -38,7 +38,7 @@
void d(half4 v) {
}
-void e(half f) {
+void e(half f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 933b705..e1efcf0 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -30,7 +30,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -40,14 +40,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -59,7 +59,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -69,14 +69,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 933b705..e1efcf0 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/dynamic_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -30,7 +30,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -40,14 +40,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -59,7 +59,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -69,14 +69,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
index 08d4c5d..0cf0757 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.dxc.hlsl
@@ -24,7 +24,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -34,14 +34,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -53,7 +53,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -63,14 +63,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
index 08d4c5d..0cf0757 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/static_index_via_ptr.wgsl.expected.ir.fxc.hlsl
@@ -24,7 +24,7 @@
typedef Inner ary_ret[4];
ary_ret v_6(uint start_byte_offset) {
- Inner a[4] = (Inner[4])0;
+ Inner a_2[4] = (Inner[4])0;
{
uint v_7 = 0u;
v_7 = 0u;
@@ -34,14 +34,14 @@
break;
}
Inner v_9 = v_4((start_byte_offset + (v_8 * 64u)));
- a[v_8] = v_9;
+ a_2[v_8] = v_9;
{
v_7 = (v_8 + 1u);
}
continue;
}
}
- Inner v_10[4] = a;
+ Inner v_10[4] = a_2;
return v_10;
}
@@ -53,7 +53,7 @@
typedef Outer ary_ret_1[4];
ary_ret_1 v_14(uint start_byte_offset) {
- Outer a[4] = (Outer[4])0;
+ Outer a_1[4] = (Outer[4])0;
{
uint v_15 = 0u;
v_15 = 0u;
@@ -63,14 +63,14 @@
break;
}
Outer v_17 = v_11((start_byte_offset + (v_16 * 256u)));
- a[v_16] = v_17;
+ a_1[v_16] = v_17;
{
v_15 = (v_16 + 1u);
}
continue;
}
}
- Outer v_18[4] = a;
+ Outer v_18[4] = a_1;
return v_18;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 5013b6a..2a53685 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -20,7 +20,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float4x4 v_1(uint start_byte_offset) {
@@ -39,7 +39,7 @@
typedef S ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -49,14 +49,14 @@
break;
}
S v_12 = v_5((start_byte_offset + (v_11 * 192u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- S v_13[4] = a;
+ S v_13[4] = a_2;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 5013b6a..2a53685 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -20,7 +20,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
float4x4 v_1(uint start_byte_offset) {
@@ -39,7 +39,7 @@
typedef S ary_ret[4];
ary_ret v_9(uint start_byte_offset) {
- S a[4] = (S[4])0;
+ S a_2[4] = (S[4])0;
{
uint v_10 = 0u;
v_10 = 0u;
@@ -49,14 +49,14 @@
break;
}
S v_12 = v_5((start_byte_offset + (v_11 * 192u)));
- a[v_11] = v_12;
+ a_2[v_11] = v_12;
{
v_10 = (v_11 + 1u);
}
continue;
}
}
- S v_13[4] = a;
+ S v_13[4] = a_2;
return v_13;
}
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
index 148d516..986abc4 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -49,7 +49,7 @@
}
void d(vec4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.msl
index d31c269..6fbff88 100644
--- a/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/struct/mat4x4_f32/to_fn.wgsl.expected.ir.msl
@@ -38,7 +38,7 @@
void d(float4 v) {
}
-void e(float f) {
+void e(float f_1) {
}
kernel void f(const constant tint_array<S, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 6516b15..ba67b7d 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 2> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 2> tint_bitcast_to_f16(uint src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.glsl
index 5cb68ef..3b76cfa 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.glsl
@@ -10,7 +10,7 @@
}
void b(f16vec2 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.msl
index c6d891f..480c176 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f16/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(half2 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant half2x2* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 81e1996..98b6c06 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float2x2 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 81e1996..98b6c06 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float2x2 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
index 2c9f6ce..510149a 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.glsl
@@ -9,7 +9,7 @@
}
void b(vec2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.msl
index 8dc8904..3e1c91f 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x2_f32/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant float2x2* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index dfce3b6..fe8551d 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 3> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
index dfc9dfd..4f35ef8 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.glsl
@@ -10,7 +10,7 @@
}
void b(f16vec3 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.msl
index 85eb0c5..af477f9 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f16/to_fn.wgsl.expected.ir.msl
@@ -28,7 +28,7 @@
void b(half3 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant tint_array<tint_packed_vec3_f16_array_element, 2>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 57b085b..039afd1 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float2x3 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 57b085b..039afd1 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float2x3 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
index 6ab8cb4..7dcc239 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -10,7 +10,7 @@
}
void b(vec3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.msl
index 22b3103..40a3ac81 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x3_f32/to_fn.wgsl.expected.ir.msl
@@ -28,7 +28,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant tint_array<tint_packed_vec3_f32_array_element, 2>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 03d7089..1291577 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 4> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
index ff77907..06c8818 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.glsl
@@ -10,7 +10,7 @@
}
void b(f16vec4 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.msl
index 794d1cd..3340280 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f16/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(half4 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant half2x4* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 2d83851..c4df9d1 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float2x4 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 2d83851..c4df9d1 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float2x4 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
index ee8ba94..297dfdc 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -8,7 +8,7 @@
}
void b(vec4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.msl
index 617b2a1..01ad64c 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat2x4_f32/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant float2x4* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index bbe4b76..397398b 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 2> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 2> tint_bitcast_to_f16(uint src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.glsl
index 66bc643..9128fa4 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.glsl
@@ -11,7 +11,7 @@
}
void b(f16vec2 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.msl
index e6f8847..d00561a 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f16/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(half2 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant half3x2* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 941f4de..bac5acc 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float3x2 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 941f4de..bac5acc 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float3x2 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.glsl
index c975a03..d58458c 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.glsl
@@ -10,7 +10,7 @@
}
void b(vec2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.msl
index ae95cca..4fd3154 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x2_f32/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant float3x2* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 5f2da89..8104984 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 3> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.glsl
index 972baf2..065f0f7 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.glsl
@@ -11,7 +11,7 @@
}
void b(f16vec3 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.msl
index 9a03f4a..8a6a9a2 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f16/to_fn.wgsl.expected.ir.msl
@@ -28,7 +28,7 @@
void b(half3 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant tint_array<tint_packed_vec3_f16_array_element, 3>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 25d3bab..dae370b 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float3x3 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 25d3bab..dae370b 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float3x3 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
index f6a07c9..8e07636 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
}
void b(vec3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.msl
index d507832..435723d 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x3_f32/to_fn.wgsl.expected.ir.msl
@@ -28,7 +28,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant tint_array<tint_packed_vec3_f32_array_element, 3>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index c4520b4..2c72099 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 4> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.glsl
index e1e6cea..d97799a 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.glsl
@@ -11,7 +11,7 @@
}
void b(f16vec4 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.msl
index 504f1af..6e9fa5d 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f16/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(half4 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant half3x4* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index d45c10d..6dec87f 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float3x4 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index d45c10d..6dec87f 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float3x4 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
index 705aaed..3f77754 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -8,7 +8,7 @@
}
void b(vec4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.msl
index 9f56d61..0b41b66 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat3x4_f32/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant float3x4* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index a24ba68..f36e793 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 2> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 2> tint_bitcast_to_f16(uint src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
index d065d1c..e7da139 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
}
void b(f16vec2 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.msl
index 7259bdc..3677b13 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f16/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(half2 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant half4x2* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 6e3ff0a..dcfda7d 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float4x2 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 6e3ff0a..dcfda7d 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float4x2 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
index 7be3271..65a0d80 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.glsl
@@ -11,7 +11,7 @@
}
void b(vec2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.msl
index 9793bfd..b10fca0 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x2_f32/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(float2 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant float4x2* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 330c918..63b733d 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 3> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
index 97edd7d..97e7872 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
}
void b(f16vec3 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.msl
index c840c50..09826f6 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f16/to_fn.wgsl.expected.ir.msl
@@ -28,7 +28,7 @@
void b(half3 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant tint_array<tint_packed_vec3_f16_array_element, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index f42c2bb..95173b0 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float4x3 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index f42c2bb..95173b0 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float4x3 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
index d736a93..13a0c86 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.glsl
@@ -14,7 +14,7 @@
}
void b(vec3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.msl
index 3dc6a21..4bd3b75 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x3_f32/to_fn.wgsl.expected.ir.msl
@@ -28,7 +28,7 @@
void b(float3 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant tint_array<tint_packed_vec3_f32_array_element, 4>* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
index 6d5c4c4..a2612e6 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(vector<float16_t, 4> v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
vector<float16_t, 4> tint_bitcast_to_f16(uint4 src) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
index 02c441d..cbbeeab 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.glsl
@@ -12,7 +12,7 @@
}
void b(f16vec4 v) {
}
-void c(float16_t f) {
+void c(float16_t f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.msl
index 45e0c7a..a76157b 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f16/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(half4 v) {
}
-void c(half f) {
+void c(half f_1) {
}
kernel void f(const constant half4x4* u [[buffer(0)]]) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
index 865b64c..c9c59d6 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.dxc.hlsl
@@ -8,7 +8,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float4x4 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
index 865b64c..c9c59d6 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.fxc.hlsl
@@ -8,7 +8,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
float4x4 v_1(uint start_byte_offset) {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.glsl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
index 7182065..7412f5b 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.glsl
@@ -8,7 +8,7 @@
}
void b(vec4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.msl b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.msl
index e34819f..c948a20 100644
--- a/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.msl
+++ b/test/tint/buffer/uniform/std140/unnested/mat4x4_f32/to_fn.wgsl.expected.ir.msl
@@ -11,7 +11,7 @@
void b(float4 v) {
}
-void c(float f) {
+void c(float f_1) {
}
kernel void f(const constant float4x4* u [[buffer(0)]]) {
diff --git a/test/tint/loops/multiple_switch.wgsl.expected.ir.dxc.hlsl b/test/tint/loops/multiple_switch.wgsl.expected.ir.dxc.hlsl
index 37b0672..8570ab0 100644
--- a/test/tint/loops/multiple_switch.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/loops/multiple_switch.wgsl.expected.ir.dxc.hlsl
@@ -3,14 +3,14 @@
void main() {
int i = int(0);
{
- int i = int(0);
+ int i_1 = int(0);
while(true) {
- if ((i < int(2))) {
+ if ((i_1 < int(2))) {
} else {
break;
}
bool tint_continue = false;
- switch(i) {
+ switch(i_1) {
case int(0):
{
tint_continue = true;
@@ -23,12 +23,12 @@
}
if (tint_continue) {
{
- i = (i + int(1));
+ i_1 = (i_1 + int(1));
}
continue;
}
bool tint_continue_1 = false;
- switch(i) {
+ switch(i_1) {
case int(0):
{
tint_continue_1 = true;
@@ -41,12 +41,12 @@
}
if (tint_continue_1) {
{
- i = (i + int(1));
+ i_1 = (i_1 + int(1));
}
continue;
}
{
- i = (i + int(1));
+ i_1 = (i_1 + int(1));
}
continue;
}
diff --git a/test/tint/loops/multiple_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/multiple_switch.wgsl.expected.ir.fxc.hlsl
index 37b0672..8570ab0 100644
--- a/test/tint/loops/multiple_switch.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/loops/multiple_switch.wgsl.expected.ir.fxc.hlsl
@@ -3,14 +3,14 @@
void main() {
int i = int(0);
{
- int i = int(0);
+ int i_1 = int(0);
while(true) {
- if ((i < int(2))) {
+ if ((i_1 < int(2))) {
} else {
break;
}
bool tint_continue = false;
- switch(i) {
+ switch(i_1) {
case int(0):
{
tint_continue = true;
@@ -23,12 +23,12 @@
}
if (tint_continue) {
{
- i = (i + int(1));
+ i_1 = (i_1 + int(1));
}
continue;
}
bool tint_continue_1 = false;
- switch(i) {
+ switch(i_1) {
case int(0):
{
tint_continue_1 = true;
@@ -41,12 +41,12 @@
}
if (tint_continue_1) {
{
- i = (i + int(1));
+ i_1 = (i_1 + int(1));
}
continue;
}
{
- i = (i + int(1));
+ i_1 = (i_1 + int(1));
}
continue;
}
diff --git a/test/tint/loops/multiple_switch.wgsl.expected.ir.glsl b/test/tint/loops/multiple_switch.wgsl.expected.ir.glsl
index 42b783a..b3ab152 100644
--- a/test/tint/loops/multiple_switch.wgsl.expected.ir.glsl
+++ b/test/tint/loops/multiple_switch.wgsl.expected.ir.glsl
@@ -4,14 +4,14 @@
void main() {
int i = 0;
{
- int i = 0;
+ int i_1 = 0;
while(true) {
- if ((i < 2)) {
+ if ((i_1 < 2)) {
} else {
break;
}
bool tint_continue = false;
- switch(i) {
+ switch(i_1) {
case 0:
{
tint_continue = true;
@@ -24,12 +24,12 @@
}
if (tint_continue) {
{
- i = (i + 1);
+ i_1 = (i_1 + 1);
}
continue;
}
bool tint_continue_1 = false;
- switch(i) {
+ switch(i_1) {
case 0:
{
tint_continue_1 = true;
@@ -42,12 +42,12 @@
}
if (tint_continue_1) {
{
- i = (i + 1);
+ i_1 = (i_1 + 1);
}
continue;
}
{
- i = (i + 1);
+ i_1 = (i_1 + 1);
}
continue;
}
diff --git a/test/tint/loops/multiple_switch.wgsl.expected.ir.msl b/test/tint/loops/multiple_switch.wgsl.expected.ir.msl
index 5edf8d5..81ab83d 100644
--- a/test/tint/loops/multiple_switch.wgsl.expected.ir.msl
+++ b/test/tint/loops/multiple_switch.wgsl.expected.ir.msl
@@ -7,15 +7,15 @@
kernel void tint_symbol() {
int i = 0;
{
- int i = 0;
+ int i_1 = 0;
while(true) {
TINT_ISOLATE_UB(tint_volatile_false)
- if ((i < 2)) {
+ if ((i_1 < 2)) {
} else {
break;
}
bool tint_continue = false;
- switch(i) {
+ switch(i_1) {
case 0:
{
tint_continue = true;
@@ -28,12 +28,12 @@
}
if (tint_continue) {
{
- i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
+ i_1 = as_type<int>((as_type<uint>(i_1) + as_type<uint>(1)));
}
continue;
}
bool tint_continue_1 = false;
- switch(i) {
+ switch(i_1) {
case 0:
{
tint_continue_1 = true;
@@ -46,12 +46,12 @@
}
if (tint_continue_1) {
{
- i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
+ i_1 = as_type<int>((as_type<uint>(i_1) + as_type<uint>(1)));
}
continue;
}
{
- i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
+ i_1 = as_type<int>((as_type<uint>(i_1) + as_type<uint>(1)));
}
continue;
}
diff --git a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.dxc.hlsl b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.dxc.hlsl
index 106c482..2d688e6 100644
--- a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.dxc.hlsl
@@ -19,11 +19,11 @@
} else {
break;
}
- bool tint_continue = false;
+ bool tint_continue_1 = false;
switch(j) {
case int(0):
{
- tint_continue = true;
+ tint_continue_1 = true;
break;
}
default:
@@ -31,7 +31,7 @@
break;
}
}
- if (tint_continue) {
+ if (tint_continue_1) {
{
j = (j + int(2));
}
diff --git a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.fxc.hlsl
index 106c482..2d688e6 100644
--- a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.fxc.hlsl
@@ -19,11 +19,11 @@
} else {
break;
}
- bool tint_continue = false;
+ bool tint_continue_1 = false;
switch(j) {
case int(0):
{
- tint_continue = true;
+ tint_continue_1 = true;
break;
}
default:
@@ -31,7 +31,7 @@
break;
}
}
- if (tint_continue) {
+ if (tint_continue_1) {
{
j = (j + int(2));
}
diff --git a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.glsl b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.glsl
index 0ecdbb7..faae6e8 100644
--- a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.glsl
+++ b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.glsl
@@ -20,11 +20,11 @@
} else {
break;
}
- bool tint_continue = false;
+ bool tint_continue_1 = false;
switch(j) {
case 0:
{
- tint_continue = true;
+ tint_continue_1 = true;
break;
}
default:
@@ -32,7 +32,7 @@
break;
}
}
- if (tint_continue) {
+ if (tint_continue_1) {
{
j = (j + 2);
}
diff --git a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.msl b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.msl
index eb3d97c..caf7752 100644
--- a/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.msl
+++ b/test/tint/loops/nested_loop_switch_loop_switch.wgsl.expected.ir.msl
@@ -25,11 +25,11 @@
} else {
break;
}
- bool tint_continue = false;
+ bool tint_continue_1 = false;
switch(j) {
case 0:
{
- tint_continue = true;
+ tint_continue_1 = true;
break;
}
default:
@@ -37,7 +37,7 @@
break;
}
}
- if (tint_continue) {
+ if (tint_continue_1) {
{
j = as_type<int>((as_type<uint>(j) + as_type<uint>(2)));
}
diff --git a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.dxc.hlsl b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.dxc.hlsl
index cd3cfe4..14d5032 100644
--- a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.dxc.hlsl
@@ -20,20 +20,20 @@
} else {
break;
}
- bool tint_continue = false;
+ bool tint_continue_1 = false;
switch(j) {
case int(0):
{
- tint_continue = true;
+ tint_continue_1 = true;
break;
}
case int(1):
{
- bool tint_continue_1 = false;
+ bool tint_continue_2 = false;
switch(k) {
case int(0):
{
- tint_continue_1 = true;
+ tint_continue_2 = true;
break;
}
default:
@@ -41,8 +41,8 @@
break;
}
}
- if (tint_continue_1) {
- tint_continue = true;
+ if (tint_continue_2) {
+ tint_continue_1 = true;
break;
}
break;
@@ -52,7 +52,7 @@
break;
}
}
- if (tint_continue) {
+ if (tint_continue_1) {
{
j = (j + int(2));
}
diff --git a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.fxc.hlsl b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.fxc.hlsl
index cd3cfe4..14d5032 100644
--- a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.fxc.hlsl
@@ -20,20 +20,20 @@
} else {
break;
}
- bool tint_continue = false;
+ bool tint_continue_1 = false;
switch(j) {
case int(0):
{
- tint_continue = true;
+ tint_continue_1 = true;
break;
}
case int(1):
{
- bool tint_continue_1 = false;
+ bool tint_continue_2 = false;
switch(k) {
case int(0):
{
- tint_continue_1 = true;
+ tint_continue_2 = true;
break;
}
default:
@@ -41,8 +41,8 @@
break;
}
}
- if (tint_continue_1) {
- tint_continue = true;
+ if (tint_continue_2) {
+ tint_continue_1 = true;
break;
}
break;
@@ -52,7 +52,7 @@
break;
}
}
- if (tint_continue) {
+ if (tint_continue_1) {
{
j = (j + int(2));
}
diff --git a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.glsl b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.glsl
index 92daebe..ffbc198 100644
--- a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.glsl
+++ b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.glsl
@@ -21,20 +21,20 @@
} else {
break;
}
- bool tint_continue = false;
+ bool tint_continue_1 = false;
switch(j) {
case 0:
{
- tint_continue = true;
+ tint_continue_1 = true;
break;
}
case 1:
{
- bool tint_continue_1 = false;
+ bool tint_continue_2 = false;
switch(k) {
case 0:
{
- tint_continue_1 = true;
+ tint_continue_2 = true;
break;
}
default:
@@ -42,8 +42,8 @@
break;
}
}
- if (tint_continue_1) {
- tint_continue = true;
+ if (tint_continue_2) {
+ tint_continue_1 = true;
break;
}
break;
@@ -53,7 +53,7 @@
break;
}
}
- if (tint_continue) {
+ if (tint_continue_1) {
{
j = (j + 2);
}
diff --git a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.msl b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.msl
index 6bc5dec..0bb8ce8 100644
--- a/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.msl
+++ b/test/tint/loops/nested_loop_switch_loop_switch_switch.wgsl.expected.ir.msl
@@ -26,20 +26,20 @@
} else {
break;
}
- bool tint_continue = false;
+ bool tint_continue_1 = false;
switch(j) {
case 0:
{
- tint_continue = true;
+ tint_continue_1 = true;
break;
}
case 1:
{
- bool tint_continue_1 = false;
+ bool tint_continue_2 = false;
switch(k) {
case 0:
{
- tint_continue_1 = true;
+ tint_continue_2 = true;
break;
}
default:
@@ -47,8 +47,8 @@
break;
}
}
- if (tint_continue_1) {
- tint_continue = true;
+ if (tint_continue_2) {
+ tint_continue_1 = true;
break;
}
break;
@@ -58,7 +58,7 @@
break;
}
}
- if (tint_continue) {
+ if (tint_continue_1) {
{
j = as_type<int>((as_type<uint>(j) + as_type<uint>(2)));
}
diff --git a/test/tint/shadowing/function/let.wgsl.expected.ir.dxc.hlsl b/test/tint/shadowing/function/let.wgsl.expected.ir.dxc.hlsl
index 901addb..5306dac 100644
--- a/test/tint/shadowing/function/let.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/shadowing/function/let.wgsl.expected.ir.dxc.hlsl
@@ -1,9 +1,9 @@
void a() {
- int a_2 = int(1);
- int b = a_2;
int a_1 = int(1);
- int b_1 = a_1;
+ int b = a_1;
+ int a_2 = int(1);
+ int b_1 = a_2;
}
[numthreads(1, 1, 1)]
diff --git a/test/tint/shadowing/function/let.wgsl.expected.ir.fxc.hlsl b/test/tint/shadowing/function/let.wgsl.expected.ir.fxc.hlsl
index 901addb..5306dac 100644
--- a/test/tint/shadowing/function/let.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/shadowing/function/let.wgsl.expected.ir.fxc.hlsl
@@ -1,9 +1,9 @@
void a() {
- int a_2 = int(1);
- int b = a_2;
int a_1 = int(1);
- int b_1 = a_1;
+ int b = a_1;
+ int a_2 = int(1);
+ int b_1 = a_2;
}
[numthreads(1, 1, 1)]
diff --git a/test/tint/shadowing/function/let.wgsl.expected.ir.glsl b/test/tint/shadowing/function/let.wgsl.expected.ir.glsl
index f2ad24f..4ecbfa2 100644
--- a/test/tint/shadowing/function/let.wgsl.expected.ir.glsl
+++ b/test/tint/shadowing/function/let.wgsl.expected.ir.glsl
@@ -1,10 +1,10 @@
#version 310 es
void a() {
- int a_2 = 1;
- int b = a_2;
int a_1 = 1;
- int b_1 = a_1;
+ int b = a_1;
+ int a_2 = 1;
+ int b_1 = a_2;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/shadowing/function/let.wgsl.expected.ir.msl b/test/tint/shadowing/function/let.wgsl.expected.ir.msl
index 9ce8bd6..0946375 100644
--- a/test/tint/shadowing/function/let.wgsl.expected.ir.msl
+++ b/test/tint/shadowing/function/let.wgsl.expected.ir.msl
@@ -2,8 +2,8 @@
using namespace metal;
void a() {
- int a_2 = 1;
- int b = a_2;
- int const a_1 = 1;
- int const b_1 = a_1;
+ int a_1 = 1;
+ int b = a_1;
+ int const a_2 = 1;
+ int const b_1 = a_2;
}
diff --git a/test/tint/shadowing/loop.wgsl.expected.ir.dxc.hlsl b/test/tint/shadowing/loop.wgsl.expected.ir.dxc.hlsl
index 5505eec..ac00424 100644
--- a/test/tint/shadowing/loop.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/shadowing/loop.wgsl.expected.ir.dxc.hlsl
@@ -7,8 +7,8 @@
while(true) {
int x = asint(output.Load((0u + (uint(i) * 4u))));
{
- int x = asint(output.Load((0u + (uint(x) * 4u))));
- i = (i + x);
+ int x_1 = asint(output.Load((0u + (uint(x) * 4u))));
+ i = (i + x_1);
if ((i > int(10))) { break; }
}
continue;
diff --git a/test/tint/shadowing/loop.wgsl.expected.ir.fxc.hlsl b/test/tint/shadowing/loop.wgsl.expected.ir.fxc.hlsl
index f6cff2a..ac00424 100644
--- a/test/tint/shadowing/loop.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/shadowing/loop.wgsl.expected.ir.fxc.hlsl
@@ -1,5 +1,3 @@
-SKIP: FAILED
-
RWByteAddressBuffer output : register(u0);
[numthreads(1, 1, 1)]
@@ -9,8 +7,8 @@
while(true) {
int x = asint(output.Load((0u + (uint(i) * 4u))));
{
- int x = asint(output.Load((0u + (uint(x) * 4u))));
- i = (i + x);
+ int x_1 = asint(output.Load((0u + (uint(x) * 4u))));
+ i = (i + x_1);
if ((i > int(10))) { break; }
}
continue;
@@ -19,9 +17,3 @@
output.Store(0u, asuint(i));
}
-FXC validation failure:
-<scrubbed_path>(10,42-53): warning X4000: use of potentially uninitialized variable (x)
-<scrubbed_path>(10,42-53): error X4575: reading uninitialized value
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/shadowing/loop.wgsl.expected.ir.glsl b/test/tint/shadowing/loop.wgsl.expected.ir.glsl
index 35be213..204ce0a 100644
--- a/test/tint/shadowing/loop.wgsl.expected.ir.glsl
+++ b/test/tint/shadowing/loop.wgsl.expected.ir.glsl
@@ -13,8 +13,8 @@
int x = v.inner[v_1];
{
int v_2 = x;
- int x = v.inner[v_2];
- i = (i + x);
+ int x_1 = v.inner[v_2];
+ i = (i + x_1);
if ((i > 10)) { break; }
}
continue;
diff --git a/test/tint/shadowing/loop.wgsl.expected.ir.msl b/test/tint/shadowing/loop.wgsl.expected.ir.msl
index bf61e09..5853f69 100644
--- a/test/tint/shadowing/loop.wgsl.expected.ir.msl
+++ b/test/tint/shadowing/loop.wgsl.expected.ir.msl
@@ -28,8 +28,8 @@
TINT_ISOLATE_UB(tint_volatile_false)
int x = (*tint_module_vars.output)[i];
{
- int x = (*tint_module_vars.output)[x];
- i = as_type<int>((as_type<uint>(i) + as_type<uint>(x)));
+ int x_1 = (*tint_module_vars.output)[x];
+ i = as_type<int>((as_type<uint>(i) + as_type<uint>(x_1)));
if ((i > 10)) { break; }
}
continue;
diff --git a/test/tint/shadowing/param/function.wgsl.expected.ir.dxc.hlsl b/test/tint/shadowing/param/function.wgsl.expected.ir.dxc.hlsl
index e42b49d..c43cc31 100644
--- a/test/tint/shadowing/param/function.wgsl.expected.ir.dxc.hlsl
+++ b/test/tint/shadowing/param/function.wgsl.expected.ir.dxc.hlsl
@@ -1,7 +1,7 @@
-void a(int a_2) {
- int a_1 = a_2;
- int b = a_1;
+void a(int a_1) {
+ int a_2 = a_1;
+ int b = a_2;
}
[numthreads(1, 1, 1)]
diff --git a/test/tint/shadowing/param/function.wgsl.expected.ir.fxc.hlsl b/test/tint/shadowing/param/function.wgsl.expected.ir.fxc.hlsl
index e42b49d..c43cc31 100644
--- a/test/tint/shadowing/param/function.wgsl.expected.ir.fxc.hlsl
+++ b/test/tint/shadowing/param/function.wgsl.expected.ir.fxc.hlsl
@@ -1,7 +1,7 @@
-void a(int a_2) {
- int a_1 = a_2;
- int b = a_1;
+void a(int a_1) {
+ int a_2 = a_1;
+ int b = a_2;
}
[numthreads(1, 1, 1)]
diff --git a/test/tint/shadowing/param/function.wgsl.expected.ir.glsl b/test/tint/shadowing/param/function.wgsl.expected.ir.glsl
index 426ca0e..a376635 100644
--- a/test/tint/shadowing/param/function.wgsl.expected.ir.glsl
+++ b/test/tint/shadowing/param/function.wgsl.expected.ir.glsl
@@ -1,8 +1,8 @@
#version 310 es
-void a(int a_2) {
- int a_1 = a_2;
- int b = a_1;
+void a(int a_1) {
+ int a_2 = a_1;
+ int b = a_2;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
diff --git a/test/tint/shadowing/param/function.wgsl.expected.ir.msl b/test/tint/shadowing/param/function.wgsl.expected.ir.msl
index d76dba1..b57004b 100644
--- a/test/tint/shadowing/param/function.wgsl.expected.ir.msl
+++ b/test/tint/shadowing/param/function.wgsl.expected.ir.msl
@@ -1,7 +1,7 @@
#include <metal_stdlib>
using namespace metal;
-void a(int a_2) {
- int a_1 = a_2;
- int b = a_1;
+void a(int a_1) {
+ int a_2 = a_1;
+ int b = a_2;
}