diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-07 19:08:40 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-09 21:55:29 +0200 |
| commit | 5c95f5fa6b6024ea0b8ed162e5d2c46c41aea1b0 (patch) | |
| tree | b4adf84eda41c22a58c084917b9a893dc8df9659 /src/librustc_codegen_llvm/llvm | |
| parent | 8789c9e59596c5f89c6be6b82a880e016d6c2f31 (diff) | |
| download | rust-5c95f5fa6b6024ea0b8ed162e5d2c46c41aea1b0.tar.gz rust-5c95f5fa6b6024ea0b8ed162e5d2c46c41aea1b0.zip | |
Fix float add/mul reduction codegen
The accumulator is now respected for unordered reductions.
Diffstat (limited to 'src/librustc_codegen_llvm/llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/llvm/ffi.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/llvm/ffi.rs b/src/librustc_codegen_llvm/llvm/ffi.rs index 75f639ec3ec..4bf0faa1ec3 100644 --- a/src/librustc_codegen_llvm/llvm/ffi.rs +++ b/src/librustc_codegen_llvm/llvm/ffi.rs @@ -715,6 +715,7 @@ extern "C" { // Operations on scalar constants pub fn LLVMConstInt(IntTy: &Type, N: c_ulonglong, SignExtend: Bool) -> &Value; pub fn LLVMConstIntOfArbitraryPrecision(IntTy: &Type, Wn: c_uint, Ws: *const u64) -> &Value; + pub fn LLVMConstReal(RealTy: &Type, N: f64) -> &Value; pub fn LLVMConstIntGetZExtValue(ConstantVal: &Value) -> c_ulonglong; pub fn LLVMRustConstInt128Get(ConstantVal: &Value, SExt: bool, high: &mut u64, low: &mut u64) -> bool; |
