| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Operator.h | 416 Value *getPointerOperand() { in getPointerOperand() function 419 const Value *getPointerOperand() const { in getPointerOperand() function 428 return getPointerOperand()->getType(); in getPointerOperandType() 519 Value *getPointerOperand() { in getPointerOperand() function 522 const Value *getPointerOperand() const { in getPointerOperand() function 532 return getPointerOperand()->getType(); in getPointerOperandType() 562 Value *getPointerOperand() { return getOperand(0); } in getPointerOperand() function 564 const Value *getPointerOperand() const { return getOperand(0); } in getPointerOperand() function 567 return getPointerOperand()->getType()->getPointerAddressSpace(); in getSrcAddressSpace()
|
| H A D | Instructions.h | 261 Value *getPointerOperand() { return getOperand(0); } in getPointerOperand() function 390 Value *getPointerOperand() { return getOperand(1); } in getPointerOperand() function 1052 Value *getPointerOperand() { 1055 const Value *getPointerOperand() const { 1065 return getPointerOperand()->getType(); 5297 Value *getPointerOperand() { 5302 const Value *getPointerOperand() const { 5330 return Load->getPointerOperand(); 5332 return Store->getPointerOperand(); 5346 return Gep->getPointerOperand(); [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXLowerAlloca.cpp | 88 if (LI && LI->getPointerOperand() == allocaInst && in runOnFunction() 94 if (SI && SI->getPointerOperand() == allocaInst && in runOnFunction() 100 if (GI && GI->getPointerOperand() == allocaInst) { in runOnFunction()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPerfHintAnalysis.cpp | 125 return {LI->getPointerOperand(), LI->getType()}; in getMemoryInstrPtrAndType() 127 return {SI->getPointerOperand(), SI->getValueOperand()->getType()}; in getMemoryInstrPtrAndType() 129 return {AI->getPointerOperand(), AI->getCompareOperand()->getType()}; in getMemoryInstrPtrAndType() 131 return {AI->getPointerOperand(), AI->getValOperand()->getType()}; in getMemoryInstrPtrAndType() 155 auto M = LD->getPointerOperand(); in isIndirectAccess() 164 auto P = GEP->getPointerOperand(); in isIndirectAccess() 205 if (!isGlobalAddr(Ld->getPointerOperand())) in isGlobalLoadUsedInBB()
|
| H A D | AMDGPULowerModuleLDSPass.cpp | 465 if (SI->getPointerOperand() == Ptr) in refineUsesAlignmentAndAA() 472 if (AI->getPointerOperand() == Ptr) in refineUsesAlignmentAndAA() 477 if (AI->getPointerOperand() == Ptr) in refineUsesAlignmentAndAA() 484 if (GEP->getPointerOperand() == Ptr) { in refineUsesAlignmentAndAA()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | Loads.cpp | 118 const Value *Base = GEP->getPointerOperand(); in isDereferenceableAndAlignedPointer() 270 Value *Ptr = LI->getPointerOperand(); in isDereferenceableAndAlignedInLoop() 375 AccessedPtr = LI->getPointerOperand(); in isSafeToLoadUnconditionally() 382 AccessedPtr = SI->getPointerOperand(); in isSafeToLoadUnconditionally() 479 Value *LoadPtr = LI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore() 499 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore() 555 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in findAvailablePtrLoadStore() 571 Loc.Ptr, AccessTy, SI->getPointerOperand(), in findAvailablePtrLoadStore() 608 Value *StrippedPtr = Load->getPointerOperand()->stripPointerCasts(); in FindAvailableLoadedValue()
|
| H A D | MemoryLocation.cpp | 39 LI->getPointerOperand(), in get() 47 return MemoryLocation(SI->getPointerOperand(), in get() 54 return MemoryLocation(VI->getPointerOperand(), in get() 61 return MemoryLocation(CXI->getPointerOperand(), in get() 70 return MemoryLocation(RMWI->getPointerOperand(), in get()
|
| H A D | MemDerefPrinter.cpp | 56 Value *PO = LI->getPointerOperand(); in runOnFunction() 91 Value *PO = LI->getPointerOperand(); in run()
|
| H A D | CFLGraph.h | 307 auto *Ptr = Inst.getPointerOperand(); in visitAtomicCmpXchgInst() 313 auto *Ptr = Inst.getPointerOperand(); in visitAtomicRMWInst() 330 auto *Op = GEPOp.getPointerOperand(); in visitGEP() 354 auto *Ptr = Inst.getPointerOperand(); in visitLoadInst() 360 auto *Ptr = Inst.getPointerOperand(); in visitStoreInst()
|
| H A D | ObjCARCAnalysisUtils.cpp | 40 if (AA.pointsToConstantMemory(LI->getPointerOperand())) in IsPotentialRetainableObjPtr()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | LoopLoadElimination.cpp | 98 Value *LoadPtr = Load->getPointerOperand(); in isDependenceDistanceOfOne() 99 Value *StorePtr = Store->getPointerOperand(); in isDependenceDistanceOfOne() 128 Value *getLoadPtr() const { return Load->getPointerOperand(); } in getLoadPtr() 365 PtrsWrittenOnFwdingPath.insert(S->getPointerOperand()); in findPointersWrittenOnForwardingPath() 428 Value *Ptr = Cand.Load->getPointerOperand(); in propagateStoredValueToLoadUsers() 506 assert(isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Load->getPointerOperand())) && in processLoop() 509 isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Store->getPointerOperand())) && in processLoop() 572 PSE.getSCEV(Cand.Load->getPointerOperand())) || in processLoop() 574 PSE.getSCEV(Cand.Store->getPointerOperand())); in processLoop()
|
| H A D | MergedLoadStoreMotion.cpp | 227 auto *A0 = dyn_cast<Instruction>(S0->getPointerOperand()); in canSinkStoresAndGEPs() 228 auto *A1 = dyn_cast<Instruction>(S1->getPointerOperand()); in canSinkStoresAndGEPs() 242 auto *A0 = dyn_cast<Instruction>(S0->getPointerOperand()); in sinkStoresAndGEPs() 243 auto *A1 = dyn_cast<Instruction>(S1->getPointerOperand()); in sinkStoresAndGEPs()
|
| H A D | MemCpyOptimizer.cpp | 455 isPointerOffset(StartPtr, NextStore->getPointerOperand(), DL); in tryMergingIntoMemset() 549 if (auto *Ptr = dyn_cast<Instruction>(SI->getPointerOperand())) in moveUp() 735 SI->getPointerOperand(), SI->getAlign(), in processStore() 736 LI->getPointerOperand(), LI->getAlign(), Size); in processStore() 739 SI->getPointerOperand(), SI->getAlign(), in processStore() 740 LI->getPointerOperand(), LI->getAlign(), Size); in processStore() 773 LI, SI, SI->getPointerOperand()->stripPointerCasts(), in processStore() 774 LI->getPointerOperand()->stripPointerCasts(), in processStore() 801 if (Instruction *I = tryMergingIntoMemset(SI, SI->getPointerOperand(), in processStore() 814 auto *M = Builder.CreateMemSet(SI->getPointerOperand(), ByteVal, Size, in processStore() [all …]
|
| H A D | ConstraintElimination.cpp | 211 {1, GEP->getPointerOperand()}, in decompose() 216 {1, GEP->getPointerOperand()}, in decompose() 218 return {{0, nullptr}, {1, GEP->getPointerOperand()}, {1, Op0}}; in decompose() 223 return {{CI->getSExtValue(), nullptr}, {1, GEP->getPointerOperand()}}; in decompose() 230 {1, GEP->getPointerOperand()}, in decompose() 236 {1, GEP->getPointerOperand()}, in decompose() 240 Result = {{0, nullptr}, {1, GEP->getPointerOperand()}, {1, Op0}}; in decompose()
|
| H A D | EarlyCSE.cpp | 761 bool isValid() const { return getPointerOperand() != nullptr; } in isValid() 773 Value *getPointerOperand() const { in getPointerOperand() function in __anon5cb5eb3b0311::EarlyCSE::ParseMemoryInst 1173 if (Earlier.getPointerOperand() != Later.getPointerOperand()) in overridingStores() 1437 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() 1456 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode() 1520 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() 1528 ParseMemoryInst(LastStore, TTI).getPointerOperand() == in processNode() 1529 MemInst.getPointerOperand() || in processNode() 1580 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | BoundsChecking.cpp | 159 Or = getBoundsCheckCond(LI->getPointerOperand(), LI, DL, TLI, in addBoundsChecking() 163 Or = getBoundsCheckCond(SI->getPointerOperand(), SI->getValueOperand(), in addBoundsChecking() 168 getBoundsCheckCond(AI->getPointerOperand(), AI->getCompareOperand(), in addBoundsChecking() 172 Or = getBoundsCheckCond(AI->getPointerOperand(), AI->getValOperand(), in addBoundsChecking()
|
| H A D | ThreadSanitizer.cpp | 396 Addr = GEP->getPointerOperand(); in addrPointsToConstantData() 433 Value *Addr = IsWrite ? cast<StoreInst>(I)->getPointerOperand() in chooseInstructionsToInstrument() 434 : cast<LoadInst>(I)->getPointerOperand(); in chooseInstructionsToInstrument() 601 Value *Addr = IsWrite ? cast<StoreInst>(II.Inst)->getPointerOperand() in instrumentLoadOrStore() 602 : cast<LoadInst>(II.Inst)->getPointerOperand(); in instrumentLoadOrStore() 730 Value *Addr = LI->getPointerOperand(); in instrumentAtomic() 745 Value *Addr = SI->getPointerOperand(); in instrumentAtomic() 760 Value *Addr = RMWI->getPointerOperand(); in instrumentAtomic() 778 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DXILPrepare.cpp | 137 Builder, PointerTypes, I, LI->getPointerOperand(), in runOnModule() 147 Builder, PointerTypes, I, SI->getPointerOperand(), in runOnModule() 158 Builder, PointerTypes, I, GEP->getPointerOperand(), in runOnModule()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 285 auto *V = getReplacement(LT->getPointerOperand()); in replace() 297 auto *V = getReplacement(GEP->getPointerOperand()); in replace() 465 Value *Ptr = LI.getPointerOperand(); in combineLoadToNewType() 488 Value *Ptr = SI.getPointerOperand(); in combineStoreToNewValue() 588 if (LI.getPointerOperand()->isSwiftError()) in combineLoadToOperationType() 653 auto *Addr = LI.getPointerOperand(); in unpackLoadToAggregate() 698 auto *Addr = LI.getPointerOperand(); in unpackLoadToAggregate() 908 auto *Ptr = SI.getPointerOperand(); in canSimplifyNullStoreOrGEP() 1112 if (SI.getPointerOperand()->isSwiftError()) in combineStoreToValueType() 1175 auto *Addr = SI.getPointerOperand(); in unpackStoreToAggregate() [all …]
|
| H A D | InstCombineAtomicRMW.cpp | 132 RMWI.getPointerOperand(), &RMWI); in visitAtomicRMWInst() 160 LoadInst *Load = new LoadInst(RMWI.getType(), RMWI.getPointerOperand(), "", in visitAtomicRMWInst()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | AtomicExpandPass.cpp | 362 Value *Addr = LI->getPointerOperand(); in convertAtomicLoadToIntegerType() 386 Value *Addr = RMWI->getPointerOperand(); in convertAtomicXchgToIntegerType() 414 LI, LI->getType(), LI->getPointerOperand(), LI->getAlign(), in tryExpandAtomicLoad() 467 Value *Addr = LI->getPointerOperand(); in expandAtomicLoadToCmpXchg() 497 Value *Addr = SI->getPointerOperand(); in convertAtomicStoreToIntegerType() 576 expandAtomicOpToLLSC(AI, AI->getType(), AI->getPointerOperand(), in tryExpandAtomicRMW() 922 Value *Addr = CI->getPointerOperand(); in expandPartwordCmpXchg() 1139 Value *Addr = CI->getPointerOperand(); in convertCmpXchgToIntegerType() 1170 Value *Addr = CI->getPointerOperand(); in expandAtomicCmpXchg() 1529 Builder, AI->getType(), AI->getPointerOperand(), AI->getAlign(), in expandAtomicRMWToCmpXchg() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | LowerAtomic.cpp | 25 Value *Ptr = CXI->getPointerOperand(); in lowerAtomicCmpXchgInst() 88 Value *Ptr = RMWI->getPointerOperand(); in lowerAtomicRMWInst()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/Utils/ |
| H A D | AMDGPUMemoryUtils.cpp | 161 return I && AA->isNoAlias(I->getPointerOperand(), Ptr); in isReallyAClobber() 199 if (isReallyAClobber(Load->getPointerOperand(), Def, AA)) { in isClobberedInFunction()
|
| /llvm-project-15.0.7/llvm/unittests/Frontend/ |
| H A D | OpenMPIRBuilderTest.cpp | 317 Value *Aggregate = GEP->getPointerOperand(); in findAggregateFromValue() 3485 EXPECT_EQ(ARWM->getPointerOperand(), XVal); in TEST_F() 3489 EXPECT_EQ(St->getPointerOperand(), VVal); in TEST_F() 3535 EXPECT_EQ(ARWM1->getPointerOperand(), XVal); in TEST_F() 3541 EXPECT_EQ(ARWM2->getPointerOperand(), XVal); in TEST_F() 3547 EXPECT_EQ(AXCHG->getPointerOperand(), XVal); in TEST_F() 3659 EXPECT_EQ(Store1->getPointerOperand(), VVal); in TEST_F() 3675 EXPECT_EQ(Store2->getPointerOperand(), VVal); in TEST_F() 3774 EXPECT_EQ(ARWM1->getPointerOperand(), XVal); in TEST_F() 3784 EXPECT_EQ(ARWM2->getPointerOperand(), XVal); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | LoadStoreVectorizer.cpp | 472 GEPA->getPointerOperand() != GEPB->getPointerOperand()) in lookThroughComplexAddresses() 844 Value *Ptr = LI->getPointerOperand(); in collectInstructions() 884 Value *Ptr = SI->getPointerOperand(); in collectInstructions() 1090 Align NewAlign = getOrEnforceKnownAlignment(S0->getPointerOperand(), in vectorizeStoreChain() 1145 Builder.CreateBitCast(S0->getPointerOperand(), VecTy->getPointerTo(AS)), in vectorizeStoreChain() 1243 Align NewAlign = getOrEnforceKnownAlignment(L0->getPointerOperand(), in vectorizeLoadChain() 1274 Builder.CreateBitCast(L0->getPointerOperand(), VecTy->getPointerTo(AS)); in vectorizeLoadChain() 1309 reorder((BCInst && BCInst != L0->getPointerOperand()) ? BCInst : LI); in vectorizeLoadChain()
|