Module cretonne::prelude::codegen[][src]

Cretonne code generation library.

Modules

bforest

A forest of B+-trees.

binemit

Binary machine code emission.

cfg_printer

The CFGPrinter utility.

cursor

Cursor library.

dbg

Debug tracing macros.

dominator_tree

A Dominator Tree represented as mappings of Ebbs 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 extended basic blocks to their predecessors and successors.

ir

Representation of Cretonne IR functions.

isa

Instruction Set Architectures.

loop_analysis

A loop analysis represented as mappings of loops to their header Ebb 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:

Structs

Context

Persistent data structures and compilation pipeline.

Enums

CodegenError

A compilation error.

Constants

VERSION

Version number of the cretonne-codegen crate.

Functions

legalize_function

Legalize func for isa.

write_function

Write func to w as equivalent text. Use isa to emit ISA-dependent annotations.

Type Definitions

CodegenResult

A convenient alias for a Result that uses CodegenError as the error type.