Expand description
ir contains the intermediate representation (IR) that programs using this crate
interface with, as well as a builder struct to create the intermediate representation.
Structs§
- Basic
Block Id BasicBlockIdrepresents a reference to a basic block in an IR function. SeeModuleBuilder::push_blockfor details on what a basic block is.- Function
Id FunctionIdrepresents a reference to a function in IR.- Module
Modulerepresents a module of SSA intermediate representation.- Module
Builder ModuleBuilderis used to build a module.- Module
Creation Error ModuleCreationErrorrepresents an error in module creation.- Value
Valuerepresents a reference to a value in an IR function.- Variable
Id VariableIdrepresents a reference to a variable in an IR function.
Enums§
- Linkage
Linkageis the linkage for a given [Function].- Module
Creation Error Type ModuleCreationErrorTyperepresents an error in module creation.- Operation
Operationis an operation that can be performed by the IR.- Terminator
Terminatorterminates a given basic block. For information on basic blocks, seeModuleBuilder::push_block.- Type
Typerepresents a type in the IR.
Traits§
- ToInteger
Operation ToIntegerOperationconverts the given value into an integer operation.