/external/llvm/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 25 static bool LowerAtomicCmpXchgInst(AtomicCmpXchgInst *CXI) { in LowerAtomicCmpXchgInst() argument 26 IRBuilder<> Builder(CXI); in LowerAtomicCmpXchgInst() 27 Value *Ptr = CXI->getPointerOperand(); in LowerAtomicCmpXchgInst() 28 Value *Cmp = CXI->getCompareOperand(); in LowerAtomicCmpXchgInst() 29 Value *Val = CXI->getNewValOperand(); in LowerAtomicCmpXchgInst() 36 Res = Builder.CreateInsertValue(UndefValue::get(CXI->getType()), Orig, 0); in LowerAtomicCmpXchgInst() 39 CXI->replaceAllUsesWith(Res); in LowerAtomicCmpXchgInst() 40 CXI->eraseFromParent(); in LowerAtomicCmpXchgInst() 119 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(Inst)) in runOnBasicBlock() local 120 Changed |= LowerAtomicCmpXchgInst(CXI); in runOnBasicBlock()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 24 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()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LowerAtomic.cpp | 24 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() 123 else if (AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&Inst)) in runOnBasicBlock() local 124 Changed |= LowerAtomicCmpXchgInst(CXI); in runOnBasicBlock()
|
/external/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 47 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get() argument 49 CXI->getAAMetadata(AATags); in get() 50 const auto &DL = CXI->getModule()->getDataLayout(); in get() 53 CXI->getPointerOperand(), in get() 54 DL.getTypeStoreSize(CXI->getCompareOperand()->getType()), AATags); in get()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 64 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()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | MemoryLocation.cpp | 66 MemoryLocation MemoryLocation::get(const AtomicCmpXchgInst *CXI) { in get() argument 68 CXI->getAAMetadata(AATags); in get() 69 const auto &DL = CXI->getModule()->getDataLayout(); in get() 71 return MemoryLocation(CXI->getPointerOperand(), in get() 73 CXI->getCompareOperand()->getType())), in get()
|
/external/llvm/lib/IR/ |
D | Instruction.cpp | 380 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I1)) in haveSameSpecialState() local 381 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in haveSameSpecialState() 382 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in haveSameSpecialState() 383 CXI->getSuccessOrdering() == in haveSameSpecialState() 385 CXI->getFailureOrdering() == in haveSameSpecialState() 387 CXI->getSynchScope() == cast<AtomicCmpXchgInst>(I2)->getSynchScope(); in haveSameSpecialState()
|
D | Verifier.cpp | 423 void visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI); 3087 void Verifier::visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI) { in visitAtomicCmpXchgInst() argument 3090 Assert(CXI.getSuccessOrdering() != AtomicOrdering::NotAtomic, in visitAtomicCmpXchgInst() 3091 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst() 3092 Assert(CXI.getFailureOrdering() != AtomicOrdering::NotAtomic, in visitAtomicCmpXchgInst() 3093 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst() 3094 Assert(CXI.getSuccessOrdering() != AtomicOrdering::Unordered, in visitAtomicCmpXchgInst() 3095 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst() 3096 Assert(CXI.getFailureOrdering() != AtomicOrdering::Unordered, in visitAtomicCmpXchgInst() 3097 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst() [all …]
|
D | AsmWriter.cpp | 3177 } else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&I)) { in printInstruction() local 3178 writeAtomicCmpXchg(CXI->getSuccessOrdering(), CXI->getFailureOrdering(), in printInstruction() 3179 CXI->getSynchScope()); in printInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instruction.cpp | 423 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()
|
D | Verifier.cpp | 482 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 …]
|
D | AsmWriter.cpp | 4076 } 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()
|
/external/llvm-project/llvm/lib/IR/ |
D | Instruction.cpp | 447 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I1)) in haveSameSpecialState() local 448 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in haveSameSpecialState() 449 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in haveSameSpecialState() 450 CXI->getSuccessOrdering() == in haveSameSpecialState() 452 CXI->getFailureOrdering() == in haveSameSpecialState() 454 CXI->getSyncScopeID() == in haveSameSpecialState()
|
D | Verifier.cpp | 489 void visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI); 3698 void Verifier::visitAtomicCmpXchgInst(AtomicCmpXchgInst &CXI) { in visitAtomicCmpXchgInst() argument 3701 Assert(CXI.getSuccessOrdering() != AtomicOrdering::NotAtomic, in visitAtomicCmpXchgInst() 3702 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst() 3703 Assert(CXI.getFailureOrdering() != AtomicOrdering::NotAtomic, in visitAtomicCmpXchgInst() 3704 "cmpxchg instructions must be atomic.", &CXI); in visitAtomicCmpXchgInst() 3705 Assert(CXI.getSuccessOrdering() != AtomicOrdering::Unordered, in visitAtomicCmpXchgInst() 3706 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst() 3707 Assert(CXI.getFailureOrdering() != AtomicOrdering::Unordered, in visitAtomicCmpXchgInst() 3708 "cmpxchg instructions cannot be unordered.", &CXI); in visitAtomicCmpXchgInst() [all …]
|
D | AsmWriter.cpp | 4309 } else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(&I)) { in printInstruction() local 4310 writeAtomicCmpXchg(CXI->getContext(), CXI->getSuccessOrdering(), in printInstruction() 4311 CXI->getFailureOrdering(), CXI->getSyncScopeID()); in printInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | FunctionComparator.cpp | 615 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()
|
D | InlineFunction.cpp | 991 else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I)) in AddAliasScopeMetadata() local 992 PtrArgs.push_back(CXI->getPointerOperand()); in AddAliasScopeMetadata()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | FunctionComparator.cpp | 635 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(L)) { in cmpOperations() local 636 if (int Res = cmpNumbers(CXI->isVolatile(), in cmpOperations() 640 cmpNumbers(CXI->isWeak(), cast<AtomicCmpXchgInst>(R)->isWeak())) in cmpOperations() 643 cmpOrderings(CXI->getSuccessOrdering(), in cmpOperations() 647 cmpOrderings(CXI->getFailureOrdering(), in cmpOperations() 650 return cmpNumbers(CXI->getSyncScopeID(), in cmpOperations()
|
D | InlineFunction.cpp | 988 else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I)) in AddAliasScopeMetadata() local 989 PtrArgs.push_back(CXI->getPointerOperand()); in AddAliasScopeMetadata()
|
/external/llvm/include/llvm/Analysis/ |
D | MemoryLocation.h | 68 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
|
/external/llvm/lib/Transforms/IPO/ |
D | MergeFunctions.cpp | 1022 if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(L)) { in cmpOperations() local 1023 if (int Res = cmpNumbers(CXI->isVolatile(), in cmpOperations() 1026 if (int Res = cmpNumbers(CXI->isWeak(), in cmpOperations() 1030 cmpOrderings(CXI->getSuccessOrdering(), in cmpOperations() 1034 cmpOrderings(CXI->getFailureOrdering(), in cmpOperations() 1037 return cmpNumbers(CXI->getSynchScope(), in cmpOperations()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | MemoryLocation.h | 202 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
|
/external/llvm-project/llvm/include/llvm/Analysis/ |
D | MemoryLocation.h | 239 static MemoryLocation get(const AtomicCmpXchgInst *CXI);
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/IPO/ |
D | Attributor.h | 848 if (auto *CXI = dyn_cast<AtomicCmpXchgInst>(I)) { 849 if (!AllowVolatile && CXI->isVolatile()) 851 return CXI->getPointerOperand();
|
/external/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 904 else if (const AtomicCmpXchgInst *CXI = dyn_cast<AtomicCmpXchgInst>(I)) in AddAliasScopeMetadata() local 905 PtrArgs.push_back(CXI->getPointerOperand()); in AddAliasScopeMetadata()
|