nir: Rename nir_reg_{src,dest} -> nir_register_{src,dest}

This frees up the shorter names for the intrinsic-based versions that will
replace them.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23956>
This commit is contained in:
Alyssa Rosenzweig
2023-06-16 11:10:25 -04:00
parent bed2f3f8e6
commit 7e42fdac6b
11 changed files with 22 additions and 22 deletions

View File

@@ -989,7 +989,7 @@ typedef struct {
nir_register *reg;
struct nir_src *indirect; /** < NULL for no indirect offset */
unsigned base_offset;
} nir_reg_src;
} nir_register_src;
typedef struct {
nir_instr *parent_instr;
@@ -998,7 +998,7 @@ typedef struct {
nir_register *reg;
struct nir_src *indirect; /** < NULL for no indirect offset */
unsigned base_offset;
} nir_reg_dest;
} nir_register_dest;
struct nir_if;
@@ -1012,7 +1012,7 @@ typedef struct nir_src {
struct list_head use_link;
union {
nir_reg_src reg;
nir_register_src reg;
nir_ssa_def *ssa;
};
@@ -1076,7 +1076,7 @@ nir_ssa_def_used_by_if(const nir_ssa_def *def)
typedef struct {
union {
nir_reg_dest reg;
nir_register_dest reg;
nir_ssa_def ssa;
};

View File

@@ -359,7 +359,7 @@ print_ssa_use(nir_ssa_def *def, print_state *state, nir_alu_type src_type)
static void print_src(const nir_src *src, print_state *state, nir_alu_type src_type);
static void
print_reg_src(const nir_reg_src *src, print_state *state)
print_reg_src(const nir_register_src *src, print_state *state)
{
FILE *fp = state->fp;
print_register(src->reg, state);
@@ -374,7 +374,7 @@ print_reg_src(const nir_reg_src *src, print_state *state)
}
static void
print_reg_dest(nir_reg_dest *dest, print_state *state)
print_reg_dest(nir_register_dest *dest, print_state *state)
{
FILE *fp = state->fp;
fprintf(fp, "%s", divergence_status(state, dest->reg->divergent));

View File

@@ -247,7 +247,7 @@ validate_alu_src(nir_alu_instr *instr, unsigned index, validate_state *state)
}
static void
validate_reg_dest(nir_reg_dest *dest, validate_state *state,
validate_reg_dest(nir_register_dest *dest, validate_state *state,
unsigned bit_sizes, unsigned num_components)
{
validate_assert(state, dest->reg != NULL);