Home
last modified time | relevance | path

Searched refs:IndexExpr (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DImplicitWideningOfMultiplicationResultCheck.cpp155 const Expr *PointerExpr, *IndexExpr; in handlePointerOffsetting() local
158 IndexExpr = BO->getRHS(); in handlePointerOffsetting()
161 IndexExpr = ASE->getRHS(); in handlePointerOffsetting()
165 if (IndexExpr->getType()->isPointerType()) in handlePointerOffsetting()
166 std::swap(PointerExpr, IndexExpr); in handlePointerOffsetting()
169 IndexExpr->getType()->isPointerType()) in handlePointerOffsetting()
172 IndexExpr = IndexExpr->IgnoreParens(); in handlePointerOffsetting()
174 QualType IndexExprType = IndexExpr->getType(); in handlePointerOffsetting()
206 auto Diag = diag(IndexExpr->getBeginLoc(), in handlePointerOffsetting()
209 << IndexExpr->getSourceRange(); in handlePointerOffsetting()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DProBoundsConstantArrayIndexCheck.cpp62 const auto *IndexExpr = Result.Nodes.getNodeAs<Expr>("index"); in check() local
64 if (IndexExpr->isValueDependent()) in check()
68 IndexExpr->getIntegerConstantExpr(*Result.Context); in check()
76 SourceRange IndexRange = IndexExpr->getSourceRange(); in check()
/llvm-project-15.0.7/mlir/test/Integration/Dialect/SparseTensor/taco/tools/
H A Dmlir_pytaco.py1680 expr: IndexExpr, argument
1718 a: IndexExpr
1776 a: IndexExpr
1777 b: IndexExpr
1859 expr: IndexExpr, argument
1926 expr: IndexExpr, argument
1979 expr: IndexExpr, argument
2017 expr: IndexExpr, argument
2060 expr: IndexExpr, argument
2061 root: IndexExpr, argument
[all …]
H A Dmlir_pytaco_api.py34 index_expression = mlir_pytaco.IndexExpr
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.cpp259 static bool isIndexInSubscriptExpr(const Expr *IndexExpr, in isIndexInSubscriptExpr() argument
261 const DeclRefExpr *Idx = getDeclRef(IndexExpr); in isIndexInSubscriptExpr()
293 static bool isIndexInSubscriptExpr(ASTContext *Context, const Expr *IndexExpr, in isIndexInSubscriptExpr() argument
296 if (!SourceExpr || !Obj || !isIndexInSubscriptExpr(IndexExpr, IndexVar)) in isIndexInSubscriptExpr()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp5676 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5681 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5686 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5698 IndexExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
5704 IndexExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
5713 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5740 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5772 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5783 IndexExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
5790 if (!IndexExpr->getType()->isIntegerType() && !IndexExpr->isTypeDependent()) in CreateBuiltinArraySubscriptExpr()
[all …]
H A DSemaExprObjC.cpp764 Expr *IndexExpr, in BuildObjCSubscriptExpression() argument
771 assert((!BaseExpr->isTypeDependent() && !IndexExpr->isTypeDependent()) && in BuildObjCSubscriptExpression()
776 ExprResult Result = CheckPlaceholderExpr(IndexExpr); in BuildObjCSubscriptExpression()
779 IndexExpr = Result.get(); in BuildObjCSubscriptExpression()
789 BaseExpr, IndexExpr, Context.PseudoObjectTy, VK_LValue, OK_ObjCSubscript, in BuildObjCSubscriptExpression()
H A DSemaPseudoObject.cpp1062 const Expr *IndexExpr = FromE->IgnoreParenImpCasts(); in CheckSubscriptingKind() local
1063 if (isa<StringLiteral>(IndexExpr)) in CheckSubscriptingKind()
H A DSemaInit.cpp2867 Expr *IndexExpr = nullptr; in CheckDesignatedInitializer() local
2870 IndexExpr = DIE->getArrayIndex(*D); in CheckDesignatedInitializer()
2871 DesignatedStartIndex = IndexExpr->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer()
2880 IndexExpr = DIE->getArrayRangeEnd(*D); in CheckDesignatedInitializer()
2902 SemaRef.Diag(IndexExpr->getBeginLoc(), in CheckDesignatedInitializer()
2905 << IndexExpr->getSourceRange(); in CheckDesignatedInitializer()
8718 Expr *IndexExpr = in Perform() local
8721 BaseExpr, Kind.getLocation(), IndexExpr, Kind.getLocation()); in Perform()
H A DSemaChecking.cpp15892 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument
15899 IndexExpr = IndexExpr->IgnoreParenImpCasts(); in CheckArrayAccess()
15900 if (IndexExpr->isValueDependent()) in CheckArrayAccess()
15917 if (!IndexExpr->EvaluateAsInt(Result, Context, Expr::SE_AllowSideEffects)) in CheckArrayAccess()
15983 << IndexExpr->getSourceRange()); in CheckArrayAccess()
16062 SourceMgr.getSpellingLoc(IndexExpr->getBeginLoc()); in CheckArrayAccess()
16075 << IndexExpr->getSourceRange()); in CheckArrayAccess()
16085 << IndexExpr->getSourceRange()); in CheckArrayAccess()
H A DSemaDeclAttr.cpp1063 const Expr *IndexExpr = AL.getArgAsExpr(I); in handleDiagnoseAsBuiltinAttr() local
1066 if (!checkUInt32Argument(S, AL, IndexExpr, Index, I + 1, false)) in handleDiagnoseAsBuiltinAttr()
1080 S.Diag(IndexExpr->getBeginLoc(), diag::err_attribute_parameter_types) in handleDiagnoseAsBuiltinAttr()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DScalarEvolution.cpp3694 for (const SCEV *IndexExpr : IndexExprs) { in getGEPExpr() local
3698 ConstantInt *Index = cast<SCEVConstant>(IndexExpr)->getValue(); in getGEPExpr()
3718 IndexExpr = getTruncateOrSignExtend(IndexExpr, IntIdxTy); in getGEPExpr()
3721 const SCEV *LocalOffset = getMulExpr(IndexExpr, ElementSize, OffsetWrap); in getGEPExpr()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h7232 Expr *IndexExpr,
13043 void CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr,