Lines Matching defs:Caller
227 SemaCUDA::IdentifyPreference(const FunctionDecl *Caller,
234 if (Caller == nullptr && CurCUDATargetCtx.Kind == CTCK_InitGlobalVar &&
239 CUDAFunctionTarget CallerTarget = IdentifyTarget(Caller);
321 const FunctionDecl *Caller,
328 // Gets the CUDA function preference for a call from Caller to Match.
330 return IdentifyPreference(Caller, Match.second);
708 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true);
709 if (!Caller)
715 CUDAFunctionTarget CallerTarget = IdentifyTarget(Caller);
721 (isImplicitHostDeviceFunction(Caller) &&
722 !getASTContext().CUDAImplicitHostDeviceFunUsedByDevice.count(Caller))))
892 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true);
893 if (!Caller)
898 bool CallerKnownEmitted = SemaRef.getEmissionStatus(Caller) ==
900 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee,
902 switch (IdentifyPreference(Caller, Callee)) {
905 assert(Caller && "Never/wrongSide calls require a non-null caller");
921 (!Caller || (!Caller->getDescribedFunctionTemplate() &&
922 getASTContext().GetGVALinkageForFunction(Caller) ==
932 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second)
935 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller,
938 << llvm::to_underlying(IdentifyTarget(Caller));
941 diag::note_previous_decl, Caller, SemaRef)
967 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true);
968 if (!Caller)
977 !Caller->hasAttr<CUDAGlobalAttr>() && !Caller->hasAttr<CUDADeviceAttr>();