Home
last modified time | relevance | path

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

/external/llvm/lib/CodeGen/
DAtomicExpandPass.cpp125 unsigned getAtomicOpSize(AtomicCmpXchgInst *CASI) { in getAtomicOpSize() argument
126 const DataLayout &DL = CASI->getModule()->getDataLayout(); in getAtomicOpSize()
127 return DL.getTypeStoreSize(CASI->getCompareOperand()->getType()); in getAtomicOpSize()
157 unsigned getAtomicOpAlign(AtomicCmpXchgInst *CASI) { in getAtomicOpAlign() argument
159 const DataLayout &DL = CASI->getModule()->getDataLayout(); in getAtomicOpAlign()
160 return DL.getTypeStoreSize(CASI->getCompareOperand()->getType()); in getAtomicOpAlign()
195 auto CASI = dyn_cast<AtomicCmpXchgInst>(I); in runOnFunction() local
196 assert((LI || SI || RMWI || CASI) && "Unknown atomic instruction"); in runOnFunction()
217 } else if (CASI) { in runOnFunction()
218 if (!atomicSizeSupported(TLI, CASI)) { in runOnFunction()
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DThreadSanitizer.cpp620 } else if (AtomicCmpXchgInst *CASI = dyn_cast<AtomicCmpXchgInst>(I)) { in instrumentAtomic() local
621 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()
630 createIntOrPtrToIntCast(CASI->getCompareOperand(), Ty, IRB); in instrumentAtomic()
632 createIntOrPtrToIntCast(CASI->getNewValOperand(), Ty, IRB); in instrumentAtomic()
636 createOrdering(&IRB, CASI->getSuccessOrdering()), in instrumentAtomic()
637 createOrdering(&IRB, CASI->getFailureOrdering())}; in instrumentAtomic()
641 Type *OrigOldValTy = CASI->getNewValOperand()->getType(); in instrumentAtomic()
648 IRB.CreateInsertValue(UndefValue::get(CASI->getType()), OldVal, 0); in instrumentAtomic()