mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
nir/print: Inline print_ssa_use()
It has one caller. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28300>
This commit is contained in:
parent
ba8860301f
commit
b069151e62
1 changed files with 3 additions and 11 deletions
|
|
@ -386,11 +386,11 @@ print_load_const_instr(nir_load_const_instr *instr, print_state *state)
|
|||
}
|
||||
|
||||
static void
|
||||
print_ssa_use(nir_def *def, print_state *state, nir_alu_type src_type)
|
||||
print_src(const nir_src *src, print_state *state, nir_alu_type src_type)
|
||||
{
|
||||
FILE *fp = state->fp;
|
||||
fprintf(fp, "%%%u", def->index);
|
||||
nir_instr *instr = def->parent_instr;
|
||||
fprintf(fp, "%%%u", src->ssa->index);
|
||||
nir_instr *instr = src->ssa->parent_instr;
|
||||
|
||||
if (instr->type == nir_instr_type_load_const && !NIR_DEBUG(PRINT_NO_INLINE_CONSTS)) {
|
||||
nir_load_const_instr *load_const = nir_instr_as_load_const(instr);
|
||||
|
|
@ -416,14 +416,6 @@ print_ssa_use(nir_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_src(const nir_src *src, print_state *state, nir_alu_type src_type)
|
||||
{
|
||||
print_ssa_use(src->ssa, state, src_type);
|
||||
}
|
||||
|
||||
static const char *
|
||||
comp_mask_string(unsigned num_components)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue