/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 136 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 …]
|
D | DependenceAnalysis.cpp | 450 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 …]
|
D | ScalarEvolutionExpander.cpp | 242 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()
|
D | LoopAccessAnalysis.cpp | 113 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()
|
D | ScalarEvolutionNormalization.cpp | 231 if (isa<SCEVConstant>(S) || isa<SCEVUnknown>(S)) in TransformSubExpr()
|
D | VectorUtils.cpp | 327 const APInt &APStepVal = cast<SCEVConstant>(M->getOperand(0))->getAPInt(); in getStrideFromPointer()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 107 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()
|
D | PPCLoopDataPrefetch.cpp | 193 if (const SCEVConstant *ConstPtrDiff = in runOnLoop() 194 dyn_cast<SCEVConstant>(PtrDiff)) { in runOnLoop()
|
D | PPCCTRLoops.cpp | 481 if (const SCEVConstant *ConstEC = dyn_cast<SCEVConstant>(EC)) { in convertToCTRLoop()
|
/external/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 116 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()
|
D | LoopIdiomRecognize.cpp | 224 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()
|
D | LoopStrengthReduce.cpp | 545 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 …]
|
D | InductiveRangeCheckElimination.cpp | 753 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()
|
D | LoopInterchange.cpp | 135 const SCEVConstant *SCEVConst = in populateDependencyMatrix() 136 dyn_cast_or_null<SCEVConstant>(Distance); in populateDependencyMatrix() 319 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in getInductionVariable()
|
D | IndVarSimplify.cpp | 1754 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()
|
D | LoopUnrollPass.cpp | 332 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()
|
D | LoopRerollPass.cpp | 481 if (const SCEVConstant *IncSCEV = in collectPossibleIVs() 482 dyn_cast<SCEVConstant>(PHISCEV->getStepRecurrence(*SE))) { in collectPossibleIVs() 1306 if (isa<SCEVConstant>(ICMinus1SCEV)) { in replace()
|
D | LoopLoadElimination.cpp | 83 auto *Dist = cast<SCEVConstant>( in isDependenceDistanceOfOne()
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolutionExpressions.h | 38 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()
|
D | ScalarEvolution.h | 53 class SCEVConstant; variable 248 const SCEVConstant *RHS; 252 const SCEVConstant *RHS); 264 const SCEVConstant *getRHS() const { return RHS; } 1249 const SCEVConstant *RHS);
|
D | DependenceAnalysis.h | 54 class SCEVConstant; variable 577 const SCEVConstant *collectConstantUpperBound(const Loop *l, Type *T) const;
|
D | ScalarEvolutionExpander.h | 268 Value *visitConstant(const SCEVConstant *S) {
|
/external/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 77 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/ |
D | LoopUtils.cpp | 681 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in isInductionPHI()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 4680 const SCEVConstant *DistToA = dyn_cast<SCEVConstant>( in analyzeInterleaving() 5303 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in isLikelyComplexAddressComputation()
|