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()
796 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CheckCUDACall() local
797 if (!Caller) in CheckCUDACall()
803 getEmissionStatus(Caller) == FunctionEmissionStatus::Emitted; in CheckCUDACall()
804 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCUDACall()
806 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall()
809 assert(Caller && "Never/wrongSide calls require a non-null caller"); in CheckCUDACall()
833 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second) in CheckCUDACall()
836 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller, *this) in CheckCUDACall()
838 << IdentifyCUDATarget(Caller); in CheckCUDACall()
841 diag::note_previous_decl, Caller, *this) in CheckCUDACall()
867 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CUDACheckLambdaCapture() local
868 if (!Caller) in CUDACheckLambdaCapture()
877 !Caller->hasAttr<CUDAGlobalAttr>() && !Caller->hasAttr<CUDADeviceAttr>(); in CUDACheckLambdaCapture()