dawn-cmake/test/tint
Ben Clayton 971318f7a2 tint: Replace all remaining AST types with ast::Type
This CL removes the following AST nodes:
* ast::Array
* ast::Atomic
* ast::Matrix
* ast::MultisampledTexture
* ast::Pointer
* ast::SampledTexture
* ast::Texture
* ast::TypeName
* ast::Vector

ast::Type, which used to be the base class for all AST types, is now a
thin wrapper around ast::IdentifierExpression. All types are now
referred to using their type name.

The resolver now handles type resolution and validation of the types
listed above based on the TemplateIdentifier arguments.

Other changes:
* ProgramBuilder has undergone substantial refactoring.
* ProgramBuilder helpers for type inferencing is now more explicit.
  Instead of passing 'nullptr', a new 'Infer' template argument is
  passed.
* ast::CheckIdentifier() is used for more tests that check identifiers,
  including types.

Bug: tint:1810
Change-Id: I8e739ef49435dc1c20a462f3ec5ba265661a7edb
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/118723
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
2023-02-14 13:52:43 +00:00
..
access tint: Implement sem::Load 2022-12-17 02:20:04 +00:00
array tint: Replace all remaining AST types with ast::Type 2023-02-14 13:52:43 +00:00
benchmark Update GLSL test results. 2022-12-15 16:42:28 +00:00
buffer tint: Replace all remaining AST types with ast::Type 2023-02-14 13:52:43 +00:00
bug tint/transform: Simplify Renamer transform 2023-02-09 15:35:27 +00:00
builtins tint: Rename 'type' to 'alias' 2023-01-24 14:55:17 +00:00
const tint: Rename 'type' to 'alias' 2023-01-24 14:55:17 +00:00
diagnostic_filtering tint: Handle @diagnostic on block statements 2023-02-01 23:14:10 +00:00
expressions tint: polyfill remainder to handle negative operands 2023-02-10 15:01:02 +00:00
extensions/parsing wgsl: Print abstract-floats with full precision. 2022-10-12 19:13:38 +00:00
identifiers/underscore tint: Rename 'type' to 'alias' 2023-01-24 14:55:17 +00:00
layout/storage/mat2x2 tint: Replace all remaining AST types with ast::Type 2023-02-14 13:52:43 +00:00
let/inferred tint: Rename 'type' to 'alias' 2023-01-24 14:55:17 +00:00
loops tint: Use MergeReturn transform in SPIR-V backend 2022-10-31 15:41:41 +00:00
out_of_order_decls tint: Rename 'type' to 'alias' 2023-01-24 14:55:17 +00:00
ptr_ref tint: Replace all remaining AST types with ast::Type 2023-02-14 13:52:43 +00:00
samples Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
shader_io test/tint: Update expectations 2022-12-07 18:04:59 +00:00
shadowing tint/transform: Simplify Renamer transform 2023-02-09 15:35:27 +00:00
statements tint: polyfill remainder to handle negative operands 2023-02-10 15:01:02 +00:00
struct tint/transform: fix PromoteInitializersToLet for constant expressions 2022-12-09 12:34:36 +00:00
types Enable the 1D -> 2D texture transform in GLSL writer. 2023-01-07 17:19:21 +00:00
unicode tint: Rename 'type' to 'alias' 2023-01-24 14:55:17 +00:00
unittest/reader/spirv tint/test: Remove SPIR-V test that is now invalid 2023-02-06 21:50:58 +00:00
var tint: Rename 'type' to 'alias' 2023-01-24 14:55:17 +00:00
vk-gl-cts tint/test: Remove skips for tint:1818 2023-02-04 12:18:40 +00:00
extract-spvasm.py tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
parse_hlsl_errors.py tint: add parse_hlsl_errors.py to help triage hlsl errors 2022-10-04 19:48:41 +00:00
test-all.sh tools: Replace copy-pasta scripts 2022-04-07 18:26:45 +00:00