comparison python/ir/basicblock.py @ 258:04c19282a5aa

Added register allocator
author Windel Bouwman
date Mon, 05 Aug 2013 19:46:11 +0200
parents c4370696ccc7
children 5ec7580976d9
comparison
equal deleted inserted replaced
257:703321743e8a 258:04c19282a5aa
53 if self in bb.Successors: 53 if self in bb.Successors:
54 preds.append(bb) 54 preds.append(bb)
55 return preds 55 return preds
56 Predecessors = property(getPredecessors) 56 Predecessors = property(getPredecessors)
57 57
58 def precedes(self, other):
59 raise NotImplementedError()
60
58 def check(self): 61 def check(self):
59 for ins in self.Instructions: 62 for ins in self.Instructions:
60 ins.check() 63 ins.check()
61 64