/third_party/spirv-tools/test/ |
H A D | text_to_binary.control_flow_test.cpp | 138 // Test OpSwitch 141 EXPECT_THAT(CompiledInstructions("OpSwitch %selector %default"), in TEST_F() 142 Eq(MakeInstruction(spv::Op::OpSwitch, {1, 2}))); in TEST_F() 149 "OpSwitch %2 %default 12 %target0"), in TEST_F() 152 MakeInstruction(spv::Op::OpSwitch, {2, 3, 12, 4})}))); in TEST_F() 159 "OpSwitch %2 %default 12 %target0 42 %target1"), in TEST_F() 163 MakeInstruction(spv::Op::OpSwitch, {2, 3, 12, 4, 42, 5}), in TEST_F() 168 EXPECT_THAT(CompileFailure("OpSwitch"), in TEST_F() 169 Eq("Expected operand for OpSwitch instruction, but found the end " in TEST_F() 174 EXPECT_THAT(CompileFailure("OpSwitch 1 in TEST_F() [all...] |
H A D | binary_to_text_test.cpp | 215 {"", spvtest::MakeInstruction(spv::Op::OpSwitch, {1, 2, 3, 4}), 216 "Invalid OpSwitch: selector id 1 has no type"}, 218 spvtest::MakeInstruction(spv::Op::OpSwitch, {1, 2, 3, 4}), 219 "Invalid OpSwitch: selector id 1 is a type, not a value"}, 221 spvtest::MakeInstruction(spv::Op::OpSwitch, {1, 2, 3, 4}), 224 spvtest::MakeInstruction(spv::Op::OpSwitch, {2, 3, 4, 5}), 225 "Invalid OpSwitch: selector id 2 is not a scalar integer"}, 439 "OpSwitch %2 %3 100 %4\n"; in TEST_F()
|
H A D | binary_parse_test.cpp | 1084 // In this case, the OpSwitch selector refers to an invalid ID. 1086 MakeInstruction(spv::Op::OpSwitch, {1, 2, 42, 3})}), 1087 "Invalid OpSwitch: selector id 1 has no type"}, 1088 // In this case, the OpSwitch selector refers to an ID that has 1092 MakeInstruction(spv::Op::OpSwitch, {1, 2, 42, 3})}), 1093 "Invalid OpSwitch: selector id 1 has no type"}, 1096 MakeInstruction(spv::Op::OpSwitch, {1, 3, 42, 3})}), 1097 "Invalid OpSwitch: selector id 1 is a type, not a value"}, 1101 MakeInstruction(spv::Op::OpSwitch, {2, 3, 42, 3})}), 1102 "Invalid OpSwitch [all...] |
H A D | immediate_int_test.cpp | 156 MakeInstruction(spv::Op::OpSwitch, in TEST_F() 161 "OpSwitch %big !1234 2.5 %target\n")); in TEST_F()
|
/third_party/spirv-tools/source/val/ |
H A D | construct.cpp | 186 (header->terminator()->opcode() != spv::Op::OpSwitch && in IsStructuredExit() 188 terminator->opcode() == spv::Op::OpSwitch)) { in IsStructuredExit() 206 if (terminator->opcode() == spv::Op::OpSwitch) { in IsStructuredExit()
|
H A D | validate_adjacency.cpp | 99 case spv::Op::OpSwitch: in ValidateAdjacency() 104 << "OpBranchConditional or OpSwitch instruction. " in ValidateAdjacency()
|
H A D | validate_cfg.cpp | 226 << "'Target Label' operands for OpSwitch must be IDs of an " in ValidateSwitch() 555 // OpSwitch must dominate all its case constructs. in StructuredSwitchChecks() 609 // must immediately precede T2 in the list of OpSwitch Target operands. in StructuredSwitchChecks() 617 "OpSwitch's target list"; in StructuredSwitchChecks() 676 } else if (terminator->opcode() == spv::Op::OpSwitch) { in ValidateStructuredSelections() 679 << "OpSwitch must be preceded by an OpSelectionMerge " in ValidateStructuredSelections() 862 header->terminator()->opcode() == spv::Op::OpSwitch) { in StructuredControlFlowChecks() 1048 case spv::Op::OpSwitch: { in CfgPass() 1160 case spv::Op::OpSwitch: in ControlFlowPass()
|
/third_party/spirv-tools/test/opt/ |
H A D | def_use_test.cpp | 1205 TEST(DefUseTest, OpSwitch) { in TEST() 1206 // Because disassembler has basic type check for OpSwitch's selector, we in TEST() 1227 " OpSwitch %6 %8 " in TEST() 1266 "OpSwitch %6 %8 1 %10 -4294967296 %11 9223372036854775807 %7\n" // changed! in TEST() 1301 EXPECT_THAT(opcodes, UnorderedElementsAre(spv::Op::OpSwitch, in TEST() 1307 // OpSwitch is now a user of %7. in TEST() 1311 spv::Op::OpBranch, spv::Op::OpSwitch)); in TEST() 1313 // Check all ids only used by OpSwitch after replacement. in TEST() 1316 EXPECT_EQ(spv::Op::OpSwitch, GetUseOpcodes(context, id).back()); in TEST()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderInstructions.cpp | 60 case spv::OpSwitch: in IsStatement()
|
/third_party/spirv-tools/source/opt/ |
H A D | basic_block.cpp | 120 case spv::Op::OpSwitch: { in WhileEachSuccessorLabel() 143 case spv::Op::OpSwitch: { in ForEachSuccessorLabel()
|
H A D | dead_branch_elim_pass.cpp | 120 } else if (terminator->opcode() == spv::Op::OpSwitch) { in MarkLiveBlocks() 194 if (merge_inst->NextNode()->opcode() == spv::Op::OpSwitch && in SimplifyBranch() 530 case spv::Op::OpSwitch: in FindFirstExitFromSelectionMerge()
|
H A D | control_dependence.cpp | 50 branch->opcode() == spv::Op::OpSwitch) && in GetConditionID()
|
H A D | invocation_interlock_placement_pass.cpp | 53 case spv::Op::OpSwitch: in hasSingleNextBlock() 311 block->tail()->opcode() == spv::Op::OpSwitch);
|
H A D | block_merge_util.cpp | 140 // Case constructs must be structurally dominated by the OpSwitch. in CanMergeWithSuccessor() 174 if (sbi->tail()->opcode() == spv::Op::OpSwitch && in MergeWithSuccessor()
|
H A D | struct_cfg_analysis.cpp | 100 if (merge_inst->NextNode()->opcode() == spv::Op::OpSwitch) { in AddBlocksInFunction()
|
H A D | ccp_pass.cpp | 239 // For an OpSwitch, extract the value taken by the switch selector and check in VisitBranch() 242 assert(instr->opcode() == spv::Op::OpSwitch); in VisitBranch()
|
/third_party/spirv-tools/tools/cfg/ |
H A D | bin_to_dot.cpp | 103 case spv::Op::OpSwitch: { in HandleInstruction()
|
/third_party/spirv-tools/test/fuzz/ |
H A D | transformation_split_block_test.cpp | 533 OpSwitch %9 %13 1 %10 2 %11 3 %12 in TEST() 559 MakeInstructionDescriptor(9, spv::Op::OpSwitch, 0), 100) in TEST() 562 MakeInstructionDescriptor(15, spv::Op::OpSwitch, 0), 100) in TEST() 600 OpSwitch %9 %13 1 %10 2 %11 3 %12 in TEST()
|
/third_party/spirv-tools/source/reduce/ |
H A D | structured_loop_to_selection_reduction_opportunity.cpp | 137 assert(terminator->opcode() == spv::Op::OpSwitch); in RedirectEdge()
|
/third_party/spirv-tools/source/ |
H A D | operand.cpp | 534 case spv::Op::OpSwitch: in spvOperandCanBeForwardDeclaredFunction()
|
/third_party/glslang/SPIRV/ |
H A D | spvIR.h | 262 case OpSwitch: in isTerminated()
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/ |
H A D | def_use_test.cpp | 1206 TEST(DefUseTest, OpSwitch) { in TEST() 1207 // Because disassembler has basic type check for OpSwitch's selector, we in TEST() 1228 " OpSwitch %6 %8 " in TEST() 1267 "OpSwitch %6 %8 1 %10 -4294967296 %11 9223372036854775807 %7\n" // changed! in TEST() 1307 // OpSwitch is now a user of %7. in TEST() 1312 // Check all ids only used by OpSwitch after replacement. in TEST()
|
/third_party/skia/third_party/externals/spirv-headers/include/spirv/1.0/ |
H A D | spirv.cs | 898 OpSwitch = 251, enumerator
|
H A D | spirv.hpp | 893 OpSwitch = 251, enumerator
|
/third_party/skia/third_party/externals/spirv-headers/include/spirv/1.1/ |
H A D | spirv.cs | 910 OpSwitch = 251, enumerator
|