pan/bi: Add pred/successors to build CFG
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 3 Mar 2020 18:47:13 +0000 (13:47 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 5 Mar 2020 14:35:38 +0000 (14:35 +0000)
We'll want this for analysis passes or something, probably.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4061>

src/panfrost/bifrost/compiler.h

index a010cb896d1dfa3bce9bfb44dc2a1cb4356f682d..7af4d39bf403043c5f304a62b4e2c8132d02a104 100644 (file)
@@ -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 {