LLVM 20.0.0git
Classes | Namespaces | Enumerations | Functions
TargetParser.h File Reference
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"

Go to the source code of this file.

Classes

struct  llvm::AMDGPU::IsaVersion
 Instruction set architecture version. More...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::AMDGPU
 

Enumerations

enum  llvm::AMDGPU::GPUKind : uint32_t {
  llvm::AMDGPU::GK_NONE = 0 , llvm::AMDGPU::GK_R600 = 1 , llvm::AMDGPU::GK_R630 = 2 , llvm::AMDGPU::GK_RS880 = 3 ,
  llvm::AMDGPU::GK_RV670 = 4 , llvm::AMDGPU::GK_RV710 = 5 , llvm::AMDGPU::GK_RV730 = 6 , llvm::AMDGPU::GK_RV770 = 7 ,
  llvm::AMDGPU::GK_CEDAR = 8 , llvm::AMDGPU::GK_CYPRESS = 9 , llvm::AMDGPU::GK_JUNIPER = 10 , llvm::AMDGPU::GK_REDWOOD = 11 ,
  llvm::AMDGPU::GK_SUMO = 12 , llvm::AMDGPU::GK_BARTS = 13 , llvm::AMDGPU::GK_CAICOS = 14 , llvm::AMDGPU::GK_CAYMAN = 15 ,
  llvm::AMDGPU::GK_TURKS = 16 , llvm::AMDGPU::GK_R600_FIRST = GK_R600 , llvm::AMDGPU::GK_R600_LAST = GK_TURKS , llvm::AMDGPU::GK_GFX600 = 32 ,
  llvm::AMDGPU::GK_GFX601 = 33 , llvm::AMDGPU::GK_GFX602 = 34 , llvm::AMDGPU::GK_GFX700 = 40 , llvm::AMDGPU::GK_GFX701 = 41 ,
  llvm::AMDGPU::GK_GFX702 = 42 , llvm::AMDGPU::GK_GFX703 = 43 , llvm::AMDGPU::GK_GFX704 = 44 , llvm::AMDGPU::GK_GFX705 = 45 ,
  llvm::AMDGPU::GK_GFX801 = 50 , llvm::AMDGPU::GK_GFX802 = 51 , llvm::AMDGPU::GK_GFX803 = 52 , llvm::AMDGPU::GK_GFX805 = 53 ,
  llvm::AMDGPU::GK_GFX810 = 54 , llvm::AMDGPU::GK_GFX900 = 60 , llvm::AMDGPU::GK_GFX902 = 61 , llvm::AMDGPU::GK_GFX904 = 62 ,
  llvm::AMDGPU::GK_GFX906 = 63 , llvm::AMDGPU::GK_GFX908 = 64 , llvm::AMDGPU::GK_GFX909 = 65 , llvm::AMDGPU::GK_GFX90A = 66 ,
  llvm::AMDGPU::GK_GFX90C = 67 , llvm::AMDGPU::GK_GFX940 = 68 , llvm::AMDGPU::GK_GFX941 = 69 , llvm::AMDGPU::GK_GFX942 = 70 ,
  llvm::AMDGPU::GK_GFX1010 = 71 , llvm::AMDGPU::GK_GFX1011 = 72 , llvm::AMDGPU::GK_GFX1012 = 73 , llvm::AMDGPU::GK_GFX1013 = 74 ,
  llvm::AMDGPU::GK_GFX1030 = 75 , llvm::AMDGPU::GK_GFX1031 = 76 , llvm::AMDGPU::GK_GFX1032 = 77 , llvm::AMDGPU::GK_GFX1033 = 78 ,
  llvm::AMDGPU::GK_GFX1034 = 79 , llvm::AMDGPU::GK_GFX1035 = 80 , llvm::AMDGPU::GK_GFX1036 = 81 , llvm::AMDGPU::GK_GFX1100 = 90 ,
  llvm::AMDGPU::GK_GFX1101 = 91 , llvm::AMDGPU::GK_GFX1102 = 92 , llvm::AMDGPU::GK_GFX1103 = 93 , llvm::AMDGPU::GK_GFX1150 = 94 ,
  llvm::AMDGPU::GK_GFX1151 = 95 , llvm::AMDGPU::GK_GFX1152 = 96 , llvm::AMDGPU::GK_GFX1200 = 100 , llvm::AMDGPU::GK_GFX1201 = 101 ,
  llvm::AMDGPU::GK_AMDGCN_FIRST = GK_GFX600 , llvm::AMDGPU::GK_AMDGCN_LAST = GK_GFX1201 , llvm::AMDGPU::GK_GFX9_GENERIC = 192 , llvm::AMDGPU::GK_GFX10_1_GENERIC = 193 ,
  llvm::AMDGPU::GK_GFX10_3_GENERIC = 194 , llvm::AMDGPU::GK_GFX11_GENERIC = 195 , llvm::AMDGPU::GK_GFX12_GENERIC = 196 , llvm::AMDGPU::GK_AMDGCN_GENERIC_FIRST = GK_GFX9_GENERIC ,
  llvm::AMDGPU::GK_AMDGCN_GENERIC_LAST = GK_GFX12_GENERIC
}
 GPU kinds supported by the AMDGPU target. More...
 
