/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 76 class SCEV : public FoldingSetNode { 77 friend struct FoldingSetTrait<SCEV>; 121 explicit SCEV(const FoldingSetNodeIDRef ID, unsigned SCEVTy, 124 SCEV(const SCEV &) = delete; 125 SCEV &operator=(const SCEV &) = delete; 167 template <> struct FoldingSetTrait<SCEV> : DefaultFoldingSetTrait<SCEV> { 168 static void Profile(const SCEV &X, FoldingSetNodeID &ID) { ID = X.FastID; } 170 static bool Equals(const SCEV &X, const FoldingSetNodeID &ID, unsigned IDHash, 175 static unsigned ComputeHash(const SCEV &X, FoldingSetNodeID &TempID) { 180 inline raw_ostream &operator<<(raw_ostream &OS, const SCEV &S) { [all …]
|
D | DependenceAnalysis.h | 52 class SCEV; variable 101 const SCEV *Distance; // NULL implies no distance available. 161 virtual const SCEV *getDistance(unsigned Level) const { return nullptr; } in getDistance() 242 const SCEV *getDistance(unsigned Level) const override; 331 const SCEV *getSplitIteration(const Dependence &Dep, unsigned Level); 345 const SCEV *Src; 346 const SCEV *Dst; 354 const SCEV *Coeff; 355 const SCEV *PosPart; 356 const SCEV *NegPart; [all …]
|
D | ScalarEvolutionExpressions.h | 47 class SCEVConstant : public SCEV { 53 SCEV(ID, scConstant, 1), V(v) {} in SCEVConstant() 62 static bool classof(const SCEV *S) { in classof() 67 static unsigned short computeExpressionSize(ArrayRef<const SCEV *> Args) { in computeExpressionSize() 75 class SCEVCastExpr : public SCEV { 77 const SCEV *Op; 81 unsigned SCEVTy, const SCEV *op, Type *ty); 84 const SCEV *getOperand() const { return Op; } in getOperand() 88 static bool classof(const SCEV *S) { in classof() 101 const SCEV *op, Type *ty); [all …]
|
D | ScalarEvolutionExpander.h | 31 bool isSafeToExpand(const SCEV *S, ScalarEvolution &SE); 36 bool isSafeToExpandAt(const SCEV *S, const Instruction *InsertionPoint, 53 DenseMap<std::pair<const SCEV *, Instruction *>, TrackingVH<Value>> 61 DenseMap<const SCEV *, const Loop *> RelevantLoops; 180 bool isHighCostExpansion(const SCEV *Expr, Loop *L, 182 SmallPtrSet<const SCEV *, 8> Processed; 207 Value *expandCodeFor(const SCEV *SH, Type *Ty, Instruction *I); 213 Value *expandCodeFor(const SCEV *SH, Type *Ty = nullptr); 303 Value *getExactExistingExpansion(const SCEV *S, const Instruction *At, 319 getRelatedExistingExpansion(const SCEV *S, const Instruction *At, Loop *L); [all …]
|
D | ScalarEvolutionNormalization.h | 46 class SCEV; variable 54 const SCEV *normalizeForPostIncUse(const SCEV *S, const PostIncLoopSet &Loops, 59 const SCEV *normalizeForPostIncUseIf(const SCEV *S, NormalizePredTy Pred, 64 const SCEV *denormalizeForPostIncUse(const SCEV *S, const PostIncLoopSet &Loops,
|
D | LoopCacheAnalysis.h | 53 const SCEV *getBasePointer() const { return BasePointer; } in getBasePointer() 55 const SCEV *getSubscript(unsigned SubNum) const { in getSubscript() 59 const SCEV *getFirstSubscript() const { in getFirstSubscript() 63 const SCEV *getLastSubscript() const { in getLastSubscript() 108 const SCEV *getLastCoefficient() const; 112 bool isCoeffForLoopZeroOrInvariant(const SCEV &Subscript, 117 bool isSimpleAddRecurrence(const SCEV &Subscript, const Loop &L) const; 131 const SCEV *BasePointer = nullptr; 134 SmallVector<const SCEV *, 3> Subscripts; 137 SmallVector<const SCEV *, 3> Sizes;
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 50 class SCEV; variable 58 template <> struct FoldingSetTrait<SCEV>; 64 class SCEV : public FoldingSetNode { 65 friend struct FoldingSetTrait<SCEV>; 80 SCEV(const SCEV &) = delete; 81 void operator=(const SCEV &) = delete; 108 explicit SCEV(const FoldingSetNodeIDRef ID, unsigned SCEVTy) : 143 template<> struct FoldingSetTrait<SCEV> : DefaultFoldingSetTrait<SCEV> { 144 static void Profile(const SCEV &X, FoldingSetNodeID& ID) { 147 static bool Equals(const SCEV &X, const FoldingSetNodeID &ID, [all …]
|
D | DependenceAnalysis.h | 53 class SCEV; variable 107 const SCEV *Distance; // NULL implies no distance available. 167 virtual const SCEV *getDistance(unsigned Level) const { return nullptr; } in getDistance() 253 const SCEV *getDistance(unsigned Level) const override; 338 const SCEV *getSplitIteration(const Dependence &Dep, unsigned Level); 352 const SCEV *Src; 353 const SCEV *Dst; 361 const SCEV *Coeff; 362 const SCEV *PosPart; 363 const SCEV *NegPart; [all …]
|
D | ScalarEvolutionExpressions.h | 36 class SCEVConstant : public SCEV { 41 SCEV(ID, scConstant), V(v) {} in SCEVConstant() 49 static inline bool classof(const SCEV *S) { in classof() 55 class SCEVCastExpr : public SCEV { 57 const SCEV *Op; 61 unsigned SCEVTy, const SCEV *op, Type *ty); 64 const SCEV *getOperand() const { return Op; } in getOperand() 68 static inline bool classof(const SCEV *S) { in classof() 81 const SCEV *op, Type *ty); 85 static inline bool classof(const SCEV *S) { in classof() [all …]
|
D | ScalarEvolutionExpander.h | 29 bool isSafeToExpand(const SCEV *S, ScalarEvolution &SE); 45 std::map<std::pair<const SCEV *, Instruction *>, TrackingVH<Value> > 52 DenseMap<const SCEV *, const Loop *> RelevantLoops; 169 bool isHighCostExpansion(const SCEV *Expr, Loop *L, 171 SmallPtrSet<const SCEV *, 8> Processed; 197 Value *expandCodeFor(const SCEV *SH, Type *Ty, Instruction *I); 279 Value *findExistingExpansion(const SCEV *S, const Instruction *At, Loop *L); 285 bool isHighCostExpansionHelper(const SCEV *S, Loop *L, 287 SmallPtrSetImpl<const SCEV *> &Processed); 307 Value *expandAddToGEP(const SCEV *const *op_begin, [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 239 LLVM_DUMP_METHOD void SCEV::dump() const { in dump() 245 void SCEV::print(raw_ostream &OS) const { in print() 252 const SCEV *Op = Trunc->getOperand(); in print() 259 const SCEV *Op = ZExt->getOperand(); in print() 266 const SCEV *Op = SExt->getOperand(); in print() 363 Type *SCEV::getType() const { in getType() 390 bool SCEV::isZero() const { in isZero() 396 bool SCEV::isOne() const { in isOne() 402 bool SCEV::isAllOnesValue() const { in isAllOnesValue() 408 bool SCEV::isNonConstantNegative() const { in isNonConstantNegative() [all …]
|
D | DependenceAnalysis.cpp | 276 const SCEV *FullDependence::getDistance(unsigned Level) const { in getDistance() 319 const SCEV *DependenceInfo::Constraint::getX() const { in getX() 327 const SCEV *DependenceInfo::Constraint::getY() const { in getY() 335 const SCEV *DependenceInfo::Constraint::getA() const { in getA() 344 const SCEV *DependenceInfo::Constraint::getB() const { in getB() 353 const SCEV *DependenceInfo::Constraint::getC() const { in getC() 362 const SCEV *DependenceInfo::Constraint::getD() const { in getD() 375 void DependenceInfo::Constraint::setPoint(const SCEV *X, const SCEV *Y, in setPoint() 383 void DependenceInfo::Constraint::setLine(const SCEV *AA, const SCEV *BB, in setLine() 384 const SCEV *CC, const Loop *CurLoop) { in setLine() [all …]
|
D | ScalarEvolutionNormalization.cpp | 42 const SCEV *visitAddRecExpr(const SCEVAddRecExpr *Expr); 46 const SCEV * 48 SmallVector<const SCEV *, 8> Operands; in visitAddRecExpr() 51 [&](const SCEV *Op) { return visit(Op); }); in visitAddRecExpr() 54 return SE.getAddRecExpr(Operands, AR->getLoop(), SCEV::FlagAnyWrap); in visitAddRecExpr() 93 return SE.getAddRecExpr(Operands, AR->getLoop(), SCEV::FlagAnyWrap); in visitAddRecExpr() 96 const SCEV *llvm::normalizeForPostIncUse(const SCEV *S, in normalizeForPostIncUse() 105 const SCEV *llvm::normalizeForPostIncUseIf(const SCEV *S, NormalizePredTy Pred, in normalizeForPostIncUseIf() 110 const SCEV *llvm::denormalizeForPostIncUse(const SCEV *S, in denormalizeForPostIncUse()
|
D | LoopCacheAnalysis.cpp | 75 static bool isOneDimensionalArray(const SCEV &AccessFn, const SCEV &ElemSize, in isOneDimensionalArray() 84 const SCEV *Start = AR->getStart(); in isOneDimensionalArray() 85 const SCEV *Step = AR->getStepRecurrence(SE); in isOneDimensionalArray() 98 static const SCEV *computeTripCount(const Loop &L, ScalarEvolution &SE) { in computeTripCount() 99 const SCEV *BackedgeTakenCount = SE.getBackedgeTakenCount(&L); in computeTripCount() 119 for (const SCEV *Subscript : R.Subscripts) in operator <<() 123 for (const SCEV *Size : R.Sizes) in operator <<() 171 const SCEV *LastSubscript = getLastSubscript(); in hasSpacialReuse() 172 const SCEV *OtherLastSubscript = Other.getLastSubscript(); in hasSpacialReuse() 228 const SCEV *Distance = D->getDistance(Level); in hasTemporalReuse() [all …]
|
D | ScalarEvolutionExpander.cpp | 171 SCEV::NoWrapFlags Flags, bool IsSafeToHoist) { in InsertBinop() 193 if (I->hasNoSignedWrap() != (Flags & SCEV::FlagNSW)) in InsertBinop() 195 if (I->hasNoUnsignedWrap() != (Flags & SCEV::FlagNUW)) in InsertBinop() 230 if (Flags & SCEV::FlagNUW) in InsertBinop() 232 if (Flags & SCEV::FlagNSW) in InsertBinop() 243 static bool FactorOutConstant(const SCEV *&S, const SCEV *&Remainder, in FactorOutConstant() 244 const SCEV *Factor, ScalarEvolution &SE, in FactorOutConstant() 269 const SCEV *Div = SE.getConstant(CI); in FactorOutConstant() 286 SmallVector<const SCEV *, 4> NewMulOps(M->op_begin(), M->op_end()); in FactorOutConstant() 295 const SCEV *Step = A->getStepRecurrence(SE); in FactorOutConstant() [all …]
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionNormalization.cpp | 73 DenseMap<const SCEV*, const SCEV*> Transformed; 80 const SCEV *TransformSubExpr(const SCEV *S, Instruction *User, 84 const SCEV *TransformImpl(const SCEV *S, Instruction *User, 91 const SCEV *PostIncTransform:: 92 TransformImpl(const SCEV *S, Instruction *User, Value *OperandValToReplace) { in TransformImpl() 95 const SCEV *O = X->getOperand(); in TransformImpl() 96 const SCEV *N = TransformSubExpr(O, User, OperandValToReplace); in TransformImpl() 109 SmallVector<const SCEV *, 8> Operands; in TransformImpl() 119 const SCEV *Result = SE.getAddRecExpr(Operands, L, SCEV::FlagAnyWrap); in TransformImpl() 134 const SCEV *TransformedStep = in TransformImpl() [all …]
|
D | ScalarEvolution.cpp | 132 void SCEV::dump() const { in dump() 137 void SCEV::print(raw_ostream &OS) const { in print() 144 const SCEV *Op = Trunc->getOperand(); in print() 151 const SCEV *Op = ZExt->getOperand(); in print() 158 const SCEV *Op = SExt->getOperand(); in print() 247 Type *SCEV::getType() const { in getType() 272 bool SCEV::isZero() const { in isZero() 278 bool SCEV::isOne() const { in isOne() 284 bool SCEV::isAllOnesValue() const { in isAllOnesValue() 290 bool SCEV::isNonConstantNegative() const { in isNonConstantNegative() [all …]
|
D | DependenceAnalysis.cpp | 256 const SCEV *FullDependence::getDistance(unsigned Level) const { in getDistance() 299 const SCEV *DependenceInfo::Constraint::getX() const { in getX() 307 const SCEV *DependenceInfo::Constraint::getY() const { in getY() 315 const SCEV *DependenceInfo::Constraint::getA() const { in getA() 324 const SCEV *DependenceInfo::Constraint::getB() const { in getB() 333 const SCEV *DependenceInfo::Constraint::getC() const { in getC() 342 const SCEV *DependenceInfo::Constraint::getD() const { in getD() 355 void DependenceInfo::Constraint::setPoint(const SCEV *X, const SCEV *Y, in setPoint() 363 void DependenceInfo::Constraint::setLine(const SCEV *AA, const SCEV *BB, in setLine() 364 const SCEV *CC, const Loop *CurLoop) { in setLine() [all …]
|
D | ScalarEvolutionExpander.cpp | 226 static bool FactorOutConstant(const SCEV *&S, const SCEV *&Remainder, in FactorOutConstant() 227 const SCEV *Factor, ScalarEvolution &SE, in FactorOutConstant() 252 const SCEV *Div = SE.getConstant(CI); in FactorOutConstant() 269 SmallVector<const SCEV *, 4> NewMulOps(M->op_begin(), M->op_end()); in FactorOutConstant() 278 const SCEV *Step = A->getStepRecurrence(SE); in FactorOutConstant() 279 const SCEV *StepRem = SE.getConstant(Step->getType(), 0); in FactorOutConstant() 284 const SCEV *Start = A->getStart(); in FactorOutConstant() 288 A->getNoWrapFlags(SCEV::FlagNW)); in FactorOutConstant() 299 static void SimplifyAddOperands(SmallVectorImpl<const SCEV *> &Ops, in SimplifyAddOperands() 306 SmallVector<const SCEV *, 8> NoAddRecs(Ops.begin(), Ops.end() - NumAddRecs); in SimplifyAddOperands() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 93 const SCEV *FoldedExpr = nullptr; in foldIVUser() 161 const SCEV *S = SE->getSCEV(ICmp->getOperand(IVOperIdx)); in eliminateIVComparison() 162 const SCEV *X = SE->getSCEV(ICmp->getOperand(1 - IVOperIdx)); in eliminateIVComparison() 170 const SCEV *InvariantLHS, *InvariantRHS; in eliminateIVComparison() 243 const SCEV *IncomingS = SE->getSCEV(Incoming); in eliminateIVComparison() 279 const SCEV *S = SE->getSCEV(Rem->getOperand(0)); in eliminateIVRemainder() 280 const SCEV *X = SE->getSCEV(Rem->getOperand(1)); in eliminateIVRemainder() 294 const SCEV *LessOne = SE->getMinusSCEV(S, SE->getOne(S->getType())); in eliminateIVRemainder() 323 typedef const SCEV *(ScalarEvolution::*OperationFunctionTy)( in eliminateOverflowIntrinsic() 324 const SCEV *, const SCEV *, SCEV::NoWrapFlags); in eliminateOverflowIntrinsic() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 235 using RegUsesTy = DenseMap<const SCEV *, RegSortData>; 238 SmallVector<const SCEV *, 16> RegSequence; 241 void countRegister(const SCEV *Reg, size_t LUIdx); 242 void dropRegister(const SCEV *Reg, size_t LUIdx); 245 bool isRegUsedByUsesOtherThan(const SCEV *Reg, size_t LUIdx) const; 247 const SmallBitVector &getUsedByIndices(const SCEV *Reg) const; 251 using iterator = SmallVectorImpl<const SCEV *>::iterator; 252 using const_iterator = SmallVectorImpl<const SCEV *>::const_iterator; 263 RegUseTracker::countRegister(const SCEV *Reg, size_t LUIdx) { in countRegister() 274 RegUseTracker::dropRegister(const SCEV *Reg, size_t LUIdx) { in dropRegister() [all …]
|
D | InductiveRangeCheckElimination.cpp | 142 const SCEV *Begin = nullptr; 143 const SCEV *Step = nullptr; 144 const SCEV *End = nullptr; 158 const SCEV *getBegin() const { return Begin; } in getBegin() 159 const SCEV *getStep() const { return Step; } in getStep() 160 const SCEV *getEnd() const { return End; } in getEnd() 187 const SCEV *Begin; 188 const SCEV *End; 191 Range(const SCEV *Begin, const SCEV *End) : Begin(Begin), End(End) { in Range() 196 const SCEV *getBegin() const { return Begin; } in getBegin() [all …]
|
D | AlignmentFromAssumptions.cpp | 93 static unsigned getNewAlignmentDiff(const SCEV *DiffSCEV, in getNewAlignmentDiff() 94 const SCEV *AlignSCEV, in getNewAlignmentDiff() 97 const SCEV *DiffUnitsSCEV = SE->getURemExpr(DiffSCEV, AlignSCEV); in getNewAlignmentDiff() 126 static unsigned getNewAlignment(const SCEV *AASCEV, const SCEV *AlignSCEV, in getNewAlignment() 127 const SCEV *OffSCEV, Value *Ptr, in getNewAlignment() 129 const SCEV *PtrSCEV = SE->getSCEV(Ptr); in getNewAlignment() 130 const SCEV *DiffSCEV = SE->getMinusSCEV(PtrSCEV, AASCEV); in getNewAlignment() 158 const SCEV *DiffStartSCEV = DiffARSCEV->getStart(); in getNewAlignment() 159 const SCEV *DiffIncSCEV = DiffARSCEV->getStepRecurrence(*SE); in getNewAlignment() 200 const SCEV *&AlignSCEV, in extractAlignmentInfo() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 157 typedef DenseMap<const SCEV *, RegSortData> RegUsesTy; 160 SmallVector<const SCEV *, 16> RegSequence; 163 void countRegister(const SCEV *Reg, size_t LUIdx); 164 void dropRegister(const SCEV *Reg, size_t LUIdx); 167 bool isRegUsedByUsesOtherThan(const SCEV *Reg, size_t LUIdx) const; 169 const SmallBitVector &getUsedByIndices(const SCEV *Reg) const; 173 typedef SmallVectorImpl<const SCEV *>::iterator iterator; 174 typedef SmallVectorImpl<const SCEV *>::const_iterator const_iterator; 184 RegUseTracker::countRegister(const SCEV *Reg, size_t LUIdx) { in countRegister() 195 RegUseTracker::dropRegister(const SCEV *Reg, size_t LUIdx) { in dropRegister() [all …]
|
D | AlignmentFromAssumptions.cpp | 93 static unsigned getNewAlignmentDiff(const SCEV *DiffSCEV, in getNewAlignmentDiff() 94 const SCEV *AlignSCEV, in getNewAlignmentDiff() 97 const SCEV *DiffAlignDiv = SE->getUDivExpr(DiffSCEV, AlignSCEV); in getNewAlignmentDiff() 98 const SCEV *DiffAlign = SE->getMulExpr(DiffAlignDiv, AlignSCEV); in getNewAlignmentDiff() 99 const SCEV *DiffUnitsSCEV = SE->getMinusSCEV(DiffAlign, DiffSCEV); in getNewAlignmentDiff() 128 static unsigned getNewAlignment(const SCEV *AASCEV, const SCEV *AlignSCEV, in getNewAlignment() 129 const SCEV *OffSCEV, Value *Ptr, in getNewAlignment() 131 const SCEV *PtrSCEV = SE->getSCEV(Ptr); in getNewAlignment() 132 const SCEV *DiffSCEV = SE->getMinusSCEV(PtrSCEV, AASCEV); in getNewAlignment() 160 const SCEV *DiffStartSCEV = DiffARSCEV->getStart(); in getNewAlignment() [all …]
|