aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-09-24 10:25:02 +0000
committerBill Wendling <isanbard@gmail.com>2008-09-24 10:25:02 +0000
commit0445c4c532ae56f12727165e35ddd0cb31ba0234 (patch)
tree4997866dfe170878ec62f63b2eecd6b484698f7a /include/llvm
parent16bc18cdd116afa48ba7c6c35f6213c0972c184a (diff)
downloadexternal_llvm-0445c4c532ae56f12727165e35ddd0cb31ba0234.zip
external_llvm-0445c4c532ae56f12727165e35ddd0cb31ba0234.tar.gz
external_llvm-0445c4c532ae56f12727165e35ddd0cb31ba0234.tar.bz2
Reapplying r56550
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56553 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index 95c30c6..6ca8a8c 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -697,9 +697,15 @@ public:
/// at least that alignment.
SDValue CreateStackTemporary(MVT VT, unsigned minAlign = 1);
+ /// FoldConstantArithmetic -
+ SDValue FoldConstantArithmetic(unsigned Opcode,
+ MVT VT,
+ ConstantSDNode *Cst1,
+ ConstantSDNode *Cst2);
+
/// FoldSetCC - Constant fold a setcc to true or false.
SDValue FoldSetCC(MVT VT, SDValue N1,
- SDValue N2, ISD::CondCode Cond);
+ SDValue N2, ISD::CondCode Cond);
/// SignBitIsZero - Return true if the sign bit of Op is known to be zero. We
/// use this predicate to simplify operations downstream.