diff options
author | Owen Anderson <resistor@mac.com> | 2012-08-13 23:32:49 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2012-08-13 23:32:49 +0000 |
commit | 7c626d30974c632ab500171ff185a24bcf2603bf (patch) | |
tree | c8376ef145853a72e22753cb83b46218bebf45a3 /include | |
parent | 03e593efc65807dad7ca8807554584fcb89f40f1 (diff) | |
download | external_llvm-7c626d30974c632ab500171ff185a24bcf2603bf.zip external_llvm-7c626d30974c632ab500171ff185a24bcf2603bf.tar.gz external_llvm-7c626d30974c632ab500171ff185a24bcf2603bf.tar.bz2 |
Add a roundToIntegral method to APFloat, which can be parameterized over various rounding modes. Use this to implement SelectionDAG constant folding of FFLOOR, FCEIL, and FTRUNC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/APFloat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 2b466f9..5a625a4 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -274,6 +274,7 @@ namespace llvm { /* C fmod, or llvm frem. */ opStatus mod(const APFloat &, roundingMode); opStatus fusedMultiplyAdd(const APFloat &, const APFloat &, roundingMode); + opStatus roundToIntegral(roundingMode); /* Sign operations. */ void changeSign(); |