}
void
-nir_ssa_dest_init(nir_instr *instr, nir_dest *dest,
- unsigned num_components, unsigned bit_size)
-{
- nir_def_init(instr, &dest->ssa, num_components, bit_size);
-}
-
-void
nir_def_rewrite_uses(nir_def *def, nir_def *new_ssa)
{
assert(def != new_ssa);
void nir_if_rewrite_condition(nir_if *if_stmt, nir_src new_src);
-void nir_ssa_dest_init(nir_instr *instr, nir_dest *dest,
- unsigned num_components, unsigned bit_size);
void nir_def_init(nir_instr *instr, nir_def *def,
unsigned num_components, unsigned bit_size);
static inline void
const struct glsl_type *type)
{
assert(glsl_type_is_vector_or_scalar(type));
- nir_ssa_dest_init(instr, dest, glsl_get_components(type),
- glsl_get_bit_size(type));
+ nir_def_init(instr, &dest->ssa, glsl_get_components(type),
+ glsl_get_bit_size(type));
}
void nir_def_rewrite_uses(nir_def *def, nir_def *new_ssa);
void nir_def_rewrite_uses_src(nir_def *def, nir_src new_src);