mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 20:32:19 +00:00
Add a utility function to test whether a load is unindexed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5ee9997906
commit
02c50e4891
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user