Home
last modified time | relevance | path

Searched refs:OffloadArch (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DNVPTX.cpp62 GPU = OffloadArch::UNUSED; in NVPTXTargetInfo()
178 if (GPU == OffloadArch::UNUSED && !HostTarget) in getTargetDefines()
185 case OffloadArch::GFX600: in getTargetDefines()
186 case OffloadArch::GFX601: in getTargetDefines()
187 case OffloadArch::GFX602: in getTargetDefines()
188 case OffloadArch::GFX700: in getTargetDefines()
189 case OffloadArch::GFX701: in getTargetDefines()
190 case OffloadArch::GFX702: in getTargetDefines()
191 case OffloadArch::GFX703: in getTargetDefines()
192 case OffloadArch::GFX704: in getTargetDefines()
[all …]
H A DNVPTX.h65 OffloadArch GPU;
84 if (GPU != OffloadArch::UNUSED) in initFeatureMap()
126 return StringToOffloadArch(Name) != OffloadArch::UNKNOWN; in isValidCPUName()
130 for (int i = static_cast<int>(OffloadArch::SM_20); in fillValidCPUList()
131 i < static_cast<int>(OffloadArch::Generic); ++i) in fillValidCPUList()
132 Values.emplace_back(OffloadArchToString(static_cast<OffloadArch>(i))); in fillValidCPUList()
137 return GPU != OffloadArch::UNKNOWN; in setCPU()
188 OffloadArch getGPU() const { return GPU; } in getGPU()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DCuda.cpp76 OffloadArch arch;
82 #define SM2(sm, ca) {OffloadArch::SM_##sm, "sm_" #sm, ca}
84 #define GFX(gpu) {OffloadArch::GFX##gpu, "gfx" #gpu, "compute_amdgcn"}
87 {OffloadArch::UNUSED, "", ""},
89 SM(30), {OffloadArch::SM_32_, "sm_32", "compute_32"}, SM(35), SM(37), // Kepler
113 {OffloadArch::GFX9_GENERIC, "gfx9-generic", "compute_amdgcn"},
125 {OffloadArch::GFX10_1_GENERIC, "gfx10-1-generic", "compute_amdgcn"},
130 {OffloadArch::GFX10_3_GENERIC, "gfx10-3-generic", "compute_amdgcn"},
138 {OffloadArch::GFX11_GENERIC, "gfx11-generic", "compute_amdgcn"},
146 {OffloadArch::GFX12_GENERIC, "gfx12-generic", "compute_amdgcn"},
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DCuda.h55 enum class OffloadArch { enum
136 CudaDefault = OffloadArch::SM_52,
137 HIPDefault = OffloadArch::GFX906,
148 static inline bool IsNVIDIAOffloadArch(OffloadArch A) { in IsNVIDIAOffloadArch()
149 return A >= OffloadArch::SM_20 && A < OffloadArch::GFX600; in IsNVIDIAOffloadArch()
152 static inline bool IsAMDOffloadArch(OffloadArch A) { in IsAMDOffloadArch()
154 return A >= OffloadArch::GFX600 && A < OffloadArch::Generic; in IsAMDOffloadArch()
157 const char *OffloadArchToString(OffloadArch A);
158 const char *OffloadArchToVirtualArchString(OffloadArch A);
161 OffloadArch StringToOffloadArch(llvm::StringRef S);
[all …]
H A DTargetID.h32 llvm::StringRef OffloadArch);
42 llvm::StringRef OffloadArch,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp2232 static OffloadArch getOffloadArch(CodeGenModule &CGM) { in getOffloadArch()
2234 return OffloadArch::UNKNOWN; in getOffloadArch()
2237 OffloadArch Arch = StringToOffloadArch(Feature.getKey()); in getOffloadArch()
2238 if (Arch != OffloadArch::UNKNOWN) in getOffloadArch()
2242 return OffloadArch::UNKNOWN; in getOffloadArch()
2250 OffloadArch Arch = getOffloadArch(CGM); in processRequiresDirective()
2252 case OffloadArch::SM_20: in processRequiresDirective()
2253 case OffloadArch::SM_21: in processRequiresDirective()
2254 case OffloadArch::SM_30: in processRequiresDirective()
2255 case OffloadArch::SM_32_: in processRequiresDirective()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DCuda.cpp226 for (int Arch = (int)OffloadArch::SM_30, E = (int)OffloadArch::LAST; in CudaInstallationDetector()
228 OffloadArch OA = static_cast<OffloadArch>(Arch); in CudaInstallationDetector()
315 OffloadArch Arch) const { in CheckCudaVersionSupportsArch()
316 if (Arch == OffloadArch::UNKNOWN || Version == CudaVersion::UNKNOWN || in CheckCudaVersionSupportsArch()
404 OffloadArch gpu_arch = StringToOffloadArch(GPUArchName); in ConstructJob()
405 assert(gpu_arch != OffloadArch::UNKNOWN && in ConstructJob()
549 OffloadArch gpu_arch = StringToOffloadArch(gpu_arch_str); in ConstructJob()
728 OffloadArchToString(OffloadArch::CudaDefault)); in TranslateArgs()
950 Arch = OffloadArchToString(OffloadArch::CudaDefault); in TranslateArgs()
H A DCuda.h40 mutable std::bitset<(int)OffloadArch::LAST> ArchsWithBadVersion;
53 void CheckCudaVersionSupportsArch(OffloadArch Arch) const;
H A DAMDGPUOpenMP.cpp88 Arch = OffloadArchToString(OffloadArch::HIPDefault); in TranslateArgs()
/freebsd/contrib/llvm-project/clang/include/clang/Interpreter/
H A DInterpreter.h59 void SetOffloadArch(llvm::StringRef Arch) { OffloadArch = Arch; }; in SetOffloadArch()
76 llvm::StringRef OffloadArch; variable
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DDriver.cpp2962 TargetID(OffloadArch Arch) { ID = OffloadArchToString(Arch); } in TargetID()
2983 OffloadArch DefaultOffloadArch = OffloadArch::UNKNOWN;
3112 AddTopLevel(CudaFatBinary, OffloadArch::UNUSED); in appendTopLevelActions()
3257 GpuArchList.push_back(OffloadArch::AMDGCNSPIRV); in initialize()
3259 GpuArchList.push_back(OffloadArch::Generic); in initialize()
3276 DefaultOffloadArch = OffloadArch::CudaDefault; in CudaActionBuilder()
3280 OffloadArch Arch = StringToOffloadArch(ArchStr); in getCanonicalOffloadArch()
3281 if (Arch == OffloadArch::UNKNOWN || !IsNVIDIAOffloadArch(Arch)) { in getCanonicalOffloadArch()
3415 DefaultOffloadArch = OffloadArch::HIPDefault; in HIPActionBuilder()
4423 OffloadArch Arch = in getCanonicalArchString()
[all …]
H A DOffloadBundler.cpp83 clang::OffloadArch::UNKNOWN) { in OffloadTargetInfo()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreter.cpp222 if (!OffloadArch.empty()) { in createCuda()
223 ArchArg += OffloadArch; in createCuda()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclAttr.cpp5072 static OffloadArch getOffloadArch(const TargetInfo &TI) { in getOffloadArch()
5137 if (SM == OffloadArch::UNKNOWN || SM < OffloadArch::SM_90) { in CreateLaunchBoundsAttr()