Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp24 static bool LowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) { in LowerAtomicCmpXchgInst() argument
25 IRBuilder<> Builder(CXI->getParent(), CXI); in LowerAtomicCmpXchgInst()
26 Value *Ptr = CXI->getPointerOperand(); in LowerAtomicCmpXchgInst()
27 Value *Cmp = CXI->getCompareOperand(); in LowerAtomicCmpXchgInst()
28 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst()
35 Res = Builder.CreateInsertValue(UndefValue::get(CXI->getType()), Orig, 0); in LowerAtomicCmpXchgInst()
38 CXI->replaceAllUsesWith(Res); in LowerAtomicCmpXchgInst()
39 CXI->eraseFromParent(); in LowerAtomicCmpXchgInst()
126 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(Inst)) in runOnBasicBlock() local
127 Changed |= LowerAtomicCmpXchgInst(CXI); in runOnBasicBlock()
/external/llvm/lib/IR/
DInstruction.cpp301 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I1)) in haveSameSpecialState() local
302 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in haveSameSpecialState()
303 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in haveSameSpecialState()
304 CXI->getSuccessOrdering() == in haveSameSpecialState()
306 CXI->getFailureOrdering() == in haveSameSpecialState()
308 CXI->getSynchScope() == cast<AtomicCmpXchgInst>(I2)->getSynchScope(); in haveSameSpecialState()
DVerifier.cpp314 void visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI);
2005 void Verifier::visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI) { in visitAtomicCmpXchgInst() argument
2008 Assert1(CXI.getSuccessOrdering() != NotAtomic, in visitAtomicCmpXchgInst()
2009 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst()
2010 Assert1(CXI.getFailureOrdering() != NotAtomic, in visitAtomicCmpXchgInst()
2011 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst()
2012 Assert1(CXI.getSuccessOrdering() != Unordered, in visitAtomicCmpXchgInst()
2013 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst()
2014 Assert1(CXI.getFailureOrdering() != Unordered, in visitAtomicCmpXchgInst()
2015 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst()
[all …]
DAsmWriter.cpp2081 } else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&I)) { in printInstruction() local
2082 writeAtomicCmpXchg(CXI->getSuccessOrdering(), CXI->getFailureOrdering(), in printInstruction()
2083 CXI->getSynchScope()); in printInstruction()
/external/llvm/lib/Analysis/
DAliasAnalysis.cpp268 AliasAnalysis::getLocation(const AtomicCmpXchgInst *CXI) { in getLocation() argument
269 return Location(CXI->getPointerOperand(), in getLocation()
270 getTypeStoreSize(CXI->getCompareOperand()->getType()), in getLocation()
271 CXI->getMetadata(LLVMContext::MD_tbaa)); in getLocation()
/external/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp804 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(L)) { in cmpOperation() local
805 if (int Res = cmpNumbers(CXI->isVolatile(), in cmpOperation()
808 if (int Res = cmpNumbers(CXI->isWeak(), in cmpOperation()
811 if (int Res = cmpNumbers(CXI->getSuccessOrdering(), in cmpOperation()
814 if (int Res = cmpNumbers(CXI->getFailureOrdering(), in cmpOperation()
817 return cmpNumbers(CXI->getSynchScope(), in cmpOperation()
/external/llvm/include/llvm/Analysis/
DAliasAnalysis.h147 Location getLocation(const AtomicCmpXchgInst *CXI);
/external/llvm/lib/AsmParser/
DLLParser.cpp4401 AtomicCmpXchgInst *CXI = new AtomicCmpXchgInst( in ParseCmpXchg() local
4403 CXI->setVolatile(isVolatile); in ParseCmpXchg()
4404 CXI->setWeak(isWeak); in ParseCmpXchg()
4405 Inst = CXI; in ParseCmpXchg()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp3004 } else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(BBI)) { in SimplifyUnreachable() local
3005 if (CXI->isVolatile()) in SimplifyUnreachable()
/external/clang/lib/CodeGen/
DCGBuiltin.cpp1549 AtomicCmpXchgInst *CXI = Builder.CreateAtomicCmpXchg( in EmitBuiltinExpr() local
1555 CXI->setVolatile(true); in EmitBuiltinExpr()
1556 return RValue::get(Builder.CreateExtractValue(CXI, 0)); in EmitBuiltinExpr()