Lines Matching refs:reload
353 aco_ptr<Pseudo_instruction> reload{
355 reload->operands[0] = Operand::c32(spill_id);
356 reload->definitions[0] = Definition(new_name);
358 return reload;
662 /* If it can be rematerialized, keep the variable spilled if all predecessors do not reload
791 /* variable is spilled at predecessor and live at current block: create reload instruction */
793 aco_ptr<Instruction> reload = do_reload(ctx, live.first, new_name, spills_exit_it->second);
794 instructions.emplace_back(std::move(reload));
826 * create reload instruction */
828 aco_ptr<Instruction> reload =
830 instructions.emplace_back(std::move(reload));
836 /* combine new reload instructions with original block */
985 /* iterate phis for which operands to reload */
1016 /* reload phi operand at end of predecessor block */
1026 aco_ptr<Instruction> reload =
1029 /* reload spilled exec mask directly to exec */
1032 reload->definitions[0] = phi->definitions[0];
1040 pred.instructions.insert(it, std::move(reload));
1044 /* iterate live variables for which to reload */
1045 // TODO: reload at current block if variable is spilled on all predecessors
1078 aco_ptr<Instruction> reload =
1080 pred.instructions.insert(it, std::move(reload));
1184 /* rename and reload operands */
1269 aco_ptr<Instruction> reload =
1271 instructions.emplace_back(std::move(reload));
1297 /* add spill/reload code on incoming control flow edges */
1529 aco_ptr<Instruction>& reload, std::vector<uint32_t>& slots)
1531 uint32_t spill_id = reload->operands[0].constantValue();
1537 Definition def = reload->definitions[0];
1715 /* after loops, we insert a user if there was a reload inside the loop */
1843 /* reload sgpr: just add the vgpr temp to operands */
1844 Pseudo_instruction* reload = create_instruction<Pseudo_instruction>(
1846 reload->operands[0] = Operand(vgpr_spill_temps[spill_slot / ctx.wave_size]);
1847 reload->operands[1] = Operand::c32(spill_slot % ctx.wave_size);
1848 reload->definitions[0] = (*it)->definitions[0];
1849 instructions.emplace_back(aco_ptr<Instruction>(reload));