Crate midenc_compile

Source

Structs§

CodegenOutput
Compiler
Compile a program from WebAssembly or Miden IR, to Miden Assembly.
CompilerStopped
The compilation pipeline was stopped early
Context
Represents the shared state of the IR, used during a compilation session.
LinkOutput

Functions§

compile
Run the compiler using the provided [Session]
compile_link_output_to_masm
Lowers previously-generated pre-link outputs of the compiler to Miden Assembly/MAST.
compile_link_output_to_masm_with_pre_assembly_stage
Lowers previously-generated pre-link outputs of the compiler to Miden Assembly/MAST, but with an provided callback that will be used as an extra compiler stage just prior to assembly.
compile_to_memory
Same as compile, but return compiled artifacts to the caller
compile_to_memory_with_pre_assembly_stage
Same as compile_to_memory, but allows registering a callback which will be used as an extra compiler stage immediately after code generation and prior to assembly, if the linker was run.
compile_to_optimized_hir
Compile the current inputs without lowering to Miden Assembly.
compile_to_unoptimized_hir
Compile the current inputs without lowering to Miden Assembly and without any IR transformations.

Type Aliases§

CompilerResult