Home
last modified time | relevance | path

Searched refs:isInBounds (Results 1 – 25 of 55) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DGEPNoWrapFlags.h35 assert((!isInBounds() || hasNoUnsignedSignedWrap()) && in GEPNoWrapFlags()
63 bool isInBounds() const { return Flags & InBoundsFlag; } in isInBounds() function
H A DOperator.h411 bool isInBounds() const { return getNoWrapFlags().isInBounds(); }
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopIdiomVectorize.cpp417 Builder.CreateGEP(LoadType, PtrA, VectorIndexPhi, "", GEPA->isInBounds()); in createMaskedFindMismatch()
422 Builder.CreateGEP(LoadType, PtrB, VectorIndexPhi, "", GEPB->isInBounds()); in createMaskedFindMismatch()
516 Builder.CreateGEP(LoadType, PtrA, GepOffset, "", GEPA->isInBounds()); in createPredicatedFindMismatch()
525 Builder.CreateGEP(LoadType, PtrB, GepOffset, "", GEPB->isInBounds()); in createPredicatedFindMismatch()
782 Builder.CreateGEP(LoadType, PtrA, GepOffset, "", GEPA->isInBounds()); in expandFindMismatch()
786 Builder.CreateGEP(LoadType, PtrB, GepOffset, "", GEPB->isInBounds()); in expandFindMismatch()
H A DVPlanRecipes.cpp1526 ArrayRef(Ops).drop_front(), "", isInBounds()); in execute()
1561 Indices, "", isInBounds()); in execute()
1600 bool InBounds = isInBounds(); in execute()
2186 InBounds = gep->isInBounds(); in execute()
H A DVPlan.h1058 GEPFlags.IsInBounds = GEP->isInBounds(); in VPRecipeWithIRFlags()
1191 bool isInBounds() const { in isInBounds() function
1678 isInBounds(), getDebugLoc()); in clone()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp787 GEP->isInBounds()); in Extract()
802 GEP->isInBounds()) in Find()
991 bool GEPInBounds = GEP->isInBounds(); in reorderGEP()
992 bool PtrGEPInBounds = PtrGEP->isInBounds(); in reorderGEP()
1106 bool GEPWasInBounds = GEP->isInBounds(); in splitGEP()
H A DLoopFlatten.cpp674 if (GEP->isInBounds() && in checkOverflow()
816 GEP->isInBounds() && InnerGEP->isInBounds()); in DoFlattenLoopPair()
H A DNaryReassociate.cpp461 NewGEP->setIsInBounds(GEP->isInBounds()); in tryReassociateGEPAtIndex()
H A DStraightLineStrengthReduce.cpp655 bool InBounds = cast<GetElementPtrInst>(C.Ins)->isInBounds(); in rewriteCandidateWithBasis()
H A DConstantHoisting.cpp426 if (!GEPO->isInBounds()) in collectConstantCandidates()
H A DConstraintElimination.cpp394 : BasePtr(GEP.getPointerOperand()), AllInbounds(GEP.isInBounds()) { in OffsetResult()
428 Result.AllInbounds &= InnerGEP->isInBounds(); in collectOffsets()
H A DLICM.cpp2516 bool IsInBounds = Src->isInBounds() && GEP->isInBounds() && in hoistGEP()
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFPreserveStaticOffset.cpp343 Info.InBounds = First->isInBounds(); in foldGEPChainAsStructAccess()
360 Info.InBounds &= GEP->isInBounds(); in foldGEPChainAsStructAccess()
387 Info.InBounds &= GEP->isInBounds(); in foldGEPChainAsU8Access()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DGlobalSplit.cpp160 Info.GEP->isInBounds()); in splitGlobal()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp255 cast<GEPOperator>(C)->isInBounds()); in remapConstantExpr()
H A DNVPTXLowerArgs.cpp241 NewGEP->setIsInBounds(GEP->isInBounds()); in INITIALIZE_PASS_DEPENDENCY()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp649 if (!GEP->isInBounds()) in stripPointerCastsAndOffsets()
733 if (!AllowNonInbounds && !GEP->isInBounds()) in stripAndAccumulateConstantOffsets()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp643 Decomposed.InBounds = GEPOp->isInBounds(); in DecomposeGEPExpression()
644 else if (!GEPOp->isInBounds()) in DecomposeGEPExpression()
704 LE = LE.mul(APInt(IndexSize, TypeSize), GEPOp->isInBounds()); in DecomposeGEPExpression()
H A DIRSimilarityIdentifier.cpp259 if (GEP->isInBounds() != OtherGEP->isInBounds()) in isClose()
H A DInlineCost.cpp1638 if ((I.isInBounds() && canFoldInboundsGEP(I)) || IsGEPOffsetConstant(I)) { in visitGetElementPtr()
2644 if (!GEP->isInBounds() || !accumulateGEPOffset(*GEP, Offset)) in stripAndComputeInBoundsConstantOffsets()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp542 if (!GEP || !GEP->isInBounds() || GEP->getNumIndices() != 2) in tryToRecognizeTableBasedCttz()
854 if (!GEP->isInBounds()) in getStrideAndModOffsetOfGEP()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp365 GEP->getName() + "offset", GEP->isInBounds()); in determineBaseAndStride()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DIRMutator.cpp252 [GEP]() { GEP->setIsInBounds(!GEP->isInBounds()); }); in mutate()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp297 if (!GEP->isInBounds()) { in foldCmpLoadFromIndexedGlobal()
314 if (!GEP->isInBounds() && llvm::countr_zero(ElementSize) != 0) { in foldCmpLoadFromIndexedGlobal()
462 if (!GEP->isInBounds() || count_if(GEP->indices(), IsNonConst) > 1) in canRewriteGEPAsOffset()
691 if (PtrBase == RHS && (GEPLHS->isInBounds() || ICmpInst::isEquality(Cond))) { in foldGEPICmp()
698 if (GEPLHS->isInBounds() && ICmpInst::isEquality(Cond) && in foldGEPICmp()
752 if (GEPLHS->isInBounds() && GEPRHS->isInBounds() && in foldGEPICmp()
785 bool GEPsInBounds = GEPLHS->isInBounds() && GEPRHS->isInBounds(); in foldGEPICmp()
H A DInstructionCombining.cpp2313 return GEP1.isInBounds() && GEP2.isInBounds(); in isMergedGEPInBounds()
3006 return GEP.isInBounds() && AddIsNSW && isKnownNonNegative(Idx1, Q) && in visitGetElementPtrInst()
3052 if (!GEP.isInBounds()) { in visitGetElementPtrInst()

123