Searched refs:CASI (Results 1 – 2 of 2) sorted by relevance
151 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument152 const DataLayout &DL = CASI->getModule()->getDataLayout(); in getAtomicOpSize()153 return DL.getTypeStoreSize(CASI->getCompareOperand()->getType()); in getAtomicOpSize()192 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in runOnFunction() local193 assert((LI || SI || RMWI || CASI) && "Unknown atomic instruction"); in runOnFunction()214 } else if (CASI) { in runOnFunction()215 if (!atomicSizeSupported(TLI, CASI)) { in runOnFunction()216 expandAtomicCASToLibcall(CASI); in runOnFunction()234 } else if (CASI && in runOnFunction()235 TLI->shouldExpandAtomicCmpXchgInIR(CASI) == in runOnFunction()[all …]
789 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local790 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()799 IRB.CreateBitOrPointerCast(CASI->getCompareOperand(), Ty); in instrumentAtomic()801 IRB.CreateBitOrPointerCast(CASI->getNewValOperand(), Ty); in instrumentAtomic()805 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic()806 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic()810 Type *OrigOldValTy = CASI->getNewValOperand()->getType(); in instrumentAtomic()817 IRB.CreateInsertValue(UndefValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()