Home
last modified time | relevance | path

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

12

/external/llvm/lib/Analysis/
DScalarEvolution.cpp136 cast<SCEVConstant>(this)->getValue()->printAsOperand(OS, false); in print()
246 return cast<SCEVConstant>(this)->getType(); in getType()
269 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isZero()
275 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isOne()
281 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isAllOnesValue()
293 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0)); in isNonConstantNegative()
313 SCEV *S = new (SCEVAllocator) SCEVConstant(ID.Intern(SCEVAllocator), V); in getConstant()
532 const SCEVConstant *LC = cast<SCEVConstant>(LHS); in compare()
533 const SCEVConstant *RC = cast<SCEVConstant>(RHS); in compare()
761 void visitConstant(const SCEVConstant *Numerator) { in visitConstant()
[all …]
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 …]
DScalarEvolutionExpander.cpp242 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S)) { in FactorOutConstant()
247 if (const SCEVConstant *FC = dyn_cast<SCEVConstant>(Factor)) { in FactorOutConstant()
268 const SCEVConstant *FC = cast<SCEVConstant>(Factor); in FactorOutConstant()
269 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(M->getOperand(0))) in FactorOutConstant()
457 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(Ops[0])) in expandAddToGEP()
606 if (isa<SCEVConstant>(S)) in getRelevantLoop()
790 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(S->getRHS())) { in visitUDivExpr()
1720 auto *Const = dyn_cast<SCEVConstant>(SE.getSCEV(PN)); in replaceCongruentIVs()
1889 if (auto *SC = dyn_cast<SCEVConstant>(UDivExpr->getRHS())) in isHighCostExpansionHelper()
2001 const SCEVConstant *SC = dyn_cast<SCEVConstant>(D->getRHS()); in follow()
DLoopAccessAnalysis.cpp113 static_cast<const SCEVConstant *>(SE->getOne(StrideVal->getType())); in replaceSymbolicStrideSCEV()
144 if (const SCEVConstant *CStep = dyn_cast<const SCEVConstant>(Step)) { in insert()
195 const SCEVConstant *C = dyn_cast<const SCEVConstant>(Diff); in getMinFromExprs()
870 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in isStridedPtr()
1086 const SCEVConstant *C = dyn_cast<SCEVConstant>(Dist); in isDependent()
DScalarEvolutionNormalization.cpp231 if (isa<SCEVConstant>(S) || isa<SCEVUnknown>(S)) in TransformSubExpr()
DVectorUtils.cpp327 const APInt &APStepVal = cast<SCEVConstant>(M->getOperand(0))->getAPInt(); in getStrideFromPointer()
/external/llvm/lib/Target/PowerPC/
DPPCLoopPreIncPrep.cpp107 BucketElement(const SCEVConstant *O, Instruction *I) : Offset(O), Instr(I) {} in BucketElement()
110 const SCEVConstant *Offset;
224 if (const auto *CDiff = dyn_cast<SCEVConstant>(Diff)) { in runOnLoop()
290 E.Offset = cast<SCEVConstant>(SE->getMinusSCEV(E.Offset, Offset)); in runOnLoop()
292 E.Offset = cast<SCEVConstant>(SE->getNegativeSCEV(Offset)); in runOnLoop()
322 const SCEVConstant *BasePtrIncSCEV = in runOnLoop()
323 dyn_cast<SCEVConstant>(BasePtrSCEV->getStepRecurrence(*SE)); in runOnLoop()
DPPCLoopDataPrefetch.cpp193 if (const SCEVConstant *ConstPtrDiff = in runOnLoop()
194 dyn_cast<SCEVConstant>(PtrDiff)) { in runOnLoop()
DPPCCTRLoops.cpp481 if (const SCEVConstant *ConstEC = dyn_cast<SCEVConstant>(EC)) { in convertToCTRLoop()
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp116 if (const SCEVConstant *ConstDUSCEV = in getNewAlignmentDiff()
117 dyn_cast<SCEVConstant>(DiffUnitsSCEV)) { in getNewAlignmentDiff()
125 cast<SCEVConstant>(AlignSCEV)->getValue()->getSExtValue(); in getNewAlignmentDiff()
245 if (isa<SCEVConstant>(AndLHSSCEV)) { in extractAlignmentInfo()
250 const SCEVConstant *MaskSCEV = dyn_cast<SCEVConstant>(AndRHSSCEV); in extractAlignmentInfo()
DLoopIdiomRecognize.cpp224 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in runOnCountableLoop()
255 const SCEVConstant *ConstStride = cast<SCEVConstant>(StoreEv->getOperand(1)); in getStoreStride()
322 if (!isa<SCEVConstant>(StoreEv->getOperand(1))) in isLegalStore()
436 const SCEVConstant *Stride = dyn_cast<SCEVConstant>(Ev->getOperand(1)); in processLoopMemSet()
462 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in mayLoopAccessLocation()
DLoopStrengthReduce.cpp545 const SCEVConstant *RC = dyn_cast<SCEVConstant>(RHS); in getExactSDiv()
558 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(LHS)) { in getExactSDiv()
625 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S)) { in ExtractImmediate()
785 if (isa<SCEVConstant>(Mul->getOperand(0))) in isHighCostExpansion()
947 if (!AR->isAffine() || !isa<SCEVConstant>(AR->getOperand(1))) { in RateRegister()
960 !isa<SCEVConstant>(Reg) && in RateRegister()
963 isa<SCEVConstant>(cast<SCEVAddRecExpr>(Reg)->getStart())))) in RateRegister()
2146 if (const SCEVConstant *D = in OptimizeLoopTermCond()
2147 dyn_cast_or_null<SCEVConstant>(getExactSDiv(B, A, SE))) { in OptimizeLoopTermCond()
2401 if (const SCEVConstant *Factor = in CollectInterestingTypesAndFactors()
[all …]
DInductiveRangeCheckElimination.cpp753 if (const SCEVConstant *StepExpr = in parseLoopStructure()
754 dyn_cast<SCEVConstant>(AR->getStepRecurrence(SE))) { in parseLoopStructure()
1212 const SCEVConstant *MinusOneS = in run()
1213 cast<SCEVConstant>(SE.getConstant(IVTy, -1, true /* isSigned */)); in run()
1343 const SCEVConstant *B = dyn_cast<SCEVConstant>(IndVar->getStepRecurrence(SE)); in computeSafeIterationSpace()
1348 const SCEVConstant *D = dyn_cast<SCEVConstant>(getScale()); in computeSafeIterationSpace()
DLoopInterchange.cpp135 const SCEVConstant *SCEVConst = in populateDependencyMatrix()
136 dyn_cast_or_null<SCEVConstant>(Distance); in populateDependencyMatrix()
319 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in getInductionVariable()
DIndVarSimplify.cpp1754 const SCEV *Step = dyn_cast<SCEVConstant>(AR->getStepRecurrence(*SE)); in FindLoopCounter()
1945 if (isa<SCEVConstant>(ARStart) && isa<SCEVConstant>(IVCount)) { in linearFunctionTestReplace()
1946 const APInt &Start = cast<SCEVConstant>(ARStart)->getAPInt(); in linearFunctionTestReplace()
1947 APInt Count = cast<SCEVConstant>(IVCount)->getAPInt(); in linearFunctionTestReplace()
1957 if (cast<SCEVConstant>(ARStep)->getValue()->isNegative()) in linearFunctionTestReplace()
DLoopUnrollPass.cpp332 if (auto *SC = dyn_cast<SCEVConstant>(S)) { in simplifyInstWithSCEV()
343 if (auto *SC = dyn_cast<SCEVConstant>(ValueAtIteration)) { in simplifyInstWithSCEV()
353 dyn_cast<SCEVConstant>(SE.getMinusSCEV(ValueAtIteration, Base)); in simplifyInstWithSCEV()
DLoopRerollPass.cpp481 if (const SCEVConstant *IncSCEV = in collectPossibleIVs()
482 dyn_cast<SCEVConstant>(PHISCEV->getStepRecurrence(*SE))) { in collectPossibleIVs()
1306 if (isa<SCEVConstant>(ICMinus1SCEV)) { in replace()
DLoopLoadElimination.cpp83 auto *Dist = cast<SCEVConstant>( in isDependenceDistanceOfOne()
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h38 class SCEVConstant : public SCEV {
42 SCEVConstant(const FoldingSetNodeIDRef ID, ConstantInt *v) : in SCEVConstant() function
456 return ((SC*)this)->visitConstant((const SCEVConstant*)S); in visit()
565 const SCEV *visitConstant(const SCEVConstant *Constant) { in visitConstant()
DScalarEvolution.h53 class SCEVConstant; variable
248 const SCEVConstant *RHS;
252 const SCEVConstant *RHS);
264 const SCEVConstant *getRHS() const { return RHS; }
1249 const SCEVConstant *RHS);
DDependenceAnalysis.h54 class SCEVConstant; variable
577 const SCEVConstant *collectConstantUpperBound(const Loop *l, Type *T) const;
DScalarEvolutionExpander.h268 Value *visitConstant(const SCEVConstant *S) {
/external/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp77 EXPECT_EQ(cast<SCEVConstant>(M0->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
79 EXPECT_EQ(cast<SCEVConstant>(M1->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
81 EXPECT_EQ(cast<SCEVConstant>(M2->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
/external/llvm/lib/Transforms/Utils/
DLoopUtils.cpp681 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in isInductionPHI()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp4680 const SCEVConstant *DistToA = dyn_cast<SCEVConstant>( in analyzeInterleaving()
5303 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in isLikelyComplexAddressComputation()

12