annotate python/ppci/core/basicblock.py @ 114:f42268da614f
Connected to stm32f4discovery
author |
Windel Bouwman |
date |
Sat, 05 Jan 2013 19:07:14 +0100 |
parents |
9e552d34bd60 |
children |
|
rev |
line source |
110
|
1 from .value import Value
|
70
|
2
|
|
3 class BasicBlock(Value):
|
99
|
4 """
|
|
5 A basic block represents a sequence of instructions without
|
|
6 jumps and branches.
|
|
7 """
|
70
|
8 def __init__(self):
|
110
|
9 super().__init__()
|
|
10 self.instructions = []
|
|
11 self.name = None
|
|
12 def getInstructions(self):
|
|
13 return self.instructions
|
|
14 Instructions = property(getInstructions)
|
70
|
15
|