Crate cretonne_codegen[][src]

Cretonne code generation library.

Re-exports

pub extern crate cretonne_entity as entity;
pub use verifier::verify_function;

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.

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.

packed_option

Compact representation of Option<T> for types with a reserved value.

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:

Macros

dbg

Write a line to the debug trace file if tracing is enabled.

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.