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

Function define

cranelift/codegen/meta/src/isa/mod.rs:71–81  ·  view source on GitHub ↗
(isas: &[Isa])

Source from the content-addressed store, hash-verified

69}
70
71pub(crate) fn define(isas: &[Isa]) -> Vec<TargetIsa> {
72 isas.iter()
73 .map(|isa| match isa {
74 Isa::X86 => x86::define(),
75 Isa::Arm64 => arm64::define(),
76 Isa::S390x => s390x::define(),
77 Isa::Riscv64 => riscv64::define(),
78 Isa::Pulley32 | Isa::Pulley64 => pulley::define(),
79 })
80 .collect()
81}

Callers 5

generate_rustFunction · 0.50
generate_isleFunction · 0.50
generateFunction · 0.50

Calls 3

collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected