LLVM  14.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. More...
 
bool isSramEccSupported () const
 
bool isSramEccOnOrAny () const
 
bool isSramEccOnOrOff () const
 
TargetIDSetting getSramEccSetting () const
 
void setSramEccSetting (TargetIDSetting NewSramEccSetting)
 Sets sramecc setting to NewSramEccSetting. More...
 
void setTargetIDFromFeaturesString (StringRef FS)
 
void setTargetIDFromTargetIDStream (StringRef TargetID)
 
std::string toString () const
 

Detailed Description

Definition at line 85 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 144 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 115 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 130 of file AMDGPUBaseInfo.h.

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

Referenced by llvm::GCNSubtarget::d16PreservesUnusedBits(), and toString().

◆ isSramEccOnOrOff()

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

Definition at line 137 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 125 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 101 of file AMDGPUBaseInfo.h.

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

Referenced by llvm::GCNSubtarget::isXNACKEnabled(), and toString().

◆ isXnackOnOrOff()

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

Definition at line 108 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 96 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 149 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 120 of file AMDGPUBaseInfo.h.

◆ toString()

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

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