Lines Matching refs:FunctionDecl
53 FunctionDecl *ConfigDecl = Context.getcudaConfigureCallDecl(); in ActOnCUDAExecConfigExpr()
108 static bool hasAttr(const FunctionDecl *D, bool IgnoreImplicitAttr) { in hasAttr()
116 Sema::CUDAFunctionTarget Sema::IdentifyCUDATarget(const FunctionDecl *D, in IdentifyCUDATarget()
164 if (auto *FD = dyn_cast<FunctionDecl>(Var->getDeclContext())) { in IdentifyCUDATarget()
207 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference()
208 const FunctionDecl *Callee) { in IdentifyCUDAPreference()
258 template <typename AttrT> static bool hasImplicitAttr(const FunctionDecl *D) { in hasImplicitAttr()
266 bool Sema::isCUDAImplicitHostDeviceFunction(const FunctionDecl *D) { in isCUDAImplicitHostDeviceFunction()
273 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches()
274 SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches) { in EraseUnwantedCUDAMatches()
278 using Pair = std::pair<DeclAccessPair, FunctionDecl*>; in EraseUnwantedCUDAMatches()
629 const FunctionDecl *InitFn = nullptr; in checkAllowedCUDAInitializer()
659 void Sema::maybeAddCUDAHostDeviceAttrs(FunctionDecl *NewD, in maybeAddCUDAHostDeviceAttrs()
681 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs()
728 FunctionDecl *CurFunContext = getCurFunctionDecl(/*AllowLambda=*/true); in CUDADiagIfDeviceCode()
758 FunctionDecl *CurFunContext = getCurFunctionDecl(/*AllowLambda=*/true); in CUDADiagIfHostCode()
784 bool Sema::CheckCUDACall(SourceLocation Loc, FunctionDecl *Callee) { in CheckCUDACall()
794 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CheckCUDACall()
865 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CUDACheckLambdaCapture()
903 void Sema::checkCUDATargetOverload(FunctionDecl *NewFD, in checkCUDATargetOverload()
908 FunctionDecl *OldFD = OldND->getAsFunction(); in checkCUDATargetOverload()
933 static void copyAttrIfPresent(Sema &S, FunctionDecl *FD, in copyAttrIfPresent()
934 const FunctionDecl &TemplateFD) { in copyAttrIfPresent()
942 void Sema::inheritCUDATargetAttrs(FunctionDecl *FD, in inheritCUDATargetAttrs()
944 const FunctionDecl &TemplateFD = *TD.getTemplatedDecl(); in inheritCUDATargetAttrs()