2010-06-18 14:00:58 +02:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Heptagon *)
|
|
|
|
(* *)
|
|
|
|
(* Author : Marc Pouzet *)
|
|
|
|
(* Organization : Demons, LRI, University of Paris-Sud, Orsay *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
open Misc
|
|
|
|
open Compiler_utils
|
|
|
|
|
|
|
|
let compile pp p =
|
|
|
|
(* Clocking *)
|
2010-07-26 15:34:46 +02:00
|
|
|
let p = do_silent_pass Clocking.program "Clocking" p true in
|
2010-06-18 14:00:58 +02:00
|
|
|
|
|
|
|
(* Check that the dataflow code is well initialized *)
|
2010-07-14 03:45:38 +02:00
|
|
|
(*let p = do_silent_pass Init.program "Initialization check" p !init in *)
|
2010-06-18 14:00:58 +02:00
|
|
|
|
2010-07-21 17:19:51 +02:00
|
|
|
(* Iterator fusion *)
|
|
|
|
let p = do_pass Itfusion.program "Iterator fusion" p pp true in
|
|
|
|
|
2010-06-18 14:00:58 +02:00
|
|
|
(* Normalization to maximize opportunities *)
|
2010-07-15 09:27:51 +02:00
|
|
|
let p = do_pass Normalize.program "Normalization" p pp true in
|
2010-06-26 16:53:25 +02:00
|
|
|
|
2010-06-18 14:00:58 +02:00
|
|
|
(* Scheduling *)
|
|
|
|
let p = do_pass Schedule.program "Scheduling" p pp true in
|
2010-06-26 16:53:25 +02:00
|
|
|
|
|
|
|
p
|