Home
last modified time | relevance | path

Searched refs:OpSwitch (Results 1 - 25 of 77) sorted by relevance

1234

/third_party/spirv-tools/test/
H A Dtext_to_binary.control_flow_test.cpp138 // 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 Dbinary_to_text_test.cpp215 {"", 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 Dbinary_parse_test.cpp1084 // 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 Dimmediate_int_test.cpp156 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 Dconstruct.cpp186 (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 Dvalidate_adjacency.cpp99 case spv::Op::OpSwitch: in ValidateAdjacency()
104 << "OpBranchConditional or OpSwitch instruction. " in ValidateAdjacency()
H A Dvalidate_cfg.cpp226 << "'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 Ddef_use_test.cpp1205 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 DSpirvShaderInstructions.cpp60 case spv::OpSwitch: in IsStatement()
/third_party/spirv-tools/source/opt/
H A Dbasic_block.cpp120 case spv::Op::OpSwitch: { in WhileEachSuccessorLabel()
143 case spv::Op::OpSwitch: { in ForEachSuccessorLabel()
H A Ddead_branch_elim_pass.cpp120 } 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 Dcontrol_dependence.cpp50 branch->opcode() == spv::Op::OpSwitch) && in GetConditionID()
H A Dinvocation_interlock_placement_pass.cpp53 case spv::Op::OpSwitch: in hasSingleNextBlock()
311 block->tail()->opcode() == spv::Op::OpSwitch);
H A Dblock_merge_util.cpp140 // Case constructs must be structurally dominated by the OpSwitch. in CanMergeWithSuccessor()
174 if (sbi->tail()->opcode() == spv::Op::OpSwitch && in MergeWithSuccessor()
H A Dstruct_cfg_analysis.cpp100 if (merge_inst->NextNode()->opcode() == spv::Op::OpSwitch) { in AddBlocksInFunction()
H A Dccp_pass.cpp239 // 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 Dbin_to_dot.cpp103 case spv::Op::OpSwitch: { in HandleInstruction()
/third_party/spirv-tools/test/fuzz/
H A Dtransformation_split_block_test.cpp533 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 Dstructured_loop_to_selection_reduction_opportunity.cpp137 assert(terminator->opcode() == spv::Op::OpSwitch); in RedirectEdge()
/third_party/spirv-tools/source/
H A Doperand.cpp534 case spv::Op::OpSwitch: in spvOperandCanBeForwardDeclaredFunction()
/third_party/glslang/SPIRV/
H A DspvIR.h262 case OpSwitch: in isTerminated()
/third_party/skia/third_party/externals/spirv-tools/test/opt/
H A Ddef_use_test.cpp1206 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 Dspirv.cs898 OpSwitch = 251, enumerator
H A Dspirv.hpp893 OpSwitch = 251, enumerator
/third_party/skia/third_party/externals/spirv-headers/include/spirv/1.1/
H A Dspirv.cs910 OpSwitch = 251, enumerator

Completed in 27 milliseconds

1234