Home
last modified time | relevance | path

Searched refs:SemaCUDA (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp29 SemaCUDA::SemaCUDA(Sema &S) : SemaBase(S) {} in SemaCUDA() function in SemaCUDA
39 void SemaCUDA::PushForceHostDevice() { in PushForceHostDevice()
44 bool SemaCUDA::PopForceHostDevice() { in PopForceHostDevice()
52 ExprResult SemaCUDA::ActOnExecConfigExpr(Scope *S, SourceLocation LLLLoc, in ActOnExecConfigExpr()
69 CUDAFunctionTarget SemaCUDA::IdentifyTarget(const ParsedAttributesView &Attrs) { in IdentifyTarget()
116 SemaCUDA::CUDATargetContextRAII::CUDATargetContextRAII( in CUDATargetContextRAII()
117 SemaCUDA &S_, SemaCUDA::CUDATargetContextKind K, Decl *D) in CUDATargetContextRAII()
120 assert(K == SemaCUDA::CTCK_InitGlobalVar); in CUDATargetContextRAII()
134 CUDAFunctionTarget SemaCUDA::IdentifyTarget(const FunctionDecl *D, in IdentifyTarget()
163 SemaCUDA::CUDAVariableTarget SemaCUDA::IdentifyTarget(const VarDecl *Var) { in IdentifyTarget()
[all …]
H A DSemaExprCXX.cpp1684 if (CallPreference < SemaCUDA::CFP_WrongSide) in isUsualDeallocationFunction()
1686 if (CallPreference == SemaCUDA::CFP_WrongSide) { in isUsualDeallocationFunction()
1692 if (CUDA().IdentifyPreference(Caller, FD) > SemaCUDA::CFP_WrongSide) in isUsualDeallocationFunction()
1711 return CUDA().IdentifyPreference(Caller, FD) >= SemaCUDA::CFP_HostDevice; in isUsualDeallocationFunction()
1755 CUDAPref(SemaCUDA::CFP_Native) {
1886 SemaCUDA::CUDAFunctionPreference CUDAPref;
1938 Info.CUDAPref == SemaCUDA::CFP_Never) in resolveDeallocationOverload()
H A DSemaOverload.cpp10767 bool IsCallerImplicitHD = SemaCUDA::isImplicitHostDeviceFunction(Caller); in isBetterOverloadCandidate()
10769 SemaCUDA::isImplicitHostDeviceFunction(Cand1.Function); in isBetterOverloadCandidate()
10771 SemaCUDA::isImplicitHostDeviceFunction(Cand2.Function); in isBetterOverloadCandidate()
10774 assert(P1 != SemaCUDA::CFP_Never && P2 != SemaCUDA::CFP_Never); in isBetterOverloadCandidate()
10788 ? SemaCUDA::CFP_Never in isBetterOverloadCandidate()
10789 : SemaCUDA::CFP_WrongSide; in isBetterOverloadCandidate()
11320 SemaCUDA::CFP_SameSide; in CudaExcludeWrongSideCandidates()
11330 SemaCUDA::CFP_WrongSide; in CudaExcludeWrongSideCandidates()
H A DSema.cpp288 CUDAPtr(std::make_unique<SemaCUDA>(*this)), in Sema()
H A DSemaExpr.cpp18594 if (VarTarget == SemaCUDA::CVT_Host && in MarkVarDeclODRUsed()
18609 } else if (VarTarget == SemaCUDA::CVT_Device && in MarkVarDeclODRUsed()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaCUDA.h45 class SemaCUDA : public SemaBase {
47 SemaCUDA(Sema &S);
144 SemaCUDA &S;
145 SemaCUDA::CUDATargetContext SavedCtx;
146 CUDATargetContextRAII(SemaCUDA &S_, SemaCUDA::CUDATargetContextKind K,
293 template <> struct DenseMapInfo<clang::SemaCUDA::FunctionDeclAndLoc> {
294 using FunctionDeclAndLoc = clang::SemaCUDA::FunctionDeclAndLoc;
H A DSema.h162 class SemaCUDA; variable
1429 SemaCUDA &CUDA() { in CUDA()
1576 std::unique_ptr<SemaCUDA> CUDAPtr;
/freebsd/lib/clang/libclang/
H A DMakefile597 SRCS_MIN+= Sema/SemaCUDA.cpp
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp2580 SemaCUDA::CUDATargetContextRAII X(Actions.CUDA(), in ParseDeclarationAfterDeclaratorAndAttributes()
2581 SemaCUDA::CTCK_InitGlobalVar, ThisDecl); in ParseDeclarationAfterDeclaratorAndAttributes()