Mercurial > lcfOS
diff python/ir/instruction.py @ 176:5fd02aa38b42
Added while loop code generation
author | Windel Bouwman |
---|---|
date | Sat, 20 Apr 2013 12:00:51 +0200 |
parents | a51b3c956386 |
children | 460db5669efa |
line wrap: on
line diff
--- a/python/ir/instruction.py Fri Apr 19 22:15:54 2013 +0200 +++ b/python/ir/instruction.py Sat Apr 20 12:00:51 2013 +0200 @@ -6,15 +6,9 @@ def __init__(self, name): # TODO: add typing? for now only handle integers self.name = name - self.interferes = set() - self.reg = None self.used_by = [] def __repr__(self): - if self.reg: - n = self.reg - else: - n = self.name - return '{0}'.format(n) # + str(self.IsUsed) + return '{0}'.format(self.name) # + str(self.IsUsed) @property def IsUsed(self): return len(self.used_by) > 0