mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
[MachineInstr] Add mayLoadOrStore API. NFC.
llvm-svn: 237955
This commit is contained in:
parent
4c932ccc6c
commit
c4d3b538dd
@ -560,7 +560,6 @@ public:
|
||||
return hasProperty(MCID::MayLoad, Type);
|
||||
}
|
||||
|
||||
|
||||
/// Return true if this instruction could possibly modify memory.
|
||||
/// Instructions with this flag set are not necessarily simple store
|
||||
/// instructions, they may store a modified value based on their operands, or
|
||||
@ -574,6 +573,11 @@ public:
|
||||
return hasProperty(MCID::MayStore, Type);
|
||||
}
|
||||
|
||||
/// Return true if this instruction could possibly read or modify memory.
|
||||
bool mayLoadOrStore(QueryType Type = AnyInBundle) const {
|
||||
return mayLoad(Type) || mayStore(Type);
|
||||
}
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Flags that indicate whether an instruction can be modified by a method.
|
||||
//===--------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user