Home
last modified time | relevance | path

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

/external/llvm-project/clang/lib/CodeGen/
DCodeGenABITypes.cpp125 CGF.CurFuncDecl = D; in getCXXDestructorImplicitParam()
DCodeGenFunction.cpp168 assert((CGF.CurFuncDecl == nullptr || CGF.Builder.getIsFPConstrained() || in ConstructorHelper()
169 isa<CXXConstructorDecl>(CGF.CurFuncDecl) || in ConstructorHelper()
170 isa<CXXDestructorDecl>(CGF.CurFuncDecl) || in ConstructorHelper()
519 if (!CurFuncDecl || CurFuncDecl->hasAttr<NoInstrumentFunctionAttr>()) in ShouldInstrumentFunction()
708 CurFuncDecl = (D ? D->getNonClosureContext() : nullptr); in StartFunction()
1002 if (!CurFuncDecl || !CurFuncDecl->hasAttr<NoInstrumentFunctionAttr>()) { in StartFunction()
1172 if (CurFuncDecl) in StartFunction()
1173 if (const auto *VecWidth = CurFuncDecl->getAttr<MinVectorWidthAttr>()) in StartFunction()
DCGObjCRuntime.cpp198 CGF.CurSEHParent = cast<NamedDecl>(CGF.CurFuncDecl); in EmitTryCatchStmt()
DCGCUDANV.cpp242 EmittedKernels.push_back({CGF.CurFn, CGF.CurFuncDecl}); in emitDeviceStub()
292 CGM.Error(CGF.CurFuncDecl->getLocation(), in emitDeviceStubBodyNew()
DCGVTables.cpp280 CurFuncDecl = MD; in StartThunk()
287 CurFuncDecl = nullptr; in FinishThunk()
DCGClass.cpp129 assert(CurFuncDecl && "loading 'this' without a func declaration?"); in LoadCXXThisAddress()
130 assert(isa<CXXMethodDecl>(CurFuncDecl)); in LoadCXXThisAddress()
137 auto RD = cast<CXXMethodDecl>(CurFuncDecl)->getParent(); in LoadCXXThisAddress()
DCGBlocks.cpp553 assert(CGF && CGF->CurFuncDecl && isa<CXXMethodDecl>(CGF->CurFuncDecl) && in computeBlockInfo()
555 QualType thisType = cast<CXXMethodDecl>(CGF->CurFuncDecl)->getThisType(); in computeBlockInfo()
DCGObjC.cpp683 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in EmitObjCMessageExpr()
1691 VarDecl *Self = cast<ObjCMethodDecl>(CurFuncDecl)->getSelfDecl(); in LoadObjCSelf()
1693 /*is enclosing local*/ (CurFuncDecl != CurCodeDecl), in LoadObjCSelf()
1699 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in TypeOfSelfObject()
DCGCall.cpp3367 if (CurFuncDecl && CurFuncDecl->hasAttr<CmseNSEntryAttr>()) { in EmitFunctionEpilog()
4869 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurFuncDecl)) in EmitCall()
4934 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurFuncDecl)) in EmitCall()
4963 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(CurFuncDecl)) { in EmitCall()
DCodeGenFunction.h306 const Decl *CurFuncDecl;
1583 : CGF(CGF), OldCurGD(CGF.CurGD), OldCurFuncDecl(CGF.CurFuncDecl),
1594 CGF.CurFuncDecl = CGF.CurCodeDecl =
1607 CGF.CurFuncDecl = OldCurFuncDecl;
DCGStmtOpenMP.cpp5513 assert(CGF.CurFuncDecl && "No parent declaration for target region!"); in emitCommonOMPTargetDirective()
5517 if (const auto *D = dyn_cast<CXXConstructorDecl>(CGF.CurFuncDecl)) in emitCommonOMPTargetDirective()
5519 else if (const auto *D = dyn_cast<CXXDestructorDecl>(CGF.CurFuncDecl)) in emitCommonOMPTargetDirective()
5523 CGM.getMangledName(GlobalDecl(cast<FunctionDecl>(CGF.CurFuncDecl))); in emitCommonOMPTargetDirective()
DItaniumCXXABI.cpp1665 if (CGF.CurFuncDecl && CGF.CurFuncDecl->hasAttr<NakedAttr>()) in EmitInstanceFunctionProlog()
DMicrosoftCXXABI.cpp1510 if (CGF.CurFuncDecl && CGF.CurFuncDecl->hasAttr<NakedAttr>()) in EmitInstanceFunctionProlog()
DCGOpenMPRuntime.cpp1414 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(CGF.CurFuncDecl)) in getIdentStringFromSourceLocation()
1429 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(CGF.CurFuncDecl)) in emitUpdateLocation()
DCGObjCMac.cpp1584 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurFuncDecl)) in IsIvarOffsetKnownIdempotent()
DCGBuiltin.cpp4750 if (const auto *XRayAttr = CurFuncDecl->getAttr<XRayInstrumentAttr>()) in EmitBuiltinExpr()
4784 if (const auto *XRayAttr = CurFuncDecl->getAttr<XRayInstrumentAttr>()) in EmitBuiltinExpr()
/external/clang/lib/CodeGen/
DCodeGenFunction.cpp395 if (!CurFuncDecl || CurFuncDecl->hasAttr<NoInstrumentFunctionAttr>()) in ShouldInstrumentFunction()
670 CurFuncDecl = (D ? D->getNonClosureContext() : nullptr); in StartFunction()
1964 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurFuncDecl); in checkTargetFeatures()
DCGVTables.cpp242 CurFuncDecl = MD; in StartThunk()
249 CurFuncDecl = nullptr; in FinishThunk()
DCGBlocks.cpp348 assert(CGF && CGF->CurFuncDecl && isa<CXXMethodDecl>(CGF->CurFuncDecl) && in computeBlockInfo()
350 QualType thisType = cast<CXXMethodDecl>(CGF->CurFuncDecl)->getThisType(C); in computeBlockInfo()
DCodeGenFunction.h151 const Decl *CurFuncDecl; variable
1084 : CGF(CGF), OldCurGD(CGF.CurGD), OldCurFuncDecl(CGF.CurFuncDecl), in InlinedInheritingConstructorScope()
1095 CGF.CurFuncDecl = CGF.CurCodeDecl = in InlinedInheritingConstructorScope()
1108 CGF.CurFuncDecl = OldCurFuncDecl; in ~InlinedInheritingConstructorScope()
DCGObjC.cpp452 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in EmitObjCMessageExpr()
1438 VarDecl *Self = cast<ObjCMethodDecl>(CurFuncDecl)->getSelfDecl(); in LoadObjCSelf()
1439 DeclRefExpr DRE(Self, /*is enclosing local*/ (CurFuncDecl != CurCodeDecl), in LoadObjCSelf()
1445 const ObjCMethodDecl *OMD = cast<ObjCMethodDecl>(CurFuncDecl); in TypeOfSelfObject()
DCGClass.cpp110 assert(CurFuncDecl && "loading 'this' without a func declaration?"); in LoadCXXThisAddress()
111 assert(isa<CXXMethodDecl>(CurFuncDecl)); in LoadCXXThisAddress()
118 auto RD = cast<CXXMethodDecl>(CurFuncDecl)->getParent(); in LoadCXXThisAddress()
DCGStmtOpenMP.cpp3298 assert(CurFuncDecl && "No parent declaration for target region!"); in EmitOMPTargetDirective()
3302 if (auto *D = dyn_cast<CXXConstructorDecl>(CurFuncDecl)) in EmitOMPTargetDirective()
3304 else if (auto *D = dyn_cast<CXXDestructorDecl>(CurFuncDecl)) in EmitOMPTargetDirective()
3308 CGM.getMangledName(GlobalDecl(cast<FunctionDecl>(CurFuncDecl))); in EmitOMPTargetDirective()
DCGOpenMPRuntime.cpp969 dyn_cast_or_null<FunctionDecl>(CGF.CurFuncDecl)) { in emitUpdateLocation()
DCGObjCMac.cpp1445 dyn_cast_or_null<ObjCMethodDecl>(CGF.CurFuncDecl)) in IsIvarOffsetKnownIdempotent()