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

Method wasm_simd

crates/wasmtime/src/config.rs:1064–1067  ·  view source on GitHub ↗

Configures whether the WebAssembly SIMD proposal will be enabled for compilation. The [WebAssembly SIMD proposal][proposal]. This feature gates items such as the `v128` type and all of its operators being in a module. Note that this does not enable the [relaxed simd proposal]. Note On x86_64 platforms the base CPU feature requirement for SIMD is SSE2 for the Cranelift compiler and AVX for the W

(&mut self, enable: bool)

Source from the content-addressed store, hash-verified

1062 /// [proposal]: https://github.com/webassembly/simd
1063 /// [relaxed simd proposal]: https://github.com/WebAssembly/relaxed-simd
1064 pub fn wasm_simd(&mut self, enable: bool) -> &mut Self {
1065 self.wasm_features(WasmFeatures::SIMD, enable);
1066 self
1067 }
1068
1069 /// Configures whether the WebAssembly Relaxed SIMD proposal will be
1070 /// enabled for compilation.

Callers 3

apply_test_configFunction · 0.45
newMethod · 0.45

Calls 1

wasm_featuresMethod · 0.80

Tested by

no test coverage detected