From 2afddc4433f49eb44654a63b1406181ee3dc25d8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 3 Mar 2020 13:47:13 -0500 Subject: [PATCH] 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: --- src/panfrost/bifrost/compiler.h | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.30.2