LLVM 20.0.0git
|
#include "Target/AMDGPU/Utils/AMDGPUBaseInfo.h"
Public Member Functions | |
AMDGPUTargetID (const MCSubtargetInfo &STI) | |
~AMDGPUTargetID ()=default | |
bool | isXnackSupported () const |
bool | isXnackOnOrAny () const |
bool | isXnackOnOrOff () const |
TargetIDSetting | getXnackSetting () const |
void | setXnackSetting (TargetIDSetting NewXnackSetting) |
Sets xnack setting to NewXnackSetting . | |
bool | isSramEccSupported () const |
bool | isSramEccOnOrAny () const |
bool | isSramEccOnOrOff () const |
TargetIDSetting | getSramEccSetting () const |
void | setSramEccSetting (TargetIDSetting NewSramEccSetting) |
Sets sramecc setting to NewSramEccSetting . | |
void | setTargetIDFromFeaturesString (StringRef FS) |
void | setTargetIDFromTargetIDStream (StringRef TargetID) |
std::string | toString () const |
Definition at line 123 of file AMDGPUBaseInfo.h.
|
explicit |
Definition at line 767 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), llvm::FeatureBitset::test(), and llvm::AMDGPU::IsaInfo::Unsupported.
|
default |
|
inline |
Definition at line 182 of file AMDGPUBaseInfo.h.
Referenced by llvm::GCNSubtarget::initializeSubtargetDependencies(), isSramEccOnOrOff(), and toString().
|
inline |
Definition at line 153 of file AMDGPUBaseInfo.h.
Referenced by llvm::GCNSubtarget::initializeSubtargetDependencies(), isXnackOnOrOff(), and toString().
|
inline |
Definition at line 168 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::IsaInfo::Any, and llvm::AMDGPU::IsaInfo::On.
Referenced by llvm::GCNSubtarget::d16PreservesUnusedBits().
|
inline |
Definition at line 175 of file AMDGPUBaseInfo.h.
References getSramEccSetting(), llvm::AMDGPU::IsaInfo::Off, and llvm::AMDGPU::IsaInfo::On.
|
inline |
Definition at line 163 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::IsaInfo::Unsupported.
Referenced by setTargetIDFromFeaturesString().
|
inline |
Definition at line 139 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::IsaInfo::Any, and llvm::AMDGPU::IsaInfo::On.
Referenced by llvm::GCNSubtarget::isXNACKEnabled().
|
inline |
Definition at line 146 of file AMDGPUBaseInfo.h.
References getXnackSetting(), llvm::AMDGPU::IsaInfo::Off, and llvm::AMDGPU::IsaInfo::On.
|
inline |
Definition at line 134 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::IsaInfo::Unsupported.
Referenced by setTargetIDFromFeaturesString().
|
inline |
Sets sramecc setting to NewSramEccSetting
.
Definition at line 187 of file AMDGPUBaseInfo.h.
void llvm::AMDGPU::IsaInfo::AMDGPUTargetID::setTargetIDFromFeaturesString | ( | StringRef | FS | ) |
Definition at line 776 of file AMDGPUBaseInfo.cpp.
References llvm::errs(), llvm::SubtargetFeatures::getFeatures(), isSramEccSupported(), isXnackSupported(), llvm::AMDGPU::IsaInfo::Off, and llvm::AMDGPU::IsaInfo::On.
Referenced by llvm::GCNSubtarget::initializeSubtargetDependencies().
void llvm::AMDGPU::IsaInfo::AMDGPUTargetID::setTargetIDFromTargetIDStream | ( | StringRef | TargetID | ) |
Definition at line 844 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::IsaInfo::getTargetIDSettingFromFeatureString(), and llvm::StringRef::split().
|
inline |
Sets xnack setting to NewXnackSetting
.
Definition at line 158 of file AMDGPUBaseInfo.h.
std::string llvm::AMDGPU::IsaInfo::AMDGPUTargetID::toString | ( | ) | const |
Definition at line 856 of file AMDGPUBaseInfo.cpp.
References llvm::Triple::AMDHSA, llvm::raw_ostream::flush(), llvm::MCSubtargetInfo::getCPU(), llvm::AMDGPU::getIsaVersion(), llvm::Triple::getOS(), getSramEccSetting(), llvm::MCSubtargetInfo::getTargetTriple(), getXnackSetting(), llvm::AMDGPU::IsaInfo::Off, llvm::AMDGPU::IsaInfo::On, llvm::StringRef::str(), and llvm::Version.
Referenced by llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitTargetID().