summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2018-03-14 17:22:40 +0100
committergnzlbg <gonzalobg88@gmail.com>2018-03-14 17:22:40 +0100
commit07ce659dd03523b526cb4804b9ef882f31e9ecf3 (patch)
tree59bfa5b8c609b58e320e827b79347fd466ffb797 /src/rustllvm/RustWrapper.cpp
parent01cc5b3e195bb01088fdd59638f0d8c6d0a78142 (diff)
downloadrust-07ce659dd03523b526cb4804b9ef882f31e9ecf3.tar.gz
rust-07ce659dd03523b526cb4804b9ef882f31e9ecf3.zip
expose ordered/unordered/nanless intirnsics
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
-rw-r--r--src/rustllvm/RustWrapper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rustllvm/RustWrapper.cpp b/src/rustllvm/RustWrapper.cpp
index e749549201e..9d5f9042f18 100644
--- a/src/rustllvm/RustWrapper.cpp
+++ b/src/rustllvm/RustWrapper.cpp
@@ -1397,6 +1397,7 @@ LLVMRustModuleCost(LLVMModuleRef M) {
 }
 
 // Vector reductions:
+#if LLVM_VERSION_GE(6, 0)
 extern "C" LLVMValueRef
 LLVMRustBuildVectorReduceFAdd(LLVMBuilderRef B, LLVMValueRef Acc, LLVMValueRef Src) {
     return wrap(unwrap(B)->CreateFAddReduce(unwrap(Acc),unwrap(Src)));
@@ -1441,3 +1442,4 @@ extern "C" LLVMValueRef
 LLVMRustBuildVectorReduceFMax(LLVMBuilderRef B, LLVMValueRef Src, bool NoNaN) {
   return wrap(unwrap(B)->CreateFPMaxReduce(unwrap(Src), NoNaN));
 }
+#endif