dawn-cmake/test/intrinsics/gen
Ben Clayton f24b37e122 writer/msl: Rework string printing
Add `out` parameters to expression and type generators.

Use the new helper classes in TextGenerator.
Cleans up bad formatting.

Prepares the writer generating 'pre' statements, required for atomics.

If-else statements are generated slightly differently. This is done so that 'pre' statements for the else conditions are scoped correctly. This is identical to the HLSL writer.

Bug tint:892

Change-Id: I4c6e96c90673ba30898b3682bf3198497d63a2d4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56067
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
2021-06-28 15:30:57 +00:00
..
abs writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
acos writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
all writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
any writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
arrayLength writer/msl: Fix continuing block emission 2021-06-21 08:49:27 +00:00
asin writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
atan writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
atan2 writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
atomicAdd sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicAnd sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicCompareExchangeWeak sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicExchange sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicLoad sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicMax sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicMin sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicOr sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicStore sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
atomicXor sanitizers: Use the ZeroInitWorkgroupMemory transform 2021-06-18 22:44:31 +00:00
ceil writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
clamp writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
cos writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
cosh writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
countOneBits writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
cross writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
determinant writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
distance writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
dot writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
dpdx writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
dpdxCoarse writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
dpdxFine writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
dpdy writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
dpdyCoarse writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
dpdyFine writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
exp writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
exp2 writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
faceForward writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
floor writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
fma writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
fract writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
frexp writer/hlsl: Emit zero values for private variables 2021-06-21 19:37:58 +00:00
fwidth writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
fwidthCoarse writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
fwidthFine writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
ignore test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
inverseSqrt writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
isFinite writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
isInf writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
isNan writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
isNormal writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
ldexp writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
length writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
log writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
log2 writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
max writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
min writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
mix writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
modf writer/hlsl: Emit zero values for private variables 2021-06-21 19:37:58 +00:00
normalize writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
pack2x16float writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
pack2x16snorm writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
pack2x16unorm writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
pack4x8snorm writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
pack4x8unorm writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
pow writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
reflect writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
reverseBits writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
round writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
select writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
sign writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
sin writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
sinh writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
smoothStep writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
sqrt writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
step writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
storageBarrier writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
tan writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
tanh writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
textureDimensions intrinsics: textureDimensions for cubes return vec2 2021-06-21 16:44:26 +00:00
textureLoad writer/hlsl: Swizzle depth texture intrinsics 2021-06-24 08:46:06 +00:00
textureNumLayers test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
textureNumLevels test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
textureNumSamples test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
textureSample writer/hlsl: Swizzle depth texture intrinsics 2021-06-24 08:46:06 +00:00
textureSampleBias test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
textureSampleCompare test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
textureSampleCompareLevel test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
textureSampleGrad test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
textureSampleLevel writer/hlsl: Swizzle depth texture intrinsics 2021-06-24 08:46:06 +00:00
textureStore test/intrinsics: Include overload signature in test case 2021-06-17 20:04:45 +00:00
transpose writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
trunc writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
unpack2x16float writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
unpack2x16snorm writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
unpack2x16unorm writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
unpack4x8snorm writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
unpack4x8unorm writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00
workgroupBarrier writer/msl: Rework string printing 2021-06-28 15:30:57 +00:00