Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp272 auto *IndexExpr = DeclRefExpr::Create( in addArraySubscriptOperator() local
278 new (AST) ArraySubscriptExpr(HandleAccess, IndexExpr, ElemTy, VK_LValue, in addArraySubscriptOperator()
H A DSemaExpr.cpp5010 auto IsIndexValid = [&](Expr *IndexExpr, unsigned Dim, in CreateBuiltinMatrixSubscriptExpr()
5012 if (!IndexExpr->getType()->isIntegerType() && in CreateBuiltinMatrixSubscriptExpr()
5013 !IndexExpr->isTypeDependent()) { in CreateBuiltinMatrixSubscriptExpr()
5014 Diag(IndexExpr->getBeginLoc(), diag::err_matrix_index_not_integer) in CreateBuiltinMatrixSubscriptExpr()
5020 IndexExpr->getIntegerConstantExpr(Context)) { in CreateBuiltinMatrixSubscriptExpr()
5022 Diag(IndexExpr->getBeginLoc(), diag::err_matrix_index_outside_range) in CreateBuiltinMatrixSubscriptExpr()
5029 tryConvertExprToType(IndexExpr, Context.getSizeType()); in CreateBuiltinMatrixSubscriptExpr()
5682 Expr *BaseExpr, *IndexExpr; in CreateBuiltinArraySubscriptExpr() local
5686 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
5691 IndexExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
[all …]
H A DSemaExprObjC.cpp765 Expr *IndexExpr, in BuildObjCSubscriptExpression() argument
772 assert((!BaseExpr->isTypeDependent() && !IndexExpr->isTypeDependent()) && in BuildObjCSubscriptExpression()
777 ExprResult Result = CheckPlaceholderExpr(IndexExpr); in BuildObjCSubscriptExpression()
780 IndexExpr = Result.get(); in BuildObjCSubscriptExpression()
790 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.cpp2881 Expr *IndexExpr = nullptr; in CheckDesignatedInitializer() local
2884 IndexExpr = DIE->getArrayIndex(*D); in CheckDesignatedInitializer()
2885 DesignatedStartIndex = IndexExpr->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer()
2894 IndexExpr = DIE->getArrayRangeEnd(*D); in CheckDesignatedInitializer()
2916 SemaRef.Diag(IndexExpr->getBeginLoc(), in CheckDesignatedInitializer()
2919 << IndexExpr->getSourceRange(); in CheckDesignatedInitializer()
9057 Expr *IndexExpr = in Perform() local
9060 BaseExpr, Kind.getLocation(), IndexExpr, Kind.getLocation()); in Perform()
H A DSemaChecking.cpp16178 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument
16185 IndexExpr = IndexExpr->IgnoreParenImpCasts(); in CheckArrayAccess()
16186 if (IndexExpr->isValueDependent()) in CheckArrayAccess()
16209 if (!IndexExpr->EvaluateAsInt(Result, Context, Expr::SE_AllowSideEffects)) in CheckArrayAccess()
16268 << IndexExpr->getSourceRange()); in CheckArrayAccess()
16340 SourceMgr.getSpellingLoc(IndexExpr->getBeginLoc()); in CheckArrayAccess()
16354 << CastMsg << CastMsgTy << IndexExpr->getSourceRange()); in CheckArrayAccess()
16364 << IndexExpr->getSourceRange()); in CheckArrayAccess()
H A DSemaDeclAttr.cpp1064 const Expr *IndexExpr = AL.getArgAsExpr(I); in handleDiagnoseAsBuiltinAttr() local
1067 if (!checkUInt32Argument(S, AL, IndexExpr, Index, I + 1, false)) in handleDiagnoseAsBuiltinAttr()
1081 S.Diag(IndexExpr->getBeginLoc(), diag::err_attribute_parameter_types) in handleDiagnoseAsBuiltinAttr()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DScalarEvolution.cpp3773 for (const SCEV *IndexExpr : IndexExprs) { in getGEPExpr() local
3777 ConstantInt *Index = cast<SCEVConstant>(IndexExpr)->getValue(); in getGEPExpr()
3797 IndexExpr = getTruncateOrSignExtend(IndexExpr, IntIdxTy); in getGEPExpr()
3800 const SCEV *LocalOffset = getMulExpr(IndexExpr, ElementSize, OffsetWrap); in getGEPExpr()
/openbsd-src/gnu/llvm/clang/include/clang/Sema/
H A DSema.h7478 Expr *IndexExpr,
13417 void CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr,