summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAG.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-13 22:30:09 +0000
committerChris Lattner <sabre@nondot.org>2011-02-13 22:30:09 +0000
commita18da59d4028a2e3f5751294e5f487281649299c (patch)
tree215e178865e803a43a819043afbc1397f6f13d79 /include/llvm/CodeGen/SelectionDAG.h
parent0a9481f44fe4fc76e59109992940a76b2a3f9b3b (diff)
downloadllvm-a18da59d4028a2e3f5751294e5f487281649299c.tar.gz
llvm-a18da59d4028a2e3f5751294e5f487281649299c.tar.bz2
llvm-a18da59d4028a2e3f5751294e5f487281649299c.tar.xz
missed a header
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125471 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAG.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index 136bdd5b4d..f1c9389656 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -970,6 +970,13 @@ public:
/// class to allow target nodes to be understood.
unsigned ComputeNumSignBits(SDValue Op, unsigned Depth = 0) const;
+ /// isBaseWithConstantOffset - Return true if the specified operand is an
+ /// ISD::ADD with a ConstantSDNode on the right-hand side, or if it is an
+ /// ISD::OR with a ConstantSDNode that is guaranteed to have the same
+ /// semantics as an ADD. This handles the equivalence:
+ /// X|Cst == X+Cst iff X&~Cst = 0.
+ bool isBaseWithConstantOffset(SDValue Op) const;
+
/// isKnownNeverNan - Test whether the given SDValue is known to never be NaN.
bool isKnownNeverNaN(SDValue Op) const;