Use the meta language encoding recipes to generate an emit_inst() function for each ISA. The generated calls into recipe_*() functions that must be implemented by hand. Implement recipe_*() functions for the RISC-V recipes. Add the TargetIsa::emit_inst() entry point which emits an instruction to a CodeSink trait object.
7 lines
164 B
Rust
7 lines
164 B
Rust
//! Emitting binary ARM32 machine code.
|
|
|
|
use binemit::{CodeSink, bad_encoding};
|
|
use ir::{Function, Inst};
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/binemit-arm32.rs"));
|