Home
last modified time | relevance | path

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

123

/external/swiftshader/third_party/LLVM/unittests/Analysis/
DScalarEvolutionTest.cpp60 const SCEV *P0 = SE.getAddExpr(S0, S0); in TEST_F()
61 const SCEV *P1 = SE.getAddExpr(S1, S1); in TEST_F()
62 const SCEV *P2 = SE.getAddExpr(S2, S2); in TEST_F()
148 EXPECT_EQ(Product->getOperand(0), SE.getAddExpr(Sum)); in TEST_F()
157 EXPECT_EQ(Product->getOperand(1), SE.getAddExpr(Sum)); in TEST_F()
166 EXPECT_EQ(Product->getOperand(2), SE.getAddExpr(Sum)); in TEST_F()
179 EXPECT_EQ(Product->getOperand(3), SE.getAddExpr(Sum)); in TEST_F()
197 EXPECT_EQ(Product->getOperand(4), SE.getAddExpr(Sum)); in TEST_F()
210 EXPECT_EQ(Product->getOperand(5), SE.getAddExpr(Sum)); in TEST_F()
219 EXPECT_EQ(Product->getOperand(6), SE.getAddExpr(Sum)); in TEST_F()
[all …]
/external/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp69 const SCEV *P0 = SE.getAddExpr(S0, S0); in TEST_F()
70 const SCEV *P1 = SE.getAddExpr(S1, S1); in TEST_F()
71 const SCEV *P2 = SE.getAddExpr(S2, S2); in TEST_F()
155 EXPECT_EQ(Product->getOperand(0), SE.getAddExpr(Sum)); in TEST_F()
164 EXPECT_EQ(Product->getOperand(1), SE.getAddExpr(Sum)); in TEST_F()
173 EXPECT_EQ(Product->getOperand(2), SE.getAddExpr(Sum)); in TEST_F()
186 EXPECT_EQ(Product->getOperand(3), SE.getAddExpr(Sum)); in TEST_F()
204 EXPECT_EQ(Product->getOperand(4), SE.getAddExpr(Sum)); in TEST_F()
217 EXPECT_EQ(Product->getOperand(5), SE.getAddExpr(Sum)); in TEST_F()
226 EXPECT_EQ(Product->getOperand(6), SE.getAddExpr(Sum)); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DScalarEvolution.cpp783 Result = SE.getAddExpr(Result, SE.getMulExpr(getOperand(i), Coeff)); in evaluateAtIteration()
836 return getAddExpr(Operands); in getTruncateExpr()
960 const SCEV *Add = getAddExpr(Start, ZMul); in getZeroExtendExpr()
962 getAddExpr(getZeroExtendExpr(Start, WideTy), in getZeroExtendExpr()
976 Add = getAddExpr(Start, SMul); in getZeroExtendExpr()
978 getAddExpr(getZeroExtendExpr(Start, WideTy), in getZeroExtendExpr()
1092 const SCEV *PreStart = SE->getAddExpr(DiffOps, SA->getNoWrapFlags()); in getPreStartForSignExtend()
1103 SE->getAddExpr(SE->getSignExtendExpr(PreStart, WideTy), in getPreStartForSignExtend()
1133 return SE->getAddExpr(SE->getSignExtendExpr(AR->getStepRecurrence(*SE), Ty), in getSignExtendAddRecStart()
1226 const SCEV *Add = getAddExpr(Start, SMul); in getSignExtendExpr()
[all …]
DScalarEvolutionExpander.cpp218 SE.getAddExpr(Remainder, in FactorOutConstant()
295 SE.getAddExpr(NoAddRecs); in SimplifyAddOperands()
426 expandCodeFor(SE.getAddExpr(ScaledOps), Ty); in expandAddToGEP()
496 Value *Idx = expandCodeFor(SE.getAddExpr(Ops), Ty); in expandAddToGEP()
588 return expand(SE.getAddExpr(Ops)); in expandAddToGEP()
831 Rest = SE.getAddExpr(Rest, in ExposePointerBase()
842 Rest = SE.getAddExpr(NewAddOps); in ExposePointerBase()
1219 return expand(SE.getAddExpr(SE.getUnknown(expand(S->getStart())), in visitAddRecExpr()
DScalarEvolutionNormalization.cpp174 case scAddExpr: return SE.getAddExpr(Operands); in TransformImpl()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DScalarEvolution.h564 const SCEV *getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
566 const SCEV *getAddExpr(const SCEV *LHS, const SCEV *RHS,
571 return getAddExpr(Ops, Flags);
573 const SCEV *getAddExpr(const SCEV *Op0, const SCEV *Op1, const SCEV *Op2,
579 return getAddExpr(Ops, Flags);
/external/llvm/lib/Analysis/
DScalarEvolution.cpp823 Quotient = SE.getAddExpr(Qs); in visitAddExpr()
824 Remainder = SE.getAddExpr(Rs); in visitAddExpr()
1058 Result = SE.getAddExpr(Result, SE.getMulExpr(getOperand(i), Coeff)); in evaluateAtIteration()
1111 return getAddExpr(Operands); in getTruncateExpr()
1272 const SCEV *PreStart = SE->getAddExpr(DiffOps, PreStartFlags); in getPreStartForExtend()
1289 SE->getAddExpr((SE->*GetExtendExpr)(PreStart, WideTy), in getPreStartForExtend()
1323 return SE->getAddExpr((SE->*GetExtendExpr)(AR->getStepRecurrence(*SE), Ty), in getExtendAddRecStart()
1489 const SCEV *ZAdd = getZeroExtendExpr(getAddExpr(Start, ZMul), WideTy); in getZeroExtendExpr()
1494 getAddExpr(WideStart, in getZeroExtendExpr()
1508 getAddExpr(WideStart, in getZeroExtendExpr()
[all …]
DScalarEvolutionExpander.cpp254 Remainder = SE.getAddExpr( in FactorOutConstant()
311 SE.getAddExpr(NoAddRecs); in SimplifyAddOperands()
443 expandCodeFor(SE.getAddExpr(ScaledOps), Ty); in expandAddToGEP()
498 Value *Idx = expandCodeFor(SE.getAddExpr(Ops), Ty); in expandAddToGEP()
577 return expand(SE.getAddExpr(Ops)); in expandAddToGEP()
804 Rest = SE.getAddExpr(Rest, in ExposePointerBase()
814 Rest = SE.getAddExpr(NewAddOps); in ExposePointerBase()
1044 if (SE.getAddExpr(Requested->getStart(), in canBeCheaplyTransformed()
1060 const SCEV *OpAfterExtend = SE.getAddExpr(SE.getSignExtendExpr(Step, WideTy), in IsIncrementNSW()
1063 SE.getSignExtendExpr(SE.getAddExpr(AR, Step), WideTy); in IsIncrementNSW()
[all …]
DScalarEvolutionNormalization.cpp183 Result = SE.getAddExpr(Result, TransformedStep); in TransformImpl()
204 case scAddExpr: return SE.getAddExpr(Operands); in TransformImpl()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DScalarEvolution.cpp981 Quotient = SE.getAddExpr(Qs); in visitAddExpr()
982 Remainder = SE.getAddExpr(Rs); in visitAddExpr()
1215 Result = SE.getAddExpr(Result, SE.getMulExpr(getOperand(i), Coeff)); in evaluateAtIteration()
1273 return getAddExpr(Operands); in getTruncateExpr()
1430 const SCEV *PreStart = SE->getAddExpr(DiffOps, PreStartFlags); in getPreStartForExtend()
1447 SE->getAddExpr((SE->*GetExtendExpr)(PreStart, WideTy, Depth), in getPreStartForExtend()
1482 return SE->getAddExpr((SE->*GetExtendExpr)(AR->getStepRecurrence(*SE), Ty, in getExtendAddRecStart()
1692 const SCEV *ZAdd = getZeroExtendExpr(getAddExpr(Start, ZMul, in getZeroExtendExpr()
1700 getAddExpr(WideStart, in getZeroExtendExpr()
1718 getAddExpr(WideStart, in getZeroExtendExpr()
[all …]
DScalarEvolutionExpander.cpp267 Remainder = SE.getAddExpr( in FactorOutConstant()
324 SE.getAddExpr(NoAddRecs); in SimplifyAddOperands()
456 expandCodeFor(SE.getAddExpr(ScaledOps), Ty); in expandAddToGEP()
511 Value *Idx = expandCodeFor(SE.getAddExpr(Ops), Ty); in expandAddToGEP()
589 return expand(SE.getAddExpr(Ops)); in expandAddToGEP()
860 Rest = SE.getAddExpr(Rest, in ExposePointerBase()
870 Rest = SE.getAddExpr(NewAddOps); in ExposePointerBase()
1099 if (SE.getAddExpr(Requested->getStart(), in canBeCheaplyTransformed()
1115 const SCEV *OpAfterExtend = SE.getAddExpr(SE.getSignExtendExpr(Step, WideTy), in IsIncrementNSW()
1118 SE.getSignExtendExpr(SE.getAddExpr(AR, Step), WideTy); in IsIncrementNSW()
[all …]
DScalarEvolutionNormalization.cpp67 Operands[i] = SE.getAddExpr(Operands[i], Operands[i + 1]); in visitAddRecExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DInductiveRangeCheckElimination.cpp739 const SCEV *StepPlusOne = SE.getAddExpr(Step, SE.getOne(Step->getType())); in isSafeDecreasingBound()
794 SE.getAddExpr(BoundSCEV, Step)) && in isSafeIncreasingBound()
953 const SCEV *IndVarStart = SE.getAddExpr(StartNext, Addend); in parseLoopStructure()
1047 RightSCEV = SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
1051 RightSCEV = SE.getAddExpr(RightSCEV, SE.getOne(RightSCEV->getType())); in parseLoopStructure()
1172 Smallest = SE.getAddExpr(End, One); in calculateSubRanges()
1173 Greatest = SE.getAddExpr(Start, One); in calculateSubRanges()
1519 ExitPreLoopAtSCEV = SE.getAddExpr(*SR.HighLimit, MinusOneS); in run()
1548 ExitMainLoopAtSCEV = SE.getAddExpr(*SR.LowLimit, MinusOneS); in run()
1756 return SE.getAddExpr(SE.getSMaxExpr(SE.getSMinExpr(X, Zero), NegOne), One); in computeSafeIterationSpace()
DLoopStrengthReduce.cpp435 const SCEV *Sum = SE.getAddExpr(Good); in initialMatch()
441 const SCEV *Sum = SE.getAddExpr(Bad); in initialMatch()
702 return SE.getAddExpr(Ops); in getExactSDiv()
742 S = SE.getAddExpr(NewOps); in ExtractImmediate()
768 S = SE.getAddExpr(NewOps); in ExtractSymbol()
2230 const SCEV *IterationCount = SE.getAddExpr(One, BackedgeTakenCount); in OptimizeMax()
3156 SE.getAddExpr(LeftOverExpr, IncExpr) : IncExpr; in GenerateIVChain()
3162 const SCEV *IVOperExpr = SE.getAddExpr(SE.getUnknown(IVSrc), in GenerateIVChain()
3574 const SCEV *InnerSum = SE.getAddExpr(InnerAddOps); in GenerateReassociationsImpl()
3658 const SCEV *Sum = SE.getAddExpr(Ops); in GenerateCombinations()
[all …]
/external/llvm/lib/Transforms/Scalar/
DInductiveRangeCheckElimination.cpp795 const SCEV *IndVarStart = SE.getAddExpr(StartNext, Addend); in parseLoopStructure()
871 Smallest = SE.getAddExpr(End, SE.getSCEV(One)); in calculateSubRanges()
872 Greatest = SE.getAddExpr(Start, SE.getSCEV(One)); in calculateSubRanges()
1198 ExitPreLoopAtSCEV = SE.getAddExpr(*SR.HighLimit, MinusOneS); in run()
1217 ExitMainLoopAtSCEV = SE.getAddExpr(*SR.LowLimit, MinusOneS); in run()
1419 cast<SCEVAddRecExpr>(SE.getAddExpr(SE.getSCEV(LS.IndVarNext), MinusOne)); in runOnLoop()
DLoopStrengthReduce.cpp366 const SCEV *Sum = SE.getAddExpr(Good); in initialMatch()
372 const SCEV *Sum = SE.getAddExpr(Bad); in initialMatch()
594 return SE.getAddExpr(Ops); in getExactSDiv()
634 S = SE.getAddExpr(NewOps); in ExtractImmediate()
660 S = SE.getAddExpr(NewOps); in ExtractSymbol()
1972 const SCEV *IterationCount = SE.getAddExpr(One, BackedgeTakenCount); in OptimizeMax()
2879 SE.getAddExpr(LeftOverExpr, IncExpr) : IncExpr; in GenerateIVChain()
2885 const SCEV *IVOperExpr = SE.getAddExpr(SE.getUnknown(IVSrc), in GenerateIVChain()
3257 const SCEV *InnerSum = SE.getAddExpr(InnerAddOps); in GenerateReassociationsImpl()
3336 const SCEV *Sum = SE.getAddExpr(Ops); in GenerateCombinations()
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp342 Operation = &ScalarEvolution::getAddExpr; in eliminateOverflowIntrinsic()
349 Operation = &ScalarEvolution::getAddExpr; in eliminateOverflowIntrinsic()
506 GetExprForBO = &ScalarEvolution::getAddExpr; in strengthenOverflowingOperation()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h1200 const SCEV *getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
1202 const SCEV *getAddExpr(const SCEV *LHS, const SCEV *RHS,
1205 return getAddExpr(Ops, Flags);
1207 const SCEV *getAddExpr(const SCEV *Op0, const SCEV *Op1, const SCEV *Op2,
1210 return getAddExpr(Ops, Flags);
DScalarEvolutionExpressions.h344 return cast<SCEVAddRecExpr>(SE.getAddExpr(this, getStepRecurrence(SE))); in getPostIncExpr()
571 return SE.getAddExpr(Operands); in visitAddExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DScalarEvolution.h528 const SCEV *getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
531 const SCEV *getAddExpr(const SCEV *LHS, const SCEV *RHS,
535 return getAddExpr(Ops, Flags, Depth);
537 const SCEV *getAddExpr(const SCEV *Op0, const SCEV *Op1, const SCEV *Op2,
541 return getAddExpr(Ops, Flags, Depth);
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp315 const SCEV *Sum = SE.getAddExpr(Good); in InitialMatch()
321 const SCEV *Sum = SE.getAddExpr(Bad); in InitialMatch()
502 return SE.getAddExpr(Ops); in getExactSDiv()
545 S = SE.getAddExpr(NewOps); in ExtractImmediate()
572 S = SE.getAddExpr(NewOps); in ExtractSymbol()
1658 const SCEV *IterationCount = SE.getAddExpr(One, BackedgeTakenCount); in OptimizeMax()
2384 const SCEV *InnerSum = SE.getAddExpr(InnerAddOps); in GenerateReassociations()
2439 const SCEV *Sum = SE.getAddExpr(Ops); in GenerateCombinations()
2491 const SCEV *NewG = SE.getAddExpr(SE.getConstant(G->getType(), *I), G); in GenerateConstantOffsets()
2820 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg); in GenerateCrossUseConstantOffsets()
[all …]
DLoopIdiomRecognize.cpp504 const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtr, 1), in processLoopStridedStore()
610 const SCEV *NumBytesS = SE->getAddExpr(BECount, SE->getConstant(IntPtr, 1), in processLoopStoreOfLoopLoad()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp419 Operation = &ScalarEvolution::getAddExpr; in eliminateOverflowIntrinsic()
426 Operation = &ScalarEvolution::getAddExpr; in eliminateOverflowIntrinsic()
736 GetExprForBO = &ScalarEvolution::getAddExpr; in strengthenOverflowingOperation()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Analysis/ScalarEvolution/
Dlimit-depth.ll3 ; Check that depth set to 0 prevents getAddExpr and getMulExpr from making
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp83 const SCEV *P0 = SE.getAddExpr(S0, S0); in TEST_F()
84 const SCEV *P1 = SE.getAddExpr(S1, S1); in TEST_F()
85 const SCEV *P2 = SE.getAddExpr(S2, S2); in TEST_F()
558 return SE.getAddExpr(OpsCopy, SCEV::FlagAnyWrap); in TEST_F()
1110 const auto *Expr = SE.getAddExpr(A, B); in TEST_F()

123