Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DAtomicExpandPass.cpp155 static unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument
156 const DataLayout &DL = CASI->getModule()->getDataLayout(); in getAtomicOpSize()
194 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in runOnFunction() local
216 } else if (CASI) { in runOnFunction()
217 if (!atomicSizeSupported(TLI, CASI)) { in runOnFunction()
218 expandAtomicCASToLibcall(CASI); in runOnFunction()
236 } else if (CASI && in runOnFunction()
246 FenceOrdering = CASI->getMergedOrdering(); in runOnFunction()
310 } else if (CASI) { in runOnFunction()
318 CASI = convertCmpXchgToIntegerType(CASI); in runOnFunction()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DThreadSanitizer.cpp777 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local
778 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()
779 Type *OrigOldValTy = CASI->getNewValOperand()->getType(); in instrumentAtomic()
788 IRB.CreateBitOrPointerCast(CASI->getCompareOperand(), Ty); in instrumentAtomic()
790 IRB.CreateBitOrPointerCast(CASI->getNewValOperand(), Ty); in instrumentAtomic()
794 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic()
795 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic()
805 IRB.CreateInsertValue(UndefValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()