diff options
| author | Philip Reames <listmail@philipreames.com> | 2019-09-09 20:06:19 +0000 |
|---|---|---|
| committer | Philip Reames <listmail@philipreames.com> | 2019-09-09 20:06:19 +0000 |
| commit | eae609e306e87cbc821265dfc9c6537813ced84c (patch) | |
| tree | 6e22441bb91cb0486581303993eb66f8d83ad2e9 | |
| parent | ff49a52cf3dd785b7e93dd2c9a89b6cf8d3743d4 (diff) | |
| download | bcm5719-llvm-eae609e306e87cbc821265dfc9c6537813ced84c.tar.gz bcm5719-llvm-eae609e306e87cbc821265dfc9c6537813ced84c.zip | |
[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
| -rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAGNodes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h index d542ea13f77..2b00b856870 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -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; } |

