| /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 | 213 Args.push_back(GEP.Members[0]->getPointerOperand()); in fillCommonArgs() 433 return L->getPointerOperand() == I; in isPointerOperand() 435 return S->getPointerOperand() == I; in isPointerOperand() 437 return GEP->getPointerOperand() == I; in isPointerOperand() 612 return GEP->getPointerOperand() == Op; in removePAICalls()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Operator.h | 457 Value *getPointerOperand() { 460 const Value *getPointerOperand() const { 469 return getPointerOperand()->getType(); 570 Value *getPointerOperand() { 573 const Value *getPointerOperand() const { 583 return getPointerOperand()->getType(); 631 Value *getPointerOperand() { return getOperand(0); } 633 const Value *getPointerOperand() const { return getOperand(0); } 636 return getPointerOperand()->getType()->getPointerAddressSpace();
|
| H A D | Instructions.h | 259 Value *getPointerOperand() { return getOperand(0); } in getPointerOperand() function 260 const Value *getPointerOperand() const { return getOperand(0); } in getPointerOperand() function 262 Type *getPointerOperandType() const { return getPointerOperand()->getType(); } in getPointerOperandType() 386 Value *getPointerOperand() { return getOperand(1); } in getPointerOperand() function 387 const Value *getPointerOperand() const { return getOperand(1); } in getPointerOperand() function 389 Type *getPointerOperandType() const { return getPointerOperand()->getType(); } in getPointerOperandType() 634 Value *getPointerOperand() { return getOperand(0); } 635 const Value *getPointerOperand() const { return getOperand(0); } 646 return getPointerOperand()->getType()->getPointerAddressSpace(); 886 Value *getPointerOperand() { return getOperand(0); } [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | MergedLoadStoreMotion.cpp | 233 if (S0->getPointerOperand() == S1->getPointerOperand()) in canSinkStoresAndGEPs() 235 auto *GEP0 = dyn_cast<GetElementPtrInst>(S0->getPointerOperand()); in canSinkStoresAndGEPs() 236 auto *GEP1 = dyn_cast<GetElementPtrInst>(S1->getPointerOperand()); in canSinkStoresAndGEPs() 249 Value *Ptr0 = S0->getPointerOperand(); in sinkStoresAndGEPs() 250 Value *Ptr1 = S1->getPointerOperand(); in sinkStoresAndGEPs()
|
| H A D | LoopLoadElimination.cpp | 94 Value *LoadPtr = Load->getPointerOperand(); in isDependenceDistanceOfOne() 95 Value *StorePtr = Store->getPointerOperand(); in isDependenceDistanceOfOne() 135 Value *getLoadPtr() const { return Load->getPointerOperand(); } in getLoadPtr() 376 PtrsWrittenOnFwdingPath.insert(S->getPointerOperand()); in findPointersWrittenOnForwardingPath() 439 Value *Ptr = Cand.Load->getPointerOperand(); in propagateStoredValueToLoadUsers() 544 assert(isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Load->getPointerOperand())) && in processLoop() 547 isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Store->getPointerOperand())) && in processLoop() 607 PSE.getSCEV(Cand.Load->getPointerOperand())) || in processLoop() 609 PSE.getSCEV(Cand.Store->getPointerOperand())); in processLoop()
|
| H A D | MemCpyOptimizer.cpp | 188 SI->getPointerOperand(), SI->getAlign(), SI); in addStore() 420 NextStore->getPointerOperand()->getPointerOffsetFrom(StartPtr, DL); in tryMergingIntoMemset() 523 if (!AddArg(SI->getPointerOperand())) in moveUp() 676 M = Builder.CreateMemMove(SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad() 677 LI->getPointerOperand(), LI->getAlign(), in processStoreOfLoad() 680 M = Builder.CreateMemCpy(SI->getPointerOperand(), SI->getAlign(), in processStoreOfLoad() 681 LI->getPointerOperand(), LI->getAlign(), Size); in processStoreOfLoad() 714 LI, SI, SI->getPointerOperand()->stripPointerCasts(), in processStoreOfLoad() 715 LI->getPointerOperand()->stripPointerCasts(), in processStoreOfLoad() 728 if (auto *DestAlloca = dyn_cast<AllocaInst>(SI->getPointerOperand())) { in processStoreOfLoad() [all …]
|
| H A D | EarlyCSE.cpp | 603 return hash_combine(GEP->getOpcode(), GEP->getPointerOperand(), in getHashValue() 614 if (LGEP->getPointerOperand() != RGEP->getPointerOperand()) in isEqual() 893 bool isValid() const { return getPointerOperand() != nullptr; } in isValid() 905 Value *getPointerOperand() const { in getPointerOperand() function in __anon2439b80b0411::EarlyCSE::ParseMemoryInst 1325 if (Earlier.getPointerOperand() != Later.getPointerOperand()) in overridingStores() 1592 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() 1614 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode() 1714 LoadValue InVal = AvailableLoads.lookup(MemInst.getPointerOperand()); in processNode() 1766 AvailableLoads.insert(MemInst.getPointerOperand(), in processNode()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILForwardHandleAccesses.cpp | 41 LI, Twine("Load of \"") + LI->getPointerOperand()->getName() + in diagnoseHandleNotFound() 59 if (auto *GV = dyn_cast<GlobalVariable>(SI->getPointerOperand())) { in processHandle() 89 Value *V = LI->getPointerOperand(); in forwardHandleAccesses() 90 auto *GV = dyn_cast<GlobalVariable>(LI->getPointerOperand()); in forwardHandleAccesses()
|
| H A D | DXILPrepare.cpp | 258 Builder, PointerTypes, I, LI->getPointerOperand(), in runOnModule() 268 Builder, PointerTypes, I, SI->getPointerOperand(), in runOnModule() 279 Builder, PointerTypes, I, GEP->getPointerOperand(), in runOnModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXLowerAlloca.cpp | 107 if (LI && LI->getPointerOperand() == allocaInst && in runOnFunction() 113 if (SI && SI->getPointerOperand() == allocaInst && in runOnFunction() 119 if (GI && GI->getPointerOperand() == allocaInst) { in runOnFunction()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPerfHintAnalysis.cpp | 122 return {LI->getPointerOperand(), LI->getType()}; in getMemoryInstrPtrAndType() 124 return {SI->getPointerOperand(), SI->getValueOperand()->getType()}; in getMemoryInstrPtrAndType() 126 return {AI->getPointerOperand(), AI->getCompareOperand()->getType()}; in getMemoryInstrPtrAndType() 128 return {AI->getPointerOperand(), AI->getValOperand()->getType()}; in getMemoryInstrPtrAndType() 152 const auto *M = LD->getPointerOperand(); in isIndirectAccess() 161 const auto *P = GEP->getPointerOperand(); in isIndirectAccess() 202 if (!isGlobalAddr(Ld->getPointerOperand())) in isGlobalLoadUsedInBB()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Utils.h | 62 getUnderlyingObject(LSI->getPointerOperand()->Val)); in getMemInstructionBase() 98 llvm::Value *Opnd0 = I0->getPointerOperand()->Val; in getPointerDiffInBytes() 99 llvm::Value *Opnd1 = I1->getPointerOperand()->Val; in getPointerDiffInBytes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| 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 | Loads.cpp | 90 const Value *Base = GEP->getPointerOperand(); in isDereferenceableAndAlignedPointer() 294 Value *Ptr = LI->getPointerOperand(); in isDereferenceableAndAlignedInLoop() 483 AccessedPtr = LI->getPointerOperand(); in isSafeToLoadUnconditionally() 490 AccessedPtr = SI->getPointerOperand(); in isSafeToLoadUnconditionally() 588 Value *LoadPtr = LI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore() 608 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in getAvailableLoadStore() 701 Value *StorePtr = SI->getPointerOperand()->stripPointerCasts(); in findAvailablePtrLoadStore() 717 Loc.Ptr, AccessTy, SI->getPointerOperand(), in findAvailablePtrLoadStore() 754 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 | 29 Value *PO = LI->getPointerOperand(); in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineLoadStoreAlloca.cpp | 389 auto *V = getReplacement(LT->getPointerOperand()); in replace() 414 auto *V = getReplacement(GEP->getPointerOperand()); in replace() 455 auto *V = getReplacement(ASC->getPointerOperand()); in replace() 583 Builder.CreateAlignedLoad(NewTy, LI.getPointerOperand(), LI.getAlign(), in combineLoadToNewType() 598 Value *Ptr = SI.getPointerOperand(); in combineStoreToNewValue() 674 if (Load.getPointerOperand()->isSwiftError()) in combineLoadToOperationType() 740 auto *Addr = LI.getPointerOperand(); in unpackLoadToAggregate() 782 auto *Addr = LI.getPointerOperand(); in unpackLoadToAggregate() 993 auto *Ptr = SI.getPointerOperand(); in canSimplifyNullStoreOrGEP() 1034 if (auto *Res = simplifyNonNullOperand(GEP->getPointerOperand(), in simplifyNonNullOperand() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVInterleavedAccess.cpp | 107 Value *BasePtr = Builder.CreatePtrAdd(LI->getPointerOperand(), Offset); in lowerInterleavedLoad() 125 {LI->getPointerOperand(), Mask, VL}); in lowerInterleavedLoad() 192 Value *BasePtr = Builder.CreatePtrAdd(SI->getPointerOperand(), Offset); in lowerInterleavedStore() 228 Ops.append({SI->getPointerOperand(), StoreMask, VL}); in lowerInterleavedStore() 263 {LI->getPointerOperand(), Mask, VL}); in lowerDeinterleaveIntrinsicToLoad() 283 {PoisonValue::get(VecTupTy), LI->getPointerOperand(), VL, in lowerDeinterleaveIntrinsicToLoad() 335 Ops.append({SI->getPointerOperand(), Mask, VL}); in lowerInterleaveIntrinsicToStore() 364 Builder.CreateCall(VssegNFunc, {StoredVal, SI->getPointerOperand(), VL, in lowerInterleaveIntrinsicToStore()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | ThreadSanitizer.cpp | 384 Addr = GEP->getPointerOperand(); in addrPointsToConstantData() 421 Value *Addr = IsWrite ? cast<StoreInst>(I)->getPointerOperand() in chooseInstructionsToInstrument() 422 : cast<LoadInst>(I)->getPointerOperand(); in chooseInstructionsToInstrument() 593 Value *Addr = IsWrite ? cast<StoreInst>(II.Inst)->getPointerOperand() in instrumentLoadOrStore() 594 : cast<LoadInst>(II.Inst)->getPointerOperand(); in instrumentLoadOrStore() 721 Value *Addr = LI->getPointerOperand(); in instrumentAtomic() 733 Value *Addr = SI->getPointerOperand(); in instrumentAtomic() 747 Value *Addr = RMWI->getPointerOperand(); in instrumentAtomic() 765 Value *Addr = CASI->getPointerOperand(); in instrumentAtomic()
|
| H A D | BoundsChecking.cpp | 204 Or = getBoundsCheckCond(LI->getPointerOperand(), LI, DL, TLI, in addBoundsChecking() 208 Or = getBoundsCheckCond(SI->getPointerOperand(), SI->getValueOperand(), in addBoundsChecking() 213 getBoundsCheckCond(AI->getPointerOperand(), AI->getCompareOperand(), in addBoundsChecking() 217 Or = getBoundsCheckCond(AI->getPointerOperand(), AI->getValOperand(), in addBoundsChecking()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | AtomicExpandPass.cpp | 478 Value *Addr = LI->getPointerOperand(); in convertAtomicLoadToIntegerType() 502 Value *Addr = RMWI->getPointerOperand(); in convertAtomicXchgToIntegerType() 529 LI, LI->getType(), LI->getPointerOperand(), LI->getAlign(), in tryExpandAtomicLoad() 567 LI->getPointerOperand(), LI->getOrdering()); in expandAtomicLoadToLL() 582 Value *Addr = LI->getPointerOperand(); in expandAtomicLoadToCmpXchg() 612 Value *Addr = SI->getPointerOperand(); in convertAtomicStoreToIntegerType() 637 AtomicRMWInst::Xchg, SI->getPointerOperand(), SI->getValueOperand(), in expandAtomicStore() 691 expandAtomicOpToLLSC(AI, AI->getType(), AI->getPointerOperand(), in tryExpandAtomicRMW() 986 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in expandPartwordAtomicRMW() 1030 createMaskInstrs(Builder, AI, AI->getType(), AI->getPointerOperand(), in widenPartwordAtomicRMW() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/ |
| H A D | BottomUpVec.cpp | 146 Value *Ptr = Ld0->getPointerOperand(); in createVectorInstr() 264 dyn_cast<Instruction>(cast<LoadInst>(V)->getPointerOperand())) in collectPotentiallyDeadInstrs() 271 dyn_cast<Instruction>(cast<StoreInst>(V)->getPointerOperand())) in collectPotentiallyDeadInstrs() 359 VecOperands.push_back(cast<LoadInst>(I)->getPointerOperand()); in emitVectors() 363 VecOperands.push_back(cast<StoreInst>(I)->getPointerOperand()); in emitVectors()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 596 Value *Op = Ref->getPointerOperand(); in deduceElementTypeHelper() 608 Type *RefTy = deduceElementTypeHelper(Ref->getPointerOperand(), Visited, in deduceElementTypeHelper() 1012 Ops.push_back(std::make_pair(Ref->getPointerOperand(), 0)); in deduceOperandElementType() 1022 if (GR->findDeducedElementType(Ref->getPointerOperand())) in deduceOperandElementType() 1025 Ops.push_back(std::make_pair(Ref->getPointerOperand(), in deduceOperandElementType() 1031 Type *PointeeTy = GR->findDeducedElementType(Ref->getPointerOperand()); in deduceOperandElementType() 1034 Ops.push_back(std::make_pair(Ref->getPointerOperand(), in deduceOperandElementType() 1040 Type *PointeeTy = GR->findDeducedElementType(Ref->getPointerOperand()); in deduceOperandElementType() 1043 Ops.push_back(std::make_pair(Ref->getPointerOperand(), in deduceOperandElementType() 1047 ? getAtomicElemTy(GR, I, Ref->getPointerOperand()) in deduceOperandElementType() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LowerAtomic.cpp | 24 Value *Ptr = CXI->getPointerOperand(); in lowerAtomicCmpXchgInst() 130 Value *Ptr = RMWI->getPointerOperand(); in lowerAtomicRMWInst()
|