Lines Matching refs:Caller
207 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument
210 CUDAFunctionTarget CallerTarget = IdentifyCUDATarget(Caller); in IdentifyCUDAPreference()
273 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
282 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches()
794 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CheckCUDACall() local
795 if (!Caller) in CheckCUDACall()
801 getEmissionStatus(Caller) == FunctionEmissionStatus::Emitted; in CheckCUDACall()
802 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCUDACall()
804 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall()
807 assert(Caller && "Never/wrongSide calls require a non-null caller"); in CheckCUDACall()
831 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second) in CheckCUDACall()
834 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller, *this) in CheckCUDACall()
836 << IdentifyCUDATarget(Caller); in CheckCUDACall()
839 diag::note_previous_decl, Caller, *this) in CheckCUDACall()
865 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CUDACheckLambdaCapture() local
866 if (!Caller) in CUDACheckLambdaCapture()
875 !Caller->hasAttr<CUDAGlobalAttr>() && !Caller->hasAttr<CUDADeviceAttr>(); in CUDACheckLambdaCapture()