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