Home
last modified time | relevance | path

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

12345

/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp128 BucketElement(const SCEVConstant *O, Instruction *I) : Offset(O), Instr(I) {} in BucketElement()
131 const SCEVConstant *Offset;
189 const SCEVConstant *BasePtrIncSCEV,
318 if (const auto *CDiff = dyn_cast<SCEVConstant>(Diff)) { in addOneCandidate()
436 E.Offset = cast<SCEVConstant>(SE->getMinusSCEV(E.Offset, Offset)); in prepareBaseForDispFormChain()
438 E.Offset = cast<SCEVConstant>(SE->getNegativeSCEV(Offset)); in prepareBaseForDispFormChain()
481 E.Offset = cast<SCEVConstant>(SE->getMinusSCEV(E.Offset, Offset)); in prepareBaseForUpdateFormChain()
483 E.Offset = cast<SCEVConstant>(SE->getNegativeSCEV(Offset)); in prepareBaseForUpdateFormChain()
518 const SCEVConstant *BasePtrIncSCEV = in rewriteLoadStores()
519 dyn_cast<SCEVConstant>(BasePtrSCEV->getStepRecurrence(*SE)); in rewriteLoadStores()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp130 BucketElement(const SCEVConstant *O, Instruction *I) : Offset(O), Instr(I) {} in BucketElement()
133 const SCEVConstant *Offset;
191 const SCEVConstant *BasePtrIncSCEV,
317 if (const auto *CDiff = dyn_cast<SCEVConstant>(Diff)) { in addOneCandidate()
431 E.Offset = cast<SCEVConstant>(SE->getMinusSCEV(E.Offset, Offset)); in prepareBaseForDispFormChain()
433 E.Offset = cast<SCEVConstant>(SE->getNegativeSCEV(Offset)); in prepareBaseForDispFormChain()
476 E.Offset = cast<SCEVConstant>(SE->getMinusSCEV(E.Offset, Offset)); in prepareBaseForUpdateFormChain()
478 E.Offset = cast<SCEVConstant>(SE->getNegativeSCEV(Offset)); in prepareBaseForUpdateFormChain()
513 const SCEVConstant *BasePtrIncSCEV = in rewriteLoadStores()
514 dyn_cast<SCEVConstant>(BasePtrSCEV->getStepRecurrence(*SE)); in rewriteLoadStores()
[all …]
/external/llvm/lib/Analysis/
DScalarEvolution.cpp140 cast<SCEVConstant>(this)->getValue()->printAsOperand(OS, false); in print()
250 return cast<SCEVConstant>(this)->getType(); in getType()
273 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isZero()
279 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isOne()
285 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isAllOnesValue()
295 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0)); in isNonConstantNegative()
315 SCEV *S = new (SCEVAllocator) SCEVConstant(ID.Intern(SCEVAllocator), V); in getConstant()
534 const SCEVConstant *LC = cast<SCEVConstant>(LHS); in compare()
535 const SCEVConstant *RC = cast<SCEVConstant>(RHS); in compare()
763 void visitConstant(const SCEVConstant *Numerator) { in visitConstant()
[all …]
DDependenceAnalysis.cpp445 if (isa<SCEVConstant>(Y->getD())) { in intersectConstraints()
488 const SCEVConstant *C1A2_C2A1 = in intersectConstraints()
489 dyn_cast<SCEVConstant>(SE->getMinusSCEV(C1A2, C2A1)); in intersectConstraints()
490 const SCEVConstant *C1B2_C2B1 = in intersectConstraints()
491 dyn_cast<SCEVConstant>(SE->getMinusSCEV(C1B2, C2B1)); in intersectConstraints()
492 const SCEVConstant *A1B2_A2B1 = in intersectConstraints()
493 dyn_cast<SCEVConstant>(SE->getMinusSCEV(A1B2, A2B1)); in intersectConstraints()
494 const SCEVConstant *A2B1_A1B2 = in intersectConstraints()
495 dyn_cast<SCEVConstant>(SE->getMinusSCEV(A2B1, A1B2)); in intersectConstraints()
524 if (const SCEVConstant *CUB = in intersectConstraints()
[all …]
DLoopUnrollAnalyzer.cpp34 if (auto *SC = dyn_cast<SCEVConstant>(S)) { in simplifyInstWithSCEV()
45 if (auto *SC = dyn_cast<SCEVConstant>(ValueAtIteration)) { in simplifyInstWithSCEV()
55 dyn_cast<SCEVConstant>(SE.getMinusSCEV(ValueAtIteration, Base)); in simplifyInstWithSCEV()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DDependenceAnalysis.cpp466 if (isa<SCEVConstant>(Y->getD())) { in intersectConstraints()
509 const SCEVConstant *C1A2_C2A1 = in intersectConstraints()
510 dyn_cast<SCEVConstant>(SE->getMinusSCEV(C1A2, C2A1)); in intersectConstraints()
511 const SCEVConstant *C1B2_C2B1 = in intersectConstraints()
512 dyn_cast<SCEVConstant>(SE->getMinusSCEV(C1B2, C2B1)); in intersectConstraints()
513 const SCEVConstant *A1B2_A2B1 = in intersectConstraints()
514 dyn_cast<SCEVConstant>(SE->getMinusSCEV(A1B2, A2B1)); in intersectConstraints()
515 const SCEVConstant *A2B1_A1B2 = in intersectConstraints()
516 dyn_cast<SCEVConstant>(SE->getMinusSCEV(A2B1, A1B2)); in intersectConstraints()
545 if (const SCEVConstant *CUB = in intersectConstraints()
[all …]
DScalarEvolution.cpp248 cast<SCEVConstant>(this)->getValue()->printAsOperand(OS, false); in print()
366 return cast<SCEVConstant>(this)->getType(); in getType()
391 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isZero()
397 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isOne()
403 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isAllOnesValue()
413 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0)); in isNonConstantNegative()
433 SCEV *S = new (SCEVAllocator) SCEVConstant(ID.Intern(SCEVAllocator), V); in getConstant()
690 const SCEVConstant *LC = cast<SCEVConstant>(LHS); in CompareSCEVComplexity()
691 const SCEVConstant *RC = cast<SCEVConstant>(RHS); in CompareSCEVComplexity()
958 void visitConstant(const SCEVConstant *Numerator) { in visitConstant()
[all …]
DLoopUnrollAnalyzer.cpp32 if (auto *SC = dyn_cast<SCEVConstant>(S)) { in simplifyInstWithSCEV()
43 if (auto *SC = dyn_cast<SCEVConstant>(ValueAtIteration)) { in simplifyInstWithSCEV()
53 dyn_cast<SCEVConstant>(SE.getMinusSCEV(ValueAtIteration, Base)); in simplifyInstWithSCEV()
DLoopCacheAnalysis.cpp101 !isa<SCEVConstant>(BackedgeTakenCount)) in computeTripCount()
173 const SCEVConstant *Diff = dyn_cast<SCEVConstant>( in hasSpacialReuse()
229 const SCEVConstant *SCEVConst = dyn_cast_or_null<SCEVConstant>(Distance); in hasTemporalReuse()
301 if (auto ConstantCost = dyn_cast<SCEVConstant>(RefCost)) in computeRefCost()
/external/llvm-project/llvm/lib/Analysis/
DDependenceAnalysis.cpp466 if (isa<SCEVConstant>(Y->getD())) { in intersectConstraints()
509 const SCEVConstant *C1A2_C2A1 = in intersectConstraints()
510 dyn_cast<SCEVConstant>(SE->getMinusSCEV(C1A2, C2A1)); in intersectConstraints()
511 const SCEVConstant *C1B2_C2B1 = in intersectConstraints()
512 dyn_cast<SCEVConstant>(SE->getMinusSCEV(C1B2, C2B1)); in intersectConstraints()
513 const SCEVConstant *A1B2_A2B1 = in intersectConstraints()
514 dyn_cast<SCEVConstant>(SE->getMinusSCEV(A1B2, A2B1)); in intersectConstraints()
515 const SCEVConstant *A2B1_A1B2 = in intersectConstraints()
516 dyn_cast<SCEVConstant>(SE->getMinusSCEV(A2B1, A1B2)); in intersectConstraints()
545 if (const SCEVConstant *CUB = in intersectConstraints()
[all …]
DScalarEvolution.cpp253 cast<SCEVConstant>(this)->getValue()->printAsOperand(OS, false); in print()
384 return cast<SCEVConstant>(this)->getType(); in getType()
410 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isZero()
416 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isOne()
422 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(this)) in isAllOnesValue()
432 const SCEVConstant *SC = dyn_cast<SCEVConstant>(Mul->getOperand(0)); in isNonConstantNegative()
452 SCEV *S = new (SCEVAllocator) SCEVConstant(ID.Intern(SCEVAllocator), V); in getConstant()
723 const SCEVConstant *LC = cast<SCEVConstant>(LHS); in CompareSCEVComplexity()
724 const SCEVConstant *RC = cast<SCEVConstant>(RHS); in CompareSCEVComplexity()
1161 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(Op)) in getTruncateExpr()
[all …]
DLoopUnrollAnalyzer.cpp33 if (auto *SC = dyn_cast<SCEVConstant>(S)) { in simplifyInstWithSCEV()
44 if (auto *SC = dyn_cast<SCEVConstant>(ValueAtIteration)) { in simplifyInstWithSCEV()
54 dyn_cast<SCEVConstant>(SE.getMinusSCEV(ValueAtIteration, Base)); in simplifyInstWithSCEV()
DScalarEvolutionDivision.cpp110 void SCEVDivision::visitConstant(const SCEVConstant *Numerator) { in visitConstant()
111 if (const SCEVConstant *D = dyn_cast<SCEVConstant>(Denominator)) { in visitConstant()
DLoopCacheAnalysis.cpp110 !isa<SCEVConstant>(BackedgeTakenCount)) in computeTripCount()
182 const SCEVConstant *Diff = dyn_cast<SCEVConstant>( in hasSpacialReuse()
238 const SCEVConstant *SCEVConst = dyn_cast_or_null<SCEVConstant>(Distance); in hasTemporalReuse()
313 if (auto ConstantCost = dyn_cast<SCEVConstant>(RefCost)) in computeRefCost()
/external/llvm/lib/Target/PowerPC/
DPPCLoopPreIncPrep.cpp107 BucketElement(const SCEVConstant *O, Instruction *I) : Offset(O), Instr(I) {} in BucketElement()
110 const SCEVConstant *Offset;
227 if (const auto *CDiff = dyn_cast<SCEVConstant>(Diff)) { in runOnLoop()
293 E.Offset = cast<SCEVConstant>(SE->getMinusSCEV(E.Offset, Offset)); in runOnLoop()
295 E.Offset = cast<SCEVConstant>(SE->getNegativeSCEV(Offset)); in runOnLoop()
325 const SCEVConstant *BasePtrIncSCEV = in runOnLoop()
326 dyn_cast<SCEVConstant>(BasePtrSCEV->getStepRecurrence(*SE)); in runOnLoop()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp102 if (const SCEVConstant *ConstDUSCEV = in getNewAlignmentDiff()
103 dyn_cast<SCEVConstant>(DiffUnitsSCEV)) { in getNewAlignmentDiff()
111 cast<SCEVConstant>(AlignSCEV)->getValue()->getSExtValue(); in getNewAlignmentDiff()
232 if (isa<SCEVConstant>(AndLHSSCEV)) { in extractAlignmentInfo()
237 const SCEVConstant *MaskSCEV = dyn_cast<SCEVConstant>(AndRHSSCEV); in extractAlignmentInfo()
DLoopDataPrefetch.cpp147 const auto *ConstStride = dyn_cast<SCEVConstant>(AR->getStepRecurrence(*SE)); in isStrideLargeEnough()
289 if (const SCEVConstant *ConstPtrDiff = in runOnLoop()
290 dyn_cast<SCEVConstant>(PtrDiff)) { in runOnLoop()
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp104 if (const SCEVConstant *ConstDUSCEV = in getNewAlignmentDiff()
105 dyn_cast<SCEVConstant>(DiffUnitsSCEV)) { in getNewAlignmentDiff()
113 cast<SCEVConstant>(AlignSCEV)->getValue()->getSExtValue(); in getNewAlignmentDiff()
234 if (isa<SCEVConstant>(AndLHSSCEV)) { in extractAlignmentInfo()
239 const SCEVConstant *MaskSCEV = dyn_cast<SCEVConstant>(AndRHSSCEV); in extractAlignmentInfo()
DLoopRerollPass.cpp471 static const SCEVConstant *getIncrmentFactorSCEV(ScalarEvolution *SE, in getIncrmentFactorSCEV()
479 if (const SCEVConstant *IncSCEV = dyn_cast<SCEVConstant>(SCEVExpr)) { in getIncrmentFactorSCEV()
487 return dyn_cast<SCEVConstant>(SE->getNegativeSCEV(NewSCEV)); in getIncrmentFactorSCEV()
489 return dyn_cast<SCEVConstant>(SE->getUDivExpr(SCEVExpr, SizeOfExpr)); in getIncrmentFactorSCEV()
498 const SCEVConstant *CIncSCEV = nullptr; in getIncrmentFactorSCEV()
500 if (const SCEVConstant *Constant = dyn_cast<SCEVConstant>(Operand)) { in getIncrmentFactorSCEV()
593 const SCEVConstant *IncSCEV = nullptr; in collectPossibleIVs()
598 IncSCEV = dyn_cast<SCEVConstant>(PHISCEV->getStepRecurrence(*SE)); in collectPossibleIVs()
1449 const SCEVConstant *COp = nullptr; in updateNonLoopCtrlIncr()
1451 COp = dyn_cast<SCEVConstant>(SE->getSCEV(LoopInc->getOperand(1))); in updateNonLoopCtrlIncr()
[all …]
DLoopDataPrefetch.cpp140 const auto *ConstStride = dyn_cast<SCEVConstant>(AR->getStepRecurrence(*SE)); in isStrideLargeEnough()
258 if (const SCEVConstant *ConstPtrDiff = in runOnLoop()
259 dyn_cast<SCEVConstant>(PtrDiff)) { in runOnLoop()
DLoopIdiomRecognize.cpp251 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in runOnCountableLoop()
290 const SCEVConstant *ConstStride = cast<SCEVConstant>(StoreEv->getOperand(1)); in getStoreStride()
362 if (!isa<SCEVConstant>(StoreEv->getOperand(1))) in isLegalStore()
673 const SCEVConstant *ConstStride = dyn_cast<SCEVConstant>(Ev->getOperand(1)); in processLoopMemSet()
710 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in mayLoopAccessLocation()
/external/llvm-project/polly/include/polly/Support/
DSCEVValidator.h17 class SCEVConstant; variable
86 std::pair<const llvm::SCEVConstant *, const llvm::SCEV *>
/external/llvm-project/polly/lib/Support/
DSCEVValidator.cpp145 class ValidatorResult visitConstant(const SCEVConstant *Constant) { in visitConstant()
384 if (isa<SCEVConstant>(Divisor) && !Divisor->isZero()) in visitDivision()
600 if (!isa<SCEVConstant>(Dividend)) in follow()
714 std::pair<const SCEVConstant *, const SCEV *>
716 auto *ConstPart = cast<SCEVConstant>(SE.getConstant(S->getType(), 1)); in extractConstantFactor()
718 if (auto *Constant = dyn_cast<SCEVConstant>(S)) in extractConstantFactor()
739 Factor = cast<SCEVConstant>(SE.getNegativeSCEV(Factor)); in extractConstantFactor()
766 if (isa<SCEVConstant>(Op)) in extractConstantFactor()
767 ConstPart = cast<SCEVConstant>(SE.getMulExpr(ConstPart, Op)); in extractConstantFactor()
/external/llvm-project/llvm/unittests/Analysis/
DScalarEvolutionTest.cpp100 EXPECT_EQ(cast<SCEVConstant>(M0->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
102 EXPECT_EQ(cast<SCEVConstant>(M1->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
104 EXPECT_EQ(cast<SCEVConstant>(M2->getOperand(0))->getValue()->getZExtValue(), in TEST_F()
732 EXPECT_TRUE(isa<SCEVConstant>(EC)); in TEST_F()
733 EXPECT_EQ(cast<SCEVConstant>(EC)->getAPInt().getLimitedValue(), 999u); in TEST_F()
742 EXPECT_TRUE(isa<SCEVConstant>(ARAtLoopExit)); in TEST_F()
743 EXPECT_EQ(cast<SCEVConstant>(ARAtLoopExit)->getAPInt().getLimitedValue(), in TEST_F()
756 EXPECT_TRUE(isa<SCEVConstant>(NewEC)); in TEST_F()
757 EXPECT_EQ(cast<SCEVConstant>(NewEC)->getAPInt().getLimitedValue(), 1999u); in TEST_F()
760 EXPECT_TRUE(isa<SCEVConstant>(NewARAtLoopExit)); in TEST_F()
[all …]
/external/llvm-project/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp104 if (const SCEVConstant *ConstDUSCEV = in getNewAlignmentDiff()
105 dyn_cast<SCEVConstant>(DiffUnitsSCEV)) { in getNewAlignmentDiff()
112 return cast<SCEVConstant>(AlignSCEV)->getValue()->getAlignValue(); in getNewAlignmentDiff()

12345