Searched refs:CASI (Results 1 – 2 of 2) sorted by relevance
201 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument202 const DataLayout &DL = CASI->getDataLayout(); in getAtomicOpSize()203 return DL.getTypeStoreSize(CASI->getCompareOperand()->getType()); in getAtomicOpSize()254 auto *CASI = dyn_cast<AtomicCmpXchgInst>(I); in processAtomicInstr() local298 } else if (CASI) { in processAtomicInstr()299 if (!atomicSizeSupported(TLI, CASI)) { in processAtomicInstr()300 expandAtomicCASToLibcall(CASI); in processAtomicInstr()306 if (CASI->getCompareOperand()->getType()->isPointerTy()) { in processAtomicInstr()309 I = CASI = convertCmpXchgToIntegerType(CASI); in processAtomicInstr()327 } else if (CASI && in processAtomicInstr()[all …]
764 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local765 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()766 Type *OrigOldValTy = CASI->getNewValOperand()->getType(); in instrumentAtomic()774 IRB.CreateBitOrPointerCast(CASI->getCompareOperand(), Ty); in instrumentAtomic()776 IRB.CreateBitOrPointerCast(CASI->getNewValOperand(), Ty); in instrumentAtomic()780 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic()781 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic()791 IRB.CreateInsertValue(PoisonValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()