Struct cardinal_codegen::function::Function [−][src]
pub struct Function {
pub variables: HashMap<String, AbiType>,
pub blocks: Vec<InstBlock>,
pub name: String,
pub signature: FunctionSignature,
}Fields
variables: HashMap<String, AbiType>blocks: Vec<InstBlock>A list of that blocks that may store instructions.
name: StringThe name of the Function, used at compile time to generate correct code.
signature: FunctionSignatureThe signature that the function uses.
Implementations
Creates a new function from the given name and signature.
Declares a variable at the start of the function.
Creates a new empty block.