Home
last modified time | relevance | path

Searched refs:getAddExpr (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DScalarEvolutionTest.cpp428 auto *AddWithNUW = cast<SCEVAddExpr>(SE.getAddExpr( in TEST_F()
429 SE.getAddExpr(SE.getSCEV(A2), SE.getSCEV(A3), SCEV::FlagNUW), in TEST_F()
441 auto *AddWithNSW = SE.getAddExpr( in TEST_F()
444 SE.getAddExpr(AddWithNSW, SE.getSCEV(A5), SCEV::FlagNUW)); in TEST_F()
449 SE.getAddExpr(SE.getSCEV(A2), SE.getSCEV(A4), in TEST_F()
452 SE.getAddExpr(AddWithNSWNUW, SE.getSCEV(A5), SCEV::FlagNUW)); in TEST_F()
457 SE.getAddExpr(AddWithNSW, SE.getSCEV(A6), in TEST_F()
556 return SE.getAddExpr(OpsCopy, SCEV::FlagAnyWrap); in TEST_F()
1033 const auto *Expr = SE.getAddExpr(A, B); in TEST_F()
1233 auto *Sum = SE.getAddExpr(X, One, SCEV::FlagNUW); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolutionDivision.cpp168 Quotient = SE.getAddExpr(Qs); in visitAddExpr()
169 Remainder = SE.getAddExpr(Rs); in visitAddExpr()
H A DScalarEvolution.cpp1262 return getAddExpr(Operands); in getTruncateExpr()
1696 getAddExpr(WideStart, in getZeroExtendExpr()
1713 getAddExpr(WideStart, in getZeroExtendExpr()
1840 return getAddExpr(SZExtD, SZExtR, in getZeroExtendExpr()
1974 return getAddExpr(SSExtD, SSExtR, in getSignExtendExpr()
2037 getAddExpr(WideStart, in getSignExtendExpr()
2054 getAddExpr(WideStart, in getSignExtendExpr()
3481 return getAddExpr(Operands); in getUDivExpr()
4507 return getAddExpr(Ops); in removePointerBase()
5343 const SCEV *Accum = getAddExpr(Ops); in createAddRecFromPHIWithCastsImpl()
[all …]
H A DScalarEvolutionNormalization.cpp67 Operands[i] = SE.getAddExpr(Operands[i], Operands[i + 1]); in visitAddRecExpr()
H A DDependenceAnalysis.cpp573 const SCEV *Sum = SE->getAddExpr(A1X1, B1Y1); in intersectConstraints()
2901 SE->getAddExpr(SE->getMulExpr(NegPart, Iter_1), A[K].Coeff); in findBoundsGT()
2905 SE->getAddExpr(SE->getMulExpr(PosPart, Iter_1), A[K].Coeff); in findBoundsGT()
2985 Sum = SE->getAddExpr(Sum, Bound[K].Lower[Bound[K].Direction]); in getLowerBound()
3001 Sum = SE->getAddExpr(Sum, Bound[K].Upper[Bound[K].Direction]); in getUpperBound()
3063 const SCEV *Sum = SE->getAddExpr(AddRec->getStepRecurrence(*SE), Value); in addToCoefficient()
3175 Src = SE->getAddExpr(Src, SE->getMulExpr(A_K, SE->getConstant(CdivA))); in propagateLine()
3189 Src = SE->getAddExpr(Src, SE->getMulExpr(A_K, SE->getConstant(CdivA))); in propagateLine()
3200 Src = SE->getAddExpr(Src, SE->getMulExpr(A_K, C)); in propagateLine()
3223 Src = SE->getAddExpr(Src, SE->getMinusSCEV(XA_K, YAP_K)); in propagatePoint()
H A DLoopAccessAnalysis.cpp237 ScEnd = SE->getAddExpr(ScEnd, EltSizeSCEV); in insert()
877 SE->getAddExpr(BaseScevs[0].first, Scaled1), NeedsFreeze)); in findForkedSCEVs()
879 SE->getAddExpr(BaseScevs[1].first, Scaled2), NeedsFreeze)); in findForkedSCEVs()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DInductiveRangeCheckElimination.cpp691 const SCEV *StepPlusOne = SE.getAddExpr(Step, SE.getOne(Step->getType())); in isSafeDecreasingBound()
746 SE.getAddExpr(BoundSCEV, Step)) && in isSafeIncreasingBound()
869 const SCEV *IndVarStart = SE.getAddExpr(StartNext, Addend); in parseLoopStructure()
943 SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
969 RightSCEV = SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
973 RightSCEV = SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
1112 Smallest = SE.getAddExpr(End, One); in calculateSubRanges()
1113 Greatest = SE.getAddExpr(Start, One); in calculateSubRanges()
1446 ExitPreLoopAtSCEV = SE.getAddExpr(*SR.HighLimit, MinusOneS); in run()
1473 ExitMainLoopAtSCEV = SE.getAddExpr(*SR.LowLimit, MinusOneS); in run()
[all …]
H A DSeparateConstOffsetFromGEP.cpp1217 SE->getAddExpr(SE->getUnknown(LHS), SE->getUnknown(RHS)); in reuniteExts()
1229 SE->getAddExpr(SE->getUnknown(LHS), SE->getUnknown(RHS)); in reuniteExts()
1244 SE->getAddExpr(SE->getUnknown(LHS), SE->getUnknown(RHS)); in reuniteExts()
1250 SE->getAddExpr(SE->getUnknown(LHS), SE->getUnknown(RHS)); in reuniteExts()
H A DLoopStrengthReduce.cpp466 const SCEV *Sum = SE.getAddExpr(Good); in initialMatch()
472 const SCEV *Sum = SE.getAddExpr(Bad); in initialMatch()
742 return SE.getAddExpr(Ops); in getExactSDiv()
797 S = SE.getAddExpr(NewOps); in ExtractImmediate()
823 S = SE.getAddExpr(NewOps); in ExtractSymbol()
3235 SE.getAddExpr(LeftOverExpr, IncExpr) : IncExpr; in GenerateIVChain()
3704 const SCEV *InnerSum = SE.getAddExpr(InnerAddOps); in GenerateReassociationsImpl()
3816 GenerateFormula(SE.getAddExpr(OpsCopy)); in GenerateCombinations()
3826 GenerateFormula(SE.getAddExpr(Ops)); in GenerateCombinations()
4352 NewF.BaseRegs[N] = SE.getAddExpr(NegImmS, BaseReg); in GenerateCrossUseConstantOffsets()
[all …]
H A DAlignmentFromAssumptions.cpp144 DiffSCEV = SE->getAddExpr(DiffSCEV, OffSCEV); in getNewAlignment()
H A DIndVarSimplify.cpp1000 IVOffset = SE->getAddExpr(IVOffset, SE->getOne(OfsTy)); in genLoopLimit()
1006 const SCEV *IVLimit = SE->getAddExpr(IVInit, IVOffset); in genLoopLimit()
1037 const SCEV *IVLimit = SE->getAddExpr(IVInit, ExitCount); in genLoopLimit()
1040 IVLimit = SE->getAddExpr(IVLimit, SE->getOne(IVLimit->getType())); in genLoopLimit()
H A DLoopDataPrefetch.cpp395 const SCEV *NextLSCEV = SE->getAddExpr(P.LSCEVAddRec, SE->getMulExpr( in runOnLoop()
H A DLoopBoundSplit.cpp113 SE.getAddExpr(Cond.BoundSCEV, SE.getOne(BoundSCEVIntType)); in calculateUpperBound()
H A DNaryReassociate.cpp543 return SE->getAddExpr(LHS, RHS); in getBinarySCEV()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp269 auto *ECPlusVWMinus1 = SE->getAddExpr(EC, in IsSafeActiveMask()
299 SE->getUDivExpr(SE->getAddExpr(SE->getMulExpr(Ceil, VW), in IsSafeActiveMask()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp321 Remainder = SE.getAddExpr( in FactorOutConstant()
378 SE.getAddExpr(NoAddRecs); in SimplifyAddOperands()
512 : expandCodeForImpl(SE.getAddExpr(ScaledOps), Ty, false); in expandAddToGEP()
573 Value *Idx = expandCodeForImpl(SE.getAddExpr(Ops), Ty, false); in expandAddToGEP()
650 return expand(SE.getAddExpr(Ops)); in expandAddToGEP()
1144 const SCEV *OpAfterExtend = SE.getAddExpr(SE.getSignExtendExpr(Step, WideTy), in IsIncrementNSW()
1147 SE.getSignExtendExpr(SE.getAddExpr(AR, Step), WideTy); in IsIncrementNSW()
1158 const SCEV *OpAfterExtend = SE.getAddExpr(SE.getZeroExtendExpr(Step, WideTy), in IsIncrementNUW()
1161 SE.getZeroExtendExpr(SE.getAddExpr(AR, Step), WideTy); in IsIncrementNUW()
1567 return expand(SE.getAddExpr(AddExprLHS, AddExprRHS)); in visitAddRecExpr()
[all …]
H A DLoopPeel.cpp290 const SCEV *NextIterVal = SE.getAddExpr(IterVal, Step); in countToEliminateCompares()
294 NextIterVal = SE.getAddExpr(IterVal, Step); in countToEliminateCompares()
H A DLoopUnrollRuntime.cpp645 SE->getAddExpr(BECountSC, SE->getConstant(BECountSC->getType(), 1)); in UnrollRuntimeLoopRemainder()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DScalarEvolution.h568 const SCEV *getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
571 const SCEV *getAddExpr(const SCEV *LHS, const SCEV *RHS,
575 return getAddExpr(Ops, Flags, Depth);
577 const SCEV *getAddExpr(const SCEV *Op0, const SCEV *Op1, const SCEV *Op2,
581 return getAddExpr(Ops, Flags, Depth);
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCLoopInstrFormPrep.cpp565 ChainIdx ? SE->getAddExpr(Bucket.BaseSCEV, in rewriteLoadStoresForCommoningChains()
952 BucketChain.BaseSCEV = SE->getAddExpr(BucketChain.BaseSCEV, Offset); in prepareBaseForDispFormChain()
997 BucketChain.BaseSCEV = SE->getAddExpr(BucketChain.BaseSCEV, Offset); in prepareBaseForUpdateFormChain()
/llvm-project-15.0.7/llvm/test/Analysis/ScalarEvolution/
H A Dlimit-depth.ll3 ; Check that depth set to 0 prevents getAddExpr and getMulExpr from making
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DHardwareLoops.cpp391 ExitCount = SE.getAddExpr(ExitCount, SE.getOne(CountType)); in InitLoopCount()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp368 const SCEV *X = SE.getAddExpr(PtrSCEVA, C); in areConsecutivePointers()
560 const SCEV *X = SE.getAddExpr(OffsetSCEVA, C); in lookThroughComplexAddresses()
/llvm-project-15.0.7/polly/lib/Support/
H A DScopHelper.cpp362 return SE.getAddExpr(NewOps); in visitAddExpr()
H A DSCEVValidator.cpp712 auto *NewAdd = SE.getAddExpr(LeftOvers, Add->getNoWrapFlags()); in extractConstantFactor()

12