Searched refs:CASI (Results 1 – 2 of 2) sorted by relevance
/external/llvm/lib/CodeGen/ |
D | AtomicExpandPass.cpp | 89 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in runOnFunction() local 90 assert((LI || SI || RMWI || CASI || isa<FenceInst>(I)) && in runOnFunction() 111 } else if (CASI && !TLI->hasLoadLinkedStoreConditional() && in runOnFunction() 112 (isAtLeastRelease(CASI->getSuccessOrdering()) || in runOnFunction() 113 isAtLeastAcquire(CASI->getSuccessOrdering()))) { in runOnFunction() 118 FenceOrdering = CASI->getSuccessOrdering(); in runOnFunction() 119 CASI->setSuccessOrdering(Monotonic); in runOnFunction() 120 CASI->setFailureOrdering(Monotonic); in runOnFunction() 144 } else if (CASI && TLI->hasLoadLinkedStoreConditional()) { in runOnFunction() 145 MadeChange |= expandAtomicCmpXchg(CASI); in runOnFunction()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | ThreadSanitizer.cpp | 547 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local 548 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic() 557 IRB.CreateIntCast(CASI->getCompareOperand(), Ty, false), in instrumentAtomic() 558 IRB.CreateIntCast(CASI->getNewValOperand(), Ty, false), in instrumentAtomic() 559 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic() 560 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic() 562 Value *Success = IRB.CreateICmpEQ(C, CASI->getCompareOperand()); in instrumentAtomic() 564 Value *Res = IRB.CreateInsertValue(UndefValue::get(CASI->getType()), C, 0); in instrumentAtomic()
|