From 3c2d40f55db9527d35b7ef2f1a25dfc82a19a842 Mon Sep 17 00:00:00 2001 From: Paweł Dybiec Date: Sun, 23 Dec 2018 17:09:57 +0100 Subject: Start of regalloc --- source/xi_lib/iface.ml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/xi_lib/iface.ml') diff --git a/source/xi_lib/iface.ml b/source/xi_lib/iface.ml index 04658e0..6f139f6 100644 --- a/source/xi_lib/iface.ml +++ b/source/xi_lib/iface.ml @@ -64,6 +64,12 @@ module type CALLCONV = sig end +module type REGISTER_COALESCING = sig + + val coalesce: Ir.procedure -> Ir.RegGraph.t -> Ir.reg list -> bool + +end + module type REGISTER_ALLOCATOR = sig val regalloc: Ir.procedure -> register_mapping @@ -168,6 +174,8 @@ module type COMPILER_TOOLBOX = sig module Spilling : SPILLING module ReachabilityAnalysis : REACHABILITY_ANALYSIS + + module RegisterCoalescing: REGISTER_COALESCING end -- cgit 1.4.1