/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Operator.cpp | 43 auto *GEP = cast<GEPOperator>(this); in hasPoisonGeneratingFlags() 68 Type *GEPOperator::getSourceElementType() const { in getSourceElementType() 74 Type *GEPOperator::getResultElementType() const { in getResultElementType() 80 std::optional<ConstantRange> GEPOperator::getInRange() const { in getInRange() 86 Align GEPOperator::getMaxPreservedAlignment(const DataLayout &DL) const { in getMaxPreservedAlignment() 111 bool GEPOperator::accumulateConstantOffset( in accumulateConstantOffset() 118 return GEPOperator::accumulateConstantOffset(getSourceElementType(), Index, in accumulateConstantOffset() 122 bool GEPOperator::accumulateConstantOffset( in accumulateConstantOffset() 202 bool GEPOperator::collectOffset( in collectOffset()
|
H A D | Value.cpp | 635 if (auto *GEP = dyn_cast<GEPOperator>(V)) { in stripPointerCastsAndOffsets() 731 if (auto *GEP = dyn_cast<GEPOperator>(V)) { in stripAndAccumulateConstantOffsets() 996 getOffsetFromIndex(const GEPOperator *GEP, unsigned Idx, const DataLayout &DL) { in getOffsetFromIndex() 1041 const GEPOperator *GEP1 = dyn_cast<GEPOperator>(Ptr1); in getPointerOffsetFrom() 1042 const GEPOperator *GEP2 = dyn_cast<GEPOperator>(Ptr2); in getPointerOffsetFrom()
|
H A D | TypeFinder.cpp | 174 if (auto *GEP = dyn_cast<GEPOperator>(V)) in incorporateValue()
|
H A D | ConstantFold.cpp | 370 if (auto *GEP = dyn_cast<GEPOperator>(CE)) { in ConstantFoldExtractElementInstruction() 1081 GEPOperator *CE1GEP = cast<GEPOperator>(CE1); in evaluateICmpRelation() 1101 } else if (const auto *CE2GEP = dyn_cast<GEPOperator>(V2)) { in evaluateICmpRelation()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | FunctionComparator.h | 339 /// 2. Constant offset, (using GEPOperator::accumulateConstantOffset method). 343 int cmpGEPs(const GEPOperator *GEPL, const GEPOperator *GEPR) const; 346 return cmpGEPs(cast<GEPOperator>(GEPL), cast<GEPOperator>(GEPR));
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | GlobalSplit.cpp | 58 GEPOperator *GEP; in splitGlobal() 62 GEPInfo(GEPOperator *GEP, unsigned MemberIndex, APInt MemberRelativeOffset) in splitGlobal() 68 auto *GEP = dyn_cast<GEPOperator>(U); in splitGlobal()
|
H A D | GlobalOpt.cpp | 240 if (isa<GEPOperator>(CE)) in CleanupPointerRootUsers() 294 else if (auto *GEP = dyn_cast<GEPOperator>(U)) in CleanupConstantGlobalUsers() 363 auto *GEP = dyn_cast<GEPOperator>(V); in collectSRATypes() 604 isa<GEPOperator>(V)) { in SRAGlobal()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | Local.cpp | 24 GEPOperator *GEPOp = cast<GEPOperator>(GEP); in emitGEPOffset()
|
H A D | BasicAliasAnalysis.cpp | 612 const GEPOperator *GEPOp = dyn_cast<GEPOperator>(Op); in DecomposeGEPExpression() 1080 const GEPOperator *GEP1, LocationSize V1Size, in aliasGEP() 1086 if (!isa<GEPOperator>(V2)) in aliasGEP() 1120 if (isa<GEPOperator>(V2)) { in aliasGEP() 1766 if (const GEPOperator *GV1 = dyn_cast<GEPOperator>(V1)) { in aliasCheckRecursive() 1770 } else if (const GEPOperator *GV2 = dyn_cast<GEPOperator>(V2)) { in aliasCheckRecursive()
|
H A D | Loads.cpp | 56 if (const GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in isDereferenceableAndAlignedPointer()
|
H A D | MemoryBuiltins.cpp | 1114 } else if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in compute_() 1190 SizeOffsetValue ObjectSizeOffsetEvaluator::visitGEPOperator(GEPOperator &GEP) { in visitGEPOperator()
|
H A D | InlineCost.cpp | 430 bool accumulateGEPOffset(GEPOperator &GEP, APInt &Offset); 1419 bool CallAnalyzer::accumulateGEPOffset(GEPOperator &GEP, APInt &Offset) { in accumulateGEPOffset() 1614 if (!accumulateGEPOffset(cast<GEPOperator>(I), BaseAndOffset.second)) in canFoldInboundsGEP() 2643 if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in stripAndComputeInBoundsConstantOffsets()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | GetElementPtrTypeIterator.h | 174 auto *GEPOp = cast<GEPOperator>(GEP); 185 auto &GEPOp = cast<GEPOperator>(GEP);
|
H A D | Operator.h | 400 class GEPOperator 536 struct OperandTraits<GEPOperator> 537 : public VariadicOperandTraits<GEPOperator, 1> {}; 539 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(GEPOperator, Value)
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | BasicAliasAnalysis.h | 29 class GEPOperator; 129 AliasResult aliasGEP(const GEPOperator *V1, LocationSize V1Size, 30 class GEPOperator; global() variable
|
H A D | MemoryBuiltins.h | 38 class GEPOperator; variable 334 SizeOffsetValue visitGEPOperator(GEPOperator &GEP);
|
H A D | ValueTracking.h | 37 class GEPOperator; variable 660 bool isGEPBasedOnPointerToString(const GEPOperator *GEP, unsigned CharSize = 8);
|
H A D | ScalarEvolution.h | 55 class GEPOperator; variable 637 const SCEV *getGEPExpr(GEPOperator *GEP, 1762 const SCEV *createNodeForGEP(GEPOperator *GEP);
|
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXGenericToNVVM.cpp | 252 return Builder.CreateGEP(cast<GEPOperator>(C)->getSourceElementType(), in remapConstantExpr() 255 cast<GEPOperator>(C)->isInBounds()); in remapConstantExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/ObjCARC/ |
H A D | ObjCARCContract.cpp | 670 else if (isa<GEPOperator>(Arg) && in run() 671 cast<GEPOperator>(Arg)->hasAllZeroIndices()) in run() 672 Arg = cast<GEPOperator>(Arg)->getPointerOperand(); in run()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineInternal.h | 54 class GEPOperator; variable 158 Instruction *visitGEPOfGEP(GetElementPtrInst &GEP, GEPOperator *Src); 380 Value *EmitGEPOffset(GEPOperator *GEP, bool RewriteGEP = false); 645 Instruction *foldGEPICmp(GEPOperator *GEPLHS, Value *RHS,
|
H A D | InstructionCombining.cpp | 193 Value *InstCombinerImpl::EmitGEPOffset(GEPOperator *GEP, bool RewriteGEP) { in EmitGEPOffset() 2001 static bool shouldMergeGEPs(GEPOperator &GEP, GEPOperator &Src) { in shouldMergeGEPs() 2312 static bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { in isMergedGEPInBounds() 2346 GEPOperator *Src, in canonicalizeGEPOfConstGEPI8() 2380 GEPOperator *Src) { in visitGEPOfGEP() 2384 if (!shouldMergeGEPs(*cast<GEPOperator>(&GEP), *Src)) in visitGEPOfGEP() 2439 isMergedGEPInBounds(*Src, *cast<GEPOperator>(&GEP)))); in visitGEPOfGEP() 2443 bool IsInBounds = isMergedGEPInBounds(*Src, *cast<GEPOperator>(&GEP)); in visitGEPOfGEP() 2495 GEP.setIsInBounds(isMergedGEPInBounds(*Src, *cast<GEPOperator>(&GEP))); in visitGEPOfGEP() 2515 isMergedGEPInBounds(*Src, *cast<GEPOperator>(&GEP)))); in visitGEPOfGEP() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | FunctionComparator.cpp | 431 if (auto *GEPL = dyn_cast<GEPOperator>(LE)) { in cmpConstants() 432 auto *GEPR = cast<GEPOperator>(RE); in cmpConstants() 798 int FunctionComparator::cmpGEPs(const GEPOperator *GEPL, in cmpGEPs() 799 const GEPOperator *GEPR) const { in cmpGEPs()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | ConstantHoisting.cpp | 420 auto *GEPO = cast<GEPOperator>(ConstExpr); in collectConstantCandidates() 485 if (ConstHoistGEP && isa<GEPOperator>(ConstExpr)) in collectConstantCandidates() 818 if (isa<GEPOperator>(ConstExpr)) { in emitBaseConstants()
|
H A D | ConstraintElimination.cpp | 393 OffsetResult(GEPOperator &GEP, const DataLayout &DL) in OffsetResult() 403 static OffsetResult collectOffsets(GEPOperator &GEP, const DataLayout &DL) { in collectOffsets() 442 static Decomposition decomposeGEP(GEPOperator &GEP, in decomposeGEP() 489 if (auto *GEP = dyn_cast<GEPOperator>(V)) in decompose() 1259 !isa<CmpInst, BinaryOperator, GEPOperator, CastInst>(V)) { in generateReproducer()
|