From ab520acd80f7d39aa14fdda6932accbb2a787ebf Mon Sep 17 00:00:00 2001 From: Léo Gourdin Date: Wed, 19 May 2021 12:47:22 +0200 Subject: Grouping common RTL functions, printer improvement --- common/DebugPrint.ml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'common/DebugPrint.ml') diff --git a/common/DebugPrint.ml b/common/DebugPrint.ml index 6f8449ee..021ea5c0 100644 --- a/common/DebugPrint.ml +++ b/common/DebugPrint.ml @@ -1,6 +1,7 @@ open Maps open Camlcoq open Registers +open AuxTools let debug_flag = ref false @@ -128,10 +129,7 @@ end let print_instructions insts code = - let get_some = function - | None -> failwith "Did not get some" - | Some thing -> thing - in if (!debug_flag) then begin + if (!debug_flag) then begin debug "[ "; List.iter ( fun n -> (PrintRTL.print_instruction stdout (P.to_int n, get_some @@ PTree.get n code)) -- cgit From 0efe7783c50d72858352fda93d30e0f52792d658 Mon Sep 17 00:00:00 2001 From: Léo Gourdin Date: Mon, 24 May 2021 10:07:52 +0200 Subject: Moving common tools, adding liveness input/output information to BTL generation oracle --- common/DebugPrint.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/DebugPrint.ml') diff --git a/common/DebugPrint.ml b/common/DebugPrint.ml index 021ea5c0..d94b31d8 100644 --- a/common/DebugPrint.ml +++ b/common/DebugPrint.ml @@ -1,7 +1,7 @@ open Maps open Camlcoq open Registers -open AuxTools +open RTLcommonaux let debug_flag = ref false -- cgit