Home
last modified time | relevance | path

Searched refs:CXI (Results 1 – 10 of 10) sorted by relevance

/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp23 static bool LowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) { in LowerAtomicCmpXchgInst() argument
24 IRBuilder<> Builder(CXI->getParent(), CXI); in LowerAtomicCmpXchgInst()
25 Value *Ptr = CXI->getPointerOperand(); in LowerAtomicCmpXchgInst()
26 Value *Cmp = CXI->getCompareOperand(); in LowerAtomicCmpXchgInst()
27 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst()
34 CXI->replaceAllUsesWith(Orig); in LowerAtomicCmpXchgInst()
35 CXI->eraseFromParent(); in LowerAtomicCmpXchgInst()
120 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(Inst)) in runOnBasicBlock() local
121 Changed |= LowerAtomicCmpXchgInst(CXI); in runOnBasicBlock()
/external/llvm/lib/IR/
DInstruction.cpp310 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(this)) in isIdenticalToWhenDefined() local
311 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I)->isVolatile() && in isIdenticalToWhenDefined()
312 CXI->getOrdering() == cast<AtomicCmpXchgInst>(I)->getOrdering() && in isIdenticalToWhenDefined()
313 CXI->getSynchScope() == cast<AtomicCmpXchgInst>(I)->getSynchScope(); in isIdenticalToWhenDefined()
384 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(this)) in isSameOperationAs() local
385 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I)->isVolatile() && in isSameOperationAs()
386 CXI->getOrdering() == cast<AtomicCmpXchgInst>(I)->getOrdering() && in isSameOperationAs()
387 CXI->getSynchScope() == cast<AtomicCmpXchgInst>(I)->getSynchScope(); in isSameOperationAs()
DVerifier.cpp306 void visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI);
1842 void Verifier::visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI) { in visitAtomicCmpXchgInst() argument
1843 Assert1(CXI.getOrdering() != NotAtomic, in visitAtomicCmpXchgInst()
1844 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst()
1845 Assert1(CXI.getOrdering() != Unordered, in visitAtomicCmpXchgInst()
1846 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst()
1847 PointerType *PTy = dyn_cast<PointerType>(CXI.getOperand(0)->getType()); in visitAtomicCmpXchgInst()
1848 Assert1(PTy, "First cmpxchg operand must be a pointer.", &CXI); in visitAtomicCmpXchgInst()
1852 &CXI, ElTy); in visitAtomicCmpXchgInst()
1856 &CXI, ElTy); in visitAtomicCmpXchgInst()
[all …]
DAsmWriter.cpp2034 } else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&I)) { in printInstruction() local
2035 writeAtomic(CXI->getOrdering(), CXI->getSynchScope()); in printInstruction()
/external/llvm/lib/Analysis/
DAliasAnalysis.cpp246 AliasAnalysis::getLocation(const AtomicCmpXchgInst *CXI) { in getLocation() argument
247 return Location(CXI->getPointerOperand(), in getLocation()
248 getTypeStoreSize(CXI->getCompareOperand()->getType()), in getLocation()
249 CXI->getMetadata(LLVMContext::MD_tbaa)); in getLocation()
/external/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp339 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I1)) in isEquivalentOperation() local
340 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in isEquivalentOperation()
341 CXI->getOrdering() == cast<AtomicCmpXchgInst>(I2)->getOrdering() && in isEquivalentOperation()
342 CXI->getSynchScope() == cast<AtomicCmpXchgInst>(I2)->getSynchScope(); in isEquivalentOperation()
/external/clang/lib/CodeGen/
DCGAtomic.cpp206 llvm::AtomicCmpXchgInst *CXI = in EmitAtomicOp() local
208 CXI->setVolatile(E->isVolatile()); in EmitAtomicOp()
209 llvm::StoreInst *StoreVal1 = CGF.Builder.CreateStore(CXI, Val1); in EmitAtomicOp()
211 llvm::Value *Cmp = CGF.Builder.CreateICmpEQ(CXI, LoadVal1); in EmitAtomicOp()
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h147 Location getLocation(const AtomicCmpXchgInst *CXI);
/external/llvm/lib/AsmParser/
DLLParser.cpp4186 AtomicCmpXchgInst *CXI = in ParseCmpXchg() local
4188 CXI->setVolatile(isVolatile); in ParseCmpXchg()
4189 Inst = CXI; in ParseCmpXchg()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp2954 } else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(BBI)) { in SimplifyUnreachable() local
2955 if (CXI->isVolatile()) in SimplifyUnreachable()