Lines Matching refs:Caller
164 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller, in IdentifyCUDAPreference() argument
167 CUDAFunctionTarget CallerTarget = IdentifyCUDATarget(Caller); in IdentifyCUDAPreference()
230 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
239 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches()
710 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CheckCUDACall() local
711 if (!Caller) in CheckCUDACall()
717 getEmissionStatus(Caller) == FunctionEmissionStatus::Emitted; in CheckCUDACall()
718 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCUDACall()
720 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall()
723 assert(Caller && "Never/wrongSide calls require a non-null caller"); in CheckCUDACall()
742 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second) in CheckCUDACall()
745 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller, *this) in CheckCUDACall()
747 << IdentifyCUDATarget(Caller); in CheckCUDACall()
750 diag::note_previous_decl, Caller, *this) in CheckCUDACall()
776 FunctionDecl *Caller = dyn_cast<FunctionDecl>(CurContext); in CUDACheckLambdaCapture() local
777 if (!Caller) in CUDACheckLambdaCapture()
786 !Caller->hasAttr<CUDAGlobalAttr>() && !Caller->hasAttr<CUDADeviceAttr>(); in CUDACheckLambdaCapture()