Lines Matching defs:FD

670   FunctionDecl *FD = getCurFunctionDecl();
671 if (FD && FD->isDefaulted()) {
808 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
811 if (FunctionTemplateDecl *Template = FD->getDescribedFunctionTemplate())
819 if (FD->hasBody(DeclToCheck))
824 DeclToCheck = FD->getMostRecentDecl();
825 if (DeclToCheck != FD)
863 if (const auto *FD = dyn_cast<FunctionDecl>(ND))
864 return FD->isExternC();
902 if (const auto *FD = dyn_cast<FunctionDecl>(ND)) {
903 if (FD->isDefined())
905 if (FD->isExternallyVisible() &&
906 !isExternalWithNoLinkageType(FD) &&
907 !FD->getMostRecentDecl()->isInlined() &&
908 !FD->hasAttr<ExcludeFromExplicitInstantiationAttr>())
910 if (FD->getBuiltinID())
980 } else if (auto *FD = dyn_cast<FunctionDecl>(VD)) {
981 (void)FD;
982 assert(FD->getMostRecentDecl()->isInlined() &&
1075 if (const FunctionDecl *FD =
1077 Complete = FD->isDefined();
1347 if (auto *FD = dyn_cast<FunctionDecl>(D)) {
1349 if (auto *FDD = FD->getDefinition()) {
1354 Diag(FD->getLocation(), diag::err_export_inline_not_defined)
1435 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(*I)) {
1437 if (!FD->hasBody(DiagD))
1438 DiagD = FD;
1450 if (FD->getStorageClass() == SC_Static &&
1451 !FD->isInlineSpecified() &&
1453 SourceMgr.getExpansionLoc(FD->getLocation())))
1461 } else if (!FD->isTargetMultiVersion() ||
1462 FD->isTargetMultiVersionDefault()) {
1463 if (FD->getDescribedFunctionTemplate())
1689 auto *FD = dyn_cast<FunctionDecl>(CurContext);
1690 if (!FD)
1692 auto Loc = DeviceDeferredDiags.find(FD);
1703 // Print notes showing how we can reach FD starting from an a priori
1705 static void emitCallStackNotes(Sema &S, const FunctionDecl *FD) {
1706 auto FnIt = S.CUDA().DeviceKnownEmittedFns.find(FD);
1713 Builder << FnIt->second.FD;
1714 FnIt = S.CUDA().DeviceKnownEmittedFns.find(FnIt->second.FD);
1786 if (auto *FD = dyn_cast<FunctionDecl>(D))
1787 checkFunc(Loc, FD);
1807 void checkFunc(SourceLocation Loc, FunctionDecl *FD) {
1811 S.shouldIgnoreInHostDeviceCheck(FD) || InUsePath.count(FD))
1816 S.OpenMP().finalizeOpenMPDelayedAnalysis(Caller, FD, Loc);
1818 S.CUDA().DeviceKnownEmittedFns[FD] = {Caller, Loc};
1823 emitDeferredDiags(FD, Caller);
1826 if (!Done.insert(FD).second)
1828 InUsePath.insert(FD);
1829 UsePath.push_back(FD);
1830 if (auto *S = FD->getBody()) {
1834 InUsePath.erase(FD);
1838 if (auto *FD = dyn_cast<FunctionDecl>(D)) {
1839 ShouldEmitRootNode = S.getEmissionStatus(FD, /*Final=*/true) ==
1841 checkFunc(SourceLocation(), FD);
1846 // Emit any deferred diagnostics for FD
1847 void emitDeferredDiags(FunctionDecl *FD, bool ShowCallStack) {
1848 auto It = S.DeviceDeferredDiags.find(FD);
1869 emitCallStackNotes(S, FD);
1964 Sema::targetDiag(SourceLocation Loc, unsigned DiagID, const FunctionDecl *FD) {
1965 FD = FD ? FD : getCurFunctionDecl();
1968 ? OpenMP().diagIfOpenMPDeviceCode(Loc, DiagID, FD)
1969 : OpenMP().diagIfOpenMPHostCode(Loc, DiagID, FD);
1978 FD, *this);
2010 const FunctionDecl *FD = isa<FunctionDecl>(C)
2025 targetDiag(Loc, PD, FD)
2058 if (targetDiag(Loc, PD, FD)
2066 targetDiag(D->getLocation(), diag::note_defined_here, FD) << D;
2085 if (Diag(Loc, PD, FD)
2092 targetDiag(D->getLocation(), diag::note_defined_here, FD) << D;
2104 if (Diag(Loc, PD, FD)
2111 targetDiag(D->getLocation(), diag::note_defined_here, FD) << D;
2114 if (TI.hasRISCVVTypes() && Ty->isRVVSizelessBuiltinType() && FD) {
2116 Context.getFunctionFeatureMap(CallerFeatureMap, FD);
2121 if (Ty->isSVESizelessBuiltinType() && FD) {
2123 Context.getFunctionFeatureMap(CallerFeatureMap, FD);
2127 else if (!IsArmStreamingFunction(FD,
2608 if (const auto *FD = Fn->getAsFunction()) {
2609 if (FD->isMultiVersion() && FD->hasAttr<TargetAttr>() &&
2610 !FD->getAttr<TargetAttr>()->isDefaultVersion())
2612 if (FD->isMultiVersion() && FD->hasAttr<TargetVersionAttr>() &&
2613 !FD->getAttr<TargetVersionAttr>()->isDefaultVersion())
2665 if (const auto *FD = dyn_cast<FunctionDecl>(ND))
2666 return FD->isCPUDispatchMultiVersion() || FD->isCPUSpecificMultiVersion();