dawn-cmake/src/tint
Ben Clayton 43581f1fb6 tint: Add new methods to semantic Switch nodes
• Add sem::SwitchStatement::Cases()
• Add sem::CaseStatement::Selectors()
• Add ast::SwitchStatement -> sem::SwitchStatement mapping

Removes a bunch of hopping between the AST and SEM to get at this data.

Change-Id: If48d78e7a386aa0b34c6d00ad9af1d53cb236f12
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91024
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
2022-05-20 12:28:00 +00:00
..
ast tint: Refactor Extensions / Enables. 2022-05-18 22:41:48 +00:00
bench Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
cmd Add InsertBraces: true to .clang-format 2022-05-19 20:08:19 +00:00
diagnostic Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
fuzzers AST fuzzer: Change unary expression operator 2022-05-04 13:07:29 +00:00
inspector tint: Remove ast::CallExpression -> sem::Call implicit mapping 2022-05-19 21:50:59 +00:00
reader tint: Remove ast::CallExpression -> sem::Call implicit mapping 2022-05-19 21:50:59 +00:00
resolver tint: Add new methods to semantic Switch nodes 2022-05-20 12:28:00 +00:00
sem tint: Add new methods to semantic Switch nodes 2022-05-20 12:28:00 +00:00
text Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
transform tint: Remove ast::CallExpression -> sem::Call implicit mapping 2022-05-19 21:50:59 +00:00
utils tint: Add utils::UniqueVector::data() 2022-05-20 09:03:50 +00:00
val tint: add --overrides flag to specify pipeline overrides 2022-05-05 17:05:10 +00:00
writer tint: fix HLSL countOneBits and reverseBits for i32 args 2022-05-20 01:58:40 +00:00
BUILD.gn tint: Add sem::Materialize 2022-05-19 19:32:29 +00:00
CMakeLists.txt tint: Add sem::Materialize 2022-05-19 19:32:29 +00:00
OWNERS Add top-level OWNERS and scope Tint owners more tightly. 2022-04-07 17:59:14 +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: Castable - support non-default-constructable return types 2022-05-05 19:18:00 +00:00
castable_bench.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
castable_test.cc tint: Castable - support non-default-constructable return types 2022-05-05 19:18:00 +00:00
clone_context.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
clone_context.h Fixes for C++20 support. 2022-05-05 17:00:31 +00:00
clone_context_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
debug.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
debug.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
debug_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
demangler.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
demangler.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
demangler_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
intrinsics.def tint: IntrinsicTable: Add abstract numeric types 2022-05-19 18:30:39 +00:00
number.h tint: correctly define user-defined literals 2022-05-13 20:14:57 +00:00
program.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
program.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
program_builder.cc tint: Change all ProgramBuilder literals to 'i' or 'u' suffix 2022-05-05 20:23:40 +00:00
program_builder.h tint: Add new sem::Type helpers 2022-05-19 21:55:29 +00:00
program_builder_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
program_id.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
program_id.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
program_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
scope_stack.h tint: Implement uniformity analaysis 2022-05-11 22:05:15 +00:00
scope_stack_test.cc tint: Implement uniformity analaysis 2022-05-11 22:05:15 +00:00
source.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
source.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
source_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
symbol.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
symbol.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
symbol_table.cc Add InsertBraces: true to .clang-format 2022-05-19 20:08:19 +00:00
symbol_table.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
symbol_table_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
symbol_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
test_main.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
tint.natvis Normalize all line endings to LF 2022-04-08 14:18:28 +00:00
traits.h Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00
traits_test.cc Consistent formatting for Dawn/Tint. 2022-05-01 14:40:55 +00:00