clang 20.0.0git
Namespaces | Enumerations | Functions
Cuda.h File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 Diagnostic wrappers for TextAPI types for error reporting.
 
namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 

Enumerations

enum class  clang::CudaVersion {
  clang::UNKNOWN , clang::CUDA_70 , clang::CUDA_75 , clang::CUDA_80 ,
  clang::CUDA_90 , clang::CUDA_91 , clang::CUDA_92 , clang::CUDA_100 ,
  clang::CUDA_101 , clang::CUDA_102 , clang::CUDA_110 , clang::CUDA_111 ,
  clang::CUDA_112 , clang::CUDA_113 , clang::CUDA_114 , clang::CUDA_115 ,
  clang::CUDA_116 , clang::CUDA_117 , clang::CUDA_118 , clang::CUDA_120 ,
  clang::CUDA_121 , clang::CUDA_122 , clang::CUDA_123 , clang::CUDA_124 ,
  clang::CUDA_125 , clang::FULLY_SUPPORTED = CUDA_123 , clang::PARTIALLY_SUPPORTED , clang::NEW = 10000
}
 
enum class  clang::OffloadArch {
  clang::UNUSED , clang::UNKNOWN , clang::SM_20 , clang::SM_21 ,
  clang::SM_30 , clang::SM_32_ , clang::SM_35 , clang::SM_37 ,
  clang::SM_50 , clang::SM_52 , clang::SM_53 , clang::SM_60 ,
  clang::SM_61 , clang::SM_62 , clang::SM_70 , clang::SM_72 ,
  clang::SM_75 , clang::SM_80 , clang::SM_86 , clang::SM_87 ,
  clang::SM_89 , clang::SM_90 , clang::SM_90a , clang::GFX600 ,
  clang::GFX601 , clang::GFX602 , clang::GFX700 , clang::GFX701 ,
  clang::GFX702 , clang::GFX703 , clang::GFX704 , clang::GFX705 ,
  clang::GFX801 , clang::GFX802 , clang::GFX803 , clang::GFX805 ,
  clang::GFX810 , clang::GFX9_GENERIC , clang::GFX900 , clang::GFX902 ,
  clang::GFX904 , clang::GFX906 , clang::GFX908 , clang::GFX909 ,
  clang::GFX90a , clang::GFX90c , clang::GFX940 , clang::GFX941 ,
  clang::GFX942 , clang::GFX10_1_GENERIC , clang::GFX1010 , clang::GFX1011 ,
  clang::GFX1012 , clang::GFX1013 , clang::GFX10_3_GENERIC , clang::GFX1030 ,
  clang::GFX1031 , clang::GFX1032 , clang::GFX1033 , clang::GFX1034 ,
  clang::GFX1035 , clang::GFX1036 , clang::GFX11_GENERIC , clang::GFX1100 ,
  clang::GFX1101 , clang::GFX1102 , clang::GFX1103 , clang::GFX1150 ,
  clang::GFX1151 , clang::GFX1152 , clang::GFX12_GENERIC , clang::GFX1200 ,
  clang::GFX1201 , clang::AMDGCNSPIRV , clang::Generic , clang::LAST ,
  clang::CudaDefault = OffloadArch::SM_52 , clang::HIPDefault = OffloadArch::GFX906
}
 
enum class  clang::CUDAFunctionTarget {
  clang::Device , clang::Global , clang::Host , clang::HostDevice ,
  clang::InvalidTarget
}
 
enum class  clang::CudaFeature { clang::CUDA_USES_NEW_LAUNCH , clang::CUDA_USES_FATBIN_REGISTER_END }
 

Functions

const char * clang::CudaVersionToString (CudaVersion V)
 
CudaVersion clang::CudaStringToVersion (const llvm::Twine &S)
 
static bool clang::IsNVIDIAOffloadArch (OffloadArch A)
 
static bool clang::IsAMDOffloadArch (OffloadArch A)
 
const char * clang::OffloadArchToString (OffloadArch A)
 
const char * clang::OffloadArchToVirtualArchString (OffloadArch A)
 
OffloadArch clang::StringToOffloadArch (llvm::StringRef S)
 
CudaVersion clang::MinVersionForOffloadArch (OffloadArch A)
 Get the earliest CudaVersion that supports the given OffloadArch.
 
CudaVersion clang::MaxVersionForOffloadArch (OffloadArch A)
 Get the latest CudaVersion that supports the given OffloadArch.
 
CudaVersion clang::ToCudaVersion (llvm::VersionTuple)
 
bool clang::CudaFeatureEnabled (llvm::VersionTuple, CudaFeature)
 
bool clang::CudaFeatureEnabled (CudaVersion, CudaFeature)