[llvm-commits] [llvm] r42691 - /llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
Evan Cheng
evan.cheng at apple.com
Sat Oct 6 01:09:29 PDT 2007
Author: evancheng
Date: Sat Oct 6 03:09:29 2007
New Revision: 42691
URL: http://llvm.org/viewvc/llvm-project?rev=42691&view=rev
Log:
Oops. Forgot this.
Modified:
llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=42691&r1=42690&r2=42691&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Sat Oct 6 03:09:29 2007
@@ -1651,6 +1651,16 @@
};
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) {
More information about the llvm-commits
mailing list