Skip to content

Commit

Permalink
[SDAG] Add a isSimple cover functon to MemSDNode, just as we have in …
Browse files Browse the repository at this point in the history
…IR/MI [NFC]

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

llvm-svn: 371445
preames committed Sep 9, 2019
1 parent ff49a52 commit eae609e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Original file line number Diff line number Diff line change
@@ -1361,6 +1361,9 @@ class MemSDNode : public SDNode {
/// 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; }

0 comments on commit eae609e

Please sign in to comment.