signature COLORIZER =
sig
structure OperSet : ORD_SET
- where type Key.ord_key = x86.oper
+ where type Key.ord_key = Blarg.oper
structure LiveMap : ORD_MAP
where type Key.ord_key = int
structure TempMap : ORD_MAP
type colorlist = (Temp.temp * int) list
type igraph = OperSet.set TempMap.map
- structure X = x86
+ structure X = Blarg
(* val color_single : igraph -> Temp.temp * colorlist -> colorlist
* color_single graph (temp, regs) => takes an interference graph, the temp to be colored, and the
colorized)
@ (List.map
(fn X.REG a => X.regtonum a
- | loss => raise ErrorMsg.InternalError ("Bad kind of specreg " ^ (X.prettyprint_oper X.Long loss )))
+ | loss => raise ErrorMsg.InternalError ("Bad kind of specreg " ^ (X.pp_oper loss)))
fixeds)
(* Greedy-colorize -- pick the lowest number that isn't used by a neighbor *)
fun greedy i l =