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.cpp201 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument
202 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() local
298 } 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 …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp764 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local
765 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()