[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 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 {
|
AtomicOrdering getOrdering() const {
|
||||||
return static_cast<AtomicOrdering>(AtomicInfo.Ordering);
|
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
|
/// For cmpxchg atomic operations, return the atomic ordering requirements
|
||||||
/// when store does not occur.
|
/// when store does not occur.
|
||||||
AtomicOrdering getFailureOrdering() const {
|
AtomicOrdering getFailureOrdering() const {
|
||||||
|
|
|
||||||
|
|
@ -1123,7 +1123,9 @@ public:
|
||||||
/// Return the synchronization scope for this memory operation.
|
/// Return the synchronization scope for this memory operation.
|
||||||
SynchronizationScope getSynchScope() const { return MMO->getSynchScope(); }
|
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(); }
|
AtomicOrdering getOrdering() const { return MMO->getOrdering(); }
|
||||||
|
|
||||||
/// Return the type of the in-memory value.
|
/// Return the type of the in-memory value.
|
||||||
|
|
@ -1204,13 +1206,6 @@ public:
|
||||||
Op == ISD::ATOMIC_CMP_SWAP_WITH_SUCCESS;
|
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
|
/// For cmpxchg atomic operations, return the atomic ordering requirements
|
||||||
/// when store does not occur.
|
/// when store does not occur.
|
||||||
AtomicOrdering getFailureOrdering() const {
|
AtomicOrdering getFailureOrdering() const {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue