aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-08-31 23:34:27 +0000
committerDale Johannesen <dalej@apple.com>2007-08-31 23:34:27 +0000
commit7604c1b5a616eccc909ae58daa6e7afd54fa2d71 (patch)
treeac0eb685f19e086a27ab59d3fe86795fec4fc977 /include/llvm/ADT
parentce77c41ada8d0ebe75d6e45d520314b72f4be260 (diff)
downloadexternal_llvm-7604c1b5a616eccc909ae58daa6e7afd54fa2d71.zip
external_llvm-7604c1b5a616eccc909ae58daa6e7afd54fa2d71.tar.gz
external_llvm-7604c1b5a616eccc909ae58daa6e7afd54fa2d71.tar.bz2
Add mod, copysign, abs operations to APFloat.
Implement some constant folding in SelectionDAG and DAGCombiner using APFloat. Remove double versions of constructor and getValue from ConstantFPSDNode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/APFloat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h
index a29f15c..be7b457 100644
--- a/include/llvm/ADT/APFloat.h
+++ b/include/llvm/ADT/APFloat.h
@@ -95,6 +95,7 @@
// APInt contains static functions implementing bignum arithmetic.
#include "llvm/ADT/APInt.h"
+#include "llvm/CodeGen/ValueTypes.h"
namespace llvm {
@@ -177,8 +178,11 @@ namespace llvm {
opStatus subtract(const APFloat &, roundingMode);
opStatus multiply(const APFloat &, roundingMode);
opStatus divide(const APFloat &, roundingMode);
+ opStatus mod(const APFloat &, roundingMode);
+ void copySign(const APFloat &);
opStatus fusedMultiplyAdd(const APFloat &, const APFloat &, roundingMode);
- void changeSign();
+ void changeSign(); // neg
+ void clearSign(); // abs
/* Conversions. */
opStatus convert(const fltSemantics &, roundingMode);