mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
tsan: switch to new memory_order constants (ABI compatible)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167615 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f8a90b3ce
commit
c2e9ca15fb
@ -390,15 +390,14 @@ static ConstantInt *createOrdering(IRBuilder<> *IRB, AtomicOrdering ord) {
|
|||||||
switch (ord) {
|
switch (ord) {
|
||||||
case NotAtomic: assert(false);
|
case NotAtomic: assert(false);
|
||||||
case Unordered: // Fall-through.
|
case Unordered: // Fall-through.
|
||||||
case Monotonic: v = 1 << 0; break;
|
case Monotonic: v = 0; break;
|
||||||
// case Consume: v = 1 << 1; break; // Not specified yet.
|
// case Consume: v = 1; break; // Not specified yet.
|
||||||
case Acquire: v = 1 << 2; break;
|
case Acquire: v = 2; break;
|
||||||
case Release: v = 1 << 3; break;
|
case Release: v = 3; break;
|
||||||
case AcquireRelease: v = 1 << 4; break;
|
case AcquireRelease: v = 4; break;
|
||||||
case SequentiallyConsistent: v = 1 << 5; break;
|
case SequentiallyConsistent: v = 5; break;
|
||||||
}
|
}
|
||||||
// +100500 is temporal to migrate to new enum values.
|
return IRB->getInt32(v);
|
||||||
return IRB->getInt32(v + 100500);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ThreadSanitizer::instrumentAtomic(Instruction *I) {
|
bool ThreadSanitizer::instrumentAtomic(Instruction *I) {
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user