Make reserved words an error.

This CL moves reserved words from a deprecation to an error.

Bug: tint:1463
Change-Id: I5c66baa15dc748215877c8152171c690495bc0c2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/108861
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair
2022-11-07 16:15:55 +00:00
committed by Dawn LUCI CQ
parent 2d706a0436
commit 5071a54af4
59 changed files with 422 additions and 428 deletions

View File

@@ -9,7 +9,7 @@
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_int_values"
OpName %_ ""
OpName %ref "ref"
OpName %r "r"
OpName %a "a"
OpName %i "i"
OpName %ok "ok"
@@ -65,7 +65,7 @@
%main = OpFunction %void None %14
%50 = OpLabel
%A = OpVariable %_ptr_Function__arr_int_uint_17 Function
%ref = OpVariable %_ptr_Function__arr_int_uint_17 Function
%r = OpVariable %_ptr_Function__arr_int_uint_17 Function
%a = OpVariable %_ptr_Function_int Function
%i = OpVariable %_ptr_Function_int Function
%ok = OpVariable %_ptr_Function_bool Function
@@ -141,7 +141,7 @@
%118 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_1
%119 = OpLoad %int %118
%120 = OpCompositeConstruct %_arr_int_uint_17 %87 %89 %91 %93 %95 %97 %99 %101 %103 %105 %107 %109 %111 %113 %115 %117 %119
OpStore %ref %120
OpStore %r %120
%121 = OpAccessChain %_ptr_Uniform_int %_ %int_0 %int_2
%122 = OpLoad %int %121
OpStore %a %122
@@ -203,7 +203,7 @@
%163 = OpAccessChain %_ptr_Function_int %A %162
%164 = OpLoad %int %163
%165 = OpLoad %int %i_0
%166 = OpAccessChain %_ptr_Function_int %ref %165
%166 = OpAccessChain %_ptr_Function_int %r %165
%167 = OpLoad %int %166
%168 = OpINotEqual %bool %164 %167
OpSelectionMerge %169 None

View File

@@ -15,7 +15,7 @@ var<private> x_GLF_color : vec4<f32>;
fn main_1() {
var A : array<i32, 17u>;
var ref : array<i32, 17u>;
var r : array<i32, 17u>;
var a : i32;
var i : i32;
var ok : bool;
@@ -55,7 +55,7 @@ fn main_1() {
let x_115 : i32 = x_6.x_GLF_uniform_int_values[17].el;
let x_117 : i32 = x_6.x_GLF_uniform_int_values[18].el;
let x_119 : i32 = x_6.x_GLF_uniform_int_values[1].el;
ref = array<i32, 17u>(x_87, x_89, x_91, x_93, x_95, x_97, x_99, x_101, x_103, x_105, x_107, x_109, x_111, x_113, x_115, x_117, x_119);
r = array<i32, 17u>(x_87, x_89, x_91, x_93, x_95, x_97, x_99, x_101, x_103, x_105, x_107, x_109, x_111, x_113, x_115, x_117, x_119);
let x_122 : i32 = x_6.x_GLF_uniform_int_values[2].el;
a = x_122;
let x_124 : i32 = x_6.x_GLF_uniform_int_values[2].el;
@@ -96,7 +96,7 @@ fn main_1() {
let x_162 : i32 = i_1;
let x_164 : i32 = A[x_162];
let x_165 : i32 = i_1;
let x_167 : i32 = ref[x_165];
let x_167 : i32 = r[x_165];
if ((x_164 != x_167)) {
ok = false;
}