pan: add sigil to SSA values for debug printing

Make it easier to distinguish between SSA values and constant values
when debug printing BIR.

Reviewed-by: Christoph Pillmayer <christoph.pillmayer@arm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40711>
This commit is contained in:
Jakob Sinclair 2026-04-07 11:27:43 +02:00 committed by Marge Bot
parent a24364e418
commit 5e2c951ba6

View file

@ -86,7 +86,7 @@ bi_print_index(FILE *fp, bi_index index, unsigned nr_regs)
fprintf(fp, "%s%u", index.memory ? "m" : "r", index.value + i);
}
} else if (index.type == BI_INDEX_NORMAL)
fprintf(fp, "%s%u", index.memory ? "m" : "", index.value);
fprintf(fp, "%%%s%u", index.memory ? "m" : "", index.value);
else
UNREACHABLE("Invalid index");