[SDAG] Add a isSimple cover functon to MemSDNode, just as we have in IR/MI [NFC]

Uses are in reviews D66322 and D66318.  Submitted separately to control rebuild times.

llvm-svn: 371445
This commit is contained in:
Philip Reames 2019-09-09 20:06:19 +00:00
parent ff49a52cf3
commit eae609e306
1 changed files with 3 additions and 0 deletions

View File

@ -1361,6 +1361,9 @@ public:
/// aliasing rules.
bool isUnordered() const { return MMO->isUnordered(); }
/// Returns true if the memory operation is neither atomic or volatile.
bool isSimple() const { return !isAtomic() && !isVolatile(); }
/// Return the type of the in-memory value.
EVT getMemoryVT() const { return MemoryVT; }