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 | 8ff5335bb6d22bfae03e5bc9506358838ab1826d (patch) | |
| tree | 38681d130cd95b23516803962af68173385aa4de | |
| parent | 32897f5eb0c67ae82b77518db66e42c2dd91e244 (diff) | |
| download | bcm5719-llvm-8ff5335bb6d22bfae03e5bc9506358838ab1826d.tar.gz bcm5719-llvm-8ff5335bb6d22bfae03e5bc9506358838ab1826d.zip | |
Oops. Forgot this.
llvm-svn: 42691
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index e153ee927ab..fe4891f1597 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/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) { |

