提交 bae663b2 编写于 作者: L Luca Barbato

Add support for the VSX and Altivec features on PowerPC

上级 e185c6c3
......@@ -80,6 +80,8 @@ unsafe fn configure_llvm(sess: &Session) {
const HEXAGON_WHITELIST: &'static [&'static str] = &["hvx\0", "hvx-double\0"];
const POWERPC_WHITELIST: &'static [&'static str] = &["altivec\0", "vsx\0"];
pub fn target_features(sess: &Session) -> Vec<Symbol> {
let target_machine = create_target_machine(sess);
......@@ -87,6 +89,7 @@ pub fn target_features(sess: &Session) -> Vec<Symbol> {
"arm" => ARM_WHITELIST,
"x86" | "x86_64" => X86_WHITELIST,
"hexagon" => HEXAGON_WHITELIST,
"powerpc" | "powerpc64" => POWERPC_WHITELIST,
_ => &[],
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册