/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFASpaceCastSimplifyPass.cpp | 30 auto *GEP = dyn_cast<GetElementPtrInst>(OuterCast->getPointerOperand()); in match() 33 auto *InnerCast = dyn_cast<AddrSpaceCastInst>(GEP->getPointerOperand()); in match() 52 auto *GEP = cast<GetElementPtrInst>(OuterCast->getPointerOperand()); in rewrite() 53 auto *InnerCast = cast<AddrSpaceCastInst>(GEP->getPointerOperand()); in rewrite() 58 NewGEP->setOperand(0, InnerCast->getPointerOperand()); in rewrite()
|
H A D | BPFPreserveStaticOffset.cpp | 215 Args.push_back(GEP.Members[0]->getPointerOperand()); in fillCommonArgs() 438 return L->getPointerOperand() == I; in isPointerOperand() 440 return S->getPointerOperand() == I; in isPointerOperand() 442 return GEP->getPointerOperand() == I; in isPointerOperand() 617 return GEP->getPointerOperand() == Op; in removePAICalls()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Operator.h | 438 Value *getPointerOperand() { 441 const Value *getPointerOperand() const { 450 return getPointerOperand()->getType(); 550 Value *getPointerOperand() { 553 const Value *getPointerOperand() const { 563 return getPointerOperand()->getType(); 611 Value *getPointerOperand() { return getOperand(0); } 613 const Value *getPointerOperand() const { return getOperand(0); } 616 return getPointerOperand()->getType()->getPointerAddressSpace();
|
H A D | Instructions.h | 253 Value *getPointerOperand() { return getOperand(0); } in getPointerOperand() function 254 const Value *getPointerOperand() const { return getOperand(0); } in getPointerOperand() function 256 Type *getPointerOperandType() const { return getPointerOperand()->getType(); } in getPointerOperandType() 377 Value *getPointerOperand() { return getOperand(1); } in getPointerOperand() function 378 const Value *getPointerOperand() const { return getOperand(1); } in getPointerOperand() function 380 Type *getPointerOperandType() const { return getPointerOperand()->getType(); } in getPointerOperandType() 621 Value *getPointerOperand() { return getOperand(0); } 622 const Value *getPointerOperand() const { return getOperand(0); } 633 return getPointerOperand()->getType()->getPointerAddressSpace(); 852 Value *getPointerOperand() { return getOperand(0); } [all …]
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | MergedLoadStoreMotion.cpp | 232 if (S0->getPointerOperand() == S1->getPointerOperand()) in canSinkStoresAndGEPs() 234 auto *GEP0 = dyn_cast<GetElementPtrInst>(S0->getPointerOperand()); in canSinkStoresAndGEPs() 235 auto *GEP1 = dyn_cast<GetElementPtrInst>(S1->getPointerOperand()); in canSinkStoresAndGEPs() 248 Value *Ptr0 = S0->getPointerOperand(); in sinkStoresAndGEPs() 249 Value *Ptr1 = S1->getPointerOperand(); in sinkStoresAndGEPs()
|
H A D | LoopLoadElimination.cpp | 96 Value *LoadPtr = Load->getPointerOperand(); in isDependenceDistanceOfOne() 97 Value *StorePtr = Store->getPointerOperand(); in isDependenceDistanceOfOne() 137 Value *getLoadPtr() const { return Load->getPointerOperand(); } in getLoadPtr() 378 PtrsWrittenOnFwdingPath.insert(S->getPointerOperand()); in findPointersWrittenOnForwardingPath() 441 Value *Ptr = Cand.Load->getPointerOperand(); in propagateStoredValueToLoadUsers() 545 assert(isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Load->getPointerOperand())) && in processLoop() 548 isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Store->getPointerOperand())) && in processLoop() 611 PSE.getSCEV(Cand.Load->getPointerOperand())) || in processLoop() 613 PSE.getSCEV(Cand.Store->getPointerOperand())); in processLoop()
|
H A D | InferAlignment.cpp | 29 Value *PtrOp = LI->getPointerOperand(); in tryToImproveAlign() 37 Value *PtrOp = SI->getPointerOperand(); in tryToImproveAlign()
|
H A D | EarlyCSE.cpp | 608 return hash_combine(GEP->getOpcode(), GEP->getPointerOperand(), in getHashValue() 620 if (LGEP->getPointerOperand() != RGEP->getPointerOperand()) in isEqual() 899 bool isValid() const { return getPointerOperand() != nullptr; } in isValid() 911 Value *getPointerOperand() const { in getPointerOperand() function in __anon2439b80b0411::EarlyCSE::ParseMemoryInst 1318 if (Earlier.getPointerOperand() != Later.getPointerOperand()) in overridingStores() 1580 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() 1602 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode() 1692 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() 1700 ParseMemoryInst(LastStore, TTI).getPointerOperand() == in processNode() 1701 MemInst.getPointerOperand() || in processNode() [all …]
|
H A D | MemCpyOptimizer.cpp | 185 SI->getPointerOperand(), SI->getAlign(), SI); in addStore() 427 NextStore->getPointerOperand()->getPointerOffsetFrom(StartPtr, DL); in tryMergingIntoMemset() 530 if (!AddArg(SI->getPointerOperand())) in moveUp() 689 M = Builder.CreateMemMove(SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad() 690 LI->getPointerOperand(), LI->getAlign(), in processStoreOfLoad() 693 M = Builder.CreateMemCpy(SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad() 694 LI->getPointerOperand(), LI->getAlign(), Size); in processStoreOfLoad() 729 LI, SI, SI->getPointerOperand()->stripPointerCasts(), in processStoreOfLoad() 730 LI->getPointerOperand()->stripPointerCasts(), in processStoreOfLoad() 743 if (auto *DestAlloca = dyn_cast<AllocaInst>(SI->getPointerOperand())) { in processStoreOfLoad() [all …]
|
H A D | JumpTableToSwitch.cpp | 47 Constant *Ptr = dyn_cast<Constant>(GEP->getPointerOperand()); in parseJumpTable() 165 auto *GEP = dyn_cast<GetElementPtrInst>(L->getPointerOperand()); in run()
|
/freebsd/contrib/llvm-project/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()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemoryLocation.cpp | 40 LI->getPointerOperand(), in get() 48 return MemoryLocation(SI->getPointerOperand(), in get() 55 return MemoryLocation(VI->getPointerOperand(), in get() 62 return MemoryLocation(CXI->getPointerOperand(), in get() 71 return MemoryLocation(RMWI->getPointerOperand(), in get()
|
H A D | Loads.cpp | 57 const Value *Base = GEP->getPointerOperand(); in isDereferenceableAndAlignedPointer() 267 Value *Ptr = LI->getPointerOperand(); in isDereferenceableAndAlignedInLoop() 408 AccessedPtr = LI->getPointerOperand(); in isSafeToLoadUnconditionally() 415 AccessedPtr = SI->getPointerOperand(); in isSafeToLoadUnconditionally() 513 Value *LoadPtr = LI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore() 533 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore() 626 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in findAvailablePtrLoadStore() 642 Loc.Ptr, AccessTy, SI->getPointerOperand(), in findAvailablePtrLoadStore() 679 Value *StrippedPtr = Load->getPointerOperand()->stripPointerCasts(); in FindAvailableLoadedValue()
|
H A D | ObjCARCAnalysisUtils.cpp | 40 if (AA.pointsToConstantMemory(LI->getPointerOperand())) in IsPotentialRetainableObjPtr()
|
H A D | MemDerefPrinter.cpp | 32 Value *PO = LI->getPointerOperand(); in run()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | BoundsChecking.cpp | 161 Or = getBoundsCheckCond(LI->getPointerOperand(), LI, DL, TLI, in addBoundsChecking() 165 Or = getBoundsCheckCond(SI->getPointerOperand(), SI->getValueOperand(), in addBoundsChecking() 170 getBoundsCheckCond(AI->getPointerOperand(), AI->getCompareOperand(), in addBoundsChecking() 174 Or = getBoundsCheckCond(AI->getPointerOperand(), AI->getValOperand(), in addBoundsChecking()
|
H A D | ThreadSanitizer.cpp | 382 Addr = GEP->getPointerOperand(); in addrPointsToConstantData() 419 Value *Addr = IsWrite ? cast<StoreInst>(I)->getPointerOperand() in chooseInstructionsToInstrument() 420 : cast<LoadInst>(I)->getPointerOperand(); in chooseInstructionsToInstrument() 590 Value *Addr = IsWrite ? cast<StoreInst>(II.Inst)->getPointerOperand() in instrumentLoadOrStore() 591 : cast<LoadInst>(II.Inst)->getPointerOperand(); in instrumentLoadOrStore() 718 Value *Addr = LI->getPointerOperand(); in instrumentAtomic() 729 Value *Addr = SI->getPointerOperand(); in instrumentAtomic() 743 Value *Addr = RMWI->getPointerOperand(); in instrumentAtomic() 761 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 367 auto *V = getReplacement(LT->getPointerOperand()); in replace() 387 auto *V = getReplacement(GEP->getPointerOperand()); in replace() 428 auto *V = getReplacement(ASC->getPointerOperand()); in replace() 568 Builder.CreateAlignedLoad(NewTy, LI.getPointerOperand(), LI.getAlign(), in combineLoadToNewType() 583 Value *Ptr = SI.getPointerOperand(); in combineStoreToNewValue() 659 if (Load.getPointerOperand()->isSwiftError()) in combineLoadToOperationType() 729 auto *Addr = LI.getPointerOperand(); in unpackLoadToAggregate() 774 auto *Addr = LI.getPointerOperand(); in unpackLoadToAggregate() 985 auto *Ptr = SI.getPointerOperand(); in canSimplifyNullStoreOrGEP() 1186 if (SI.getPointerOperand()->isSwiftError()) in combineStoreToValueType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | AtomicExpandPass.cpp | 410 Value *Addr = LI->getPointerOperand(); in convertAtomicLoadToIntegerType() 432 Value *Addr = RMWI->getPointerOperand(); in convertAtomicXchgToIntegerType() 458 LI, LI->getType(), LI->getPointerOperand(), LI->getAlign(), in tryExpandAtomicLoad() 496 LI->getPointerOperand(), LI->getOrdering()); in expandAtomicLoadToLL() 511 Value *Addr = LI->getPointerOperand(); in expandAtomicLoadToCmpXchg() 541 Value *Addr = SI->getPointerOperand(); in convertAtomicStoreToIntegerType() 566 AtomicRMWInst::Xchg, SI->getPointerOperand(), SI->getValueOperand(), in expandAtomicStore() 616 expandAtomicOpToLLSC(AI, AI->getType(), AI->getPointerOperand(), in tryExpandAtomicRMW() 907 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandPartwordAtomicRMW() 981 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in widenPartwordAtomicRMW() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILPrepare.cpp | 205 Builder, PointerTypes, I, LI->getPointerOperand(), in runOnModule() 215 Builder, PointerTypes, I, SI->getPointerOperand(), in runOnModule() 226 Builder, PointerTypes, I, GEP->getPointerOperand(), in runOnModule()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVEmitIntrinsics.cpp | 431 Type *RefTy = deduceElementTypeHelper(Ref->getPointerOperand(), Visited, in deduceElementTypeHelper() 633 Ops.push_back(std::make_pair(Ref->getPointerOperand(), 0)); in deduceOperandElementType() 638 Type *PointeeTy = GR->findDeducedElementType(Ref->getPointerOperand()); in deduceOperandElementType() 641 Ops.push_back(std::make_pair(Ref->getPointerOperand(), in deduceOperandElementType() 647 Type *PointeeTy = GR->findDeducedElementType(Ref->getPointerOperand()); in deduceOperandElementType() 650 Ops.push_back(std::make_pair(Ref->getPointerOperand(), in deduceOperandElementType() 657 Type *PointeeTy = GR->findDeducedElementType(Ref->getPointerOperand()); in deduceOperandElementType() 660 Ops.push_back(std::make_pair(Ref->getPointerOperand(), in deduceOperandElementType() 663 KnownElemTy = getAtomicElemTy(GR, I, Ref->getPointerOperand()); in deduceOperandElementType() 666 Ops.push_back(std::make_pair(Ref->getPointerOperand(), in deduceOperandElementType() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | LoopIdiomVectorize.cpp | 307 Value *PtrA = GEPA->getPointerOperand(); in recognizeByteCompare() 308 Value *PtrB = GEPB->getPointerOperand(); in recognizeByteCompare() 382 Value *PtrA = GEPA->getPointerOperand(); in createMaskedFindMismatch() 383 Value *PtrB = GEPB->getPointerOperand(); in createMaskedFindMismatch() 489 Value *PtrA = GEPA->getPointerOperand(); in createPredicatedFindMismatch() 490 Value *PtrB = GEPB->getPointerOperand(); in createPredicatedFindMismatch() 588 Value *PtrA = GEPA->getPointerOperand(); in expandFindMismatch() 589 Value *PtrB = GEPB->getPointerOperand(); in expandFindMismatch()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LowerAtomic.cpp | 24 Value *Ptr = CXI->getPointerOperand(); in lowerAtomicCmpXchgInst() 107 Value *Ptr = RMWI->getPointerOperand(); in lowerAtomicRMWInst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyLowerRefTypesIntPtrConv.cpp | 67 PTI->getPointerOperand()->getType())) && in runOnFunction()
|