#include "src/tint/lang/core/ir/transform/zero_init_workgroup_memory.h"
#include <utility>
#include "src/tint/lang/core/ir/transform/helper_test.h"
namespace tint::core::ir::transform {
namespace {
usingnamespacetint::core::fluent_types;
usingnamespacetint::core::number_suffixes;
class IR_ZeroInitWorkgroupMemoryTest : public TransformTest { … };
TEST_F(IR_ZeroInitWorkgroupMemoryTest, NoRootBlock) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, WorkgroupVarUnused) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, NonWorkgroupVar) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ScalarBool) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ScalarI32) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ScalarU32) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ScalarF32) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ScalarF16) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, AtomicI32) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, AtomicU32) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ArrayOfI32) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ArrayOfArrayOfU32) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ArrayOfArrayOfArray) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, NestedArrayInnerSizeOne) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, NestedArrayMiddleSizeOne) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, NestedArrayOuterSizeOne) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, NestedArrayTotalSizeOne) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, StructOfScalars) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, NestedStructOfScalars) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, NestedStructOfScalarsWithAtomic) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ArrayOfStructOfArrayOfStructWithAtomic) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, MultipleVariables_DifferentIterationCounts) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, MultipleVariables_SharedIterationCounts) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ExistingLocalInvocationIndex) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, ExistingLocalInvocationIndexInStruct) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, UseInsideNestedBlock) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, UseInsideIndirectFunctionCall) { … }
TEST_F(IR_ZeroInitWorkgroupMemoryTest, MultipleEntryPoints_SameVarViaHelper) { … }
}
}