diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-10-06 08:09:29 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-10-06 08:09:29 +0000 |
commit | 186edc8fa13d0e02d3c17563ad2bd78ac5963a67 (patch) | |
tree | 910e383e2715a29fe5a284a4a4042d9eb1f87708 | |
parent | 92f7e8d92581e031beeee3dc6c170f5c2cc7ea18 (diff) |
Oops. Forgot this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42691 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index e153ee927a..fe4891f159 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1651,6 +1651,16 @@ struct ilist_traits<SDNode> { }; namespace ISD { + /// isNormalLoad - Returns true if the specified node is a non-extending + /// and unindexed load. + inline bool isNormalLoad(const SDNode *N) { + if (N->getOpcode() != ISD::LOAD) + return false; + const LoadSDNode *Ld = cast<LoadSDNode>(N); + return Ld->getExtensionType() == ISD::NON_EXTLOAD && + Ld->getAddressingMode() == ISD::UNINDEXED; + } + /// isNON_EXTLoad - Returns true if the specified node is a non-extending /// load. inline bool isNON_EXTLoad(const SDNode *N) { |