diff --git a/src/.clang-format b/src/.clang-format index 63eb3802324..daeebdd3ce1 100644 --- a/src/.clang-format +++ b/src/.clang-format @@ -309,6 +309,7 @@ ForEachMacros: - bi_foreach_instr_in_tuple - bi_foreach_predecessor - bi_foreach_src + - bi_foreach_ssa_dest - bi_foreach_ssa_src - bi_foreach_successor - cs_emit diff --git a/src/panfrost/compiler/compiler.h b/src/panfrost/compiler/compiler.h index a4a3f53dad2..67cb6c39951 100644 --- a/src/panfrost/compiler/compiler.h +++ b/src/panfrost/compiler/compiler.h @@ -1051,6 +1051,10 @@ bi_src_index(nir_src *src) for (unsigned v = 0; v < ins->nr_srcs; ++v) \ if (ins->src[v].type == BI_INDEX_NORMAL) +#define bi_foreach_ssa_dest(ins, v) \ + bi_foreach_dest(ins, v) \ + if (ins->dest[v].type == BI_INDEX_NORMAL) + #define bi_foreach_instr_and_src_in_tuple(tuple, ins, s) \ bi_foreach_instr_in_tuple(tuple, ins) \ bi_foreach_src(ins, s)