("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.
///
.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 {
"hexagon" => HEXAGON_WHITELIST,
"mips" | "mips64" => MIPS_WHITELIST,
"powerpc" | "powerpc64" => POWERPC_WHITELIST,
+ "wasm32" => WASM_WHITELIST,
_ => &[],
}
}