comparison python/ppci/codegen/registerallocator.py @ 305:0615b5308710

Updated docs
author Windel Bouwman
date Fri, 06 Dec 2013 13:50:38 +0100
parents 6753763d3bec
children 2c9768114877
comparison
equal deleted inserted replaced
304:fa99f36fabb5 305:0615b5308710
32 self.coalescedMoves = set() 32 self.coalescedMoves = set()
33 self.constrainedMoves = set() 33 self.constrainedMoves = set()
34 self.frozenMoves = set() 34 self.frozenMoves = set()
35 self.activeMoves = set() 35 self.activeMoves = set()
36 self.worklistMoves = set() 36 self.worklistMoves = set()
37
38 def printLive(self):
39 print('Liveness:')
40 for i in self.f.instructions:
41 cfgn = self.f.cfg._map[i]
42 print(i, cfgn.live_in)
43 37
44 def Build(self): 38 def Build(self):
45 """ 1. Construct interference graph from instruction list """ 39 """ 1. Construct interference graph from instruction list """
46 self.f.cfg = FlowGraph(self.f.instructions) 40 self.f.cfg = FlowGraph(self.f.instructions)
47 self.f.ig = InterferenceGraph(self.f.cfg) 41 self.f.ig = InterferenceGraph(self.f.cfg)