macro_rules! jit_asm_generic {
($builder_type:ty, $($method:ident($($args:expr),*);)*) => { ... };
}
Expand description
Generic JIT assembler macro - Reference implementation
This is a reference implementation that can be used by each architecture. Each architecture can provide their own specialized version by specifying the appropriate InstructionBuilder type.
Usage pattern for architecture-specific implementations:
#[macro_export]
macro_rules! arch_asm {
($($method:ident($($args:expr),*);)*) => {{
$crate::jit_asm_generic!(YourArchInstructionBuilder, $($method($($args),*);)*)
}};
}