Files
wasmtime/cranelift/codegen
Benjamin Bouvier ff37c9d8a4 [cranelift] Rejigger the compile API (#4540)
* Move `emit_to_memory` to `MachCompileResult`

This small refactoring makes it clearer to me that emitting to memory
doesn't require anything else from the compilation `Context`. While it's
a trivial change, it's a small public API change that shouldn't cause
too much trouble, and doesn't seem RFC-worthy. Happy to hear different
opinions about this, though!

* hide the MachCompileResult behind a method

* Add a `CompileError` wrapper type that references a `Function`

* Rename MachCompileResult to CompiledCode

* Additionally remove the last unsafe API in cranelift-codegen
2022-08-02 12:05:40 -07:00
..
2021-10-10 14:19:08 +02:00
2022-07-25 22:01:02 +00:00
2022-07-07 12:54:39 -07:00

This crate contains the core Cranelift code generator. It translates code from an intermediate representation into executable machine code.