Home
last modified time | relevance | path

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

123

/openbsd/gnu/llvm/llvm/lib/IR/
H A DOperator.cpp36 auto *GEP = cast<GEPOperator>(this); in hasPoisonGeneratingFlags()
54 Type *GEPOperator::getSourceElementType() const { in getSourceElementType()
60 Type *GEPOperator::getResultElementType() const { in getResultElementType()
66 Align GEPOperator::getMaxPreservedAlignment(const DataLayout &DL) const { in getMaxPreservedAlignment()
91 bool GEPOperator::accumulateConstantOffset( in accumulateConstantOffset()
98 return GEPOperator::accumulateConstantOffset(getSourceElementType(), Index, in accumulateConstantOffset()
102 bool GEPOperator::accumulateConstantOffset( in accumulateConstantOffset()
176 bool GEPOperator::collectOffset( in collectOffset()
H A DTypeFinder.cpp155 if (auto *GEP = dyn_cast<GEPOperator>(V)) in incorporateValue()
H A DConstantFold.cpp382 !cast<GEPOperator>(CE)->getInRangeIndex() && in ConstantFoldCastInstruction()
635 if (auto *GEP = dyn_cast<GEPOperator>(CE)) { in ConstantFoldExtractElementInstruction()
1538 GEPOperator *CE1GEP = cast<GEPOperator>(CE1); in evaluateICmpRelation()
1558 } else if (const auto *CE2GEP = dyn_cast<GEPOperator>(V2)) { in evaluateICmpRelation()
1964 static Constant *foldGEPOfGEP(GEPOperator *GEP, Type *PointeeTy, bool InBounds, in foldGEPOfGEP()
2105 if (auto *GEP = dyn_cast<GEPOperator>(CE)) in ConstantFoldGetElementPtr()
H A DValue.cpp627 if (auto *GEP = dyn_cast<GEPOperator>(V)) { in stripPointerCastsAndOffsets()
722 if (auto *GEP = dyn_cast<GEPOperator>(V)) { in stripAndAccumulateConstantOffsets()
/openbsd/gnu/llvm/llvm/include/llvm/Transforms/Utils/
H A DFunctionComparator.h346 int cmpGEPs(const GEPOperator *GEPL, const GEPOperator *GEPR) const;
349 return cmpGEPs(cast<GEPOperator>(GEPL), cast<GEPOperator>(GEPR)); in cmpGEPs()
/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DLocal.cpp24 GEPOperator *GEPOp = cast<GEPOperator>(GEP); in emitGEPOffset()
H A DBasicAliasAnalysis.cpp548 const GEPOperator *GEPOp = dyn_cast<GEPOperator>(Op); in DecomposeGEPExpression()
1016 const GEPOperator *GEP1, LocationSize V1Size, in aliasGEP()
1022 if (!isa<GEPOperator>(V2)) in aliasGEP()
1052 if (isa<GEPOperator>(V2)) { in aliasGEP()
1615 if (const GEPOperator *GV1 = dyn_cast<GEPOperator>(V1)) { in aliasCheckRecursive()
1619 } else if (const GEPOperator *GV2 = dyn_cast<GEPOperator>(V2)) { in aliasCheckRecursive()
H A DLoads.cpp58 if (const GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in isDereferenceableAndAlignedPointer()
H A DMemoryBuiltins.cpp1072 } else if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in compute_()
1148 ObjectSizeOffsetEvaluator::visitGEPOperator(GEPOperator &GEP) { in visitGEPOperator()
H A DInlineCost.cpp419 bool accumulateGEPOffset(GEPOperator &GEP, APInt &Offset);
1335 bool CallAnalyzer::accumulateGEPOffset(GEPOperator &GEP, APInt &Offset) { in accumulateGEPOffset()
1530 if (!accumulateGEPOffset(cast<GEPOperator>(I), BaseAndOffset.second)) in canFoldInboundsGEP()
2546 if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) { in stripAndComputeInBoundsConstantOffsets()
H A DConstantFolding.cpp328 auto *GEP = dyn_cast<GEPOperator>(CE); in IsConstantOffsetFromGlobal()
878 Constant *SymbolicallyEvaluateGEP(const GEPOperator *GEP, in SymbolicallyEvaluateGEP()
882 const GEPOperator *InnermostGEP = GEP; in SymbolicallyEvaluateGEP()
913 while (auto *GEP = dyn_cast<GEPOperator>(Ptr)) { in SymbolicallyEvaluateGEP()
1055 if (auto *GEP = dyn_cast<GEPOperator>(InstOrCE)) { in ConstantFoldInstOperandsImpl()
1426 } else if (auto *GEP = dyn_cast<GEPOperator>(CE)) { in ConstantFoldCastOperand()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DGetElementPtrTypeIterator.h124 auto *GEPOp = cast<GEPOperator>(GEP); in gep_type_begin()
135 auto &GEPOp = cast<GEPOperator>(GEP); in gep_type_begin()
H A DOperator.h378 class GEPOperator
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp60 auto *GEP = dyn_cast<GEPOperator>(U); in splitGlobal()
120 auto *GEP = cast<GEPOperator>(U); in splitGlobal()
/openbsd/gnu/llvm/llvm/include/llvm/Analysis/
H A DBasicAliasAnalysis.h30 class GEPOperator; variable
125 AliasResult aliasGEP(const GEPOperator *V1, LocationSize V1Size,
H A DMemoryBuiltins.h38 class GEPOperator; variable
308 SizeOffsetEvalType visitGEPOperator(GEPOperator &GEP);
H A DValueTracking.h34 class GEPOperator; variable
291 bool isGEPBasedOnPointerToString(const GEPOperator *GEP, unsigned CharSize = 8);
H A DScalarEvolution.h55 class GEPOperator; variable
632 const SCEV *getGEPExpr(GEPOperator *GEP,
1732 const SCEV *createNodeForGEP(GEPOperator *GEP);
/openbsd/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp275 return Builder.CreateGEP(cast<GEPOperator>(C)->getSourceElementType(), in remapConstantExpr()
278 cast<GEPOperator>(C)->isInBounds()); in remapConstantExpr()
/openbsd/gnu/llvm/llvm/lib/Transforms/ObjCARC/
H A DObjCARCContract.cpp669 else if (isa<GEPOperator>(Arg) && in run()
670 cast<GEPOperator>(Arg)->hasAllZeroIndices()) in run()
671 Arg = cast<GEPOperator>(Arg)->getPointerOperand(); in run()
/openbsd/gnu/llvm/llvm/tools/llvm-reduce/deltas/
H A DReduceOperandsSkip.cpp51 if (isa<GEPOperator>(Op.getUser())) in shouldReduceOperand()
H A DReduceOperands.cpp70 if (isa<GEPOperator>(Op.getUser())) in shouldReduceOperand()
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineInternal.h53 class GEPOperator; variable
152 Instruction *visitGEPOfGEP(GetElementPtrInst &GEP, GEPOperator *Src);
548 Instruction *foldGEPICmp(GEPOperator *GEPLHS, Value *RHS,
H A DInstructionCombining.cpp1399 static bool shouldMergeGEPs(GEPOperator &GEP, GEPOperator &Src) { in shouldMergeGEPs()
1951 static bool isMergedGEPInBounds(GEPOperator &GEP1, GEPOperator &GEP2) { in isMergedGEPInBounds()
1987 GEPOperator *Src) { in visitGEPOfGEP()
1991 if (!shouldMergeGEPs(*cast<GEPOperator>(&GEP), *Src)) in visitGEPOfGEP()
2030 if (auto *SrcGEP = dyn_cast<GEPOperator>(Src->getOperand(0))) in visitGEPOfGEP()
2080 return isMergedGEPInBounds(*Src, *cast<GEPOperator>(&GEP)) in visitGEPOfGEP()
2090 bool IsInBounds = isMergedGEPInBounds(*Src, *cast<GEPOperator>(&GEP)); in visitGEPOfGEP()
2146 GEP.setIsInBounds(isMergedGEPInBounds(*Src, *cast<GEPOperator>(&GEP))); in visitGEPOfGEP()
2163 return isMergedGEPInBounds(*Src, *cast<GEPOperator>(&GEP)) in visitGEPOfGEP()
2446 NewPN->addIncoming(cast<GEPOperator>(I)->getOperand(DI), in visitGetElementPtrInst()
[all …]
/openbsd/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DConstantHoisting.cpp415 auto *GEPO = cast<GEPOperator>(ConstExpr); in collectConstantCandidates()
480 if (ConstHoistGEP && isa<GEPOperator>(ConstExpr)) in collectConstantCandidates()
820 if (isa<GEPOperator>(ConstExpr)) { in emitBaseConstants()

123