X-Git-Url: http://git.joshuawise.com/snipe.git/blobdiff_plain/075222c771a121b12d6f07f39af868ae14cd06a1..5e46186e8e7b8f4d9a28cb95954d8a75b6b34f81:/codegen/coloring.sml diff --git a/codegen/coloring.sml b/codegen/coloring.sml index fc5fdf7..4201c26 100644 --- a/codegen/coloring.sml +++ b/codegen/coloring.sml @@ -8,7 +8,7 @@ signature COLORIZER = sig structure OperSet : ORD_SET - where type Key.ord_key = x86.basicop + where type Key.ord_key = Blarg.oper structure LiveMap : ORD_MAP where type Key.ord_key = int structure TempMap : ORD_MAP @@ -31,7 +31,7 @@ struct 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 @@ -70,7 +70,7 @@ struct colorized) @ (List.map (fn X.REG a => X.regtonum a - | loss => raise ErrorMsg.InternalError ("Bad kind of specreg " ^ (X.pp_oper (loss, Temp.Long)))) + | 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 =