Module cranelift_codegen::write[][src]

Converting Cranelift IR to text.

The write module provides the write_function function which converts an IR Function to an equivalent textual form. This textual form can be read back by the cranelift-reader crate.

Structs

PlainWriter

A PlainWriter doesn't decorate the function

Traits

FuncWriter

A FuncWriter is used to decorate functions during printing

Functions

decorate_function

Writes 'func' to 'w' as text. write_function_plain is passed as 'closure' to print instructions as text. pretty_function_error is passed as 'closure' to add error decoration.

write_ebb_header

Write out the basic block header, outdented:

write_function

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

write_operands

Write the operands of inst to w with a prepended space.