[PATCH] D25786: [MachineMemOperand][AtomicSDNode] Remove getSuccessOrdering()
Konstantin Zhuravlyov via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 09:11:59 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL284834: [MachineMemOperand][AtomicSDNode] Remove getSuccessOrdering() (authored by kzhuravl).
Changed prior to commit:
https://reviews.llvm.org/D25786?vs=75194&id=75440#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25786
Files:
llvm/trunk/include/llvm/CodeGen/MachineMemOperand.h
llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
Index: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
+++ llvm/trunk/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: llvm/trunk/include/llvm/CodeGen/MachineMemOperand.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineMemOperand.h
+++ llvm/trunk/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.75440.patch
Type: text/x-patch
Size: 2405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161021/2a093339/attachment.bin>
More information about the llvm-commits
mailing list