• Home
  • Raw
  • Download

Lines Matching refs:Idx

38 struct Idx {  struct
39 bool operator==(const Idx& other) const { return block == other.block && instr == other.instr; } in operator ==() argument
40 bool operator!=(const Idx& other) const { return !operator==(other); } in operator !=() argument
48 Idx not_written_in_block{UINT32_MAX, 0};
49 Idx clobbered{UINT32_MAX, 1};
50 Idx const_or_undef{UINT32_MAX, 2};
51 Idx written_by_multiple_instrs{UINT32_MAX, 3};
58 std::vector<std::array<Idx, max_reg_cnt>> instr_idx_by_regs;
84 Instruction* get(Idx idx) { return program->blocks[idx.block].instructions[idx.instr].get(); } in get()
96 Idx idx{ctx.current_block->index, ctx.current_instr_idx}; in save_reg_writes()
108 Idx
113 Idx instr_idx = ctx.instr_idx_by_regs[ctx.current_block->index][physReg.reg()]; in last_writer_idx()
119 [instr_idx](Idx i) { return i == instr_idx; }); in last_writer_idx()
124 Idx
131 Idx instr_idx = ctx.instr_idx_by_regs[ctx.current_block->index][op.physReg().reg()]; in last_writer_idx()
143 is_clobbered_since(pr_opt_ctx& ctx, PhysReg reg, RegClass rc, const Idx& idx) in is_clobbered_since()
158 Idx& i = ctx.instr_idx_by_regs[current_block_idx][r]; in is_clobbered_since()
175 is_clobbered_since(pr_opt_ctx& ctx, const T& t, const Idx& idx) in is_clobbered_since()
204 Idx op0_instr_idx = last_writer_idx(ctx, instr->operands[0]); in try_apply_branch_vcc()
205 Idx last_vcc_wr_idx = last_writer_idx(ctx, vcc, ctx.program->lane_mask); in try_apply_branch_vcc()
271 Idx wr_idx = last_writer_idx(ctx, instr->operands[0]); in try_optimize_scc_nocompare()
272 Idx sccwr_idx = last_writer_idx(ctx, scc, s1); in try_optimize_scc_nocompare()
338 Idx wr_idx = last_writer_idx(ctx, instr->operands[scc_op_idx]); in try_optimize_scc_nocompare()
393 Idx op_instr_idx = last_writer_idx(ctx, instr->operands[i]); in try_combine_dpp()