Home
last modified time | relevance | path

Searched refs:tempId (Results 1 – 14 of 14) sorted by relevance

/external/mesa3d/src/amd/compiler/
Daco_optimizer.cpp645 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 …]
Daco_register_allocation.cpp206 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 …]
Daco_dead_code_analysis.cpp63 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()
Daco_scheduler.cpp140 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 …]
Daco_validate.cpp307 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 …]
Daco_form_hard_clauses.cpp79 resource = instr->operands[0].tempId(); in form_hard_clauses()
88 resource = instr->operands[0].tempId(); in form_hard_clauses()
Daco_opt_value_numbering.cpp142 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()
Daco_lower_to_cssa.cpp91 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()
Daco_live_var_analysis.cpp163 … 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()
Daco_print_ir.cpp172 fprintf(output, "%%%d", operand->tempId()); in print_operand()
186 fprintf(output, "%%%d", definition->tempId()); in print_definition()
Daco_ir.h572 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
Daco_lower_to_hw_instr.cpp952 *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()
Daco_insert_exec_mask.cpp225 const unsigned def = definition.tempId(); in get_block_needs()
Daco_instruction_selection.cpp9395 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()