X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FGraphBase.hs;h=b980ba22617cb8ee3e904605ba6a9b5202d01d76;hb=8672676c20d5c9a268a8f07dc7aa706df4ca315f;hp=efc59b947859d1c68b63e1bdcb8016047facb77f;hpb=0f7d268d00795a58a06ae3c92ebbd14571295b84;p=ghc-hetmet.git diff --git a/compiler/nativeGen/GraphBase.hs b/compiler/nativeGen/GraphBase.hs index efc59b9..b980ba2 100644 --- a/compiler/nativeGen/GraphBase.hs +++ b/compiler/nativeGen/GraphBase.hs @@ -1,5 +1,6 @@ -- | Types for the general graph colorer. + module GraphBase ( Triv, Graph (..), @@ -45,6 +46,7 @@ data Graph k cls color graphMap :: UniqFM (Node k cls color) } -- | An empty graph. +initGraph :: Graph k cls color initGraph = Graph { graphMap = emptyUFM } @@ -80,7 +82,7 @@ data Node k cls color , nodeConflicts :: UniqSet k -- | Colors that cannot be used by this node. - , nodeExclusions :: UniqSet color + , nodeExclusions :: UniqSet color -- | Colors that this node would prefer to be, in decending order. , nodePreference :: [color]