Mercurial > lcfOS
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/ir/basicblock.py Fri Feb 22 10:33:48 2013 +0100 @@ -0,0 +1,15 @@ +from .value import Value + +class BasicBlock(Value): + """ + A basic block represents a sequence of instructions without + jumps and branches. + """ + def __init__(self): + super().__init__() + self.instructions = [] + self.name = None + def getInstructions(self): + return self.instructions + Instructions = property(getInstructions) +