Home
last modified time | relevance | path

Searched refs:CurCodeDecl (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm-project/clang/lib/CodeGen/
DCodeGenABITypes.cpp124 CGF.CurCodeDecl = D; in getCXXDestructorImplicitParam()
DCodeGenFunction.cpp403 EmitEndEHSpec(CurCodeDecl); in FinishFunction()
659 (SanOpts.has(SanitizerKind::ReturnsNonnullAttribute) && CurCodeDecl && in requiresReturnValueCheck()
660 CurCodeDecl->getAttr<ReturnsNonNullAttr>()); in requiresReturnValueCheck()
704 CurCodeDecl = D; in StartFunction()
910 CurCodeDecl && CurCodeDecl->getAttr<ReturnsNonNullAttr>())) in StartFunction()
1076 EmitStartEHSpec(CurCodeDecl); in StartFunction()
1081 if (getLangOpts().OpenMP && CurCodeDecl) in StartFunction()
1082 CGM.getOpenMPRuntime().emitFunctionProlog(*this, CurCodeDecl); in StartFunction()
2352 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurCodeDecl); in checkTargetFeatures()
DCGCall.cpp2414 if (CurCodeDecl && CurCodeDecl->hasAttr<NakedAttr>()) in EmitFunctionProlog()
2422 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurCodeDecl)) { in EmitFunctionProlog()
2552 if (getNonNullAttr(CurCodeDecl, PVD, PVD->getType(), in EmitFunctionProlog()
2893 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurCodeDecl); in tryRemoveRetainOfSelf()
3210 if (CurCodeDecl && CurCodeDecl->hasAttr<NakedAttr>()) { in EmitFunctionEpilog()
3307 if (auto *FD = dyn_cast<FunctionDecl>(CurCodeDecl)) in EmitFunctionEpilog()
3309 else if (auto *MD = dyn_cast<ObjCMethodDecl>(CurCodeDecl)) in EmitFunctionEpilog()
3311 else if (isa<BlockDecl>(CurCodeDecl)) in EmitFunctionEpilog()
3387 if (!CurCodeDecl) in EmitReturnValueCheck()
3397 RetNNAttr = CurCodeDecl->getAttr<ReturnsNonNullAttr>(); in EmitReturnValueCheck()
[all …]
DCGCXXABI.cpp27 Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()), in ErrorUnsupportedABI()
DCGClass.cpp467 const CXXRecordDecl *RD = cast<CXXMethodDecl>(CurCodeDecl)->getParent(); in GetVTTParameter()
518 cast<CXXMethodDecl>(CGF.CurCodeDecl)->getParent(); in Emit()
1584 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); in Emit()
1602 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); in EmitConditionalDtorDeleteCall()
2228 const auto *OuterCtor = cast<CXXConstructorDecl>(CurCodeDecl); in EmitInheritedCXXConstructorCall()
2916 CGM.ErrorUnsupported(CurCodeDecl, "lambda conversion to variadic function"); in EmitLambdaBlockInvokeBody()
DCGVTables.cpp279 CurCodeDecl = MD; in StartThunk()
286 CurCodeDecl = nullptr; in FinishThunk()
DCGException.cpp236 const auto *FD = CGF.CurCodeDecl; in get()
1183 doImplicitRethrow = isa<CXXDestructorDecl>(CurCodeDecl) || in ExitCXXTryStmt()
1184 isa<CXXConstructorDecl>(CurCodeDecl); in ExitCXXTryStmt()
DCGExpr.cpp1534 auto *MD = dyn_cast_or_null<CXXMethodDecl>(CurCodeDecl); in tryEmitAsConstant()
2640 dyn_cast_or_null<DeclContext>(CGF.CurCodeDecl); in canEmitSpuriousReferenceToVariable()
2758 assert(isa<BlockDecl>(CurCodeDecl)); in EmitDeclRefLValue()
2947 if (auto *BD = dyn_cast_or_null<BlockDecl>(CurCodeDecl)) { in EmitPredefinedLValue()
4178 assert(cast<CXXMethodDecl>(CurCodeDecl)->getParent()->isLambda()); in EmitLValueForLambdaField()
4179 assert(cast<CXXMethodDecl>(CurCodeDecl)->getParent() == Field->getParent()); in EmitLValueForLambdaField()
DCGStmtOpenMP.cpp65 (CGF.CurCodeDecl && isa<BlockDecl>(CGF.CurCodeDecl) && in isCapturedVar()
66 cast<BlockDecl>(CGF.CurCodeDecl)->capturesVariable(VD)); in isCapturedVar()
199 (CGF.CurCodeDecl && isa<BlockDecl>(CGF.CurCodeDecl) && in isCapturedVar()
200 cast<BlockDecl>(CGF.CurCodeDecl)->capturesVariable(VD)); in isCapturedVar()
278 (CurCodeDecl && isa<BlockDecl>(CurCodeDecl)); in EmitOMPSharedLValue()
DCGObjC.cpp676 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl()); in EmitObjCMessageExpr()
704 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl()); in EmitObjCMessageExpr()
721 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CGF.CurCodeDecl); in Emit()
1693 /*is enclosing local*/ (CurFuncDecl != CurCodeDecl), in LoadObjCSelf()
DCodeGenFunction.h308 const Decl *CurCodeDecl;
1584 OldCurCodeDecl(CGF.CurCodeDecl),
1594 CGF.CurFuncDecl = CGF.CurCodeDecl =
1608 CGF.CurCodeDecl = OldCurCodeDecl;
DCGObjCGNU.cpp763 if (isa<ObjCMethodDecl>(CGF.CurCodeDecl)) { in LookupIMP()
DMicrosoftCXXABI.cpp1626 if (ForVirtualBase && isa<CXXConstructorDecl>(CGF.CurCodeDecl)) { in EmitDestructorCall()
/external/clang/lib/CodeGen/
DCGCall.cpp2075 if (CurCodeDecl && CurCodeDecl->hasAttr<NakedAttr>()) in EmitFunctionProlog()
2083 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurCodeDecl)) { in EmitFunctionProlog()
2210 if (getNonNullAttr(CurCodeDecl, PVD, PVD->getType(), in EmitFunctionProlog()
2303 dyn_cast_or_null<CXXMethodDecl>(CurCodeDecl)) { in EmitFunctionProlog()
2549 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurCodeDecl); in tryRemoveRetainOfSelf()
2667 if (CurCodeDecl && CurCodeDecl->hasAttr<NakedAttr>()) { in EmitFunctionEpilog()
2773 if (auto *FD = dyn_cast<FunctionDecl>(CurCodeDecl)) in EmitFunctionEpilog()
2775 else if (auto *MD = dyn_cast<ObjCMethodDecl>(CurCodeDecl)) in EmitFunctionEpilog()
2777 else if (isa<BlockDecl>(CurCodeDecl)) in EmitFunctionEpilog()
2834 if (CurCodeDecl && SanOpts.has(SanitizerKind::ReturnsNonnullAttribute)) { in EmitFunctionEpilog()
[all …]
DCGClass.cpp433 const CXXRecordDecl *RD = cast<CXXMethodDecl>(CurCodeDecl)->getParent(); in GetVTTParameter()
484 cast<CXXMethodDecl>(CGF.CurCodeDecl)->getParent(); in Emit()
1619 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); in Emit()
1643 const CXXDestructorDecl *Dtor = cast<CXXDestructorDecl>(CGF.CurCodeDecl); in Emit()
2196 const auto *OuterCtor = cast<CXXConstructorDecl>(CurCodeDecl); in EmitInheritedCXXConstructorCall()
2955 if (cast<CXXMethodDecl>(CurCodeDecl)->isVariadic()) { in EmitLambdaToBlockPointerBody()
2958 CGM.ErrorUnsupported(CurCodeDecl, "lambda conversion to variadic function"); in EmitLambdaToBlockPointerBody()
DCGCXXABI.cpp27 Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()), in ErrorUnsupportedABI()
DCGVTables.cpp241 CurCodeDecl = MD; in StartThunk()
248 CurCodeDecl = nullptr; in FinishThunk()
DCGException.cpp219 return get(CGF.CGM, dyn_cast_or_null<FunctionDecl>(CGF.CurCodeDecl)); in get()
1036 doImplicitRethrow = isa<CXXDestructorDecl>(CurCodeDecl) || in ExitCXXTryStmt()
1037 isa<CXXConstructorDecl>(CurCodeDecl); in ExitCXXTryStmt()
DCodeGenFunction.cpp332 EmitEndEHSpec(CurCodeDecl); in FinishFunction()
666 CurCodeDecl = D; in StartFunction()
836 EmitStartEHSpec(CurCodeDecl); in StartFunction()
DCodeGenFunction.h153 const Decl *CurCodeDecl; variable
1085 OldCurCodeDecl(CGF.CurCodeDecl), in InlinedInheritingConstructorScope()
1095 CGF.CurFuncDecl = CGF.CurCodeDecl = in InlinedInheritingConstructorScope()
1109 CGF.CurCodeDecl = OldCurCodeDecl; in ~InlinedInheritingConstructorScope()
DCGObjC.cpp445 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl()); in EmitObjCMessageExpr()
473 GetAddrOfLocalVar(cast<ObjCMethodDecl>(CurCodeDecl)->getSelfDecl()); in EmitObjCMessageExpr()
490 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CGF.CurCodeDecl); in Emit()
1439 DeclRefExpr DRE(Self, /*is enclosing local*/ (CurFuncDecl != CurCodeDecl), in LoadObjCSelf()
DCGExpr.cpp2123 assert(isa<BlockDecl>(CurCodeDecl)); in EmitDeclRefLValue()
2293 if (CurCodeDecl && isa<BlockDecl>(CurCodeDecl)) { in EmitPredefinedLValue()
3275 assert(cast<CXXMethodDecl>(CurCodeDecl)->getParent()->isLambda()); in EmitLValueForLambdaField()
3276 assert(cast<CXXMethodDecl>(CurCodeDecl)->getParent() == Field->getParent()); in EmitLValueForLambdaField()
DCGDecl.cpp1810 const ObjCMethodDecl *method = cast<ObjCMethodDecl>(CurCodeDecl); in EmitParmDecl()
DCGStmtOpenMP.cpp52 (CGF.CurCodeDecl && isa<BlockDecl>(CGF.CurCodeDecl)); in isCapturedVar()
DCGObjCGNU.cpp694 if (isa<ObjCMethodDecl>(CGF.CurCodeDecl)) { in LookupIMP()

12