summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2016-10-21 16:02:35 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2016-10-21 16:02:35 +0000
commit0ff17b627d9d23f53d7e25de22833dbc297d9784 (patch)
treea1c7a968c43605cc2cb0eef4214acd99d788a4bf
parent098bd728042a3c9dd09981f23c34b38c6eeb539d (diff)
downloadbcm5719-llvm-0ff17b627d9d23f53d7e25de22833dbc297d9784.tar.gz
bcm5719-llvm-0ff17b627d9d23f53d7e25de22833dbc297d9784.zip
[MachineMemOperand][AtomicSDNode] Remove getSuccessOrdering()
Differential Revision: https://reviews.llvm.org/D25786 llvm-svn: 284834
-rw-r--r--llvm/include/llvm/CodeGen/MachineMemOperand.h10
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAGNodes.h11
2 files changed, 6 insertions, 15 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineMemOperand.h b/llvm/include/llvm/CodeGen/MachineMemOperand.h
index a7ffdc07026..a311124a35b 100644
--- a/llvm/include/llvm/CodeGen/MachineMemOperand.h
+++ b/llvm/include/llvm/CodeGen/MachineMemOperand.h
@@ -202,18 +202,14 @@ public:
return static_cast<SynchronizationScope>(AtomicInfo.SynchScope);
}
- /// Return the atomic ordering requirements for this memory operation.
+ /// Return the atomic ordering requirements for this memory operation. For
+ /// cmpxchg atomic operations, return the atomic ordering requirements when
+ /// store occurs.
AtomicOrdering getOrdering() const {
return static_cast<AtomicOrdering>(AtomicInfo.Ordering);
}
/// For cmpxchg atomic operations, return the atomic ordering requirements
- /// when store occurs.
- AtomicOrdering getSuccessOrdering() const {
- return getOrdering();
- }
-
- /// For cmpxchg atomic operations, return the atomic ordering requirements
/// when store does not occur.
AtomicOrdering getFailureOrdering() const {
return static_cast<AtomicOrdering>(AtomicInfo.FailureOrdering);
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index fa4fc4d9bb3..46805a96060 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1123,7 +1123,9 @@ public:
/// Return the synchronization scope for this memory operation.
SynchronizationScope getSynchScope() const { return MMO->getSynchScope(); }
- /// Return the atomic ordering requirements for this memory operation.
+ /// Return the atomic ordering requirements for this memory operation. For
+ /// cmpxchg atomic operations, return the atomic ordering requirements when
+ /// store occurs.
AtomicOrdering getOrdering() const { return MMO->getOrdering(); }
/// Return the type of the in-memory value.
@@ -1205,13 +1207,6 @@ public:
}
/// For cmpxchg atomic operations, return the atomic ordering requirements
- /// when store occurs.
- AtomicOrdering getSuccessOrdering() const {
- assert(isCompareAndSwap() && "Must be cmpxchg operation");
- return MMO->getSuccessOrdering();
- }
-
- /// For cmpxchg atomic operations, return the atomic ordering requirements
/// when store does not occur.
AtomicOrdering getFailureOrdering() const {
assert(isCompareAndSwap() && "Must be cmpxchg operation");
OpenPOWER on IntegriCloud