summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-25 19:31:21 +0000
committerChris Lattner <sabre@nondot.org>2008-02-25 19:31:21 +0000
commit451aea8e8168d7d7e4155f1bc3d3df6a304a5db9 (patch)
tree9e6f828d0d9a8a23e46cbbb512e0d8c4f01d9dbf
parent548677022ce365d6c0fddadf91a34b4df9611853 (diff)
downloadbcm5719-llvm-451aea8e8168d7d7e4155f1bc3d3df6a304a5db9.tar.gz
bcm5719-llvm-451aea8e8168d7d7e4155f1bc3d3df6a304a5db9.zip
add LSBaseSDNode::getOffset at Dan's request.
llvm-svn: 47558
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAGNodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 6996c69545f..64c9fe3988e 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1638,6 +1638,9 @@ public:
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; }
OpenPOWER on IntegriCloud