/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCLoopInstrFormPrep.cpp | 130 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 …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | DependenceAnalysis.cpp | 466 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 …]
|
D | ScalarEvolution.cpp | 248 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 …]
|
D | LoopUnrollAnalyzer.cpp | 32 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()
|
D | LoopCacheAnalysis.cpp | 101 !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()
|
D | ScalarEvolutionExpander.cpp | 257 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S)) { in FactorOutConstant() 262 if (const SCEVConstant *FC = dyn_cast<SCEVConstant>(Factor)) { in FactorOutConstant() 283 const SCEVConstant *FC = cast<SCEVConstant>(Factor); in FactorOutConstant() 284 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(M->getOperand(0))) in FactorOutConstant() 472 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(Ops[0])) in expandAddToGEP() 624 if (isa<SCEVConstant>(S)) in getRelevantLoop() 859 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(S->getRHS())) { in visitUDivExpr() 1823 if (const auto *SC = dyn_cast<SCEVConstant>(D->getRHS())) in expand() 1976 auto *Const = dyn_cast<SCEVConstant>(SE.getSCEV(PN)); in replaceCongruentIVs() 2164 if (auto *SC = dyn_cast<SCEVConstant>(UDivExpr->getRHS())) in isHighCostExpansionHelper() [all …]
|
D | LoopAccessAnalysis.cpp | 163 static_cast<const SCEVConstant *>(SE->getOne(StrideVal->getType())); in replaceSymbolicStrideSCEV() 214 if (const auto *CStep = dyn_cast<SCEVConstant>(Step)) { in insert() 271 const SCEVConstant *C = dyn_cast<const SCEVConstant>(Diff); in getMinFromExprs() 1057 const SCEVConstant *C = dyn_cast<SCEVConstant>(Step); in getPtrStride() 1130 const auto *Diff = dyn_cast<SCEVConstant>(SE.getMinusSCEV(Scev, Scev0)); in sortPtrAccesses() 1216 const APInt &OffsetDelta = cast<SCEVConstant>(OffsetDeltaSCEV)->getAPInt(); in isConsecutiveAccess() 1498 const SCEVConstant *C = dyn_cast<SCEVConstant>(Dist); in isDependent()
|
D | IVDescriptors.cpp | 844 if (isa<SCEVConstant>(Step)) in getConstIntStepValue() 845 return dyn_cast<ConstantInt>(cast<SCEVConstant>(Step)->getValue()); in getConstIntStepValue() 1089 const SCEVConstant *ConstStep = dyn_cast<SCEVConstant>(Step); in isInductionPHI()
|
D | VectorUtils.cpp | 222 const APInt &APStepVal = cast<SCEVConstant>(M->getOperand(0))->getAPInt(); in getStrideFromPointer() 1013 const SCEVConstant *DistToB = dyn_cast<SCEVConstant>( in analyzeInterleaving()
|
D | Loads.cpp | 221 auto* Step = dyn_cast<SCEVConstant>(AddRec->getStepRecurrence(SE)); in isDereferenceableAndAlignedInLoop()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | AlignmentFromAssumptions.cpp | 102 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()
|
D | LoopStrengthReduce.cpp | 667 const SCEVConstant *RC = dyn_cast<SCEVConstant>(RHS); in getExactSDiv() 680 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(LHS)) { in getExactSDiv() 747 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(S)) { in ExtractImmediate() 937 if (isa<SCEVConstant>(Mul->getOperand(0))) in isHighCostExpansion() 1217 if (isa<SCEVUnknown>(Reg) || isa<SCEVConstant>(Reg)) in getSetupCost() 1267 if (auto *Step = dyn_cast<SCEVConstant>(AR->getStepRecurrence(*SE))) in RateRegister() 1274 if (isa<SCEVConstant>(LoopStep)) { in RateRegister() 1276 if (!isa<SCEVConstant>(LoopStart) && in RateRegister() 1286 if (!AR->isAffine() || !isa<SCEVConstant>(AR->getOperand(1))) { in RateRegister() 2440 if (const SCEVConstant *D = in OptimizeLoopTermCond() [all …]
|
D | LoopDataPrefetch.cpp | 147 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()
|
D | LoopIdiomRecognize.cpp | 330 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in runOnCountableLoop() 363 const SCEVConstant *ConstStride = cast<SCEVConstant>(StoreEv->getOperand(1)); in getStoreStride() 446 if (!isa<SCEVConstant>(StoreEv->getOperand(1))) in isLegalStore() 773 const SCEVConstant *ConstStride = dyn_cast<SCEVConstant>(Ev->getOperand(1)); in processLoopMemSet() 810 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in mayLoopAccessLocation()
|
D | InductiveRangeCheckElimination.cpp | 850 if (!isa<SCEVConstant>(StepRec)) { in parseLoopStructure() 854 ConstantInt *StepCI = cast<SCEVConstant>(StepRec)->getValue(); in parseLoopStructure() 1423 const SCEVConstant *MinusOneS = in run() 1424 cast<SCEVConstant>(SE.getConstant(IVTy, -1, true /* isSigned */)); in run() 1600 const SCEVConstant *B = dyn_cast<SCEVConstant>( in computeSafeIterationSpace() 1607 const SCEVConstant *D = dyn_cast<SCEVConstant>(getStep()); in computeSafeIterationSpace()
|
D | LoopInterchange.cpp | 137 const SCEVConstant *SCEVConst = in populateDependencyMatrix() 138 dyn_cast_or_null<SCEVConstant>(Distance); in populateDependencyMatrix() 313 if (!isa<SCEVConstant>(Step)) in getInductionVariable()
|
D | LoopPredication.cpp | 447 auto *Limit = dyn_cast<SCEVConstant>(LatchCheck.Limit); in isSafeToTruncateWideIVType() 448 auto *Start = dyn_cast<SCEVConstant>(LatchCheck.IV->getStart()); in isSafeToTruncateWideIVType()
|
D | IndVarSimplify.cpp | 670 !isa<SCEVConstant>(ExitValue) && !isa<SCEVUnknown>(ExitValue) && in rewriteLoopExitValues() 2232 const SCEV *Step = dyn_cast<SCEVConstant>(AR->getStepRecurrence(*SE)); in isLoopCounter() 2393 if (isa<SCEVConstant>(IVInit) && isa<SCEVConstant>(ExitCount)) in genLoopLimit()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | MVETailPredication.cpp | 338 if (auto *Const = dyn_cast<SCEVConstant>(S->getOperand(0))) { in ComputeElements() 347 if (auto *Const = dyn_cast<SCEVConstant>(S->getOperand(0))) { in ComputeElements() 356 if (auto *Const = dyn_cast<SCEVConstant>(S->getRHS())) { in ComputeElements() 363 if (auto *Const = dyn_cast<SCEVConstant>(RoundUp->getOperand(0))) { in ComputeElements()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | ScalarEvolutionExpressions.h | 47 class SCEVConstant : public SCEV { 52 SCEVConstant(const FoldingSetNodeIDRef ID, ConstantInt *v) : in SCEVConstant() function 516 return ((SC*)this)->visitConstant((const SCEVConstant*)S); in visit() 672 const SCEV *visitConstant(const SCEVConstant *Constant) { in visitConstant()
|
D | DependenceAnalysis.h | 53 class SCEVConstant; variable 584 const SCEVConstant *collectConstantUpperBound(const Loop *l, Type *T) const;
|
D | TargetTransformInfoImpl.h | 681 const SCEVConstant *getConstantStrideStep(ScalarEvolution *SE, in getConstantStrideStep() 686 return dyn_cast<SCEVConstant>(AddRec->getStepRecurrence(*SE)); in getConstantStrideStep() 691 const SCEVConstant *Step = getConstantStrideStep(SE, Ptr); in isConstantStridedAccessLessThan()
|
D | ScalarEvolutionExpander.h | 362 Value *visitConstant(const SCEVConstant *S) {
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonLoopIdiomRecognition.cpp | 1787 if (auto *CV = dyn_cast<SCEVConstant>(CT)) in recognize() 1910 if (const SCEVConstant *SC = dyn_cast<SCEVConstant>(S->getOperand(1))) in getSCEVStride() 1980 if (const SCEVConstant *BECst = dyn_cast<SCEVConstant>(BECount)) in mayLoopAccessLocation()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 224 if (auto *ConstLHS = dyn_cast<SCEVConstant>(InvariantLHS)) in makeIVComparisonInvariant() 227 if (auto *ConstRHS = dyn_cast<SCEVConstant>(InvariantRHS)) in makeIVComparisonInvariant()
|