Struct disassemble::Function
[−]
[src]
pub struct Function<'f> { pub symbol: Symbol, pub instructions: Vec<Box<Instruction>>, pub basic_blocks: Vec<BasicBlock<'f>>, pub entry_block: Option<&'f BasicBlock<'f>>, }
A function within a program.
Fields
symbol: Symbol
instructions: Vec<Box<Instruction>>
The instructions that comprise this function.
basic_blocks: Vec<BasicBlock<'f>>
The basic blocks that comprise this function. These are algorithmically
determined from the instructions
via fn build_basic_blocks
.
The basic_blocks
of a Function
make up a control flow graph.
entry_block: Option<&'f BasicBlock<'f>>
The entry BasicBlock
for this function.
Methods
impl<'f> Function<'f>
[src]
fn build_basic_blocks(&'f mut self)
Build the actual basic blocks for this function.
This usually happens during construction of the Function
.