Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLowerAtomic.cpp24 static bool LowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) { in LowerAtomicCmpXchgInst() argument
25 IRBuilder<> Builder(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()
124 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(Inst)) in runOnBasicBlock() local
125 Changed |= LowerAtomicCmpXchgInst(CXI); in runOnBasicBlock()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DMemoryLocation.cpp64 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get() argument
66 CXI->getAAMetadata(AATags); in get()
67 const auto &DL = CXI->getModule()->getDataLayout(); in get()
69 return MemoryLocation(CXI->getPointerOperand(), in get()
71 CXI->getCompareOperand()->getType())), in get()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstruction.cpp423 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I1)) in haveSameSpecialState() local
424 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in haveSameSpecialState()
425 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in haveSameSpecialState()
426 CXI->getSuccessOrdering() == in haveSameSpecialState()
428 CXI->getFailureOrdering() == in haveSameSpecialState()
430 CXI->getSyncScopeID() == in haveSameSpecialState()
DVerifier.cpp482 void visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI);
3513 void Verifier::visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI) { in visitAtomicCmpXchgInst() argument
3516 Assert(CXI.getSuccessOrdering() != AtomicOrdering::NotAtomic, in visitAtomicCmpXchgInst()
3517 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst()
3518 Assert(CXI.getFailureOrdering() != AtomicOrdering::NotAtomic, in visitAtomicCmpXchgInst()
3519 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst()
3520 Assert(CXI.getSuccessOrdering() != AtomicOrdering::Unordered, in visitAtomicCmpXchgInst()
3521 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst()
3522 Assert(CXI.getFailureOrdering() != AtomicOrdering::Unordered, in visitAtomicCmpXchgInst()
3523 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst()
[all …]
DAsmWriter.cpp4076 } else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&I)) { in printInstruction() local
4077 writeAtomicCmpXchg(CXI->getContext(), CXI->getSuccessOrdering(), in printInstruction()
4078 CXI->getFailureOrdering(), CXI->getSyncScopeID()); in printInstruction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DFunctionComparator.cpp615 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(L)) { in cmpOperations() local
616 if (int Res = cmpNumbers(CXI->isVolatile(), in cmpOperations()
619 if (int Res = cmpNumbers(CXI->isWeak(), in cmpOperations()
623 cmpOrderings(CXI->getSuccessOrdering(), in cmpOperations()
627 cmpOrderings(CXI->getFailureOrdering(), in cmpOperations()
630 return cmpNumbers(CXI->getSyncScopeID(), in cmpOperations()
DInlineFunction.cpp991 else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I)) in AddAliasScopeMetadata() local
992 PtrArgs.push_back(CXI->getPointerOperand()); in AddAliasScopeMetadata()
DSimplifyCFG.cpp4247 } else if (auto *CXI = dyn_cast<AtomicCmpXchgInst>(BBI)) { in SimplifyUnreachable() local
4248 if (CXI->isVolatile()) in SimplifyUnreachable()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DMemoryLocation.h202 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/
DAttributor.h848 if (auto *CXI = dyn_cast<AtomicCmpXchgInst>(I)) {
849 if (!AllowVolatile && CXI->isVolatile())
851 return CXI->getPointerOperand();
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/
DLLParser.cpp7087 AtomicCmpXchgInst *CXI = new AtomicCmpXchgInst( in ParseCmpXchg() local
7089 CXI->setVolatile(isVolatile); in ParseCmpXchg()
7090 CXI->setWeak(isWeak); in ParseCmpXchg()
7091 Inst = CXI; in ParseCmpXchg()