Expand description
Xur’s bytecode, and lowering resolved syntax to it.
Each function becomes a control-flow graph of basic blocks over virtual
registers (see ir). The shape is close to Cranelift’s IR, so a JIT can
later compile the same code the interpreter runs.
Re-exports§
pub use ir::Block;pub use ir::BlockId;pub use ir::Constant;pub use ir::DefRef;pub use ir::Function;pub use ir::Inst;pub use ir::InstKind;pub use ir::Reg;pub use ir::RtType;pub use ir::Terminator;pub use ir::TypeArg;
Modules§
- ir
- The instruction set.
Structs§
- Item
Index - Every function, constant and constructor of the loaded modules, by definition. Updated as modules are imported.
Enums§
- ItemRef
- What lowering needs to know about a definition.
Functions§
- display_
function - Lists
functionand the closures it creates. - lower
- Lowers the function or constant
def, or returnsNoneifdefis neither. A constant lowers to a function without parameters that computes its value.