Searched refs:CASI (Results 1 – 2 of 2) sorted by relevance
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 98 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in runOnFunction() local 99 assert((LI || SI || RMWI || CASI || isa<FenceInst>(I)) && in runOnFunction() 120 } else if (CASI && !TLI->shouldExpandAtomicCmpXchgInIR(CASI) && in runOnFunction() 121 (isAtLeastRelease(CASI->getSuccessOrdering()) || in runOnFunction() 122 isAtLeastAcquire(CASI->getSuccessOrdering()))) { in runOnFunction() 127 FenceOrdering = CASI->getSuccessOrdering(); in runOnFunction() 128 CASI->setSuccessOrdering(Monotonic); in runOnFunction() 129 CASI->setFailureOrdering(Monotonic); in runOnFunction() 171 } else if (CASI && TLI->shouldExpandAtomicCmpXchgInIR(CASI)) { in runOnFunction() 172 MadeChange |= expandAtomicCmpXchg(CASI); in runOnFunction()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 554 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local 555 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic() 564 IRB.CreateIntCast(CASI->getCompareOperand(), Ty, false), in instrumentAtomic() 565 IRB.CreateIntCast(CASI->getNewValOperand(), Ty, false), in instrumentAtomic() 566 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic() 567 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic() 569 Value *Success = IRB.CreateICmpEQ(C, CASI->getCompareOperand()); in instrumentAtomic() 571 Value *Res = IRB.CreateInsertValue(UndefValue::get(CASI->getType()), C, 0); in instrumentAtomic()
|