Home
last modified time | relevance | path

Searched refs:SCEVConstant (Results 1 – 15 of 15) sorted by relevance

/external/llvm/lib/Analysis/
DDependenceAnalysis.cpp450 if (isa<SCEVConstant>(Y->getD())) { in intersectConstraints()
493 const SCEVConstant *C1A2_C2A1 = in intersectConstraints()
494 dyn_cast<SCEVConstant>(SE->getMinusSCEV(C1A2, C2A1)); in intersectConstraints()
495 const SCEVConstant *C1B2_C2B1 = in intersectConstraints()
496 dyn_cast<SCEVConstant>(SE->getMinusSCEV(C1B2, C2B1)); in intersectConstraints()
497 const SCEVConstant *A1B2_A2B1 = in intersectConstraints()
498 dyn_cast<SCEVConstant>(SE->getMinusSCEV(A1B2, A2B1)); in intersectConstraints()
499 const SCEVConstant *A2B1_A1B2 = in intersectConstraints()
500 dyn_cast<SCEVConstant>(SE->getMinusSCEV(A2B1, A1B2)); in intersectConstraints()
529 if (const SCEVConstant *CUB = in intersectConstraints()
[all …]
DScalarEvolution.cpp141 cast<SCEVConstant>(this)->getValue()->printAsOperand(OS, false); in print()
251 return cast<SCEVConstant>(this)->getType(); in getType()
274 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isZero()
280 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isOne()
286 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isAllOnesValue()
298 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0)); in isNonConstantNegative()
318 SCEV *S = new (SCEVAllocator) SCEVConstant(ID.Intern(SCEVAllocator), V); in getConstant()
537 const SCEVConstant *LC = cast<SCEVConstant>(LHS); in compare()
538 const SCEVConstant *RC = cast<SCEVConstant>(RHS); in compare()
837 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(Op)) in getTruncateExpr()
[all …]
DScalarEvolutionExpander.cpp223 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S)) { in FactorOutConstant()
228 if (const SCEVConstant *FC = dyn_cast<SCEVConstant>(Factor)) { in FactorOutConstant()
255 const SCEVConstant *FC = cast<SCEVConstant>(Factor); in FactorOutConstant()
256 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(M->getOperand(0))) in FactorOutConstant()
463 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(Ops[0])) in expandAddToGEP()
635 if (isa<SCEVConstant>(S)) in getRelevantLoop()
819 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(S->getRHS())) { in visitUDivExpr()
1831 const SCEVConstant *SC = dyn_cast<SCEVConstant>(D->getRHS()); in follow()
DScalarEvolutionNormalization.cpp231 if (isa<SCEVConstant>(S) || isa<SCEVUnknown>(S)) in TransformSubExpr()
/external/llvm/lib/Transforms/Scalar/
DLoopRerollPass.cpp383 if (const SCEVConstant *IncSCEV = in collectPossibleIVs()
384 dyn_cast<SCEVConstant>(PHISCEV->getStepRecurrence(*SE))) { in collectPossibleIVs()
583 if (const SCEVConstant *MulScale = in findScaleFromMul()
584 dyn_cast<SCEVConstant>(User1SCEV->getStepRecurrence(*SE))) { in findScaleFromMul()
626 if (const SCEVConstant *Diff = dyn_cast<SCEVConstant>(SE->getMinusSCEV( in collectAllRoots()
774 uint64_t Inc = cast<SCEVConstant>(RealIVSCEV->getOperand(1))-> in reroll()
1103 if (isa<SCEVConstant>(ICMinus1SCEV)) { in reroll()
DLoopIdiomRecognize.cpp658 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in runOnCountableLoop()
794 const SCEVConstant *Stride = dyn_cast<SCEVConstant>(StoreEv->getOperand(1)); in processLoopStore()
855 const SCEVConstant *Stride = dyn_cast<SCEVConstant>(Ev->getOperand(1)); in processLoopMemSet()
882 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in mayLoopAccessLocation()
DLoopStrengthReduce.cpp536 const SCEVConstant *RC = dyn_cast<SCEVConstant>(RHS); in getExactSDiv()
549 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(LHS)) { in getExactSDiv()
621 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S)) { in ExtractImmediate()
780 if (isa<SCEVConstant>(Mul->getOperand(0))) in isHighCostExpansion()
943 if (!AR->isAffine() || !isa<SCEVConstant>(AR->getOperand(1))) { in RateRegister()
956 !isa<SCEVConstant>(Reg) && in RateRegister()
959 isa<SCEVConstant>(cast<SCEVAddRecExpr>(Reg)->getStart())))) in RateRegister()
2168 if (const SCEVConstant *D = in OptimizeLoopTermCond()
2169 dyn_cast_or_null<SCEVConstant>(getExactSDiv(B, A, SE))) { in OptimizeLoopTermCond()
2423 if (const SCEVConstant *Factor = in CollectInterestingTypesAndFactors()
[all …]
DIndVarSimplify.cpp1476 const SCEV *Step = dyn_cast<SCEVConstant>(AR->getStepRecurrence(*SE)); in FindLoopCounter()
1667 if (isa<SCEVConstant>(ARStart) && isa<SCEVConstant>(IVCount)) { in LinearFunctionTestReplace()
1668 const APInt &Start = cast<SCEVConstant>(ARStart)->getValue()->getValue(); in LinearFunctionTestReplace()
1669 APInt Count = cast<SCEVConstant>(IVCount)->getValue()->getValue(); in LinearFunctionTestReplace()
1679 if (cast<SCEVConstant>(ARStep)->getValue()->isNegative()) in LinearFunctionTestReplace()
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h38 class SCEVConstant : public SCEV {
42 SCEVConstant(const FoldingSetNodeIDRef ID, ConstantInt *v) : in SCEVConstant() function
533 return ((SC*)this)->visitConstant((const SCEVConstant*)S); in visit()
651 const SCEV *visitConstant(const SCEVConstant *Constant) { in visitConstant()
747 const SCEV *visitConstant(const SCEVConstant *Constant) { in visitConstant()
DDependenceAnalysis.h53 class SCEVConstant; variable
568 const SCEVConstant *collectConstantUpperBound(const Loop *l, Type *T) const;
DScalarEvolutionExpander.h227 Value *visitConstant(const SCEVConstant *S) {
/external/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp68 EXPECT_EQ(cast<SCEVConstant>(M0->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
70 EXPECT_EQ(cast<SCEVConstant>(M1->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
72 EXPECT_EQ(cast<SCEVConstant>(M2->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
/external/llvm/lib/Target/PowerPC/
DPPCCTRLoops.cpp445 if (const SCEVConstant *ConstEC = dyn_cast<SCEVConstant>(EC)) { in convertToCTRLoop()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp3754 cast<SCEVConstant>(M->getOperand(0))->getValue()->getValue(); in getStrideFromPointer()
4309 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in isStridedPtr()
4428 const SCEVConstant *C = dyn_cast<SCEVConstant>(Dist); in isDependent()
5088 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in isInductionVariable()
5635 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in isLikelyComplexAddressComputation()
DBBVectorize.cpp638 if (const SCEVConstant *ConstOffSCEV = in getPairPtrInfo()
639 dyn_cast<SCEVConstant>(OffsetSCEV)) { in getPairPtrInfo()