261
|
1
|
269
|
2 """
|
270
|
3 Abstract assembly language instructions.
|
|
4
|
|
5 This is the second intermediate representation.
|
|
6
|
|
7 Instructions are selected and scheduled at this stage.
|
269
|
8 """
|
261
|
9
|
|
10
|
268
|
11 class AbstractInstruction:
|
261
|
12 """ Absract machine instruction """
|
268
|
13 def __init__(self, assem, src=(), dst=(), jumps=()):
|
|
14 self.assem = assem
|
|
15 self.src = tuple(src)
|
|
16 self.dst = tuple(dst)
|
|
17 self.jumps = tuple(jumps)
|
|
18
|
|
19 def __repr__(self):
|
|
20 return self.assem + str(self.src) + str(self.dst)
|
261
|
21
|
|
22
|