Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp151 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument
152 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() local
193 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 …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp789 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local
790 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()