Home
last modified time | relevance | path

Searched refs:CudaVersion (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DCuda.cpp12 CudaVersion Version;
17 #major "." #minor, CudaVersion::CUDA_##major##minor, \
46 {"", CudaVersion::NEW, llvm::VersionTuple(std::numeric_limits<int>::max())},
47 {"unknown", CudaVersion::UNKNOWN, {}} // End of list tombstone.
51 const char *CudaVersionToString(CudaVersion V) { in CudaVersionToString()
52 for (auto *I = CudaNameVersionMap; I->Version != CudaVersion::UNKNOWN; ++I) in CudaVersionToString()
56 return CudaVersionToString(CudaVersion::UNKNOWN); in CudaVersionToString()
59 CudaVersion CudaStringToVersion(const llvm::Twine &S) { in CudaStringToVersion()
61 for (auto *I = CudaNameVersionMap; I->Version != CudaVersion::UNKNOWN; ++I) in CudaStringToVersion()
64 return CudaVersion::UNKNOWN; in CudaStringToVersion()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DCuda.cpp40 CudaVersion getCudaVersion(uint32_t raw_version) { in getCudaVersion()
42 return CudaVersion::CUDA_70; in getCudaVersion()
44 return CudaVersion::CUDA_75; in getCudaVersion()
46 return CudaVersion::CUDA_80; in getCudaVersion()
48 return CudaVersion::CUDA_90; in getCudaVersion()
50 return CudaVersion::CUDA_91; in getCudaVersion()
52 return CudaVersion::CUDA_92; in getCudaVersion()
54 return CudaVersion::CUDA_100; in getCudaVersion()
56 return CudaVersion::CUDA_101; in getCudaVersion()
58 return CudaVersion::CUDA_102; in getCudaVersion()
[all …]
H A DCuda.h31 CudaVersion Version = CudaVersion::UNKNOWN;
61 CudaVersion version() const { in version()
62 return Version == CudaVersion::NEW ? CudaVersion::PARTIALLY_SUPPORTED in version()
H A DClang.cpp5018 if (CTC && CTC->CudaInstallation.version() != CudaVersion::UNKNOWN) in ConstructJob()
5027 if (CTC->CudaInstallation.version() >= CudaVersion::CUDA_90) in ConstructJob()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DCuda.h20 enum class CudaVersion { enum
51 const char *CudaVersionToString(CudaVersion V);
53 CudaVersion CudaStringToVersion(const llvm::Twine &S);
164 CudaVersion MinVersionForOffloadArch(OffloadArch A);
167 CudaVersion MaxVersionForOffloadArch(OffloadArch A);
177 CudaVersion ToCudaVersion(llvm::VersionTuple);
179 bool CudaFeatureEnabled(CudaVersion, CudaFeature);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCUDANV.cpp590 ToCudaVersion(CGM.getTarget().getSDKVersion()) >= CudaVersion::CUDA_90) in makeRegisterGlobalsFn()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclAttr.cpp1669 CudaVersion Version = in handleAliasAttr()
1671 if (Version != CudaVersion::UNKNOWN && Version < CudaVersion::CUDA_100) in handleAliasAttr()