llvm.org GIT mirror llvm / 63602b8
add LSBaseSDNode::getOffset at Dan's request. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47558 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
16371637 const SDOperand &getBasePtr() const {
16381638 return getOperand(getOpcode() == ISD::LOAD ? 1 : 2);
16391639 }
1640 const SDOperand &getOffset() const {
1641 return getOperand(getOpcode() == ISD::LOAD ? 2 : 3);
1642 }
16401643
16411644 const Value *getSrcValue() const { return SrcValue; }
16421645 int getSrcValueOffset() const { return SVOffset; }