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

Function isa_from_arch

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

Generate an ISA from an architecture string (e.g. "x86_64").

(arch: &str)

Source from the content-addressed store, hash-verified

25
26/// Generate an ISA from an architecture string (e.g. "x86_64").
27pub fn isa_from_arch(arch: &str) -> Result<isa::Isa, String> {
28 isa::Isa::from_arch(arch).ok_or_else(|| format!("no supported isa found for arch `{arch}`"))
29}
30
31/// Generates all the Rust source files used in Cranelift from the meta-language.
32pub fn generate_rust(isas: &[isa::Isa], out_dir: &std::path::Path) -> Result<(), error::Error> {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected