Lines Matching defs:Caller
225 SemaCUDA::IdentifyPreference(const FunctionDecl *Caller,
232 if (Caller == nullptr && CurCUDATargetCtx.Kind == CTCK_InitGlobalVar &&
237 CUDAFunctionTarget CallerTarget = IdentifyTarget(Caller);
319 const FunctionDecl *Caller,
326 // Gets the CUDA function preference for a call from Caller to Match.
328 return IdentifyPreference(Caller, Match.second);
706 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true);
707 if (!Caller)
713 CUDAFunctionTarget CallerTarget = IdentifyTarget(Caller);
719 (isImplicitHostDeviceFunction(Caller) &&
720 !getASTContext().CUDAImplicitHostDeviceFunUsedByDevice.count(Caller))))
890 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true);
891 if (!Caller)
896 bool CallerKnownEmitted = SemaRef.getEmissionStatus(Caller) ==
898 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee,
900 switch (IdentifyPreference(Caller, Callee)) {
903 assert(Caller && "Never/wrongSide calls require a non-null caller");
919 (!Caller || (!Caller->getDescribedFunctionTemplate() &&
920 getASTContext().GetGVALinkageForFunction(Caller) ==
930 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second)
933 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller,
936 << llvm::to_underlying(IdentifyTarget(Caller));
939 diag::note_previous_decl, Caller, SemaRef)
965 FunctionDecl *Caller = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true);
966 if (!Caller)
975 !Caller->hasAttr<CUDAGlobalAttr>() && !Caller->hasAttr<CUDADeviceAttr>();