diff python/ir/instruction.py @ 160:10330be89bc2

Started from scratch with code edit
author Windel Bouwman
date Sat, 09 Mar 2013 11:56:48 +0100
parents 9683a4cd848f
children 4348da5ca307
line wrap: on
line diff
--- a/python/ir/instruction.py	Fri Mar 08 17:16:22 2013 +0100
+++ b/python/ir/instruction.py	Sat Mar 09 11:56:48 2013 +0100
@@ -36,6 +36,13 @@
    def __repr__(self):
       return 'load {0} = {1}'.format(self.name, self.value)
 
+class StoreInstruction(Instruction):
+   def __init__(self, name, value):
+      self.name = name
+      self.value = value
+   def __repr__(self):
+      return 'store {0}'.format(self.name)
+
 class BranchInstruction(Instruction):
    def __init__(self, t1, t2):
       self.t1 = t1