Home
last modified time | relevance | path

Searched refs:getSizeExpr (Results 1 – 25 of 39) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DTypePrinter.cpp570 if (T->getSizeExpr()) in printVariableArrayAfter()
571 T->getSizeExpr()->printPretty(OS, nullptr, Policy); in printVariableArrayAfter()
607 if (T->getSizeExpr()) in printDependentSizedArrayAfter()
608 T->getSizeExpr()->printPretty(OS, nullptr, Policy); in printDependentSizedArrayAfter()
637 if (T->getSizeExpr()) in printDependentSizedExtVectorAfter()
638 T->getSizeExpr()->printPretty(OS, nullptr, Policy); in printDependentSizedExtVectorAfter()
733 if (T->getSizeExpr()) in printDependentVectorBefore()
740 if (T->getSizeExpr()) in printDependentVectorBefore()
749 if (T->getSizeExpr()) in printDependentVectorBefore()
762 if (T->getSizeExpr()) { in printDependentVectorBefore()
[all …]
H A DStmtIterator.cpp28 if (vat->getSizeExpr()) in FindVA()
H A DASTStructuralEquivalence.cpp908 if (!IsStructurallyEquivalent(Context, Array1->getSizeExpr(), in IsStructurallyEquivalent()
909 Array2->getSizeExpr())) in IsStructurallyEquivalent()
921 if (!IsStructurallyEquivalent(Context, Array1->getSizeExpr(), in IsStructurallyEquivalent()
922 Array2->getSizeExpr())) in IsStructurallyEquivalent()
947 if (!IsStructurallyEquivalent(Context, Vec1->getSizeExpr(), in IsStructurallyEquivalent()
948 Vec2->getSizeExpr())) in IsStructurallyEquivalent()
961 if (!IsStructurallyEquivalent(Context, Vec1->getSizeExpr(), in IsStructurallyEquivalent()
962 Vec2->getSizeExpr())) in IsStructurallyEquivalent()
H A DODRHash.cpp948 AddStmt(T->getSizeExpr()); in VisitDependentSizedArrayType()
957 AddStmt(T->getSizeExpr()); in VisitVariableArrayType()
1023 AddStmt(T->getSizeExpr()); in VisitDependentSizedExtVectorType()
H A DASTContext.cpp3653 cat->getSizeExpr(), in getVariableArrayDecayedType()
3663 dat->getSizeExpr(), in getVariableArrayDecayedType()
3777 canonTy->getSizeExpr() == numElements) in getDependentSizedArrayType()
6038 VAT->getSizeExpr(), in getUnqualifiedArrayType()
6880 CAT->getSizeExpr(), in getAsArrayType()
6898 VAT->getSizeExpr(), in getAsArrayType()
10762 Expr *E = VAT->getSizeExpr(); in mergeTypes()
12567 assert(Ctx.hasSameExpr(X->getSizeExpr(), Y->getSizeExpr())); in getCommonSizeExpr()
12568 return X->getSizeExpr(); in getCommonSizeExpr()
12742 const Expr *SizeExpr = Ctx.hasSameExpr(AX->getSizeExpr(), AY->getSizeExpr()) in getCommonNonSugarTypeNode()
[all …]
H A DASTDiagnostic.cpp144 ElementTy, CAT->getSize(), CAT->getSizeExpr(), in desugarForDiagnostic()
148 ElementTy, VAT->getSizeExpr(), VAT->getSizeModifier(), in desugarForDiagnostic()
152 ElementTy, DSAT->getSizeExpr(), DSAT->getSizeModifier(), in desugarForDiagnostic()
H A DItaniumMangle.cpp3668 if (T->getSizeExpr()) in mangleType()
3669 mangleExpression(T->getSizeExpr()); in mangleType()
3678 if (T->getSizeExpr()) in mangleType()
3679 mangleExpression(T->getSizeExpr()); in mangleType()
4140 mangleExpression(T->getSizeExpr()); in mangleType()
4155 mangleExpression(T->getSizeExpr()); in mangleType()
H A DType.cpp989 return Ctx.getConstantArrayType(elementType, T->getSize(), T->getSizeExpr(), in VisitConstantArrayType()
1002 return Ctx.getVariableArrayType(elementType, T->getSizeExpr(), in VisitVariableArrayType()
4762 cast<VariableArrayType>(arr)->getSizeExpr()) in hasSizedVLAType()
H A DDeclBase.cpp471 dyn_cast_if_present<IntegerLiteral>(CTL.getSizeExpr()); in isFlexibleArrayMemberLike()
H A DASTImporter.cpp1212 auto ToSizeExpr = importChecked(Err, T->getSizeExpr()); in VisitConstantArrayType()
1236 Expr *ToSizeExpr = importChecked(Err, T->getSizeExpr()); in VisitVariableArrayType()
1249 Expr *ToSizeExpr = importChecked(Err, T->getSizeExpr()); in VisitDependentSizedArrayType()
1265 Expr *ToSizeExpr = importChecked(Err, T->getSizeExpr()); in VisitDependentSizedExtVectorType()
1785 Expr *ToSizeExpr = importChecked(Err, T->getSizeExpr()); in VisitDependentVectorType()
3546 if (T->getSizeExpr() && isAncestorDeclContextOf(ParentDC, T->getSizeExpr())) in VisitConstantArrayType()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DRecursiveASTVisitor.h988 if (T->getSizeExpr())
997 TRY_TO(TraverseStmt(T->getSizeExpr()));
1002 if (T->getSizeExpr())
1003 TRY_TO(TraverseStmt(T->getSizeExpr()));
1012 if (T->getSizeExpr())
1013 TRY_TO(TraverseStmt(T->getSizeExpr()));
1018 if (T->getSizeExpr())
1019 TRY_TO(TraverseStmt(T->getSizeExpr()));
1239 TRY_TO(TraverseStmt(TL.getSizeExpr()));
1271 if (TL.getTypePtr()->getSizeExpr())
[all …]
H A DTypeProperties.td110 let Read = [{ node->getSizeExpr() }];
135 let Read = [{ node->getSizeExpr() }];
148 let Read = [{ node->getSizeExpr() }];
186 let Read = [{ node->getSizeExpr() }];
216 let Read = [{ node->getSizeExpr() }];
H A DASTNodeTraverser.h365 Visit(T->getSizeExpr()); in VisitVariableArrayType()
369 Visit(T->getSizeExpr()); in VisitDependentSizedArrayType()
373 Visit(T->getSizeExpr()); in VisitDependentSizedExtVectorType()
H A DType.h3204 const Expr *getSizeExpr() const {
3225 Profile(ID, Ctx, getElementType(), getSize(), getSizeExpr(),
3305 Expr *getSizeExpr() const {
3360 Expr *getSizeExpr() const {
3379 getSizeModifier(), getIndexTypeCVRQualifiers(), getSizeExpr());
3452 Expr *getSizeExpr() const { return SizeExpr; }
3464 Profile(ID, Context, getElementType(), getSizeExpr());
3571 Expr *getSizeExpr() const { return SizeExpr; }
3586 Profile(ID, Context, getElementType(), getSizeExpr(), getVectorKind());
H A DCanonicalType.h469 LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(const Expr *, getSizeExpr)
H A DTypeLoc.h1547 Expr *getSizeExpr() const { in getSizeExpr() function
1591 setSizeExpr(getTypePtr()->getSizeExpr()); in initializeLocal()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DLiveVariables.cpp185 if (VAT->getSizeExpr()) in FindVA()
258 AddLiveExpr(val.liveExprs, LV.ESetFact, VA->getSizeExpr()); in Visit()
H A DCFG.cpp1416 if (vat->getSizeExpr()) in FindVA()
2957 if (CFGBlock *NewBlock = addStmt(VA->getSizeExpr())) in VisitDeclSubExpr()
3051 if (CFGBlock *newBlock = addStmt(VA->getSizeExpr())) in VisitDeclSubExpr()
4317 lastBlock = addStmt(VA->getSizeExpr()); in VisitUnaryExprOrTypeTraitExpr()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DVLASizeChecker.cpp84 const Expr *SizeE = VLA->getSizeExpr(); in checkVLA()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp1768 getDeducedParameterFromExpr(Info, DAP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
1783 if (DAA->getSizeExpr()) in DeduceTemplateArgumentsByTypeMatch()
1785 S, TemplateParams, NTTP, DAA->getSizeExpr(), Info, Deduced); in DeduceTemplateArgumentsByTypeMatch()
1986 getDeducedParameterFromExpr(Info, VP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
2009 getDeducedParameterFromExpr(Info, VP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
2014 VA->getSizeExpr(), Info, Deduced); in DeduceTemplateArgumentsByTypeMatch()
2035 getDeducedParameterFromExpr(Info, VP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
2058 getDeducedParameterFromExpr(Info, VP->getSizeExpr()); in DeduceTemplateArgumentsByTypeMatch()
2063 VA->getSizeExpr(), Info, Deduced); in DeduceTemplateArgumentsByTypeMatch()
4128 getDeducedParameterFromExpr(Info, DependentArrTy->getSizeExpr())) { in DeduceFromInitializerList()
[all …]
H A DTreeTransform.h5380 Expr *OldSize = TL.getSizeExpr(); in TransformConstantArrayType()
5382 OldSize = const_cast<Expr*>(T->getSizeExpr()); in TransformConstantArrayType()
5394 (T->getSizeExpr() && NewSize != OldSize)) { in TransformConstantArrayType()
5457 SizeResult = getDerived().TransformExpr(T->getSizeExpr()); in TransformVariableArrayType()
5471 Size != T->getSizeExpr()) { in TransformVariableArrayType()
5508 Expr *origSize = TL.getSizeExpr(); in TransformDependentSizedArrayType()
5509 if (!origSize) origSize = T->getSizeExpr(); in TransformDependentSizedArrayType()
5560 Size.get() != T->getSizeExpr()) { in TransformDependentVectorType()
5603 Size.get() != T->getSizeExpr()) { in TransformDependentSizedExtVectorType()
12580 if (DepArrayT->getSizeExpr()) { in TransformCXXNewExpr()
[all …]
H A DSemaInit.cpp1973 SemaRef.Diag(VAT->getSizeExpr()->getBeginLoc(), in CheckArrayType()
1975 << VAT->getSizeExpr()->getSourceRange(); in CheckArrayType()
5478 const Expr *SE = VAT->getSizeExpr(); in TryOrBuildParenListInitialization()
9258 ConstantSource->getSizeExpr(), ArraySizeModifier::Normal, 0); in Perform()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1201 VLASizeMap[VAT->getSizeExpr()] = ExprArg; in StartFunction()
2243 llvm::Value *vlaSize = VLASizeMap[type->getSizeExpr()]; in getVLASize()
2268 llvm::Value *VlaSize = VLASizeMap[Vla->getSizeExpr()]; in getVLAElements1D()
2354 if (const Expr *sizeExpr = vat->getSizeExpr()) { in EmitVariablyModifiedType()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp1234 Expr *SizeExpr = FieldForCapture->getCapturedVLAType()->getSizeExpr(); in VisitLambdaExpr()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp1357 Builder.markExprChild(L.getSizeExpr(), syntax::NodeRole::Size); in WalkUpFromArrayTypeLoc()

12