Mercurial > lcfOS
comparison python/ir/basicblock.py @ 147:4e79484a9d47
Moved core to ir folder
author | Windel Bouwman |
---|---|
date | Fri, 22 Feb 2013 10:33:48 +0100 |
parents | python/ppci/core/basicblock.py@9e552d34bd60 |
children |
comparison
equal
deleted
inserted
replaced
146:91af0e40f868 | 147:4e79484a9d47 |
---|---|
1 from .value import Value | |
2 | |
3 class BasicBlock(Value): | |
4 """ | |
5 A basic block represents a sequence of instructions without | |
6 jumps and branches. | |
7 """ | |
8 def __init__(self): | |
9 super().__init__() | |
10 self.instructions = [] | |
11 self.name = None | |
12 def getInstructions(self): | |
13 return self.instructions | |
14 Instructions = property(getInstructions) | |
15 |