annotate python/irmach.py @ 266:649884d9dc61 Working chain 1

Test
author Windel Bouwman
date Fri, 09 Aug 2013 16:49:29 +0200
parents 444b9df2ed99
children 5ec7580976d9
rev   line source
261
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
1
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
2
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
3 class MachProgram:
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
4 pass
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
5
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
6
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
7 class MachFunction:
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
8 def __init__(self, name):
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
9 self.name = name
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
10 self.entry = None
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
11
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
12
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
13 class MachBlock:
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
14 def __init__(self):
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
15 self.instructions = []
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
16
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
17
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
18 class MachIns:
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
19 """ Absract machine instruction """
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
20 def __init__(self, mi):
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
21 self.mi = mi
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
22
444b9df2ed99 try to split up code generation
Windel Bouwman
parents:
diff changeset
23