dawn-cmake/test/tint/statements/increment
James Price 0e22bdbae7 tint/msl: Fix emission of private variables
In order to avoid declaring too many function parameters, we
previously modified this transform to redeclare private variables that
are only used inside a single function as function-scope
variables. This was broken as it meant that their values did not
persist across multiple calls to the same function.

Instead, wrap all private variables in a structure and pass it around
as a pointer.

Fixed: tint:1875
Change-Id: I83f5eb1071d57b9c6af56d6cf21b3a32c6e94260
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/124800
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: James Price <jrprice@google.com>
2023-03-20 21:46:01 +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
array_element.wgsl.expected.spvasm
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/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
complex.wgsl.expected.spvasm
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
for_loop_continuing.wgsl.expected.spvasm
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
for_loop_initializer.wgsl.expected.spvasm
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
function.wgsl.expected.msl
function.wgsl.expected.spvasm
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
private.wgsl.expected.msl tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
private.wgsl.expected.spvasm
private.wgsl.expected.wgsl
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
storage.wgsl.expected.spvasm
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
vector_component.wgsl.expected.spvasm
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
workgroup.wgsl.expected.msl
workgroup.wgsl.expected.spvasm
workgroup.wgsl.expected.wgsl