MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / generate_isle_for_assembler

Function generate_isle_for_assembler

cranelift/codegen/meta/src/lib.rs:105–112  ·  view source on GitHub ↗

Generate the ISLE definitions; this provides ISLE glue to access the assembler instructions in [cranelift_assembler_x64_meta].

(
    insts: &[cranelift_assembler_x64_meta::dsl::Inst],
    isle_dir: &std::path::Path,
)

Source from the content-addressed store, hash-verified

103/// Generate the ISLE definitions; this provides ISLE glue to access the
104/// assembler instructions in [cranelift_assembler_x64_meta].
105fn generate_isle_for_assembler(
106 insts: &[cranelift_assembler_x64_meta::dsl::Inst],
107 isle_dir: &std::path::Path,
108) -> Result<(), error::Error> {
109 let mut fmt = Formatter::new(Language::Isle);
110 gen_asm::generate_isle(&mut fmt, insts);
111 fmt.write("assembler.isle", isle_dir)
112}
113
114/// Generate a macro containing builder functions for the assembler's ISLE
115/// constructors; this provides Rust implementations backing up the ISLE

Callers 1

generateFunction · 0.85

Calls 3

generate_isleFunction · 0.70
newFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected