Home
last modified time | relevance | path

Searched refs:CASI (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp190 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument
191 const DataLayout &DL = CASI->getDataLayout(); in getAtomicOpSize()
192 return DL.getTypeStoreSize(CASI->getCompareOperand()->getType()); in getAtomicOpSize()
226 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in run() local
227 assert((LI || SI || RMWI || CASI) && "Unknown atomic instruction"); in run()
248 } else if (CASI) { in run()
249 if (!atomicSizeSupported(TLI, CASI)) { in run()
250 expandAtomicCASToLibcall(CASI); in run()
270 } else if (CASI) { in run()
273 if (CASI->getCompareOperand()->getType()->isPointerTy()) { in run()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp760 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local
761 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()
762 Type *OrigOldValTy = CASI->getNewValOperand()->getType(); in instrumentAtomic()
770 IRB.CreateBitOrPointerCast(CASI->getCompareOperand(), Ty); in instrumentAtomic()
772 IRB.CreateBitOrPointerCast(CASI->getNewValOperand(), Ty); in instrumentAtomic()
776 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic()
777 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic()
787 IRB.CreateInsertValue(PoisonValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()