[MachineMemOperand][AtomicSDNode] Remove getSuccessOrdering()
Differential Revision: https://reviews.llvm.org/D25786 llvm-svn: 284834
This commit is contained in:
parent
098bd72804
commit
0ff17b627d
|
|
@ -202,17 +202,13 @@ 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 {
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
@ -1204,13 +1206,6 @@ public:
|
|||
Op == ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS;
|
||||
}
|
||||
|
||||
/// 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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue