Expand description
Cranelift code generation library.
Modules§
- bforest
- A forest of B+-trees.
- binemit
- Binary machine code emission.
- cfg_
printer - The
CFGPrinterutility. - cursor
- Cursor library.
- data_
value - This module gives users to instantiate values that Cranelift understands. These values are used, for example, during interpretation and for wrapping immediates.
- dbg
- Debug tracing helpers.
- dominator_
tree - A Dominator Tree represented as mappings of Blocks to their immediate dominator.
- entity
- Array-based data structures using densely numbered entity references as mapping keys.
- flowgraph
- A control flow graph represented as mappings of basic blocks to their predecessors and successors.
- ir
- Representation of Cranelift IR functions.
- isa
- Instruction Set Architectures.
- loop_
analysis - A loop analysis represented as mappings of loops to their header Block and parent in the loop tree.
- print_
errors - Utility routines for pretty-printing error messages.
- settings
- Shared settings module.
- timing
- Pass timing.
- verifier
- A verifier for ensuring that functions are well formed. It verifies:
- write
- Converting Cranelift IR to text.
Structs§
- Context
- Persistent data structures and compilation pipeline.
- Mach
Call Site - A call site record resulting from a compilation.
- Mach
Reloc - A relocation resulting from a compilation.
- Mach
SrcLoc - A source-location mapping resulting from a compilation.
- Mach
Stack Map - Record of stack map metadata: stack offsets containing references.
- Mach
Trap - A trap record resulting from a compilation.
- Value
LocRange - Value location range.
Enums§
- Codegen
Error - A compilation error.
Constants§
- VERSION
- Version number of this crate.
Traits§
- Text
Section Builder - An object that can be used to create the text section of an executable.
Functions§
- verify_
function - Verify
func. - write_
function - Write
functowas equivalent text. Useisato emit ISA-dependent annotations.
Type Aliases§
- Codegen
Result - A convenient alias for a
Resultthat usesCodegenErroras the error type. - Value
Labels Ranges - Resulting map of Value labels and their ranges/locations.