commit | 7c626d30974c632ab500171ff185a24bcf2603bf | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Mon Aug 13 23:32:49 2012 +0000 |
committer | Owen Anderson <resistor@mac.com> | Mon Aug 13 23:32:49 2012 +0000 |
tree | c8376ef145853a72e22753cb83b46218bebf45a3 | |
parent | 03e593efc65807dad7ca8807554584fcb89f40f1 [diff] |
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