Mercurial > lcfOS
view python/ir/basicblock.py @ 151:afc8c0207984
Added ir code generator stub
author | Windel Bouwman |
---|---|
date | Fri, 01 Mar 2013 17:13:56 +0100 |
parents | 4e79484a9d47 |
children |
line wrap: on
line source
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)