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()
631 const FunctionDecl *InitFn = nullptr; in checkAllowedCUDAInitializer()
661 void Sema::maybeAddCUDAHostDeviceAttrs(FunctionDecl *NewD, in maybeAddCUDAHostDeviceAttrs()
683 FunctionDecl *OldD = D->getAsFunction(); in maybeAddCUDAHostDeviceAttrs()
730 FunctionDecl *CurFunContext = getCurFunctionDecl(/*AllowLambda=*/true); in CUDADiagIfDeviceCode()
760 FunctionDecl *CurFunContext = getCurFunctionDecl(/*AllowLambda=*/true); in CUDADiagIfHostCode()
786 bool Sema::CheckCUDACall(SourceLocation Loc, FunctionDecl *Callee) { in CheckCUDACall()
796 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CheckCUDACall()
867 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CUDACheckLambdaCapture()
905 void Sema::checkCUDATargetOverload(FunctionDecl *NewFD, in checkCUDATargetOverload()
910 FunctionDecl *OldFD = OldND->getAsFunction(); in checkCUDATargetOverload()
935 static void copyAttrIfPresent(Sema &S, FunctionDecl *FD, in copyAttrIfPresent()
936 const FunctionDecl &TemplateFD) { in copyAttrIfPresent()
944 void Sema::inheritCUDATargetAttrs(FunctionDecl *FD, in inheritCUDATargetAttrs()
946 const FunctionDecl &TemplateFD = *TD.getTemplatedDecl(); in inheritCUDATargetAttrs()