/external/mesa3d/src/amd/compiler/ |
D | aco_optimizer.cpp | 645 ssa_info& info = ctx.info[instr->definitions[i].tempId()]; in to_VOP3() 700 if (op.tempId() != sgpr[0] && op.tempId() != sgpr[1]) { in check_vop3_operands() 702 sgpr[num_sgprs++] = op.tempId(); in check_vop3_operands() 766 ctx.info[add_instr->operands[i].tempId()].is_constant_or_literal(32)) { in parse_base_offset() 767 *offset = ctx.info[add_instr->operands[i].tempId()].val; in parse_base_offset() 821 … all_const = all_const && (!op.isTemp() || ctx.info[op.tempId()].is_constant_or_literal(32)); in label_instruction() 835 ssa_info info = ctx.info[instr->operands[i].tempId()]; in label_instruction() 841 instr->operands[i].setTemp(ctx.info[instr->operands[i].tempId()].temp); in label_instruction() 1052 (!ctx.info[smem->operands.back().tempId()].is_constant_or_literal(32) || in label_instruction() 1053 ctx.info[smem->operands.back().tempId()].val != 0)) { in label_instruction() [all …]
|
D | aco_register_allocation.cpp | 206 fill_subdword(op.physReg(), op.bytes(), op.tempId()); in fill() 208 fill(op.physReg(), op.size(), op.tempId()); in fill() 217 fill_subdword(def.physReg(), def.bytes(), def.tempId()); in fill() 219 fill(def.physReg(), def.size(), def.tempId()); in fill() 362 std::unordered_map<unsigned, phi_info>::iterator phi = ctx.phi_map.find(op.tempId()); in update_phi_map() 581 if (op.tempId() == copy.first.tempId()) { in update_renames() 787 if (instr->operands[i].isTemp() && instr->operands[i].tempId() == id) { in get_regs_for_copies() 800 if (instr->operands[i].isTemp() && instr->operands[i].tempId() == id) { in get_regs_for_copies() 876 if (op.isTemp() && op.isKillBeforeDef() && op.tempId() == reg_file[j]) { in get_regs_for_copies() 1072 vars.emplace(op.bytes(), op.tempId()); in get_reg_impl() [all …]
|
D | aco_dead_code_analysis.cpp | 63 if (ctx.uses[op.tempId()] == 0) in process_block() 65 ctx.uses[op.tempId()]++; in process_block() 85 [&uses] (const Definition& def) { return uses[def.tempId()];})) in is_dead() 102 ctx.uses[startpgm->definitions.back().tempId()]++; in dead_code_analysis()
|
D | aco_scheduler.cpp | 140 depends_on[op.tempId()] = true; in downwards_init() 142 RAR_dependencies[op.tempId()] = true; in downwards_init() 155 if (def.isTemp() && depends_on[def.tempId()]) in downwards_move() 161 if (op.isTemp() && RAR_deps[op.tempId()]) { in downwards_move() 170 depends_on[op.tempId()] = true; in downwards_move() 172 RAR_dependencies[op.tempId()] = true; in downwards_move() 214 depends_on[op.tempId()] = true; in downwards_skip() 216 RAR_dependencies[op.tempId()] = true; in downwards_skip() 217 RAR_dependencies_clause[op.tempId()] = true; in downwards_skip() 238 depends_on[def.tempId()] = true; in upwards_init() [all …]
|
D | aco_validate.cpp | 307 if (op.tempId() != sgpr[0] && op.tempId() != sgpr[1]) { in validate_ir() 309 sgpr[num_sgprs++] = op.tempId(); in validate_ir() 725 if (assignments.count(op.tempId()) && assignments[op.tempId()].reg != op.physReg()) in validate_ra() 726 …err |= ra_fail(program, loc, assignments.at(op.tempId()).firstloc, "Operand %d has an inconsistent… in validate_ra() 729 …err |= ra_fail(program, loc, assignments.at(op.tempId()).firstloc, "Operand %d has an out-of-bound… in validate_ra() 734 if (!assignments[op.tempId()].firstloc.block) in validate_ra() 735 assignments[op.tempId()].firstloc = loc; in validate_ra() 736 if (!assignments[op.tempId()].defloc.block) in validate_ra() 737 assignments[op.tempId()].reg = op.physReg(); in validate_ra() 746 if (assignments[def.tempId()].defloc.block) in validate_ra() [all …]
|
D | aco_form_hard_clauses.cpp | 79 resource = instr->operands[0].tempId(); in form_hard_clauses() 88 resource = instr->operands[0].tempId(); in form_hard_clauses()
|
D | aco_opt_value_numbering.cpp | 142 if (a->operands[i].tempId() != b->operands[i].tempId()) in operator ()() 377 auto it = ctx.renames.find(op.tempId()); in process_block() 396 ctx.renames[instr->definitions[0].tempId()] = instr->operands[0].getTemp(); in process_block() 413 ctx.renames[instr->definitions[i].tempId()] = orig_instr->definitions[i].getTemp(); in process_block() 445 auto it = renames.find(op.tempId()); in rename_phi_operands()
|
D | aco_lower_to_cssa.cpp | 91 ctx.live_vars.live_out[pred].count(op.tempId())); in collect_phi_info() 121 } else if (ctx.live_vars.live_out[idom].count(phi->definitions[0].tempId())) { in collect_phi_info()
|
D | aco_live_var_analysis.cpp | 163 … if (insn->operands[j].isTemp() && insn->operands[j].tempId() == operand.tempId()) { in process_live_temps_per_block() 242 const bool inserted = lives.live_out[preds[i]].insert(operand.tempId()).second; in process_live_temps_per_block()
|
D | aco_print_ir.cpp | 172 fprintf(output, "%%%d", operand->tempId()); in print_operand() 186 fprintf(output, "%%%d", definition->tempId()); in print_definition()
|
D | aco_ir.h | 572 constexpr uint32_t tempId() const noexcept in tempId() function 800 return tempId() > 0; in isTemp() 808 constexpr uint32_t tempId() const noexcept in tempId() function
|
D | aco_lower_to_hw_instr.cpp | 952 *def = Definition(src.def.tempId(), def_reg, def_cls); in split_copy() 967 op->setTemp(Temp(src.op.tempId(), op_cls)); in split_copy() 1476 …other->second.def.setTemp(Temp(other->second.def.tempId(), RegClass::get(RegType::vgpr, other->sec… in handle_operands() 1477 …other->second.op.setTemp(Temp(other->second.op.tempId(), RegClass::get(RegType::vgpr, other->secon… in handle_operands()
|
D | aco_insert_exec_mask.cpp | 225 const unsigned def = definition.tempId(); in get_block_needs()
|
D | aco_instruction_selection.cpp | 9395 if (src.isTemp() && ctx->allocated_vec.find(src.tempId()) == ctx->allocated_vec.end()) in visit_phi() 9408 … phi->operands[i] = src.isTemp() ? Operand(ctx->allocated_vec[src.tempId()][k]) : Operand(rc); in visit_phi() 9542 assert(instr->operands[i].tempId() == instr->operands.back().tempId()); in end_loop()
|