spill_count = ALIGN_POT(spill_count, 16);
spill_count += bi_spill_register(ctx,
- bi_get_index(spill_node, false, 0),
- spill_count);
+ bi_get_index(spill_node), spill_count);
/* In case the spill affected an instruction with tied
* operands, we need to fix up.
acc |= (v << (i * instr->def.bit_size));
}
- bi_mov_i32_to(b, bi_get_index(instr->def.index, false, 0), bi_imm_u32(acc));
+ bi_mov_i32_to(b, bi_get_index(instr->def.index), bi_imm_u32(acc));
}
static bi_index
} bi_index;
static inline bi_index
-bi_get_index(unsigned value, bool is_reg, unsigned offset)
+bi_get_index(unsigned value)
{
return (bi_index) {
.value = value,
.swizzle = BI_SWIZZLE_H01,
- .offset = offset,
.type = BI_INDEX_NORMAL,
};
}
static inline bi_index
bi_temp(bi_context *ctx)
{
- return bi_get_index(ctx->ssa_alloc++, false, 0);
+ return bi_get_index(ctx->ssa_alloc++);
}
/* Inline constants automatically, will be lowered out by bi_lower_fau where a
return bi_imm_u32(nir_src_as_uint(*src));
} else {
assert(src->is_ssa);
- return bi_get_index(src->ssa->index, false, 0);
+ return bi_get_index(src->ssa->index);
}
}
bi_dest_index(nir_dest *dst)
{
assert(dst->is_ssa);
- return bi_get_index(dst->ssa.index, false, 0);
+ return bi_get_index(dst->ssa.index);
}
/* Iterators for Bifrost IR */