Skip to content

Commit d90f7df

Browse files
committed
wasm: Register the relaxed-simd target feature
This WebAssembly proposal is likely to reach stage 4 soon so this starts the support in Rust for the proposal by adding a target feature that can be enabled via attributes for the stdarch project to bind the intrinsics.
1 parent 6e01157 commit d90f7df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_codegen_ssa/src/target_features.rs

+1
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ const WASM_ALLOWED_FEATURES: &[(&str, Option<Symbol>)] = &[
286286
("mutable-globals", Some(sym::wasm_target_feature)),
287287
("nontrapping-fptoint", Some(sym::wasm_target_feature)),
288288
("reference-types", Some(sym::wasm_target_feature)),
289+
("relaxed-simd", Some(sym::wasm_target_feature)),
289290
("sign-ext", Some(sym::wasm_target_feature)),
290291
("simd128", None),
291292
// tidy-alphabetical-end

0 commit comments

Comments
 (0)