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 140 of file AMDGPUBaseInfo.h.
|
explicit |
Definition at line 806 of file AMDGPUBaseInfo.cpp.
References llvm::MCSubtargetInfo::getFeatureBits(), llvm::FeatureBitset::test(), and llvm::AMDGPU::IsaInfo::Unsupported.
|
default |
|
inline |
Definition at line 199 of file AMDGPUBaseInfo.h.
Referenced by llvm::GCNSubtarget::initializeSubtargetDependencies(), isSramEccOnOrOff(), and toString().
|
inline |
Definition at line 170 of file AMDGPUBaseInfo.h.
Referenced by llvm::GCNSubtarget::initializeSubtargetDependencies(), isXnackOnOrOff(), and toString().
|
inline |
Definition at line 185 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::IsaInfo::Any, and llvm::AMDGPU::IsaInfo::On.
Referenced by llvm::GCNSubtarget::d16PreservesUnusedBits().
|
inline |
Definition at line 192 of file AMDGPUBaseInfo.h.
References getSramEccSetting(), llvm::AMDGPU::IsaInfo::Off, and llvm::AMDGPU::IsaInfo::On.
|
inline |
Definition at line 180 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::IsaInfo::Unsupported.
Referenced by setTargetIDFromFeaturesString().
|
inline |
Definition at line 156 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::IsaInfo::Any, and llvm::AMDGPU::IsaInfo::On.
Referenced by llvm::GCNSubtarget::isXNACKEnabled(), and llvm::AMDGPUAsmPrinter::runOnMachineFunction().
|
inline |
Definition at line 163 of file AMDGPUBaseInfo.h.
References getXnackSetting(), llvm::AMDGPU::IsaInfo::Off, and llvm::AMDGPU::IsaInfo::On.
|
inline |
Definition at line 151 of file AMDGPUBaseInfo.h.
References llvm::AMDGPU::IsaInfo::Unsupported.
Referenced by setTargetIDFromFeaturesString().
|
inline |
Sets sramecc setting to NewSramEccSetting
.
Definition at line 204 of file AMDGPUBaseInfo.h.
void llvm::AMDGPU::IsaInfo::AMDGPUTargetID::setTargetIDFromFeaturesString | ( | StringRef | FS | ) |
Definition at line 815 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 883 of file AMDGPUBaseInfo.cpp.
References llvm::AMDGPU::IsaInfo::getTargetIDSettingFromFeatureString(), and llvm::StringRef::split().
|
inline |
Sets xnack setting to NewXnackSetting
.
Definition at line 175 of file AMDGPUBaseInfo.h.
std::string llvm::AMDGPU::IsaInfo::AMDGPUTargetID::toString | ( | ) | const |
Definition at line 895 of file AMDGPUBaseInfo.cpp.
References llvm::Triple::AMDHSA, 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().