Searched refs:CASI (Results 1 – 2 of 2) sorted by relevance
152 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument153 const DataLayout &DL = CASI->getModule()->getDataLayout(); in getAtomicOpSize()193 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in runOnFunction() local215 } else if (CASI) { in runOnFunction()216 if (!atomicSizeSupported(TLI, CASI)) { in runOnFunction()217 expandAtomicCASToLibcall(CASI); in runOnFunction()235 } else if (CASI && in runOnFunction()245 FenceOrdering = CASI->getMergedOrdering(); in runOnFunction()307 } else if (CASI) { in runOnFunction()315 CASI = convertCmpXchgToIntegerType(CASI); in runOnFunction()[all …]
821 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local822 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()823 Type *OrigOldValTy = CASI->getNewValOperand()->getType(); in instrumentAtomic()832 IRB.CreateBitOrPointerCast(CASI->getCompareOperand(), Ty); in instrumentAtomic()834 IRB.CreateBitOrPointerCast(CASI->getNewValOperand(), Ty); in instrumentAtomic()838 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic()839 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic()849 IRB.CreateInsertValue(UndefValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()