nir: print in_bounds info for deref_type(_ptr_as)_array
Signed-off-by: Job Noorman <jnoorman@igalia.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38110>
This commit is contained in:
@@ -1133,6 +1133,12 @@ print_deref_instr(nir_deref_instr *instr, print_state *state)
|
||||
instr->cast.align_mul, instr->cast.align_offset);
|
||||
}
|
||||
|
||||
if (instr->deref_type == nir_deref_type_array ||
|
||||
instr->deref_type == nir_deref_type_ptr_as_array) {
|
||||
if (instr->arr.in_bounds)
|
||||
fprintf(fp, " (in bounds)");
|
||||
}
|
||||
|
||||
if (instr->deref_type != nir_deref_type_var &&
|
||||
instr->deref_type != nir_deref_type_cast) {
|
||||
/* Print the entire chain as a comment */
|
||||
|
||||
Reference in New Issue
Block a user