Lines Matching refs:Caller
205 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument
208 CUDAFunctionTarget CallerTarget = IdentifyCUDATarget(Caller); in IdentifyCUDAPreference()
271 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
280 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches()
795 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CheckCUDACall() local
796 if (!Caller) in CheckCUDACall()
802 getEmissionStatus(Caller) == FunctionEmissionStatus::Emitted; in CheckCUDACall()
803 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCUDACall()
805 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall()
808 assert(Caller && "Never/wrongSide calls require a non-null caller"); in CheckCUDACall()
827 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second) in CheckCUDACall()
830 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller, *this) in CheckCUDACall()
832 << IdentifyCUDATarget(Caller); in CheckCUDACall()
835 diag::note_previous_decl, Caller, *this) in CheckCUDACall()
861 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CUDACheckLambdaCapture() local
862 if (!Caller) in CUDACheckLambdaCapture()
871 !Caller->hasAttr<CUDAGlobalAttr>() && !Caller->hasAttr<CUDADeviceAttr>(); in CUDACheckLambdaCapture()