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:
5ee9997
)
Add a utility function to test whether a load is unindexed.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 7 Mar 2007 08:04:41 +0000
(08:04 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 7 Mar 2007 08:04:41 +0000
(08:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35004
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 6576e5d17a443e5d96db94fcec18825476086ae8..336a9279cc136e70ccd5b339d03e958d22774b6f 100644
(file)
--- a/
include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/
include/llvm/CodeGen/SelectionDAGNodes.h
@@
-1620,6
+1620,13
@@
namespace ISD {
cast<LoadSDNode>(N)->getExtensionType() == ISD::ZEXTLOAD;
}
+ /// isUNINDEXEDLoad - Returns true if the specified node is a unindexed load.
+ ///
+ inline bool isUNINDEXEDLoad(const SDNode *N) {
+ return N->getOpcode() == ISD::LOAD &&
+ cast<LoadSDNode>(N)->getAddressingMode() == ISD::UNINDEXED;
+ }
+
/// isNON_TRUNCStore - Returns true if the specified node is a non-truncating
/// store.
inline bool isNON_TRUNCStore(const SDNode *N) {