dawn-cmake/test
Antonio Maiorano 8db439d848 Add PromoteSideEffectsToDecl transform
Fold both PromoteInitializersToConstVar and VarForDynamicIndex into this
new transform, with a config to enable either type of transformation.
This is almost a no-op change, except that VarForDynamicIndex required
ForLoopToLoop, while this tranformation in PromoteInitializersToConstVar
converts for-loops only as needed, so it doesn't do so when the
expression is in the for-loop initializer.

This transform will be extended to handle ensuring order of execution of
expressions.

Bug: tint:1300
Change-Id: I4d00984346a2c92b2d8563b459898f8f737589fd
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/77140
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2022-01-24 15:14:39 +00:00
..
access wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
array GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
benchmark test/benchmark: Add more shaders to the corpus 2022-01-21 22:38:16 +00:00
buffer GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
bug GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
expressions GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
identifiers/underscore GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
intrinsics wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
layout/storage/mat2x2 wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
let wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
loops GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
ptr_ref wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
samples wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
shader_io wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
shadowing GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
statements GLSL samples: add empty entry point if needed. 2022-01-21 18:40:18 +00:00
struct wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
types wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
unittest/reader/spirv wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
var wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
vk-gl-cts Remove passing HLSL expected files for vk-gl-cts 2022-01-20 22:11:07 +00:00
BUILD.gn Add PromoteSideEffectsToDecl transform 2022-01-24 15:14:39 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
test-all.sh main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00