Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
foreach_list_typed(nir_register, reg, node, &impl->registers) {
reg->index = index++;
}
+ impl->reg_alloc = index;
}
void
foreach_list_typed(nir_register, reg, node, &shader->registers) {
reg->index = index++;
}
+ shader->reg_alloc = index;
}
static bool
{
unsigned index = 0;
nir_foreach_block(impl, index_ssa_block, &index);
+ impl->ssa_alloc = index;
}
unsigned num_components; /** < number of vector components */
unsigned num_array_elems; /** < size of array (0 for no array) */
- /** for liveness analysis, the index in the bit-array of live variables */
+ /** generic register index. */
unsigned index;
/** only for debug purposes, can be NULL */
/** for debugging only, can be NULL */
const char* name;
- /** index into the bit-array for liveness analysis */
+ /** generic SSA definition index. */
unsigned index;
nir_instr *parent_instr;