Lines Matching refs:ctx
38 reindex_defs(idx_ctx& ctx, aco_ptr<Instruction>& instr)
43 uint32_t new_id = ctx.temp_rc.size();
45 ctx.renames[def.tempId()] = new_id;
46 ctx.temp_rc.emplace_back(rc);
52 reindex_ops(idx_ctx& ctx, aco_ptr<Instruction>& instr)
57 uint32_t new_id = ctx.renames[op.tempId()];
58 assert(op.regClass() == ctx.temp_rc[new_id]);
64 reindex_program(idx_ctx& ctx, Program* program)
66 ctx.renames.resize(program->peekAllocationId());
72 reindex_defs(ctx, *it++);
76 reindex_defs(ctx, *it);
77 reindex_ops(ctx, *it);
85 reindex_ops(ctx, *it++);
90 program->private_segment_buffer = Temp(ctx.renames[program->private_segment_buffer.id()],
93 Temp(ctx.renames[program->scratch_offset.id()], program->scratch_offset.regClass());
94 program->temp_rc = ctx.temp_rc;
98 update_live_out(idx_ctx& ctx, std::vector<IDSet>& live_out)
103 new_set.insert(ctx.renames[id]);
113 idx_ctx ctx;
114 reindex_program(ctx, program);
122 idx_ctx ctx;
123 reindex_program(ctx, program);
124 update_live_out(ctx, live_out);