From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 18:47:13 +0000 (-0500) Subject: pan/bi: Add pred/successors to build CFG X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2afddc4433f49eb44654a63b1406181ee3dc25d8;p=mesa.git pan/bi: Add pred/successors to build CFG We'll want this for analysis passes or something, probably. Signed-off-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index a010cb896d1..7af4d39bf40 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -269,6 +269,10 @@ typedef struct bi_block { struct list_head instructions; /* pre-schedule, list of bi_instructions */ struct list_head clauses; /* list of bi_clause */ }; + + /* Control flow graph */ + struct set *predecessors; + struct bi_block *successors[2]; } bi_block; typedef struct {