• Home
  • Raw
  • Download

Lines Matching refs:getTemp

166             next_uses.erase(def.getTemp());  in next_uses_per_block()
176 next_uses[op.getTemp()] = {block_idx, idx}; in next_uses_per_block()
192 if (instr->operands[i].getTemp() == ctx.program->blocks[pred_idx].live_out_exec) in next_uses_per_block()
194 …if (ctx.next_use_distances_end[pred_idx].find(instr->operands[i].getTemp()) == ctx.next_use_distan… in next_uses_per_block()
195 …ctx.next_use_distances_end[pred_idx][instr->operands[i].getTemp()] != std::pair<uint32_t, uint32_t… in next_uses_per_block()
197 ctx.next_use_distances_end[pred_idx][instr->operands[i].getTemp()] = {block_idx, 0}; in next_uses_per_block()
200 next_uses.erase(instr->definitions[0].getTemp()); in next_uses_per_block()
292 if (ctx.remat.count(instr->operands[i].getTemp())) in do_reload()
293 ctx.remat_used[ctx.remat[instr->operands[i].getTemp()].instr] = true; in do_reload()
319 ctx.remat[def.getTemp()] = (remat_info){instr.get()}; in get_rematerialize_info()
349 next_uses[op.getTemp()] = idx; in local_next_uses()
353 next_uses.erase(def.getTemp()); in local_next_uses()
611 … if (ctx.spills_exit[preds[i]].find(phi->operands[i].getTemp()) == ctx.spills_exit[preds[i]].end()) in init_live_in_vars()
614 partial_spills.insert(phi->definitions[0].getTemp()); in init_live_in_vars()
617 …ctx.spills_entry[block_idx][phi->definitions[0].getTemp()] = ctx.allocate_spill_id(phi->definition… in init_live_in_vars()
618 partial_spills.erase(phi->definitions[0].getTemp()); in init_live_in_vars()
619 spilled_registers += phi->definitions[0].getTemp(); in init_live_in_vars()
630 reg_pressure -= def.getTemp(); in init_live_in_vars()
635 reg_pressure += op.getTemp(); in init_live_in_vars()
647 !ctx.spills_entry[block_idx].count(instr->definitions[0].getTemp())) in init_live_in_vars()
648 reg_pressure += instr->definitions[0].getTemp(); in init_live_in_vars()
819 …if (ctx.spills_entry[block_idx].find(phi->definitions[0].getTemp()) == ctx.spills_entry[block_idx]… in add_coupling_code()
825 uint32_t def_spill_id = ctx.spills_entry[block_idx][phi->definitions[0].getTemp()]; in add_coupling_code()
833 Temp var = phi->operands[i].getTemp(); in add_coupling_code()
874 ctx.spills_exit[pred_idx][phi->operands[i].getTemp()] = spill_id; in add_coupling_code()
933 …assert(ctx.spills_entry[block_idx].find(phi->definitions[0].getTemp()) == ctx.spills_entry[block_i… in add_coupling_code()
942 …if (ctx.spills_exit[pred_idx].find(phi->operands[i].getTemp()) == ctx.spills_exit[pred_idx].end())… in add_coupling_code()
943 … std::map<Temp, Temp>::iterator it = ctx.renames[pred_idx].find(phi->operands[i].getTemp()); in add_coupling_code()
947 else if (ctx.remat.count(phi->operands[i].getTemp())) in add_coupling_code()
948 ctx.remat_used[ctx.remat[phi->operands[i].getTemp()].instr] = true; in add_coupling_code()
952 Temp tmp = phi->operands[i].getTemp(); in add_coupling_code()
1105 if (current_spills.find(op.getTemp()) == current_spills.end()) { in process_block()
1107 if (ctx.renames[block_idx].find(op.getTemp()) != ctx.renames[block_idx].end()) in process_block()
1108 op.setTemp(ctx.renames[block_idx][op.getTemp()]); in process_block()
1110 else if (ctx.remat.count(op.getTemp())) in process_block()
1111 ctx.remat_used[ctx.remat[op.getTemp()].instr] = true; in process_block()
1116 ctx.renames[block_idx][op.getTemp()] = new_tmp; in process_block()
1117 reloads[new_tmp] = std::make_pair(op.getTemp(), current_spills[op.getTemp()]); in process_block()
1118 current_spills.erase(op.getTemp()); in process_block()
1275 if (op.getTemp() == rename.first) in spill_block()
1298 if (op.getTemp() == rename.first) { in spill_block()
1583 Temp temp = (*it)->operands[0].getTemp(); in assign_spill_slots()
1592 …opcode, scratch_rsrc, Operand(v1), scratch_offset, split->definitions[i].getTemp(), offset + i * 4… in assign_spill_slots()
1741 vgprs.insert(pred_instr->operands[0].getTemp()); in assign_spill_slots()