projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e83a275
)
add LSBaseSDNode::getOffset at Dan's request.
author
Chris Lattner
<sabre@nondot.org>
Mon, 25 Feb 2008 19:31:21 +0000
(19:31 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 25 Feb 2008 19:31:21 +0000
(19:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47558
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/SelectionDAGNodes.h
b/include/llvm/CodeGen/SelectionDAGNodes.h
index 6996c69545f7ba9dd6e9b0975d51155c2cdd0127..64c9fe3988e1abeee460f2e1b8bc9945c62a6616 100644
(file)
--- a/
include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/
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; }