| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Context.cpp | 147 bool Context::evaluateStringRepr(State &Parent, const Expr *SizeExpr, in evaluateStringRepr() argument 154 if (!evaluateAsRValue(Parent, SizeExpr, SizeValue)) in evaluateStringRepr() 176 Parent.FFDiag(SizeExpr, diag::note_constexpr_access_past_end) << AK_Read; in evaluateStringRepr() 209 bool Context::evaluateCharRange(State &Parent, const Expr *SizeExpr, in evaluateCharRange() argument 211 assert(SizeExpr); in evaluateCharRange() 214 return evaluateStringRepr(Parent, SizeExpr, PtrExpr, Result); in evaluateCharRange() 217 bool Context::evaluateCharRange(State &Parent, const Expr *SizeExpr, in evaluateCharRange() argument 219 assert(SizeExpr); in evaluateCharRange() 222 return evaluateStringRepr(Parent, SizeExpr, PtrExpr, Result); in evaluateCharRange()
|
| H A D | Context.h | 62 bool evaluateCharRange(State &Parent, const Expr *SizeExpr, 64 bool evaluateCharRange(State &Parent, const Expr *SizeExpr, 129 bool evaluateStringRepr(State &Parent, const Expr *SizeExpr,
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | StmtIterator.cpp | 110 assert(VAPtr->SizeExpr); in GetDeclExpr() 111 return const_cast<Stmt*&>(VAPtr->SizeExpr); in GetDeclExpr()
|
| H A D | Type.cpp | 268 uint64_t ArraySize, const Expr *SizeExpr, in Profile() argument 274 ID.AddBoolean(SizeExpr != nullptr); in Profile() 275 if (SizeExpr) in Profile() 276 SizeExpr->Profile(ID, Context, true); in Profile() 288 : ArrayType(DependentSizedArray, et, can, sm, tq, e), SizeExpr((Stmt *)e) {} in DependentSizedArrayType() 302 QualType CanonType, Expr *SizeExpr, in DependentVectorType() argument 307 (SizeExpr ? toTypeDependence(SizeExpr->getDependence()) in DependentVectorType() 309 ElementType(ElementType), SizeExpr(SizeExpr), Loc(Loc) { in DependentVectorType() 315 QualType ElementType, const Expr *SizeExpr, in Profile() argument 319 SizeExpr->Profile(ID, Context, true); in Profile() [all …]
|
| H A D | DeclBase.cpp | 498 if (const Expr *SizeExpr = in isFlexibleArrayMemberLike() local 500 !SizeExpr || SizeExpr->getExprLoc().isMacroID()) in isFlexibleArrayMemberLike()
|
| H A D | ASTContext.cpp | 4214 const Expr *SizeExpr, in getConstantArrayType() argument 4222 if (SizeExpr && !SizeExpr->isInstantiationDependent()) in getConstantArrayType() 4223 SizeExpr = nullptr; in getConstantArrayType() 4231 ConstantArrayType::Profile(ID, *this, EltTy, ArySize.getZExtValue(), SizeExpr, in getConstantArrayType() 4244 if (!EltTy.isCanonical() || EltTy.hasLocalQualifiers() || SizeExpr) { in getConstantArrayType() 4256 auto *New = ConstantArrayType::Create(*this, EltTy, Canon, ArySize, SizeExpr, in getConstantArrayType() 4690 QualType ASTContext::getDependentVectorType(QualType VecType, Expr *SizeExpr, in getDependentVectorType() argument 4694 DependentVectorType::Profile(ID, *this, getCanonicalType(VecType), SizeExpr, in getDependentVectorType() 4703 VecType, QualType(Canon, 0), SizeExpr, AttrLoc, VecKind); in getDependentVectorType() 4708 DependentVectorType(VecType, QualType(), SizeExpr, AttrLoc, VecKind); in getDependentVectorType() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParseOpenACC.cpp | 839 ExprResult SizeExpr = ParseConstantExpression(); in ParseOpenACCSizeExpr() local 841 if (!SizeExpr.isUsable()) in ParseOpenACCSizeExpr() 842 return SizeExpr; in ParseOpenACCSizeExpr() 844 SizeExpr = getActions().OpenACC().ActOnIntExpr( in ParseOpenACCSizeExpr() 845 OpenACCDirectiveKind::Invalid, CK, SizeExpr.get()->getBeginLoc(), in ParseOpenACCSizeExpr() 846 SizeExpr.get()); in ParseOpenACCSizeExpr() 848 return SizeExpr; in ParseOpenACCSizeExpr() 853 ExprResult SizeExpr = ParseOpenACCSizeExpr(CK); in ParseOpenACCSizeExprList() local 854 if (!SizeExpr.isUsable()) { in ParseOpenACCSizeExprList() 860 SizeExprs.push_back(SizeExpr.get()); in ParseOpenACCSizeExprList() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | CheckPlacementNew.cpp | 81 const Expr *SizeExpr = *NE->getArraySize(); in getExtentSizeOfNewTarget() local 82 SVal ElementCount = C.getSVal(SizeExpr); in getExtentSizeOfNewTarget()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaOpenACCClause.cpp | 1981 ExprResult SemaOpenACC::CheckTileSizeExpr(Expr *SizeExpr) { in CheckTileSizeExpr() argument 1982 if (!SizeExpr) in CheckTileSizeExpr() 1985 assert((SizeExpr->isInstantiationDependent() || in CheckTileSizeExpr() 1986 SizeExpr->getType()->isIntegerType()) && in CheckTileSizeExpr() 1990 if (SizeExpr->isInstantiationDependent() || in CheckTileSizeExpr() 1991 isa<OpenACCAsteriskSizeExpr>(SizeExpr)) in CheckTileSizeExpr() 1992 return ExprResult{SizeExpr}; in CheckTileSizeExpr() 1995 SizeExpr->getIntegerConstantExpr(getASTContext()); in CheckTileSizeExpr() 2000 Diag(SizeExpr->getBeginLoc(), diag::err_acc_size_expr_value) in CheckTileSizeExpr() 2006 ConstantExpr::Create(getASTContext(), SizeExpr, APValue{*ICE})}; in CheckTileSizeExpr()
|
| H A D | SemaType.cpp | 2331 QualType Sema::BuildVectorType(QualType CurType, Expr *SizeExpr, in BuildVectorType() argument 2348 if (SizeExpr->isTypeDependent() || SizeExpr->isValueDependent()) in BuildVectorType() 2349 return Context.getDependentVectorType(CurType, SizeExpr, AttrLoc, in BuildVectorType() 2353 SizeExpr->getIntegerConstantExpr(Context); in BuildVectorType() 2357 << SizeExpr->getSourceRange(); in BuildVectorType() 2362 return Context.getDependentVectorType(CurType, SizeExpr, AttrLoc, in BuildVectorType() 2369 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType() 2377 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType() 2383 << SizeExpr->getSourceRange(); in BuildVectorType() 2389 << SizeExpr->getSourceRange() << "vector"; in BuildVectorType() [all …]
|
| H A D | TreeTransform.h | 906 const llvm::APInt *Size, Expr *SizeExpr, 916 const llvm::APInt &Size, Expr *SizeExpr, 936 ArraySizeModifier SizeMod, Expr *SizeExpr, 947 Expr *SizeExpr, 964 QualType RebuildDependentVectorType(QualType ElementType, Expr *SizeExpr, 981 Expr *SizeExpr, 17173 Expr *SizeExpr, unsigned IndexTypeQuals, SourceRange BracketsRange) { in RebuildArrayType() argument 17174 if (SizeExpr || !Size) in RebuildArrayType() 17175 return SemaRef.BuildArrayType(ElementType, SizeMod, SizeExpr, in RebuildArrayType() 17204 Expr *SizeExpr, unsigned IndexTypeQuals, SourceRange BracketsRange) { in RebuildConstantArrayType() argument [all …]
|
| H A D | SemaOpenMP.cpp | 14592 llvm::any_of(SizesClause->getSizesRefs(), [](const Expr *SizeExpr) { in ActOnOpenMPStripeDirective() argument 14593 return !SizeExpr || SizeExpr->containsErrors(); in ActOnOpenMPStripeDirective() 16523 for (Expr *&SizeExpr : SanitizedSizeExprs) { in ActOnOpenMPSizesClause() 16525 if (!SizeExpr) in ActOnOpenMPSizesClause() 16528 bool IsValid = isNonNegativeIntegerValue(SizeExpr, SemaRef, OMPC_sizes, in ActOnOpenMPSizesClause() 16533 QualType SizeTy = SizeExpr->getType(); in ActOnOpenMPSizesClause() 16562 if (!SizeExpr->isInstantiationDependent() && !IsValid) in ActOnOpenMPSizesClause() 16563 SizeExpr = nullptr; in ActOnOpenMPSizesClause()
|
| H A D | SemaChecking.cpp | 2001 Expr *SizeExpr = TheCall->getArg(2); in BuiltinTriviallyRelocate() local 2002 ExprResult Size = S.DefaultLvalueConversion(SizeExpr); in BuiltinTriviallyRelocate() 2009 SizeExpr = Size.get(); in BuiltinTriviallyRelocate() 2010 TheCall->setArg(2, SizeExpr); in BuiltinTriviallyRelocate()
|
| H A D | SemaDeclAttr.cpp | 578 const Expr *SizeExpr = AL.getArgAsExpr(0); in handleAllocSizeAttr() local 581 if (!checkPositiveIntArgument(S, AL, SizeExpr, SizeArgNoVal, /*Idx=*/1)) in handleAllocSizeAttr()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Type.h | 3691 : Size(Sz), SizeExpr(SE) {} 3693 const Expr *SizeExpr; 3713 : ArrayType(ConstantArray, Et, Can, SM, TQ, SzPtr->SizeExpr), 3718 assert((SzPtr->SizeExpr == nullptr || !Can.isNull()) && 3783 return ConstantArrayTypeBits.HasExternalSize ? SizePtr->SizeExpr : nullptr; 3807 QualType ET, uint64_t ArraySize, const Expr *SizeExpr, 3897 Stmt *SizeExpr; 3901 : ArrayType(VariableArray, et, can, sm, tq, e), SizeExpr((Stmt *)e) {} 3909 return (Expr*) SizeExpr; 3945 Stmt *SizeExpr; [all …]
|
| H A D | ASTContext.h | 1640 const Expr *SizeExpr, ArraySizeModifier ASM, 1685 QualType getDependentVectorType(QualType VectorType, Expr *SizeExpr, 1701 Expr *SizeExpr,
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGDebugInfo.h | 446 void registerVLASizeExpression(QualType Ty, llvm::Metadata *SizeExpr) { in registerVLASizeExpression() argument 447 SizeExprCache[Ty] = SizeExpr; in registerVLASizeExpression()
|
| H A D | CGDebugInfo.cpp | 3503 auto SizeExpr = SizeExprCache.find(QTy); in CreateType() local 3504 if (SizeExpr != SizeExprCache.end()) in CreateType() 3506 SizeExpr->getSecond() /*count*/, nullptr /*lowerBound*/, in CreateType()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineCallAndReturn.cpp | 804 if (const Expr *SizeExpr = CNE->getArraySize().value_or(nullptr)) { in bindReturnValue() local 805 ElementCount = State->getSVal(SizeExpr, LCtx); in bindReturnValue()
|
| H A D | ExprEngineCXX.cpp | 1206 Expr *SizeExpr = FieldForCapture->getCapturedVLAType()->getSizeExpr(); in VisitLambdaExpr() local 1207 InitVal = State->getSVal(SizeExpr, LocCtxt); in VisitLambdaExpr()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaOpenACC.h | 924 ExprResult CheckTileSizeExpr(Expr *SizeExpr);
|