Expand description
MIR model re-exports and lowering wrappers.
MIR facade re-exported by the rukalang crate.
The canonical, detailed MIR documentation lives in the ruka_mir crate:
- source:
crates/ruka_mir/src/docs.md - rustdoc:
ruka_mircrate docs
This module intentionally stays minimal to avoid duplicated documentation.
Modules§
- browser_
graph - Browser-friendly MIR graph rendering for interactive viewers.
- lower
- HIR/check to MIR lowering wrappers.
- naming
- Stable naming helpers for MIR-based outputs. Stable naming helpers used by MIR browser graphs and backends.
Structs§
- Local
Info - Metadata tracked for each MIR local.
- MirAggregate
Arg - Single aggregate construction argument with explicit ownership mode.
- MirBlock
- Basic block in MIR CFG.
- MirBlock
Id - Basic block identifier in function-local MIR block storage.
- MirCall
Arg - Single call argument with explicit ownership mode.
- MirCall
ArgBinding - Shared call-argument query object used by validation and backends.
- MirEnum
Decl - Enum declaration retained for backend aggregate emission.
- MirEnum
Variant - Enum variant declaration for a MIR enum type.
- MirFunc
Id - Function identifier in MIR program storage.
- MirFunction
- Function-level MIR in CFG form.
- MirLocal
Id - Local identifier for MIR values/bindings/temps.
- MirParam
Binding - Shared parameter query object used by lowering and backends.
- MirProgram
- Whole-program MIR container.
- MirSource
Pos - Source position metadata captured for MIR instructions.
- MirStruct
Decl - Struct declaration retained for backend aggregate emission.
- MirStruct
Field - Named field declaration for a MIR struct type.
Enums§
- Local
Kind - Local provenance category.
- MirArg
Mode - Ownership mode used at MIR call sites.
- MirHeap
Ownership - Heap ownership policy carried by one MIR local.
- MirInstr
- MIR instruction set used by lowering and codegen.
- MirIntrinsic
- Builtin intrinsic operation invoked directly by generated code.
- MirLocal
Repr - Runtime/storage representation tracked for one MIR local.
- MirOwnership
Mode - Ownership mode carried into MIR from source function signatures.
- MirStmt
- Structured lowering helper form.
- MirTerminator
- Block terminator defining control-flow edges.
- MirType
Expr - Type syntax retained in MIR for emitted aggregate declarations.
Functions§
- infer_
heap_ ownership - Infer heap ownership policy from one local type and representation.