Home
last modified time | relevance | path

Searched refs:InitExpr (Results 1 – 24 of 24) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/
Dyaml2wasm.cpp89 static int writeInitExpr(const wasm::WasmInitExpr &InitExpr, raw_ostream &OS) { in writeInitExpr() argument
90 writeUint8(OS, InitExpr.Opcode); in writeInitExpr()
91 switch (InitExpr.Opcode) { in writeInitExpr()
93 encodeSLEB128(InitExpr.Value.Int32, OS); in writeInitExpr()
96 encodeSLEB128(InitExpr.Value.Int64, OS); in writeInitExpr()
99 writeUint32(OS, InitExpr.Value.Float32); in writeInitExpr()
102 writeUint64(OS, InitExpr.Value.Float64); in writeInitExpr()
105 encodeULEB128(InitExpr.Value.Global, OS); in writeInitExpr()
108 errs() << "Unknown opcode in init_expr: " << InitExpr.Opcode << "\n"; in writeInitExpr()
367 writeInitExpr(Global.InitExpr, OS); in writeSectionContent()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineCXX.cpp595 Expr *InitExpr = *i; in VisitLambdaExpr() local
596 assert(InitExpr && "Capture missing initialization expression"); in VisitLambdaExpr()
597 InitVal = State->getSVal(InitExpr, LocCtxt); in VisitLambdaExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/
Dwasm2yaml.cpp221 G.InitExpr = Global.InitExpr; in dump()
/external/clang/lib/Sema/
DSemaStmt.cpp2450 const Expr *InitExpr = VD->getInit(); in DiagnoseForRangeReferenceVariableCopies() local
2451 if (!InitExpr) in DiagnoseForRangeReferenceVariableCopies()
2456 if (auto Cleanups = dyn_cast<ExprWithCleanups>(InitExpr)) in DiagnoseForRangeReferenceVariableCopies()
2458 InitExpr = Cleanups->getSubExpr(); in DiagnoseForRangeReferenceVariableCopies()
2461 dyn_cast<MaterializeTemporaryExpr>(InitExpr); in DiagnoseForRangeReferenceVariableCopies()
2523 const Expr *InitExpr = VD->getInit(); in DiagnoseForRangeConstVariableCopies() local
2524 if (!InitExpr) in DiagnoseForRangeConstVariableCopies()
2529 if (const CXXConstructExpr *CE = dyn_cast<CXXConstructExpr>(InitExpr)) { in DiagnoseForRangeConstVariableCopies()
2532 } else if (const CastExpr *CE = dyn_cast<CastExpr>(InitExpr)) { in DiagnoseForRangeConstVariableCopies()
2548 << VD << VariableType << InitExpr->getType(); in DiagnoseForRangeConstVariableCopies()
[all …]
DSemaInit.cpp358 Expr *InitExpr, FieldDecl *Field,
384 Expr *InitExpr; in PerformEmptyInit() local
404 InitExpr = VerifyOnly ? &DummyInitList : new (SemaRef.Context) in PerformEmptyInit()
406 InitExpr->setType(SemaRef.Context.VoidTy); in PerformEmptyInit()
407 SubInit = InitExpr; in PerformEmptyInit()
709 Expr *InitExpr = (Init < NumInits ? ILE->getInit(Init) : nullptr); in FillInEmptyInitializations() local
710 if (!InitExpr && Init < NumInits && ILE->hasArrayFiller()) in FillInEmptyInitializations()
712 else if (!InitExpr && !ILE->hasArrayFiller()) { in FillInEmptyInitializations()
757 = dyn_cast_or_null<InitListExpr>(InitExpr)) in FillInEmptyInitializations()
761 = dyn_cast_or_null<DesignatedInitUpdateExpr>(InitExpr)) in FillInEmptyInitializations()
[all …]
DSemaDeclCXX.cpp2658 Expr *InitExpr = FieldInit->getInit(); in DiagnoseUninitializedFields() local
2659 if (!InitExpr) in DiagnoseUninitializedFields()
2663 dyn_cast<CXXDefaultInitExpr>(InitExpr)) { in DiagnoseUninitializedFields()
2664 InitExpr = Default->getExpr(); in DiagnoseUninitializedFields()
2665 if (!InitExpr) in DiagnoseUninitializedFields()
2668 UninitializedChecker.CheckInitializer(InitExpr, Constructor, in DiagnoseUninitializedFields()
2672 UninitializedChecker.CheckInitializer(InitExpr, nullptr, in DiagnoseUninitializedFields()
2694 Expr *InitExpr) { in ActOnFinishCXXInClassMemberInitializer() argument
2702 if (!InitExpr) { in ActOnFinishCXXInClassMemberInitializer()
2709 if (DiagnoseUnexpandedParameterPack(InitExpr, UPPC_Initializer)) { in ActOnFinishCXXInClassMemberInitializer()
[all …]
DSemaTemplateInstantiateDecl.cpp3908 Expr *InitExpr = Init.get(); in InstantiateVariableInitializer() local
3911 (!InitExpr || in InstantiateVariableInitializer()
3912 !InitExpr->isConstantInitializer(getASTContext(), false))) { in InstantiateVariableInitializer()
3914 } else if (InitExpr) { in InstantiateVariableInitializer()
3916 AddInitializerToDecl(Var, InitExpr, DirectInit, TypeMayContainAuto); in InstantiateVariableInitializer()
DSemaOpenMP.cpp9658 Expr *InitExpr; in ActOnOpenMPLinearClause() local
9679 InitExpr = VD ? VD->getInit() : SimpleRefExpr; in ActOnOpenMPLinearClause()
9681 InitExpr = VD ? SimpleRefExpr : Ref; in ActOnOpenMPLinearClause()
9682 AddInitializerToDecl(Init, DefaultLvalueConversion(InitExpr).get(), in ActOnOpenMPLinearClause()
9775 Expr *InitExpr = *CurInit; in FinishOpenMPLinearClause() local
9793 InitExpr, IV, Step, /* Subtract */ false); in FinishOpenMPLinearClause()
9803 InitExpr, NumIterations, Step, in FinishOpenMPLinearClause()
DSemaDecl.cpp14577 Expr *InitExpr = ECD->getInitExpr(); in ValidDuplicateEnum() local
14578 if (!InitExpr) in ValidDuplicateEnum()
14580 InitExpr = InitExpr->IgnoreImpCasts(); in ValidDuplicateEnum()
14582 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(InitExpr)) { in ValidDuplicateEnum()
14591 InitExpr = BO->getLHS(); in ValidDuplicateEnum()
14595 DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(InitExpr); in ValidDuplicateEnum()
DSemaExprCXX.cpp2728 const Expr *InitExpr = Field->getInClassInitializer(); in analyzeInClassInitializer() local
2729 if (!InitExpr) in analyzeInClassInitializer()
2731 if (const CXXNewExpr *NE = getNewExprFromInitListOrExpr(InitExpr)) { in analyzeInClassInitializer()
DSemaExpr.cpp5502 SourceLocation RParenLoc, Expr *InitExpr) { in ActOnCompoundLiteral() argument
5504 assert(InitExpr && "ActOnCompoundLiteral(): missing expression"); in ActOnCompoundLiteral()
5511 return BuildCompoundLiteralExpr(LParenLoc, TInfo, RParenLoc, InitExpr); in ActOnCompoundLiteral()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/BinaryFormat/
DWasm.h78 WasmInitExpr InitExpr; member
/external/clang/lib/Parse/
DParseExprCXX.cpp1013 Expr *InitExpr = Init.get(); in ParseLambdaIntroducer() local
1017 Loc, Kind == LCK_ByRef, Id, InitKind, InitExpr); in ParseLambdaIntroducer()
1018 Init = InitExpr; in ParseLambdaIntroducer()
1820 ExprResult InitExpr = ExprError(); in ParseCXXCondition() local
1824 InitExpr = ParseBraceInitializer(); in ParseCXXCondition()
1826 InitExpr = ParseAssignmentExpression(); in ParseCXXCondition()
1839 if (!InitExpr.isInvalid()) in ParseCXXCondition()
1840 Actions.AddInitializerToDecl(DeclOut, InitExpr.get(), !CopyInitialization, in ParseCXXCondition()
/external/clang/lib/StaticAnalyzer/Checkers/
DLocalizationChecker.cpp1139 const Expr *InitExpr = VD->getInit(); in isCheckingPlurality() local
1140 if (InitExpr) { in isCheckingPlurality()
1142 dyn_cast<BinaryOperator>(InitExpr->IgnoreParenImpCasts())) { in isCheckingPlurality()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp806 const Expr *InitExpr = Enumerator->getInitExpr(); in UseNSOptionsMacro() local
807 if (!InitExpr) { in UseNSOptionsMacro()
812 InitExpr = InitExpr->IgnoreParenCasts(); in UseNSOptionsMacro()
813 if (const BinaryOperator *BO = dyn_cast<BinaryOperator>(InitExpr)) in UseNSOptionsMacro()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ObjectYAML/
DWasmYAML.h74 wasm::WasmInitExpr InitExpr; member
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ObjectYAML/
DWasmYAML.cpp331 IO.mapRequired("InitExpr", Global.InitExpr); in mapping()
/external/clang/lib/CodeGen/
DCGExprConstant.cpp62 llvm::Constant *InitExpr);
67 llvm::ConstantInt *InitExpr);
DCodeGenModule.cpp2395 const Expr *InitExpr = D->getAnyInitializer(InitDecl); in EmitGlobalVarDefinition() local
2403 else if (!InitExpr) { in EmitGlobalVarDefinition()
2420 QualType T = InitExpr->getType(); in EmitGlobalVarDefinition()
DCGExpr.cpp3450 const Expr *InitExpr = E->getInitializer(); in EmitCompoundLiteralLValue() local
3453 EmitAnyExprToMem(InitExpr, DeclPtr, E->getType().getQualifiers(), in EmitCompoundLiteralLValue()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DWasmObjectFile.cpp808 if (Error Err = readInitExpr(Global.InitExpr, Ctx)) in parseGlobalSection()
/external/clang/lib/AST/
DExpr.cpp3215 const Expr *InitExpr = CLE->getInitializer(); in isNullPointerConstant() local
3216 if (const InitListExpr *ILE = dyn_cast<InitListExpr>(InitExpr)) in isNullPointerConstant()
DExprConstant.cpp5570 const Expr *InitExpr = E->getNumInits() ? E->getInit(0) : &VIE; in VisitInitListExpr() local
5573 if (!HandleLValueMember(Info, InitExpr, Subobject, Field, &Layout)) in VisitInitListExpr()
5578 isa<CXXDefaultInitExpr>(InitExpr)); in VisitInitListExpr()
5580 return EvaluateInPlace(Result.getUnionValue(), Info, Subobject, InitExpr); in VisitInitListExpr()
/external/clang/include/clang/Sema/
DSema.h4034 Expr *InitExpr);