diff python/ir/instruction.py @ 262:ed14e077124c

Added conditional branch instructions
author Windel Bouwman
date Fri, 09 Aug 2013 11:30:11 +0200
parents 444b9df2ed99
children f8b5da5784b8
line wrap: on
line diff
--- a/python/ir/instruction.py	Fri Aug 09 09:05:13 2013 +0200
+++ b/python/ir/instruction.py	Fri Aug 09 11:30:11 2013 +0200
@@ -37,6 +37,7 @@
             use_ins.replaceValue(self, v2.value)
         assert not self.Used
 
+
 class Variable(Value):
     pass
 
@@ -98,6 +99,7 @@
     Parent = property(getParent, setParent)
 
     def replaceValue(self, old, new):
+        # TODO: make this a generic function
         raise NotImplementedError('{}'.format(type(self)))
 
     @property
@@ -187,6 +189,7 @@
     def __repr__(self):
         return '{} = {}'.format(self.target, self.value)
 
+
 # Data operations
 class BinaryOperator(Instruction):
     def __init__(self, result, operation, value1, value2):