Searched refs:CASI (Results 1 – 2 of 2) sorted by relevance
155 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument156 const DataLayout &DL = CASI->getModule()->getDataLayout(); in getAtomicOpSize()194 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in runOnFunction() local216 } else if (CASI) { in runOnFunction()217 if (!atomicSizeSupported(TLI, CASI)) { in runOnFunction()218 expandAtomicCASToLibcall(CASI); in runOnFunction()236 } else if (CASI && in runOnFunction()246 FenceOrdering = CASI->getMergedOrdering(); in runOnFunction()310 } else if (CASI) { in runOnFunction()318 CASI = convertCmpXchgToIntegerType(CASI); in runOnFunction()[all …]
777 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local778 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()779 Type *OrigOldValTy = CASI->getNewValOperand()->getType(); in instrumentAtomic()788 IRB.CreateBitOrPointerCast(CASI->getCompareOperand(), Ty); in instrumentAtomic()790 IRB.CreateBitOrPointerCast(CASI->getNewValOperand(), Ty); in instrumentAtomic()794 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic()795 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic()805 IRB.CreateInsertValue(UndefValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()