LLVM 20.0.0git
Public Member Functions | List of all members
llvm::AMDGPU::IsaInfo::AMDGPUTargetID Class Reference

#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
 

Detailed Description

Definition at line 123 of file AMDGPUBaseInfo.h.

Constructor & Destructor Documentation

◆ AMDGPUTargetID()

llvm::AMDGPU::IsaInfo::AMDGPUTargetID::AMDGPUTargetID ( const MCSubtargetInfo STI)
explicit

◆ ~AMDGPUTargetID()

llvm::AMDGPU::IsaInfo::AMDGPUTargetID::~AMDGPUTargetID ( )
default

Member Function Documentation

◆ getSramEccSetting()

TargetIDSetting llvm::AMDGPU::IsaInfo::AMDGPUTargetID::getSramEccSetting ( ) const
inline
Returns
The current sramecc TargetIDSetting, possible options are "Unsupported", "Any", "Off", and "On".

Definition at line 182 of file AMDGPUBaseInfo.h.

Referenced by llvm::GCNSubtarget::initializeSubtargetDependencies(), isSramEccOnOrOff(), and toString().

◆ getXnackSetting()

TargetIDSetting llvm::AMDGPU::IsaInfo::AMDGPUTargetID::getXnackSetting ( ) const
inline
Returns
The current xnack TargetIDSetting, possible options are "Unsupported", "Any", "Off", and "On".

Definition at line 153 of file AMDGPUBaseInfo.h.

Referenced by llvm::GCNSubtarget::initializeSubtargetDependencies(), isXnackOnOrOff(), and toString().

◆ isSramEccOnOrAny()

bool llvm::AMDGPU::IsaInfo::AMDGPUTargetID::isSramEccOnOrAny ( ) const
inline
Returns
True if the current sramecc setting is "On" or "Any".

Definition at line 168 of file AMDGPUBaseInfo.h.

References llvm::AMDGPU::IsaInfo::Any, and llvm::AMDGPU::IsaInfo::On.

Referenced by llvm::GCNSubtarget::d16PreservesUnusedBits().

◆ isSramEccOnOrOff()

bool llvm::AMDGPU::IsaInfo::AMDGPUTargetID::isSramEccOnOrOff ( ) const
inline
Returns
True if current sramecc setting is "On" or "Off", false otherwise.

Definition at line 175 of file AMDGPUBaseInfo.h.

References getSramEccSetting(), llvm::AMDGPU::IsaInfo::Off, and llvm::AMDGPU::IsaInfo::On.

◆ isSramEccSupported()

bool llvm::AMDGPU::IsaInfo::AMDGPUTargetID::isSramEccSupported ( ) const
inline
Returns
True if the current sramecc setting is not "Unsupported".

Definition at line 163 of file AMDGPUBaseInfo.h.

References llvm::AMDGPU::IsaInfo::Unsupported.

Referenced by setTargetIDFromFeaturesString().

◆ isXnackOnOrAny()

bool llvm::AMDGPU::IsaInfo::AMDGPUTargetID::isXnackOnOrAny ( ) const
inline
Returns
True if the current xnack setting is "On" or "Any".

Definition at line 139 of file AMDGPUBaseInfo.h.

References llvm::AMDGPU::IsaInfo::Any, and llvm::AMDGPU::IsaInfo::On.

Referenced by llvm::GCNSubtarget::isXNACKEnabled().

◆ isXnackOnOrOff()

bool llvm::AMDGPU::IsaInfo::AMDGPUTargetID::isXnackOnOrOff ( ) const
inline
Returns
True if current xnack setting is "On" or "Off", false otherwise.

Definition at line 146 of file AMDGPUBaseInfo.h.

References getXnackSetting(), llvm::AMDGPU::IsaInfo::Off, and llvm::AMDGPU::IsaInfo::On.

◆ isXnackSupported()

bool llvm::AMDGPU::IsaInfo::AMDGPUTargetID::isXnackSupported ( ) const
inline
Returns
True if the current xnack setting is not "Unsupported".

Definition at line 134 of file AMDGPUBaseInfo.h.

References llvm::AMDGPU::IsaInfo::Unsupported.

Referenced by setTargetIDFromFeaturesString().

◆ setSramEccSetting()

void llvm::AMDGPU::IsaInfo::AMDGPUTargetID::setSramEccSetting ( TargetIDSetting  NewSramEccSetting)
inline

Sets sramecc setting to NewSramEccSetting.

Definition at line 187 of file AMDGPUBaseInfo.h.

◆ setTargetIDFromFeaturesString()

void llvm::AMDGPU::IsaInfo::AMDGPUTargetID::setTargetIDFromFeaturesString ( StringRef  FS)

◆ setTargetIDFromTargetIDStream()

void llvm::AMDGPU::IsaInfo::AMDGPUTargetID::setTargetIDFromTargetIDStream ( StringRef  TargetID)

◆ setXnackSetting()

void llvm::AMDGPU::IsaInfo::AMDGPUTargetID::setXnackSetting ( TargetIDSetting  NewXnackSetting)
inline

Sets xnack setting to NewXnackSetting.

Definition at line 158 of file AMDGPUBaseInfo.h.

◆ toString()

std::string llvm::AMDGPU::IsaInfo::AMDGPUTargetID::toString ( ) const

The documentation for this class was generated from the following files: