[llvm-commits] [llvm] r47558 - /llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Chris Lattner sabre at nondot.org
Mon Feb 25 11:31:21 PST 2008


Author: lattner
Date: Mon Feb 25 13:31:21 2008
New Revision: 47558

URL: http://llvm.org/viewvc/llvm-project?rev=47558&view=rev
Log:
add LSBaseSDNode::getOffset at Dan's request.


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

Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=47558&r1=47557&r2=47558&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Mon Feb 25 13:31:21 2008
@@ -1638,6 +1638,9 @@
   const SDOperand &getBasePtr() const {
     return getOperand(getOpcode() == ISD::LOAD ? 1 : 2);
   }
+  const SDOperand &getOffset() const {
+    return getOperand(getOpcode() == ISD::LOAD ? 2 : 3);
+  }
 
   const Value *getSrcValue() const { return SrcValue; }
   int getSrcValueOffset() const { return SVOffset; }





More information about the llvm-commits mailing list