mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 01:43:57 +00:00
Oops. Forgot this.
llvm-svn: 42691
This commit is contained in:
parent
beba899ff0
commit
c6b349980a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user