/third_party/spirv-tools/test/fuzz/ |
H A D | transformation_function_call_test.cpp | 64 OpBranch %60 in TEST() 76 OpBranch %97 in TEST() 128 OpBranch %206 in TEST() 179 MakeInstructionDescriptor(59, spv::Op::OpBranch, 0)) in TEST() 184 100, 21, {71}, MakeInstructionDescriptor(59, spv::Op::OpBranch, 0)) in TEST() 189 MakeInstructionDescriptor(59, spv::Op::OpBranch, 0)) in TEST() 194 MakeInstructionDescriptor(59, spv::Op::OpBranch, 0)) in TEST() 199 MakeInstructionDescriptor(59, spv::Op::OpBranch, 0)) in TEST() 204 MakeInstructionDescriptor(59, spv::Op::OpBranch, 0)) in TEST() 209 MakeInstructionDescriptor(59, spv::Op::OpBranch, in TEST() [all...] |
H A D | transformation_add_function_test.cpp | 176 MakeInstructionMessage(spv::Op::OpBranch, 0, 0, in TEST() 184 MakeInstructionMessage(spv::Op::OpBranch, 0, 0, in TEST() 216 MakeInstructionMessage(spv::Op::OpBranch, 0, 0, in TEST() 227 MakeInstructionMessage(spv::Op::OpBranch, 0, 0, in TEST() 276 OpBranch %21 in TEST() 279 OpBranch %25 in TEST() 293 OpBranch %24 in TEST() 298 OpBranch %21 in TEST() 399 OpBranch %21 in TEST() 402 OpBranch in TEST() [all...] |
H A D | transformation_composite_extract_test.cpp | 74 OpBranch %15 in TEST() 81 OpBranch %15 in TEST() 192 MakeInstructionDescriptor(29, spv::Op::OpBranch, 0), 205, 102, {2}); in TEST() 270 OpBranch %15 in TEST() 279 OpBranch %15 in TEST() 343 OpBranch %19 in TEST() 361 OpBranch %19 in TEST() 367 OpBranch %105 in TEST() 397 MakeInstructionDescriptor(102, spv::Op::OpBranch, 1), 200, 14, {1}) in TEST() 478 OpBranch in TEST() [all...] |
/third_party/spirv-tools/source/fuzz/ |
H A D | transformation_merge_function_returns.cpp | 53 if (function->entry()->terminator()->opcode() != spv::Op::OpBranch) { in IsApplicable() 131 // OpPhi and OpBranch. in IsApplicable() 139 inst->opcode() == spv::Op::OpBranch; in IsApplicable() 289 ret_block->terminator()->SetOpcode(spv::Op::OpBranch); in Apply() 458 assert(merge_block->terminator()->opcode() == spv::Op::OpBranch && in Apply() 493 assert(function->entry()->terminator()->opcode() == spv::Op::OpBranch && in Apply() 518 ir_context, spv::Op::OpBranch, 0, 0, in Apply() 595 ir_context, spv::Op::OpBranch, 0, 0, in Apply()
|
H A D | transformation_wrap_region_in_selection.cpp | 56 assert(new_header_block->terminator()->opcode() == spv::Op::OpBranch && in Apply() 132 // |header_block_candidate| must have an OpBranch terminator. in IsApplicableToBlockRange() 133 if (header_block_candidate->terminator()->opcode() != spv::Op::OpBranch) { in IsApplicableToBlockRange()
|
H A D | transformation_add_dead_block.cpp | 63 // It must end with OpBranch. in IsApplicable() 64 if (existing_block->terminator()->opcode() != spv::Op::OpBranch) { in IsApplicable() 128 ir_context, spv::Op::OpBranch, 0, 0, in Apply()
|
H A D | transformation_replace_branch_from_dead_block_with_exit.cpp | 98 assert(block->terminator()->opcode() == spv::Op::OpBranch && in Apply() 99 "Precondition: the block must end with OpBranch."); in Apply() 147 // The block's terminator must be OpBranch. in BlockIsSuitable() 148 if (block.terminator()->opcode() != spv::Op::OpBranch) { in BlockIsSuitable() 157 // We only allow changing OpBranch to an early terminator if the target of the in BlockIsSuitable() 158 // OpBranch has at least one other predecessor. in BlockIsSuitable()
|
H A D | transformation_replace_opselect_with_conditional_branch.cpp | 91 // OpBranch. in IsApplicable() 93 predecessor->terminator()->opcode() != spv::Op::OpBranch) { in IsApplicable() 125 ir_context, spv::Op::OpBranch, 0, 0, in Apply() 134 // Delete the OpBranch instruction from the predecessor. in Apply()
|
H A D | transformation_flatten_conditional_branch.cpp | 292 instruction->opcode() != spv::Op::OpBranch && in Apply() 384 ir_context, spv::Op::OpBranch, 0, 0, in Apply() 510 // The terminator instruction for the block must be OpBranch. in GetProblematicInstructionsIfConditionalCanBeFlattened() 511 if (block->terminator()->opcode() != spv::Op::OpBranch) { in GetProblematicInstructionsIfConditionalCanBeFlattened() 542 return instruction->opcode() == spv::Op::OpBranch; in GetProblematicInstructionsIfConditionalCanBeFlattened() 647 ir_context, spv::Op::OpBranch, 0, 0, in EncloseInstructionInConditional() 705 ir_context, spv::Op::OpBranch, 0, 0, in EncloseInstructionInConditional() 836 // If the transformation is applicable, the terminator is OpBranch. in FindConvergenceBlock()
|
H A D | fuzzer_pass_inline_functions.cpp | 62 // block or its block termination instruction is not OpBranch, then try to in Apply() 67 function_call_block->terminator()->opcode() != spv::Op::OpBranch) && in Apply()
|
H A D | fuzzer_pass_merge_function_returns.cpp | 133 if (function->entry()->terminator()->opcode() != spv::Op::OpBranch) { in Apply() 142 // OpLabel, OpPhi and OpBranch. Collect the new ids of merge blocks. in Apply() 148 // contain OpLabel, OpPhi or OpBranch instructions). in Apply() 154 inst->opcode() == spv::Op::OpBranch; in Apply()
|
H A D | transformation_inline_function.cpp | 58 // block and its block termination instruction must be an OpBranch. This in IsApplicable() 66 spv::Op::OpBranch) { in IsApplicable() 327 // The return instruction will be changed into an OpBranch to the basic in AdaptInlinedInstruction() 353 instruction_to_be_inlined->SetOpcode(spv::Op::OpBranch); in AdaptInlinedInstruction()
|
H A D | transformation_duplicate_region_with_selection.cpp | 433 case spv::Op::OpBranch: in Apply() 562 // Add OpBranch instruction to the merge block at the end of in Apply() 566 ir_context, spv::Op::OpBranch, 0, 0, in Apply() 588 case spv::Op::OpBranch: in Apply() 600 "OpSwitch, OpBranch, OpBranchConditional, " in Apply()
|
/third_party/spirv-tools/test/opt/ |
H A D | def_use_test.cpp | 168 " OpBranch %5 " 283 "OpBranch %7 " 312 "OpBranch %7", 364 "OpBranch %6 " 403 {6, {"OpBranch %6"}}, 478 "OpBranch %5", 540 " OpBranch %7 " 543 " OpBranch %7 " 569 "OpBranch %7", 571 "OpBranch [all...] |
/third_party/spirv-tools/test/val/ |
H A D | val_cfg_test.cpp | 67 explicit Block(std::string label, spv::Op type = spv::Op::OpBranch) in Block() 118 case spv::Op::OpBranch: in operator std::string() 120 out << "OpBranch %" + successors_.front().label_; in operator std::string() 150 assert(lhs.type_ == spv::Op::OpBranch); in operator >>() 209 OpBranch %loop in TEST_P() 212 OpBranch %loop in TEST_P() 254 OpBranch %cont in TEST_P() 506 HasSubstr("'Target Label' operands for OpBranch must " in TEST_P() 756 Block branch("branch", spv::Op::OpBranch); in GetUnreachableContinueTerminatedBy() 760 if (op == spv::Op::OpBranch) targe in GetUnreachableContinueTerminatedBy() 812 GetUnreachableContinueTerminatedBy(GetParam(), spv::Op::OpBranch)); TEST_P() member in spvtools::val::__anon27107::spv::Op [all...] |
/third_party/spirv-tools/source/reduce/ |
H A D | simple_conditional_branch_to_branch_reduction_opportunity.cpp | 48 // OpBranch %block_id in Apply() 50 conditional_branch_instruction_->SetOpcode(spv::Op::OpBranch); in Apply()
|
H A D | structured_loop_to_selection_reduction_opportunity.cpp | 132 if (terminator->opcode() == spv::Op::OpBranch) { in RedirectEdge() 189 // The loop header either finishes with OpBranch or OpBranchConditional. in ChangeLoopToSelection() 194 if (terminator->opcode() == spv::Op::OpBranch) { in ChangeLoopToSelection()
|
H A D | structured_construct_to_block_reduction_opportunity.cpp | 58 header_block->terminator()->SetOpcode(spv::Op::OpBranch); in Apply()
|
H A D | merge_blocks_reduction_opportunity.cpp | 25 // Precondition: the terminator has to be OpBranch. in MergeBlocksReductionOpportunity() 26 assert(block->terminator()->opcode() == spv::Op::OpBranch); in MergeBlocksReductionOpportunity() 29 // Get the successor block associated with the OpBranch. in MergeBlocksReductionOpportunity()
|
/third_party/spirv-tools/source/opt/ |
H A D | block_merge_util.cpp | 85 if (br->opcode() != spv::Op::OpBranch) { in CanMergeWithSuccessor() 124 if (succ_term_op != spv::Op::OpBranch && in CanMergeWithSuccessor()
|
H A D | dead_branch_elim_pass.cpp | 80 new Instruction(context(), spv::Op::OpBranch, 0, 0, in AddBranch() 377 ebi->terminator()->opcode() != spv::Op::OpBranch || in EraseDeadBlocks() 384 context(), spv::Op::OpBranch, 0, 0, in EraseDeadBlocks() member in spvtools::opt::spv::Op 578 case spv::Op::OpBranch: in FindFirstExitFromSelectionMerge()
|
H A D | workaround1209.cpp | 52 new Instruction(context(), spv::Op::OpBranch, 0, 0, in RemoveOpUnreachableInLoops()
|
H A D | basic_block.cpp | 117 case spv::Op::OpBranch: in WhileEachSuccessorLabel() 137 case spv::Op::OpBranch: { in ForEachSuccessorLabel()
|
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | SpirvShaderInstructions.cpp | 58 case spv::OpBranch: in IsStatement()
|
/third_party/spirv-tools/source/val/ |
H A D | validate_adjacency.cpp | 82 case spv::Op::OpBranch: in ValidateAdjacency() 88 << "OpBranch or OpBranchConditional instruction. " in ValidateAdjacency()
|