Lines Matching refs:FD

442 static void GenOpenCLArgMetadata(const FunctionDecl *FD, llvm::Function *Fn,  in GenOpenCLArgMetadata()  argument
469 for (unsigned i = 0, e = FD->getNumParams(); i != e; ++i) { in GenOpenCLArgMetadata()
470 const ParmVarDecl *parm = FD->getParamDecl(i); in GenOpenCLArgMetadata()
595 void CodeGenFunction::EmitOpenCLKernelMetadata(const FunctionDecl *FD, in EmitOpenCLKernelMetadata() argument
598 if (!FD->hasAttr<OpenCLKernelAttr>()) in EmitOpenCLKernelMetadata()
603 GenOpenCLArgMetadata(FD, Fn, CGM, Context, Builder, getContext()); in EmitOpenCLKernelMetadata()
605 if (const VecTypeHintAttr *A = FD->getAttr<VecTypeHintAttr>()) { in EmitOpenCLKernelMetadata()
620 if (const WorkGroupSizeHintAttr *A = FD->getAttr<WorkGroupSizeHintAttr>()) { in EmitOpenCLKernelMetadata()
628 if (const ReqdWorkGroupSizeAttr *A = FD->getAttr<ReqdWorkGroupSizeAttr>()) { in EmitOpenCLKernelMetadata()
640 if (auto *FD = dyn_cast_or_null<FunctionDecl>(F)) in endsWithReturn() local
641 Body = FD->getBody(); in endsWithReturn()
667 if (const auto *FD = dyn_cast_or_null<FunctionDecl>(D)) in StartFunction() local
668 if (FD->usesSEHTry()) in StartFunction()
669 CurSEHParent = FD; in StartFunction()
714 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) { in StartFunction() local
717 for (auto RI : FD->redecls()) in StartFunction()
723 !FD->isInlined() && !Fn->hasFnAttribute(llvm::Attribute::InlineHint)) in StartFunction()
725 } else if (!FD->hasAttr<AlwaysInlineAttr>()) in StartFunction()
727 if (CGM.getLangOpts().OpenMP && FD->hasAttr<OMPDeclareSimdDeclAttr>()) in StartFunction()
728 CGM.getOpenMPRuntime().emitDeclareSimdFunction(FD, Fn); in StartFunction()
737 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) in StartFunction() local
738 EmitOpenCLKernelMetadata(FD, Fn); in StartFunction()
744 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) { in StartFunction() local
748 CGM.GetAddrOfRTTIDescriptor(FD->getType(), /*ForEH=*/true); in StartFunction()
761 if (const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(D)) in StartFunction() local
762 if (FD->isMain()) in StartFunction()
783 if (auto *FD = dyn_cast_or_null<FunctionDecl>(D)) in StartFunction() local
784 if (const auto *SrcFnTy = FD->getType()->getAs<FunctionType>()) in StartFunction()
867 for (auto *FD : MD->getParent()->fields()) { in StartFunction() local
868 if (FD->hasCapturedVLAType()) { in StartFunction()
869 auto *ExprArg = EmitLoadOfLValue(EmitLValueForLambdaField(FD), in StartFunction()
871 auto VAT = FD->getCapturedVLAType(); in StartFunction()
955 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in BuildFunctionArgList() local
956 QualType ResTy = FD->getReturnType(); in BuildFunctionArgList()
958 const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(FD); in BuildFunctionArgList()
971 if (const CXXConstructorDecl *CD = dyn_cast<CXXConstructorDecl>(FD)) in BuildFunctionArgList()
977 for (auto *Param : FD->parameters()) { in BuildFunctionArgList()
999 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in GenerateCode() local
1006 if (FD->hasAttr<NoDebugAttr>()) in GenerateCode()
1010 if (Stmt *Body = FD->getBody()) BodyRange = Body->getSourceRange(); in GenerateCode()
1018 SourceLocation Loc = FD->getLocation(); in GenerateCode()
1022 if (const FunctionDecl *SpecDecl = FD->getTemplateInstantiationPattern()) in GenerateCode()
1031 if (isa<CXXDestructorDecl>(FD)) in GenerateCode()
1033 else if (isa<CXXConstructorDecl>(FD)) in GenerateCode()
1037 FD->hasAttr<CUDAGlobalAttr>()) in GenerateCode()
1039 else if (isa<CXXConversionDecl>(FD) && in GenerateCode()
1040 cast<CXXConversionDecl>(FD)->isLambdaToBlockPointerConversion()) { in GenerateCode()
1044 } else if (isa<CXXMethodDecl>(FD) && in GenerateCode()
1045 cast<CXXMethodDecl>(FD)->isLambdaStaticInvoker()) { in GenerateCode()
1048 EmitLambdaStaticInvokeFunction(cast<CXXMethodDecl>(FD)); in GenerateCode()
1049 } else if (FD->isDefaulted() && isa<CXXMethodDecl>(FD) && in GenerateCode()
1050 (cast<CXXMethodDecl>(FD)->isCopyAssignmentOperator() || in GenerateCode()
1051 cast<CXXMethodDecl>(FD)->isMoveAssignmentOperator())) { in GenerateCode()
1055 } else if (Stmt *Body = FD->getBody()) { in GenerateCode()
1066 if (getLangOpts().CPlusPlus && !FD->hasImplicitReturnZero() && !SawAsmBlock && in GenerateCode()
1067 !FD->getReturnType()->isVoidType() && Builder.GetInsertBlock()) { in GenerateCode()
1072 "missing_return", EmitCheckSourceLocation(FD->getLocation()), in GenerateCode()
1359 auto *FD = dyn_cast_or_null<FunctionDecl>(Call->getCalleeDecl()); in EmitBranchOnBoolExpr() local
1360 if (FD && FD->getBuiltinID() == Builtin::BI__builtin_unpredictable) { in EmitBranchOnBoolExpr()
1926 CodeGenModule &CGM, const FunctionDecl *FD, in hasRequiredFeatures() argument
1935 CGM.getFunctionFeatureMap(CallerFeatureMap, FD); in hasRequiredFeatures()
1964 const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurFuncDecl); in checkTargetFeatures() local
1965 if (!FD) in checkTargetFeatures()
1981 if (!hasRequiredFeatures(ReqFeatures, CGM, FD, MissingFeature)) in checkTargetFeatures()
1996 if (!hasRequiredFeatures(ReqFeatures, CGM, FD, MissingFeature)) in checkTargetFeatures()
1998 << FD->getDeclName() << TargetDecl->getDeclName() << MissingFeature; in checkTargetFeatures()