/third_party/mesa3d/bin/ |
H A D | commit_in_branch.py | 48 def branch_has_commit(upstream: str, branch: str, commit: str) -> bool: 50 Returns True if the commit is actually present in the branch 53 commit, upstream + '/' + branch], 59 def branch_has_backport_of_commit(upstream: str, branch: str, commit: str) -> str: 61 Returns the commit hash if the commit has been backported to the branch, 65 branch + '-branchpoint..' + upstream + '/' + branch, 85 def validate_branch(branch: str) -> str: 86 if '/' not in branch: 87 raise argparse.ArgumentTypeError('must be in the form `remote/branch`') [all...] |
/third_party/lz4/tests/ |
H A D | test-lz4-speed.py | 89 def send_email_with_attachments(branch, commit, last_commit, args, text, results_files, 95 % (email_header, pid, branch, commit, last_commit, 108 branches = execute('git branch -rl', verbose) 116 def git_get_changes(branch, commit, last_commit): 122 return str('Changes in %s since %s:\n' % (branch, last_commit)) + '\n'.join(commits) 135 if len(words) <= 4: # branch + commit + compilerVer + md5 147 def benchmark_and_compare(branch, commit, last_commit, args, executableName, md5sum, compilerVersion, resultsFileName, 161 myfile.write('%s %s %s md5=%s\n' % (branch, commit, compilerVersion, md5sum)) 165 log("WARNING: No data for comparison for branch=%s file=%s " % (branch, fileNam 317 branch = "" global() variable [all...] |
/third_party/mesa3d/src/amd/compiler/ |
H A D | aco_ssa_elimination.cpp | 114 /* insert parallelcopies for the linear phis at the end of blocks just before the branch */ in insert_parallelcopies() 183 /* keep the branch instruction and remove the rest */ in try_remove_merge_block() 184 aco_ptr<Instruction> branch = std::move(block->instructions.back()); in try_remove_merge_block() 186 block->instructions.emplace_back(std::move(branch)); in try_remove_merge_block() 208 Pseudo_branch_instruction& branch = pred->instructions.back()->branch(); in try_remove_invert_block() local 209 assert(branch.isBranch()); in try_remove_invert_block() 210 branch.target[0] = succ_idx; in try_remove_invert_block() 211 branch.target[1] = succ_idx; in try_remove_invert_block() 227 Pseudo_branch_instruction& branch in try_remove_simple_block() local [all...] |
H A D | aco_assembler.cpp | 49 // TODO: keep track of branch instructions referring blocks 848 /* Find first branch after the inserted code */ in insert_code() 850 [insert_before](const auto& branch) -> bool in insert_code() 851 { return (unsigned)branch.first >= insert_before; }); in insert_code() 878 [&ctx](const auto& branch) -> bool { in fix_branches_gfx10() 879 return ((int)ctx.program->blocks[branch.second->block].offset - branch.first - 1) == in fix_branches_gfx10() 886 /* Insert an s_nop after the branch */ in fix_branches_gfx10() 894 emit_long_jump(asm_context& ctx, SOPP_instruction* branch, bool backwards, in emit_long_jump() argument 899 Definition def_tmp_lo(branch in emit_long_jump() [all...] |
/third_party/node/deps/v8/src/compiler/ |
H A D | branch-elimination.h | 43 BranchCondition() : condition(nullptr), branch(nullptr), is_true(false) {} in BranchCondition() 44 BranchCondition(Node* condition, Node* branch, bool is_true) in BranchCondition() 45 : condition(condition), branch(branch), is_true(is_true) {} in BranchCondition() 47 Node* branch; member 51 return condition == other.condition && branch == other.branch && in operator ==() 56 bool IsSet() const { return branch != nullptr; } in IsSet() 59 // Class for tracking information about branch conditions. It is represented 69 // copies its {branch} an [all...] |
H A D | node-matchers.cc | 16 BranchMatcher::BranchMatcher(Node* branch) in BranchMatcher() argument 17 : NodeMatcher(branch), if_true_(nullptr), if_false_(nullptr) { in BranchMatcher() 18 if (branch->opcode() != IrOpcode::kBranch) return; in BranchMatcher() 19 for (Node* use : branch->uses()) { in BranchMatcher() 42 Node* branch = input0->InputAt(0); in DiamondMatcher() 43 if (branch != input1->InputAt(0)) return; in DiamondMatcher() 44 if (branch->opcode() != IrOpcode::kBranch) return; in DiamondMatcher() 47 branch_ = branch; in DiamondMatcher() 52 branch_ = branch; in DiamondMatcher()
|
H A D | branch-elimination.cc | 5 #include "src/compiler/branch-elimination.h" 63 void BranchElimination::SimplifyBranchCondition(Node* branch) { in SimplifyBranchCondition() argument 64 // Try to use a phi as a branch condition if the control flow from the branch in SimplifyBranchCondition() 67 // use the same branch condition. In such case, create a new phi with constant in SimplifyBranchCondition() 68 // inputs and let the second branch use the phi as its branch condition. From in SimplifyBranchCondition() 69 // this transformation, more branch folding opportunities would be exposed to in SimplifyBranchCondition() 70 // later passes through branch cloning in effect-control-linearizer. in SimplifyBranchCondition() 92 DCHECK_EQ(IrOpcode::kBranch, branch in SimplifyBranchCondition() 138 Node* branch; ReduceBranch() local 273 Node* branch = NodeProperties::GetControlInput(control_input); ReduceTrapConditional() local 328 Node* branch; ReduceDeoptimizeConditional() local 350 Node* branch = NodeProperties::GetControlInput(node, 0); ReduceIf() local 444 AddCondition( Zone* zone, Node* condition, Node* branch, bool is_true, ControlPathConditions hint) AddCondition() argument 462 AddConditionInNewBlock( Zone* zone, Node* condition, Node* branch, bool is_true) AddConditionInNewBlock() argument 479 LookupCondition( Node* condition, Node** branch, bool* is_true) const LookupCondition() argument [all...] |
H A D | diamond.h | 20 Node* branch; member 29 branch = graph->NewNode(common->Branch(hint), cond, graph->start()); in Diamond() 30 if_true = graph->NewNode(common->IfTrue(), branch); in Diamond() 31 if_false = graph->NewNode(common->IfFalse(), branch); in Diamond() 36 void Chain(Diamond const& that) { branch->ReplaceInput(1, that.merge); } in Chain() 39 void Chain(Node* that) { branch->ReplaceInput(1, that); } in Chain() 41 // Nest {this} into either the if_true or if_false branch of {that}. 44 branch->ReplaceInput(1, that.if_true); in Nest() 47 branch->ReplaceInput(1, that.if_false); in Nest()
|
H A D | control-flow-optimizer.cc | 76 Node* branch = node; in TryBuildSwitch() local 77 if (BranchHintOf(branch->op()) != BranchHint::kNone) return false; in TryBuildSwitch() 78 Node* cond = NodeProperties::GetValueInput(branch, 0); in TryBuildSwitch() 91 BranchMatcher matcher(branch); in TryBuildSwitch() 112 if (branch != node) { in TryBuildSwitch() 113 branch->NullAllInputs(); in TryBuildSwitch() 120 branch = branch1; in TryBuildSwitch() 126 DCHECK_EQ(IrOpcode::kBranch, branch->opcode()); in TryBuildSwitch() 127 if (branch == node) { in TryBuildSwitch() 140 branch in TryBuildSwitch() [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | testSpecVersion.py | 8 # extension branch meet the requirement of being 1. 10 # Usage: textSpecVersion.py [-branch branchname] [-registry file] 12 # Checks for an XML <extension> matching the branch name specified 13 # on the command line, or the current branch if not specified. 15 # If not found, the branch is not an extension staging branch; succeed. 28 parser.add_argument('-branch', action='store', 30 help='Specify branch to check against') 43 if args.branch is None: 44 (args.branch, error [all...] |
/third_party/skia/tools/calmbench/ |
H A D | calmbench.py | 46 description='Noiselessly (hence calm) becnhmark a git branch against ' + 47 'another baseline branch (e.g., main) using multiple ' + 64 'baseline branch to compare against (default: %(default)s)') 66 'nanobench arg for the baseline branch; if not given, we use ' 67 ' the same arg for both the test branch and the baseline branch') 75 'whether NOT to run nanobench on baseline branch ' 80 "the test branch to benchmark; if it's 'modified', we'll benchmark the " 99 parser.add_argument('branch', type=str, help=branch_help) 125 def nano_path(args, branch) [all...] |
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/ |
H A D | lower.c | 45 /* ALU and branch can consume consts directly */ in ppir_lower_const() 327 /* Check if we can merge a condition with a branch instruction, in ppir_lower_branch_merge_condition() 358 /* branch can't reference pipeline registers */ in ppir_lower_branch_merge_condition() 363 /* branch can't use flags */ in ppir_lower_branch_merge_condition() 369 ppir_branch_node *branch = ppir_node_to_branch(node); in ppir_lower_branch_merge_condition() 373 branch->cond_gt = true; in ppir_lower_branch_merge_condition() 376 branch->cond_eq = true; in ppir_lower_branch_merge_condition() 377 branch->cond_gt = true; in ppir_lower_branch_merge_condition() 380 branch->cond_lt = true; in ppir_lower_branch_merge_condition() 383 branch in ppir_lower_branch_merge_condition() 419 ppir_branch_node *branch = ppir_node_to_branch(node); ppir_lower_branch() local [all...] |
H A D | codegen.c | 627 ppir_branch_node *branch; in ppir_codegen_encode_branch() local 636 branch = ppir_node_to_branch(node); in ppir_codegen_encode_branch() 638 b->branch.unknown_0 = 0x0; in ppir_codegen_encode_branch() 639 b->branch.unknown_1 = 0x0; in ppir_codegen_encode_branch() 641 if (branch->num_src == 2) { in ppir_codegen_encode_branch() 642 b->branch.arg0_source = get_scl_reg_index(&branch->src[0], 0); in ppir_codegen_encode_branch() 643 b->branch.arg1_source = get_scl_reg_index(&branch->src[1], 0); in ppir_codegen_encode_branch() 644 b->branch in ppir_codegen_encode_branch() [all...] |
H A D | disasm.c | 717 ppir_codegen_field_branch *branch = code; in print_branch() local 719 if (branch->discard.word0 == PPIR_CODEGEN_DISCARD_WORD0 && in print_branch() 720 branch->discard.word1 == PPIR_CODEGEN_DISCARD_WORD1 && in print_branch() 721 branch->discard.word2 == PPIR_CODEGEN_DISCARD_WORD2) { in print_branch() 732 cond_mask |= (branch->branch.cond_lt ? 1 : 0); in print_branch() 733 cond_mask |= (branch->branch.cond_eq ? 2 : 0); in print_branch() 734 cond_mask |= (branch->branch in print_branch() [all...] |
/third_party/mesa3d/src/panfrost/midgard/ |
H A D | midgard_schedule.c | 52 * same bundle as the branch, with no hanging dependencies. 185 /* If there is a branch, all instructions depend on it, as interblock in mir_create_dependency_graph() 705 bool branch = alu && (unit == ALU_ENAB_BR_COMPACT); in mir_choose_instruction() local 713 if (alu && !branch && unit != ~0 && !(mir_has_unit(instructions[i], unit))) in mir_choose_instruction() 720 if (branch && !instructions[i]->compact_branch) in mir_choose_instruction() 741 bool conditional = alu && !branch && OP_IS_CSEL(instructions[i]->op); in mir_choose_instruction() 742 conditional |= (branch && instructions[i]->branch.conditional); in mir_choose_instruction() 861 /* When we are scheduling a branch/csel, we need the consumed condition in the 970 /* For a branch, th in mir_schedule_condition() 971 bool branch = last->compact_branch; mir_schedule_condition() local 1089 mir_schedule_zs_write( compiler_context *ctx, struct midgard_predicate *predicate, midgard_instruction **instructions, uint16_t *liveness, BITSET_WORD *worklist, unsigned len, midgard_instruction *branch, midgard_instruction **smul, midgard_instruction **vadd, midgard_instruction **vlut, bool stencil) mir_schedule_zs_write() argument 1179 midgard_instruction *branch = NULL; mir_schedule_alu() local [all...] |
H A D | midgard_print.c | 178 if (ins->branch.target_type == TARGET_DISCARD) in mir_print_instruction() 183 !ins->branch.conditional) in mir_print_instruction() 188 if (!ins->branch.conditional) in mir_print_instruction() 190 else if (ins->branch.invert_conditional) in mir_print_instruction() 205 if (ins->branch.target_type != TARGET_DISCARD) in mir_print_instruction() 207 ins->branch.target_type < 4 ? in mir_print_instruction() 208 branch_target_names[ins->branch.target_type] : "??", in mir_print_instruction() 209 ins->branch.target_block); in mir_print_instruction() 256 if (ins->compact_branch && ins->branch.invert_conditional) in mir_print_instruction()
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/ |
H A D | radeon_emulate_branches.c | 60 struct branch_info * branch; in handle_if() local 68 branch = &s->Branches[s->BranchCount++]; in handle_if() 69 memset(branch, 0, sizeof(struct branch_info)); in handle_if() 70 branch->If = inst; in handle_if() 90 struct branch_info * branch; in handle_else() local 99 branch = &s->Branches[s->BranchCount - 1]; in handle_else() 100 branch->Else = inst; in handle_else() 199 struct branch_info * branch; in handle_endif() local 210 branch = &s->Branches[s->BranchCount - 1]; in handle_endif() 215 allocate_and_insert_proxies(s, &IfProxies, branch in handle_endif() [all...] |
H A D | r500_fragprog_emit.c | 465 struct branch_info * branch; in emit_flowcontrol() local 551 branch = &s->Branches[s->CurrentBranchDepth++]; in emit_flowcontrol() 552 branch->If = newip; in emit_flowcontrol() 553 branch->Else = -1; in emit_flowcontrol() 554 branch->Endif = -1; in emit_flowcontrol() 564 rc_error(s->C, "%s: got ELSE outside a branch", __FUNCTION__); in emit_flowcontrol() 568 branch = &s->Branches[s->CurrentBranchDepth - 1]; in emit_flowcontrol() 569 branch->Else = newip; in emit_flowcontrol() 576 rc_error(s->C, "%s: got ELSE outside a branch", __FUNCTION__); in emit_flowcontrol() 580 branch in emit_flowcontrol() [all...] |
H A D | radeon_dataflow_deadcode.c | 101 struct branchinfo * branch; in push_branch() local 106 branch = &s->BranchStack[s->BranchStackSize++]; in push_branch() 107 branch->HaveElse = 0; in push_branch() 108 memcpy(&branch->StoreEndif, &s->R, sizeof(s->R)); in push_branch() 280 struct branchinfo * branch = &s.BranchStack[s.BranchStackSize-1]; in rc_dataflow_deadcode() local 284 branch->HaveElse ? &branch->StoreElse : &branch->StoreEndif); in rc_dataflow_deadcode() 288 if (branch->HaveElse) { in rc_dataflow_deadcode() 291 memcpy(&branch in rc_dataflow_deadcode() [all...] |
/third_party/mesa3d/src/compiler/spirv/ |
H A D | vtn_cfg.c | 310 vtn_assert(b->block && b->block->branch == NULL); in vtn_cfg_handle_prepass_instruction() 311 b->block->branch = w; in vtn_cfg_handle_prepass_instruction() 439 "Each case construct can have at most one branch to " in vtn_handle_branch() 534 const uint32_t *branch, in vtn_parse_switch() 537 const uint32_t *branch_end = branch + (branch[0] >> SpvWordCountShift); in vtn_parse_switch() 539 struct vtn_value *sel_val = vtn_untyped_value(b, branch[1]); in vtn_parse_switch() 554 for (const uint32_t *w = branch + 2; w < branch_end;) { in vtn_parse_switch() 667 vtn_fail_if((*block->branch & SpvOpCodeMask) != SpvOpBranch && in vtn_process_block() 668 (*block->branch in vtn_process_block() 532 vtn_parse_switch(struct vtn_builder *b, struct vtn_switch *swtch, const uint32_t *branch, struct list_head *case_list) vtn_parse_switch() argument 1133 const uint32_t *branch = vtn_if->header_block->branch; vtn_emit_cf_list_structured() local [all...] |
/third_party/mesa3d/src/broadcom/qpu/ |
H A D | qpu_disasm.c | 272 if (instr->branch.ub) in v3d_qpu_disasm_branch() 274 append(disasm, "%s", v3d_qpu_branch_cond_name(instr->branch.cond)); in v3d_qpu_disasm_branch() 275 append(disasm, "%s", v3d_qpu_msfign_name(instr->branch.msfign)); in v3d_qpu_disasm_branch() 277 switch (instr->branch.bdi) { in v3d_qpu_disasm_branch() 279 append(disasm, " zero_addr+0x%08x", instr->branch.offset); in v3d_qpu_disasm_branch() 283 append(disasm, " %d", instr->branch.offset); in v3d_qpu_disasm_branch() 291 append(disasm, " rf%d", instr->branch.raddr_a); in v3d_qpu_disasm_branch() 295 if (instr->branch.ub) { in v3d_qpu_disasm_branch() 296 switch (instr->branch.bdu) { in v3d_qpu_disasm_branch() 310 append(disasm, ", rf%d", instr->branch in v3d_qpu_disasm_branch() [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/val/ |
H A D | val_cfg_test.cpp | 68 /// @param[in]: type the branch instruciton that ends the block 369 Block branch("branch", SpvOpBranchConditional); in TEST_P() 373 if (is_shader) branch.SetBody("OpSelectionMerge %merge None\n"); in TEST_P() 376 nameOps("cont", "branch", std::make_pair("func", "Main")) + in TEST_P() 380 str += entry >> branch; in TEST_P() 382 str += branch >> std::vector<Block>({cont, merge}); in TEST_P() 390 "before its dominator .\\[%branch\\]\n" in TEST_P() 391 " %branch = OpLabel\n")); in TEST_P() 501 bad >> badvalue; // Check branch t in TEST_P() 790 if (op == SpvOpBranch) target >> branch; GetUnreachableContinueTerminatedBy() local 889 target >> branch; GetUnreachableContinueUnreachableLoopInst() local 966 target >> branch; GetUnreachableContinueWithComplexBody() local 1079 target >> branch; GetUnreachableContinueWithBranchUse() local 1117 target >> branch; GetReachableMergeAndContinue() local 1160 target >> branch; GetUnreachableMergeAndContinue() local [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/ |
H A D | val_cfg_test.cpp | 68 /// @param[in]: type the branch instruciton that ends the block 369 Block branch("branch", SpvOpBranchConditional); in TEST_P() 373 if (is_shader) branch.SetBody("OpSelectionMerge %merge None\n"); in TEST_P() 376 nameOps("cont", "branch", std::make_pair("func", "Main")) + in TEST_P() 380 str += entry >> branch; in TEST_P() 382 str += branch >> std::vector<Block>({cont, merge}); in TEST_P() 390 "before its dominator .\\[%branch\\]\n" in TEST_P() 391 " %branch = OpLabel\n")); in TEST_P() 501 bad >> badvalue; // Check branch t in TEST_P() 790 if (op == SpvOpBranch) target >> branch; GetUnreachableContinueTerminatedBy() local 889 target >> branch; GetUnreachableContinueUnreachableLoopInst() local 966 target >> branch; GetUnreachableContinueWithComplexBody() local 1079 target >> branch; GetUnreachableContinueWithBranchUse() local 1117 target >> branch; GetReachableMergeAndContinue() local 1160 target >> branch; GetUnreachableMergeAndContinue() local [all...] |
/third_party/spirv-tools/test/val/ |
H A D | val_cfg_test.cpp | 66 /// @param[in]: type the branch instruction that ends the block 367 Block branch("branch", spv::Op::OpBranchConditional); in TEST_P() 371 if (is_shader) branch.SetBody("OpSelectionMerge %merge None\n"); in TEST_P() 374 nameOps("cont", "branch", std::make_pair("func", "Main")) + in TEST_P() 378 str += entry >> branch; in TEST_P() 380 str += branch >> std::vector<Block>({cont, merge}); in TEST_P() 388 "before its dominator '.\\[%branch\\]'\n" in TEST_P() 389 " %branch = OpLabel\n")); in TEST_P() 499 bad >> badvalue; // Check branch t in TEST_P() 760 if (op == spv::Op::OpBranch) target >> branch; GetUnreachableContinueTerminatedBy() local 859 target >> branch; GetUnreachableContinueUnreachableLoopInst() local 927 target >> branch; GetUnreachableContinueWithComplexBody() local 1038 target >> branch; GetUnreachableContinueWithBranchUse() local 1075 target >> branch; GetReachableMergeAndContinue() local 1119 target >> branch; GetUnreachableMergeAndContinue() local [all...] |
/third_party/mesa3d/src/broadcom/vulkan/ |
H A D | v3dvx_meta_common.c | 508 cl_emit(cl, BRANCH_TO_IMPLICIT_TILE_LIST, branch); in emit_copy_layer_to_buffer_per_tile_list() 549 cl_emit(&job->rcl, START_ADDRESS_OF_GENERIC_TILE_LIST, branch) { in emit_copy_layer_to_buffer_per_tile_list() 550 branch.start = tile_list_start; in emit_copy_layer_to_buffer_per_tile_list() 551 branch.end = v3dv_cl_get_address(cl); in emit_copy_layer_to_buffer_per_tile_list() 616 cl_emit(cl, BRANCH_TO_IMPLICIT_TILE_LIST, branch); in emit_resolve_image_layer_per_tile_list() 636 cl_emit(&job->rcl, START_ADDRESS_OF_GENERIC_TILE_LIST, branch) { in emit_resolve_image_layer_per_tile_list() 637 branch.start = tile_list_start; in emit_resolve_image_layer_per_tile_list() 638 branch.end = v3dv_cl_get_address(cl); in emit_resolve_image_layer_per_tile_list() 692 cl_emit(cl, BRANCH_TO_IMPLICIT_TILE_LIST, branch); in emit_copy_buffer_per_tile_list() 701 cl_emit(&job->rcl, START_ADDRESS_OF_GENERIC_TILE_LIST, branch) { in emit_copy_buffer_per_tile_list() [all...] |