diff options
| author | gnzlbg <gnzlbg@users.noreply.github.com> | 2018-08-08 01:39:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-08 01:39:52 +0200 |
| commit | 5ce865e1c46ae0de15320076b49f53db8de3aab0 (patch) | |
| tree | ce81cf9e5aa89c63842287b4ebf8504168b2a0cb | |
| parent | e90dc6f80d76c94a5b1b13d464d1de7e18a05d05 (diff) | |
| download | rust-5ce865e1c46ae0de15320076b49f53db8de3aab0.tar.gz rust-5ce865e1c46ae0de15320076b49f53db8de3aab0.zip | |
Add wasm32 simd128 target feature
| -rw-r--r-- | src/librustc_codegen_llvm/llvm_util.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs index 441fff5f08c..ff26e0f35f0 100644 --- a/src/librustc_codegen_llvm/llvm_util.rs +++ b/src/librustc_codegen_llvm/llvm_util.rs @@ -169,6 +169,10 @@ const MIPS_WHITELIST: &[(&str, Option<&str>)] = &[ ("msa", Some("mips_target_feature")), ]; +const WASM_WHITELIST: &[(&str, Option<&str>)] = &[ + ("simd128", Some("wasm_target_feature")), +]; + /// When rustdoc is running, provide a list of all known features so that all their respective /// primtives may be documented. /// @@ -181,6 +185,7 @@ pub fn all_known_features() -> impl Iterator<Item=(&'static str, Option<&'static .chain(HEXAGON_WHITELIST.iter().cloned()) .chain(POWERPC_WHITELIST.iter().cloned()) .chain(MIPS_WHITELIST.iter().cloned()) + .chain(WASM_WHITELIST.iter().cloned()) } pub fn to_llvm_feature<'a>(sess: &Session, s: &'a str) -> &'a str { @@ -228,6 +233,7 @@ pub fn target_feature_whitelist(sess: &Session) "hexagon" => HEXAGON_WHITELIST, "mips" | "mips64" => MIPS_WHITELIST, "powerpc" | "powerpc64" => POWERPC_WHITELIST, + "wasm32" => WASM_WHITELIST, _ => &[], } } |