enum  llvm::AMDGPU::ArchFeatureKind : uint32_t {
  llvm::AMDGPU::FEATURE_NONE = 0 , llvm::AMDGPU::FEATURE_FMA = 1 << 1 , llvm::AMDGPU::FEATURE_LDEXP = 1 << 2 , llvm::AMDGPU::FEATURE_FP64 = 1 << 3 ,
  llvm::AMDGPU::FEATURE_FAST_FMA_F32 = 1 << 4 , llvm::AMDGPU::FEATURE_FAST_DENORMAL_F32 = 1 << 5 , llvm::AMDGPU::FEATURE_WAVE32 = 1 << 6 , llvm::AMDGPU::FEATURE_XNACK = 1 << 7 ,
  llvm::AMDGPU::FEATURE_SRAMECC = 1 << 8 , llvm::AMDGPU::FEATURE_WGP = 1 << 9
}
 
enum  llvm::AMDGPU::FeatureError : uint32_t { llvm::AMDGPU::NO_ERROR = 0 , llvm::AMDGPU::INVALID_FEATURE_COMBINATION , llvm::AMDGPU::UNSUPPORTED_TARGET_FEATURE }
 

Functions

StringRef llvm::AMDGPU::getArchFamilyNameAMDGCN (GPUKind AK)
 
StringRef llvm::AMDGPU::getArchNameAMDGCN (GPUKind AK)
 
StringRef llvm::AMDGPU::getArchNameR600 (GPUKind AK)
 
StringRef llvm::AMDGPU::getCanonicalArchName (const Triple &T, StringRef Arch)
 
GPUKind llvm::AMDGPU::parseArchAMDGCN (StringRef CPU)
 
GPUKind llvm::AMDGPU::parseArchR600 (StringRef CPU)
 
unsigned llvm::AMDGPU::getArchAttrAMDGCN (GPUKind AK)
 
unsigned llvm::AMDGPU::getArchAttrR600 (GPUKind AK)
 
void llvm::AMDGPU::fillValidArchListAMDGCN (SmallVectorImpl< StringRef > &Values)
 
void llvm::AMDGPU::fillValidArchListR600 (SmallVectorImpl< StringRef > &Values)
 
IsaVersion llvm::AMDGPU::getIsaVersion (StringRef GPU)
 
void llvm::AMDGPU::fillAMDGPUFeatureMap (StringRef GPU, const Triple &T, StringMap< bool > &Features)
 Fills Features map with default values for given target GPU.
 
std::pair< FeatureError, StringRefllvm::AMDGPU::insertWaveSizeFeature (StringRef GPU, const Triple &T, StringMap< bool > &Features)
 Inserts wave size feature for given GPU into features map.