diff options
| author | Anders Leino <aleino@nvidia.com> | 2025-01-16 19:23:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-16 09:23:35 -0800 |
| commit | e771f1945ed692168a2634d66a0907acc9c68858 (patch) | |
| tree | e8d6de4ad801b5dc68cd07638f27efa2e5664426 /source/compiler-core/slang-artifact-impl.cpp | |
| parent | ad7d13a8a934a56db87a4ece4b1afb0f1db1c9d9 (diff) | |
C-like emitter: Add parenthesis when combining relational and bitwise… (#6070)
* C-like emitter: Add redundant parentheses in several cases
This is required since the Dawn WGSL compiler requires parentheses even though precedence
rules could resolve order of operations.
This closes #6005.
* Fix tests/metal/byte-address-buffer
The output now includes parentheses around shift expressions appearing as operands in
bitwise expressions, so update the test accordingly.
* format code
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/compiler-core/slang-artifact-impl.cpp')
0 files changed, 0 insertions, 0 deletions
