reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/ScalarEvolutionExpander.h
  372     Value *visitAddExpr(const SCEVAddExpr *S);
include/llvm/Analysis/ScalarEvolutionExpressions.h
  697     const SCEV *visitAddExpr(const SCEVAddExpr *Expr) {
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
lib/Analysis/DependenceAnalysis.cpp
 2378   if (const SCEVAddExpr *Sum = dyn_cast<SCEVAddExpr>(Delta)) {
 2378   if (const SCEVAddExpr *Sum = dyn_cast<SCEVAddExpr>(Delta)) {
lib/Analysis/IVUsers.cpp
   77   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
   77   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  401   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  401   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
lib/Analysis/ScalarEvolution.cpp
  372     return cast<SCEVAddExpr>(this)->getType();
  989   void visitAddExpr(const SCEVAddExpr *Numerator) {
 1298   if (isa<SCEVAddExpr>(Op) || isa<SCEVMulExpr>(Op)) {
 1310       if (isa<SCEVAddExpr>(Op))
 1447   const SCEVAddExpr *SA = dyn_cast<SCEVAddExpr>(Start);
 1447   const SCEVAddExpr *SA = dyn_cast<SCEVAddExpr>(Start);
 1607                                             const SCEVAddExpr *WholeAddExpr) {
 1862   if (auto *SA = dyn_cast<SCEVAddExpr>(Op)) {
 1994   if (auto *SA = dyn_cast<SCEVAddExpr>(Op)) {
 2293       if (Mul->getNumOperands() == 2 && isa<SCEVAddExpr>(Mul->getOperand(1))) {
 2295         const SCEVAddExpr *Add = cast<SCEVAddExpr>(Mul->getOperand(1));
 2295         const SCEVAddExpr *Add = cast<SCEVAddExpr>(Mul->getOperand(1));
 2547     while (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[Idx])) {
 2547     while (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[Idx])) {
 2793   SCEVAddExpr *S =
 2799         SCEVAddExpr(ID.Intern(SCEVAllocator), O, Ops.size());
 2892       return isa<SCEVAddExpr>(S) || isa<SCEVMulExpr>(S);
 2936       if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[1]))
 2936       if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[1]))
 2972         if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[1])) {
 2972         if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Ops[1])) {
 3278       if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(LHS)) {
 3278       if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(LHS)) {
 3825   const auto *Add = dyn_cast<SCEVAddExpr>(S);
 3825   const auto *Add = dyn_cast<SCEVAddExpr>(S);
 3960   const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Expr);
 3960   const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Expr);
 4722   const auto *Add = dyn_cast<SCEVAddExpr>(BEValue);
 4722   const auto *Add = dyn_cast<SCEVAddExpr>(BEValue);
 5052   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(BEValue)) {
 5052   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(BEValue)) {
 5460   if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(S)) {
 5460   if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(S)) {
 5571   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
 5571   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
 5872       if (auto *SA = dyn_cast<SCEVAddExpr>(S)) {
 8076       const SCEVAddExpr *SA = cast<SCEVAddExpr>(V);
 8076       const SCEVAddExpr *SA = cast<SCEVAddExpr>(V);
 8282         if (isa<SCEVAddExpr>(Comm))
 8971           if (const SCEVAddExpr *AE = dyn_cast<SCEVAddExpr>(LHS))
 8971           if (const SCEVAddExpr *AE = dyn_cast<SCEVAddExpr>(LHS))
 9858   const auto *AE = dyn_cast<SCEVAddExpr>(Expr);
 9858   const auto *AE = dyn_cast<SCEVAddExpr>(Expr);
10253   if (auto *LHSAddExpr = dyn_cast<SCEVAddExpr>(LHS)) {
12515   const auto *Add = dyn_cast<SCEVAddExpr>(Expr);
12515   const auto *Add = dyn_cast<SCEVAddExpr>(Expr);
lib/Analysis/ScalarEvolutionAliasAnalysis.cpp
  104   } else if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(S)) {
  104   } else if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(S)) {
lib/Analysis/ScalarEvolutionExpander.cpp
  332   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Sum))
  332   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Sum))
  359       if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Start)) {
  359       if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(Start)) {
  688 Value *SCEVExpander::visitAddExpr(const SCEVAddExpr *S) {
  696   for (std::reverse_iterator<SCEVAddExpr::op_iterator> I(S->op_end()),
  885   if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(Base)) {
  885   if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(Base)) {
lib/Analysis/StackSafetyAnalysis.cpp
   40     if (!isa<SCEVAddRecExpr>(Expr) && !isa<SCEVAddExpr>(Expr) &&
lib/Target/ARM/MVETailPredication.cpp
  352     if (auto *RoundUp = dyn_cast<SCEVAddExpr>(S->getLHS())) {
  373   if (auto *TC = dyn_cast<SCEVAddExpr>(TripCountSE))
  375       if (auto *Add = dyn_cast<SCEVAddExpr>(Div->getLHS()))
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  263   } else if (const SCEVAddExpr* AndLHSAddSCEV =
  264              dyn_cast<SCEVAddExpr>(AndLHSSCEV)) {
  266     for (SCEVAddExpr::op_iterator J = AndLHSAddSCEV->op_begin(),
lib/Transforms/Scalar/LoopStrengthReduce.cpp
  400   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  400   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  638 static bool isAddSExtable(const SCEVAddExpr *A, ScalarEvolution &SE) {
  641   return isa<SCEVAddExpr>(SE.getSignExtendExpr(A, WideTy));
  707   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(LHS)) {
  707   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(LHS)) {
  751   } else if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  751   } else if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  777   } else if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  777   } else if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  925   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
  925   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
 2670       } else if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
 2670       } else if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
 2781     const SCEVAddExpr *Add = cast<SCEVAddExpr>(S);
 2781     const SCEVAddExpr *Add = cast<SCEVAddExpr>(S);
 2782     for (std::reverse_iterator<SCEVAddExpr::op_iterator> I(Add->op_end()),
 3494   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
 3494   if (const SCEVAddExpr *Add = dyn_cast<SCEVAddExpr>(S)) {
tools/polly/include/polly/Support/SCEVAffinator.h
  101   PWACtx visitAddExpr(const llvm::SCEVAddExpr *E);
tools/polly/lib/Analysis/ScopDetection.cpp
  870     if (auto *AF = dyn_cast<SCEVAddExpr>(Pair.second)) {
tools/polly/lib/Support/SCEVAffinator.cpp
  363 PWACtx SCEVAffinator::visitAddExpr(const SCEVAddExpr *Expr) {
tools/polly/lib/Support/SCEVValidator.cpp
  176   class ValidatorResult visitAddExpr(const SCEVAddExpr *Expr) {
  732   if (auto *Add = dyn_cast<SCEVAddExpr>(S)) {
tools/polly/lib/Support/ScopHelper.cpp
  349   const SCEV *visitAddExpr(const SCEVAddExpr *E) {
unittests/Analysis/ScalarEvolutionTest.cpp
  196       Exp.expandCodeFor(cast<SCEVAddExpr>(S)->getOperand(1), nullptr, Br);