dawn-cmake/test/tint/statements/decrement
Ben Clayton 3cde73cb1a tint/transform/utils: Correctly scope for-loop init
When using HoistToDeclBefore on a for-loop initializer, the inserted
statement would be scoped outside the for-loop. This was incorrect.

Change-Id: I764d07068e907cc203145ac8d6f0110b1b73e667
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122301
Commit-Queue: Ben Clayton <bclayton@chromium.org>
Kokoro: Ben Clayton <bclayton@chromium.org>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
2023-03-02 17:18:27 +00:00
..
array_element.wgsl
array_element.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
array_element.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
array_element.wgsl.expected.glsl GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
array_element.wgsl.expected.msl tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
array_element.wgsl.expected.spvasm Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
array_element.wgsl.expected.wgsl
complex.wgsl
complex.wgsl.expected.dxc.hlsl tint/transform/utils: Correctly scope for-loop init 2023-03-02 17:18:27 +00:00
complex.wgsl.expected.fxc.hlsl tint/transform/utils: Correctly scope for-loop init 2023-03-02 17:18:27 +00:00
complex.wgsl.expected.glsl tint/transform/utils: Correctly scope for-loop init 2023-03-02 17:18:27 +00:00
complex.wgsl.expected.msl tint/transform/utils: Correctly scope for-loop init 2023-03-02 17:18:27 +00:00
complex.wgsl.expected.spvasm tint/writer/spirv: Inline constant expressions 2022-06-01 15:57:22 +00:00
complex.wgsl.expected.wgsl
for_loop_continuing.wgsl
for_loop_continuing.wgsl.expected.dxc.hlsl tint/hlsl: remove [loop] attribute on all loops 2022-09-29 16:53:58 +00:00
for_loop_continuing.wgsl.expected.fxc.hlsl tint/hlsl: remove [loop] attribute on all loops 2022-09-29 16:53:58 +00:00
for_loop_continuing.wgsl.expected.glsl GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
for_loop_continuing.wgsl.expected.msl Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
for_loop_continuing.wgsl.expected.spvasm Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
for_loop_continuing.wgsl.expected.wgsl
for_loop_initializer.wgsl
for_loop_initializer.wgsl.expected.dxc.hlsl tint/hlsl: remove [loop] attribute on all loops 2022-09-29 16:53:58 +00:00
for_loop_initializer.wgsl.expected.fxc.hlsl tint/hlsl: remove [loop] attribute on all loops 2022-09-29 16:53:58 +00:00
for_loop_initializer.wgsl.expected.glsl GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
for_loop_initializer.wgsl.expected.msl Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
for_loop_initializer.wgsl.expected.spvasm Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
for_loop_initializer.wgsl.expected.wgsl
function.wgsl
function.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
function.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
function.wgsl.expected.glsl Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
function.wgsl.expected.msl Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
function.wgsl.expected.spvasm tint/writer/spirv: Inline constant expressions 2022-06-01 15:57:22 +00:00
function.wgsl.expected.wgsl
private.wgsl
private.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
private.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
private.wgsl.expected.glsl Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
private.wgsl.expected.msl msl: Promote local private vars to function scope 2022-06-28 02:06:05 +00:00
private.wgsl.expected.spvasm tint/writer/spirv: Inline constant expressions 2022-06-01 15:57:22 +00:00
private.wgsl.expected.wgsl
split.wgsl Add test for split of `--`. 2022-10-20 18:40:53 +00:00
split.wgsl.expected.dxc.hlsl Add test for split of `--`. 2022-10-20 18:40:53 +00:00
split.wgsl.expected.fxc.hlsl Add test for split of `--`. 2022-10-20 18:40:53 +00:00
split.wgsl.expected.glsl Add test for split of `--`. 2022-10-20 18:40:53 +00:00
split.wgsl.expected.msl Add test for split of `--`. 2022-10-20 18:40:53 +00:00
split.wgsl.expected.spvasm Add test for split of `--`. 2022-10-20 18:40:53 +00:00
split.wgsl.expected.wgsl Add test for split of `--`. 2022-10-20 18:40:53 +00:00
storage.wgsl
storage.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
storage.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
storage.wgsl.expected.glsl GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
storage.wgsl.expected.msl Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
storage.wgsl.expected.spvasm Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
storage.wgsl.expected.wgsl
vector_component.wgsl
vector_component.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
vector_component.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
vector_component.wgsl.expected.glsl GLSL: Change Add[Spirv]BlockAttribute to support GLSL 2022-09-02 19:19:10 +00:00
vector_component.wgsl.expected.msl tint/writer: Disable constant inlining for lets 2022-06-24 18:15:39 +00:00
vector_component.wgsl.expected.spvasm Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
vector_component.wgsl.expected.wgsl
workgroup.wgsl
workgroup.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
workgroup.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
workgroup.wgsl.expected.glsl Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
workgroup.wgsl.expected.msl Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
workgroup.wgsl.expected.spvasm Add support for increment/decrement statements 2022-04-07 13:42:45 +00:00
workgroup.wgsl.expected.wgsl