Home
last modified time | relevance | path

Searched refs:GEPOperator (Results 1 – 25 of 73) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp43 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 DValue.cpp635 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 DTypeFinder.cpp174 if (auto *GEP = dyn_cast<GEPOperator>(V)) in incorporateValue()
H A DConstantFold.cpp370 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 DFunctionComparator.h339 /// 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 DGlobalSplit.cpp58 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 DGlobalOpt.cpp240 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 DLocal.cpp24 GEPOperator *GEPOp = cast<GEPOperator>(GEP); in emitGEPOffset()
H A DBasicAliasAnalysis.cpp612 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 DLoads.cpp56 if (const GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in isDereferenceableAndAlignedPointer()
H A DMemoryBuiltins.cpp1114 } else if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in compute_()
1190 SizeOffsetValue ObjectSizeOffsetEvaluator::visitGEPOperator(GEPOperator &GEP) { in visitGEPOperator()
H A DInlineCost.cpp430 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 DGetElementPtrTypeIterator.h174 auto *GEPOp = cast<GEPOperator>(GEP);
185 auto &GEPOp = cast<GEPOperator>(GEP);
H A DOperator.h400 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 DBasicAliasAnalysis.h29 class GEPOperator;
129 AliasResult aliasGEP(const GEPOperator *V1, LocationSize V1Size,
30 class GEPOperator; global() variable
H A DMemoryBuiltins.h38 class GEPOperator; variable
334 SizeOffsetValue visitGEPOperator(GEPOperator &GEP);
H A DValueTracking.h37 class GEPOperator; variable
660 bool isGEPBasedOnPointerToString(const GEPOperator *GEP, unsigned CharSize = 8);
H A DScalarEvolution.h55 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 DNVPTXGenericToNVVM.cpp252 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 DObjCARCContract.cpp670 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 DInstCombineInternal.h54 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 DInstructionCombining.cpp193 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 DFunctionComparator.cpp431 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 DConstantHoisting.cpp420 auto *GEPO = cast<GEPOperator>(ConstExpr); in collectConstantCandidates()
485 if (ConstHoistGEP && isa<GEPOperator>(ConstExpr)) in collectConstantCandidates()
818 if (isa<GEPOperator>(ConstExpr)) { in emitBaseConstants()
H A DConstraintElimination.cpp393 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()

123