[llvm-commits] [llvm] r125471 - /llvm/trunk/include/llvm/CodeGen/SelectionDAG.h

Chris Lattner sabre at nondot.org
Sun Feb 13 14:30:09 PST 2011


Author: lattner
Date: Sun Feb 13 16:30:09 2011
New Revision: 125471

URL: http://llvm.org/viewvc/llvm-project?rev=125471&view=rev
Log:
missed a header

Modified:
    llvm/trunk/include/llvm/CodeGen/SelectionDAG.h

Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAG.h?rev=125471&r1=125470&r2=125471&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAG.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAG.h Sun Feb 13 16:30:09 2011
@@ -970,6 +970,13 @@
   /// 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;
 





More information about the llvm-commits mailing list