Lines Matching refs:Caller

225 Sema::IdentifyCUDAPreference(const FunctionDecl *Caller,  in IdentifyCUDAPreference()  argument
232 if (Caller == nullptr && CurCUDATargetCtx.Kind == CTCK_InitGlobalVar && in IdentifyCUDAPreference()
237 CUDAFunctionTarget CallerTarget = IdentifyCUDATarget(Caller); in IdentifyCUDAPreference()
309 const FunctionDecl *Caller, in EraseUnwantedCUDAMatches() argument
318 return IdentifyCUDAPreference(Caller, Match.second); in EraseUnwantedCUDAMatches()
692 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CUDARecordImplicitHostDeviceFuncUsedByDevice() local
693 if (!Caller) in CUDARecordImplicitHostDeviceFuncUsedByDevice()
699 CUDAFunctionTarget CallerTarget = IdentifyCUDATarget(Caller); in CUDARecordImplicitHostDeviceFuncUsedByDevice()
704 (isCUDAImplicitHostDeviceFunction(Caller) && in CUDARecordImplicitHostDeviceFuncUsedByDevice()
705 !getASTContext().CUDAImplicitHostDeviceFunUsedByDevice.count(Caller)))) in CUDARecordImplicitHostDeviceFuncUsedByDevice()
870 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CheckCUDACall() local
871 if (!Caller) in CheckCUDACall()
877 getEmissionStatus(Caller) == FunctionEmissionStatus::Emitted; in CheckCUDACall()
878 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCUDACall()
880 switch (IdentifyCUDAPreference(Caller, Callee)) { in CheckCUDACall()
883 assert(Caller && "Never/wrongSide calls require a non-null caller"); in CheckCUDACall()
907 if (!LocsWithCUDACallDiags.insert({Caller, Loc}).second) in CheckCUDACall()
910 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller, *this) in CheckCUDACall()
912 << IdentifyCUDATarget(Caller); in CheckCUDACall()
915 diag::note_previous_decl, Caller, *this) in CheckCUDACall()
941 FunctionDecl *Caller = getCurFunctionDecl(/*AllowLambda=*/true); in CUDACheckLambdaCapture() local
942 if (!Caller) in CUDACheckLambdaCapture()
951 !Caller->hasAttr<CUDAGlobalAttr>() && !Caller->hasAttr<CUDADeviceAttr>(); in CUDACheckLambdaCapture()