dawn-cmake/src
James Price 5102f87e38 writer/msl: Add parentheses for member accesses
The LHS should be wrapped in parentheses if it has lower precedence
than the access. This fixes issues with pointer dereferences followed
by member accesses, where we were previously generating *a.b.

Fixed: tint:831
Change-Id: I8a194ad4f54c80a01c24eb983ec8064037575216
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/51963
Kokoro: Kokoro <noreply+kokoro@google.com>
Auto-Submit: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-05-27 14:15:47 +00:00
..
ast writer/msl: Handle private and workgroup variables 2021-05-26 15:41:02 +00:00
diagnostic formatter: handle tabs 2021-04-27 18:01:28 +00:00
inspector Remove ast::AccessControl::kInvalid 2021-05-21 14:32:38 +00:00
reader Fix doxygen warnings 2021-05-25 20:20:22 +00:00
resolver writer/msl: Handle private and workgroup variables 2021-05-26 15:41:02 +00:00
sem sem: Track function callsites in sem::Function 2021-05-22 12:48:24 +00:00
transform writer/msl: Handle private and workgroup variables 2021-05-26 15:41:02 +00:00
utils utils: Add TINT_SCOPED_ASSIGNMENT() 2021-05-19 16:11:04 +00:00
writer writer/msl: Add parentheses for member accesses 2021-05-27 14:15:47 +00:00
BUILD.gn Add transform::Simplify 2021-05-21 21:01:23 +00:00
CMakeLists.txt Add transform::Simplify 2021-05-21 21:01:23 +00:00
block_allocator.h Remove sem::AccessControl 2021-05-14 17:51:13 +00:00
block_allocator_test.cc Add tint::BlockAllocator<T> 2021-01-21 15:30:10 +00:00
castable.cc Pull Is() out of castable and into a new TypeInfo 2021-03-02 20:30:08 +00:00
castable.h castable.h: Fix warning 2021-04-30 21:27:02 +00:00
castable_test.cc Castable: Add FLAGS template argument for Is,As 2021-04-16 15:05:44 +00:00
clone_context.cc Remove ShareableCloneable 2021-05-19 13:25:08 +00:00
clone_context.h CloneContext: Add InsertBack() 2021-05-26 15:12:12 +00:00
clone_context_test.cc CloneContext: Add InsertBack() 2021-05-26 15:12:12 +00:00
debug.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
debug.h debug: Add TINT_UNIMPLEMENTED() 2021-03-17 04:55:33 +00:00
debug_test.cc Add TINT_ASSERT() 2021-03-09 13:52:18 +00:00
demangler.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
demangler.h Simplify calls to ast::Node::[to_]str() 2021-01-29 11:22:40 +00:00
demangler_test.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
intrinsic_table.cc Remove ast::AccessControl::kInvalid 2021-05-21 14:32:38 +00:00
intrinsic_table.h resolver: Be const-correct with sem::Types 2021-04-28 12:38:13 +00:00
intrinsic_table_test.cc Have TypesBuilder::sampler() return ast::Sampler 2021-05-20 14:54:28 +00:00
program.cc Resolver: Clean up diagnostics 2021-05-06 16:04:03 +00:00
program.h Resolver: Generate mapping for ast::Type -> sem::Type 2021-04-30 20:20:19 +00:00
program_builder.cc ProgramBuilder: Migrate to ast type pointer params 2021-05-20 15:04:08 +00:00
program_builder.h Remove typ::TypePair. 2021-05-20 15:10:48 +00:00
program_builder_test.cc Remove typ::TypePair. 2021-05-20 15:10:48 +00:00
program_id.cc Add ProgramID feed it into all ast::Nodes 2021-04-13 23:27:27 +00:00
program_id.h ast: Validate that ASTs are all part of the same program 2021-04-15 17:47:23 +00:00
program_test.cc Add ProgramID feed it into all ast::Nodes 2021-04-13 23:27:27 +00:00
scope_stack.h Add std::hash<tint::Symbol> specialization 2021-01-11 22:02:42 +00:00
scope_stack_test.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
source.cc Resolver: Check that every AST node is reached once 2021-04-19 19:16:12 +00:00
source.h wgsl parser: use new TypesBuilder factory functions, and set Source for ast::Type nodes 2021-04-27 17:32:37 +00:00
symbol.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
symbol.h Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
symbol_table.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
symbol_table.h Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
symbol_table_test.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
symbol_test.cc Validate that Symbols are all part of the same program 2021-04-15 18:20:03 +00:00
test_main.cc Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
traits.h Remove all unnecessary includes 2021-03-09 11:11:17 +00:00
traits_test.cc Remove all unnecessary includes 2021-03-09 11:11:17 +00:00