#include "src/tint/lang/core/builtin_fn.h"
#include "src/tint/lang/core/constant/scalar.h"
#include "src/tint/lang/core/fluent_types.h"
#include "src/tint/lang/core/ir/disassembler.h"
#include "src/tint/lang/core/ir/if.h"
#include "src/tint/lang/core/ir/loop.h"
#include "src/tint/lang/core/ir/multi_in_block.h"
#include "src/tint/lang/core/ir/switch.h"
#include "src/tint/lang/wgsl/reader/program_to_ir/ir_program_test.h"
usingnamespacetint::core::fluent_types;
namespace tint::wgsl::reader {
namespace {
template <typename T>
T* FindSingleInstruction(core::ir::Module& mod) { … }
usingnamespacetint::core::number_suffixes;
IR_FromProgramTest;
TEST_F(IR_FromProgramTest, Func) { … }
TEST_F(IR_FromProgramTest, Func_WithParam) { … }
TEST_F(IR_FromProgramTest, Func_WithMultipleParam) { … }
TEST_F(IR_FromProgramTest, EntryPoint) { … }
TEST_F(IR_FromProgramTest, IfStatement) { … }
TEST_F(IR_FromProgramTest, IfStatement_TrueReturns) { … }
TEST_F(IR_FromProgramTest, IfStatement_FalseReturns) { … }
TEST_F(IR_FromProgramTest, IfStatement_BothReturn) { … }
TEST_F(IR_FromProgramTest, IfStatement_JumpChainToMerge) { … }
TEST_F(IR_FromProgramTest, Loop_WithBreak) { … }
TEST_F(IR_FromProgramTest, Loop_WithContinue) { … }
TEST_F(IR_FromProgramTest, Loop_WithContinuing_BreakIf) { … }
TEST_F(IR_FromProgramTest, Loop_Continuing_Body_Scope) { … }
TEST_F(IR_FromProgramTest, Loop_WithReturn) { … }
TEST_F(IR_FromProgramTest, Loop_WithOnlyReturn) { … }
TEST_F(IR_FromProgramTest, Loop_WithOnlyReturn_ContinuingBreakIf) { … }
TEST_F(IR_FromProgramTest, Loop_WithIf_BothBranchesBreak) { … }
TEST_F(IR_FromProgramTest, Loop_Nested) { … }
TEST_F(IR_FromProgramTest, While) { … }
TEST_F(IR_FromProgramTest, While_Return) { … }
TEST_F(IR_FromProgramTest, For) { … }
TEST_F(IR_FromProgramTest, For_Init_NoCondOrContinuing) { … }
TEST_F(IR_FromProgramTest, For_NoInitCondOrContinuing) { … }
TEST_F(IR_FromProgramTest, Switch) { … }
TEST_F(IR_FromProgramTest, Switch_MultiSelector) { … }
TEST_F(IR_FromProgramTest, Switch_OnlyDefault) { … }
TEST_F(IR_FromProgramTest, Switch_WithBreak) { … }
TEST_F(IR_FromProgramTest, Switch_AllReturn) { … }
TEST_F(IR_FromProgramTest, Emit_Phony) { … }
TEST_F(IR_FromProgramTest, Func_WithParam_WithAttribute_Invariant) { … }
TEST_F(IR_FromProgramTest, Func_WithParam_WithAttribute_Location) { … }
TEST_F(IR_FromProgramTest, Func_WithParam_WithAttribute_Color) { … }
TEST_F(IR_FromProgramTest, Func_WithParam_WithAttribute_Location_WithInterpolation_LinearCentroid) { … }
TEST_F(IR_FromProgramTest, Func_WithParam_WithAttribute_Location_WithInterpolation_Flat) { … }
TEST_F(IR_FromProgramTest, Requires) { … }
TEST_F(IR_FromProgramTest, BugChromium324466107) { … }
}
}