dawn-cmake/src/tint
James Price 26ebe5ec36 tint: Refactor if-else statement representation
Instead of using an `if` node that has a list of `else` statements,
make each `if` statement have a single optional `else` statement,
which may itself be an `if` statement (or just a block statement).

This better matches the WGSL grammar (now that we have removed
`elseif`), and simplifies various pieces of code that handle these
statements.

Change-Id: Ie4272f1422224490ac598a03aa8b4dd00ba03010
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87940
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: James Price <jrprice@google.com>
2022-04-29 00:14:53 +00:00
..
ast tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
bench Fixup build/include_order issues in src/dawn. 2022-04-19 20:38:44 +00:00
cmd Add option to auto generate bindings for external textures 2022-04-06 13:57:54 +00:00
diagnostic Condense namespaces in tint/diagnostic. 2022-04-07 17:22:26 +00:00
fuzzers tint: Remove '_type' suffix from file names 2022-04-28 18:49:04 +00:00
inspector tint: Remove '_type' suffix from file names 2022-04-28 18:49:04 +00:00
reader tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
resolver tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
sem tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
text Error on invalid UTF-8 sequences 2022-03-15 16:18:03 +00:00
transform tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
utils tint/writer: Replace use of strings for cache keys 2022-04-28 13:08:22 +00:00
val Condense namespaces in tint/val 2022-04-07 14:41:14 +00:00
writer tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
.clang-format Add Tint's .clang-format file to src/tint 2022-04-06 21:41:29 +00:00
BUILD.gn tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
CMakeLists.txt tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
OWNERS Add top-level OWNERS and scope Tint owners more tightly. 2022-04-07 17:59:14 +00:00
builtin_table.cc tint: Remove '_type' suffix from file names 2022-04-28 18:49:04 +00:00
builtin_table.h tint: Standardize the way we forward-declare 2022-04-11 14:37:21 +00:00
builtin_table.inl builtins: Add smoothstep, deprecate smoothStep 2022-03-30 17:57:39 +00:00
builtin_table.inl.tmpl tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
builtin_table_test.cc tint: Remove '_type' suffix from file names 2022-04-28 18:49:04 +00:00
builtins.def builtins: Add smoothstep, deprecate smoothStep 2022-03-30 17:57:39 +00:00
castable.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
castable.h tint: Standardize the way we forward-declare 2022-04-11 14:37:21 +00:00
castable_bench.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
castable_test.cc castable: Make Switch() smarter about return types 2022-02-25 20:24:42 +00:00
clone_context.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
clone_context.h tint: Standardize the way we forward-declare 2022-04-11 14:37:21 +00:00
clone_context_test.cc Move BlockAllocator from src/tint to src/tint/utils 2022-03-04 21:09:24 +00:00
debug.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
debug.h tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
debug_test.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
demangler.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
demangler.h tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
demangler_test.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
program.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
program.h tint: Standardize the way we forward-declare 2022-04-11 14:37:21 +00:00
program_builder.cc tint: ProgramBuilder: Rename Const() to Let() 2022-04-28 14:35:04 +00:00
program_builder.h tint: Refactor if-else statement representation 2022-04-29 00:14:53 +00:00
program_builder_test.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
program_id.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
program_id.h tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
program_test.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
scope_stack.h tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
scope_stack_test.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
source.cc Implement support for Unicode Pattern_White_Space 2022-04-25 19:49:01 +00:00
source.h tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
source_test.cc Implement support for Unicode Pattern_White_Space 2022-04-25 19:49:01 +00:00
symbol.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
symbol.h tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
symbol_table.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
symbol_table.h tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
symbol_table_test.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
symbol_test.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
test_main.cc tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
tint.natvis Normalize all line endings to LF 2022-04-08 14:18:28 +00:00
traits.h tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
traits_test.cc Condense namespaces in tint/. 2022-04-07 19:10:25 +00:00