This is useful for deciding whether we need to fix up phis in RA.
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23832>
/* Emit the body */
ctx->after_block = ctx->continue_block;
+ ctx->after_block->loop_header = true;
agx_block *start_block = emit_cf_list(ctx, &nloop->body);
/* Fix up the nesting counter via an always true while_icmp, and branch back
/* Register allocation */
BITSET_DECLARE(regs_out, AGX_NUM_REGS);
+ /* Is this block a loop header? If not, all of its predecessors precede it in
+ * source order.
+ */
+ bool loop_header;
+
/* Offset of the block in the emitted binary */
off_t offset;