From b431bdeb59e69df41cd98fadea49968d224493ee Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 31 Aug 2020 22:37:44 +0100 Subject: Add working partitioning algorithm --- src/hls/RTLBlock.v | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/hls/RTLBlock.v') diff --git a/src/hls/RTLBlock.v b/src/hls/RTLBlock.v index 2aaa010..a1c3f25 100644 --- a/src/hls/RTLBlock.v +++ b/src/hls/RTLBlock.v @@ -41,7 +41,8 @@ Inductive control_flow_inst : Type := builtin_res reg -> node -> control_flow_inst | RBcond : condition -> list reg -> node -> node -> control_flow_inst | RBjumptable : reg -> list node -> control_flow_inst -| RBreturn : option reg -> control_flow_inst. +| RBreturn : option reg -> control_flow_inst +| RBgoto : node -> control_flow_inst. Record bblock : Type := mk_bblock { bb_body: bblock_body; @@ -76,4 +77,5 @@ Definition successors_instr (i : control_flow_inst) : list node := | RBcond cond args ifso ifnot => ifso :: ifnot :: nil | RBjumptable arg tbl => tbl | RBreturn optarg => nil + | RBgoto n => n :: nil end. -- cgit