[PATCH] D25786: [MachineMemOperand][AtomicSDNode] Remove getSuccessOrdering()
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 19 12:15:00 PDT 2016
kzhuravl created this revision.
kzhuravl added a reviewer: qcolombet.
kzhuravl added a subscriber: llvm-commits.
Herald added a subscriber: wdng.
https://reviews.llvm.org/D25786
Files:
include/llvm/CodeGen/MachineMemOperand.h
include/llvm/CodeGen/SelectionDAGNodes.h
Index: include/llvm/CodeGen/SelectionDAGNodes.h
===================================================================
--- include/llvm/CodeGen/SelectionDAGNodes.h
+++ include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1123,7 +1123,9 @@
/// 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 @@
}
/// 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");
Index: include/llvm/CodeGen/MachineMemOperand.h
===================================================================
--- include/llvm/CodeGen/MachineMemOperand.h
+++ include/llvm/CodeGen/MachineMemOperand.h
@@ -202,18 +202,14 @@
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25786.75194.patch
Type: text/x-patch
Size: 2339 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161019/3028c112/attachment.bin>
More information about the llvm-commits
mailing list