提交 32a36d8f 编写于 作者: G gnzlbg

white list MMX and MSA target features

上级 ea51b19d
......@@ -85,7 +85,7 @@ unsafe fn configure_llvm(sess: &Session) {
"avx512dq\0", "avx512er\0",
"avx512f\0", "avx512ifma\0",
"avx512pf\0", "avx512vbmi\0",
"avx512vl\0", "avx512vpopcntdq\0"];
"avx512vl\0", "avx512vpopcntdq\0", "mmx\0"];
const HEXAGON_WHITELIST: &'static [&'static str] = &["hvx\0", "hvx-double\0"];
......@@ -94,6 +94,8 @@ unsafe fn configure_llvm(sess: &Session) {
"power8-vector\0", "power9-vector\0",
"vsx\0"];
const MIPS_WHITELIST: &'static [&'static str] = &["msa\0"];
pub fn target_features(sess: &Session) -> Vec<Symbol> {
let target_machine = create_target_machine(sess);
......@@ -102,6 +104,7 @@ pub fn target_features(sess: &Session) -> Vec<Symbol> {
"aarch64" => AARCH64_WHITELIST,
"x86" | "x86_64" => X86_WHITELIST,
"hexagon" => HEXAGON_WHITELIST,
"mips" | "mips64" => MIPS_WHITELIST,
"powerpc" | "powerpc64" => POWERPC_WHITELIST,
_ => &[],
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册