/third_party/mesa3d/src/amd/compiler/tests/ |
D | test_assembler.cpp | 57 program->blocks[1].linear_preds.push_back(0u); 85 program->blocks[2].linear_preds.push_back(0u); 86 program->blocks[2].linear_preds.push_back(1u); 116 program->blocks[1].linear_preds.push_back(0u); 117 program->blocks[2].linear_preds.push_back(0u); 118 program->blocks[2].linear_preds.push_back(1u); 144 program->blocks[0].linear_preds.push_back(0u); 145 program->blocks[1].linear_preds.push_back(0u); 172 program->blocks[0].linear_preds.push_back(0u); 173 program->blocks[1].linear_preds.push_back(0u); [all …]
|
D | test_regalloc.cpp | 302 program->blocks[1].linear_preds.push_back(0); 327 program->blocks[1].linear_preds.push_back(0); 334 program->blocks[2].linear_preds.push_back(0); 339 program->blocks[3].linear_preds.push_back(1); 340 program->blocks[3].linear_preds.push_back(2);
|
D | test_insert_nops.cpp | 111 program->blocks[1].linear_preds.push_back(0); 163 program->blocks[1].linear_preds.push_back(0);
|
D | test_optimizer_postRA.cpp | 380 program->blocks[1].linear_preds.push_back(0);
|
D | test_to_hw_instr.cpp | 525 program->blocks[1].linear_preds.push_back(0);
|
D | helpers.cpp | 138 for (unsigned idx : BB.linear_preds) in finish_program()
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_ssa_elimination.cpp | 72 phi->opcode == aco_opcode::p_phi ? block.logical_preds : block.linear_preds; in collect_phi_info() 202 assert(block->linear_preds.size() == 2); in try_remove_invert_block() 204 Block* pred = &ctx.program->blocks[block->linear_preds[i]]; in try_remove_invert_block() 206 ctx.program->blocks[succ_idx].linear_preds[i] = pred->index; in try_remove_invert_block() 215 block->linear_preds.clear(); in try_remove_invert_block() 225 Block& pred = ctx.program->blocks[block->linear_preds[0]]; in try_remove_simple_block() 280 for (unsigned i = 0; i < succ.linear_preds.size(); i++) in try_remove_simple_block() 281 if (succ.linear_preds[i] == block->index) in try_remove_simple_block() 282 succ.linear_preds[i] = pred.index; in try_remove_simple_block() 285 block->linear_preds.clear(); in try_remove_simple_block() [all …]
|
D | aco_lower_phis.cpp | 72 size_t pred = block.linear_preds.size(); in get_ssa() 79 op = get_ssa(program, block.linear_preds[0], state, false); in get_ssa() 94 ops[i] = get_ssa(program, block.linear_preds[i], state, false); in get_ssa() 218 if (program->blocks[start].linear_preds.size() > 1) in init_any_pred_defined() 234 if (program->blocks[start].linear_preds.size() > 1) { in init_any_pred_defined() 259 block->linear_preds.size() == block->logical_preds.size(); in lower_divergent_bool_phi() 294 unsigned num_preds = block->linear_preds.size(); in lower_divergent_bool_phi() 306 phi->operands[i] = get_ssa(program, block->linear_preds[i], state, false); in lower_divergent_bool_phi()
|
D | aco_optimizer_postRA.cpp | 68 if ((block->kind & block_kind_loop_header) || block->linear_preds.empty()) { in reset_block() 72 const uint32_t first_linear_pred = block->linear_preds[0]; in reset_block() 73 const std::vector<uint32_t>& linear_preds = block->linear_preds; in reset_block() local 77 std::next(linear_preds.begin()), linear_preds.end(), in reset_block()
|
D | aco_spill.cpp | 230 instr->opcode == aco_opcode::p_phi ? block->logical_preds[i] : block->linear_preds[i]; in next_uses_per_block() 252 std::vector<unsigned>& preds = temp.is_linear() ? block->linear_preds : block->logical_preds; in next_uses_per_block() 476 for (unsigned pred : block.linear_preds) in get_live_in_demand() 497 assert(block->linear_preds[0] == block_idx - 1); in init_live_in_vars() 601 if (block->linear_preds.size() == 1 && !(block->kind & block_kind_loop_exit)) { in init_live_in_vars() 603 unsigned pred_idx = block->linear_preds[0]; in init_live_in_vars() 633 pred_idx = block->linear_preds[0]; in init_live_in_vars() 661 pair.first.is_linear() ? block->linear_preds : block->logical_preds; in init_live_in_vars() 704 phi->opcode == aco_opcode::p_phi ? block->logical_preds : block->linear_preds; in init_live_in_vars() 759 if (block->linear_preds.size() == 0) in add_coupling_code() [all …]
|
D | aco_validate.cpp | 476 check(instr->operands.size() == block.linear_preds.size(), in validate_ir() 708 for (unsigned j = 0; j + 1 < block.linear_preds.size(); j++) in validate_ir() 709 check_block(block.linear_preds[j] < block.linear_preds[j + 1], in validate_ir() 722 if (block.linear_preds.size() > 1) { in validate_ir() 723 for (unsigned pred : block.linear_preds) in validate_ir() 1183 } else if (block.linear_preds.size() != 1 || in validate_ra() 1184 program->blocks[block.linear_preds[0]].linear_succs.size() == 1) { in validate_ra() 1185 for (unsigned pred : block.linear_preds) { in validate_ra()
|
D | aco_dominance.cpp | 68 for (unsigned pred_idx : block.linear_preds) { in dominator_tree()
|
D | aco_live_var_analysis.cpp | 226 for (unsigned pred_idx : block->linear_preds) in process_live_temps_per_block() 232 std::vector<unsigned>& preds = rc.is_linear() ? block->linear_preds : block->logical_preds; in process_live_temps_per_block() 254 insn->opcode == aco_opcode::p_phi ? block->logical_preds : block->linear_preds; in process_live_temps_per_block()
|
D | aco_dead_code_analysis.cpp | 76 for (unsigned pred_idx : block.linear_preds) in process_block()
|
D | aco_statistics.cpp | 488 for (unsigned pred : block.linear_preds) in collect_preasm_stats() 517 block.logical_preds.empty() && block.linear_preds.size() == 1 && in collect_preasm_stats() 519 program->blocks[block.linear_preds[0]].kind & (block_kind_branch | block_kind_invert); in collect_preasm_stats()
|
D | aco_lower_to_cssa.cpp | 93 phi->opcode == aco_opcode::p_phi ? block.logical_preds : block.linear_preds; in collect_parallelcopies() 199 : ctx.program->blocks[block_idx].linear_preds; in intersects()
|
D | aco_opt_value_numbering.cpp | 467 ctx.exec_id -= program->blocks[loop_headers.back()].linear_preds.size(); in value_numbering() 468 ctx.exec_id -= block.linear_preds.size(); in value_numbering()
|
D | aco_insert_NOPs.cpp | 267 for (unsigned lin_pred : block->linear_preds) { in handle_raw_hazard_internal() 888 for (unsigned b : program->blocks[idx].linear_preds) in mitigate_hazards() 903 for (unsigned b : block.linear_preds) in mitigate_hazards()
|
D | aco_register_allocation.cpp | 2035 pc.first.getTemp().is_linear() ? block.linear_preds : block.logical_preds; in get_reg_phi() 2153 std::vector<unsigned>& preds = val.is_linear() ? block->linear_preds : block->logical_preds; in handle_live_in() 2244 phi->opcode == aco_opcode::p_phi ? loop_header.logical_preds : loop_header.linear_preds; in handle_loop_phis() 2335 instr->opcode == aco_opcode::p_phi ? block.logical_preds : block.linear_preds; in init_reg_file() 2686 if (!block.linear_preds.empty() && in register_allocation() 2687 (block.linear_preds.size() != 1 || in register_allocation() 2688 program->blocks[block.linear_preds[0]].linear_succs.size() == 1)) { in register_allocation() 2691 for (unsigned pred : block.linear_preds) { in register_allocation()
|
D | aco_insert_exec_mask.cpp | 248 std::vector<unsigned>& preds = block->linear_preds; in add_coupling_code() 364 std::vector<unsigned>& header_preds = header->linear_preds; in add_coupling_code()
|
D | aco_insert_waitcnt.cpp | 806 for (unsigned b : current.linear_preds) in insert_wait_states()
|
D | aco_print_ir.cpp | 837 for (unsigned pred : block->linear_preds) in aco_print_block()
|
D | aco_instruction_selection.cpp | 106 succ->linear_preds.emplace_back(pred_idx); in add_linear_edge() 10103 std::vector<unsigned>& preds = logical ? ctx->block->logical_preds : ctx->block->linear_preds; in visit_phi() 10154 Block* linear_else = &ctx->program->blocks[ctx->block->linear_preds[1]]; in visit_phi() 10155 Block* invert = &ctx->program->blocks[linear_else->linear_preds[0]]; in visit_phi() 10158 unsigned then_block = invert->linear_preds[0]; in visit_phi() 10454 for (unsigned i = 1; all_same && (i < block.linear_preds.size()); i++) in create_continue_phis() 10455 all_same = vals[block.linear_preds[i] - first] == vals[block.linear_preds[0] - first]; in create_continue_phis() 10459 val = vals[block.linear_preds[0] - first]; in create_continue_phis() 10462 aco_opcode::p_linear_phi, Format::PSEUDO, block.linear_preds.size(), 1)); in create_continue_phis() 10463 for (unsigned i = 0; i < block.linear_preds.size(); i++) in create_continue_phis() [all …]
|
D | aco_ir.h | 1923 std::vector<unsigned> linear_preds; member
|
D | aco_lower_to_hw_instr.cpp | 1990 for (unsigned pred : block->linear_preds) { in emit_set_mode_from_block() 2140 discard_block->linear_preds.push_back(block->index); in lower_to_hw_instr()
|