LLVM 23.0.0git
llvm::AMDGPU::TargetID Class Reference

#include "llvm/TargetParser/AMDGPUTargetParser.h"

Public Member Functions

 TargetID (GPUKind Arch, const Triple &TT, TargetIDSetting XnackSetting, TargetIDSetting SramEccSetting)
 ~TargetID ()=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 setTargetIDFromTargetIDStream (StringRef TargetID)
GPUKind getGPUKind () const
StringRef getTargetTripleString () const
bool isAMDHSA () const
void print (raw_ostream &OS) const
std::string toString () const
bool operator== (const TargetID &Other) const
bool operator!= (const TargetID &Other) const

Static Public Member Functions

static std::optional< TargetIDparseTargetIDString (StringRef TargetIDDirective)

Detailed Description

Definition at line 158 of file AMDGPUTargetParser.h.

Constructor & Destructor Documentation

◆ TargetID()

TargetID::TargetID ( GPUKind Arch,
const Triple & TT,
TargetIDSetting XnackSetting,
TargetIDSetting SramEccSetting )

Definition at line 903 of file AMDGPUTargetParser.cpp.

Referenced by operator!=(), operator==(), and setTargetIDFromTargetIDStream().

◆ ~TargetID()

llvm::AMDGPU::TargetID::~TargetID ( )
default

Member Function Documentation

◆ getGPUKind()

GPUKind llvm::AMDGPU::TargetID::getGPUKind ( ) const
inline

Definition at line 228 of file AMDGPUTargetParser.h.

◆ getSramEccSetting()

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

Definition at line 219 of file AMDGPUTargetParser.h.

Referenced by isSramEccOnOrOff(), and print().

◆ getTargetTripleString()

StringRef llvm::AMDGPU::TargetID::getTargetTripleString ( ) const
inline

Definition at line 230 of file AMDGPUTargetParser.h.

◆ getXnackSetting()

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

Definition at line 192 of file AMDGPUTargetParser.h.

Referenced by isXnackOnOrOff(), and print().

◆ isAMDHSA()

bool llvm::AMDGPU::TargetID::isAMDHSA ( ) const
inline
Returns
True if this is an AMDHSA target.

Definition at line 233 of file AMDGPUTargetParser.h.

◆ isSramEccOnOrAny()

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

Definition at line 205 of file AMDGPUTargetParser.h.

◆ isSramEccOnOrOff()

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

Definition at line 212 of file AMDGPUTargetParser.h.

References getSramEccSetting().

◆ isSramEccSupported()

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

Definition at line 200 of file AMDGPUTargetParser.h.

Referenced by llvm::AMDGPU::createAMDGPUTargetID().

◆ isXnackOnOrAny()

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

Definition at line 178 of file AMDGPUTargetParser.h.

Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction().

◆ isXnackOnOrOff()

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

Definition at line 185 of file AMDGPUTargetParser.h.

References getXnackSetting().

◆ isXnackSupported()

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

Definition at line 173 of file AMDGPUTargetParser.h.

◆ operator!=()

bool llvm::AMDGPU::TargetID::operator!= ( const TargetID & Other) const
inline

Definition at line 243 of file AMDGPUTargetParser.h.

References llvm::AMDGPU::Other, and TargetID().

◆ operator==()

bool TargetID::operator== ( const TargetID & Other) const

Definition at line 1006 of file AMDGPUTargetParser.cpp.

References llvm::AMDGPU::Other, and TargetID().

◆ parseTargetIDString()

◆ print()

void TargetID::print ( raw_ostream & OS) const

◆ setSramEccSetting()

void llvm::AMDGPU::TargetID::setSramEccSetting ( TargetIDSetting NewSramEccSetting)
inline

Sets sramecc setting to NewSramEccSetting.

Definition at line 222 of file AMDGPUTargetParser.h.

Referenced by llvm::AMDGPU::createAMDGPUTargetID().

◆ setTargetIDFromTargetIDStream()

void TargetID::setTargetIDFromTargetIDStream ( StringRef TargetID)

Definition at line 920 of file AMDGPUTargetParser.cpp.

References getTargetIDSettingFromFeatureString(), and TargetID().

◆ setXnackSetting()

void llvm::AMDGPU::TargetID::setXnackSetting ( TargetIDSetting NewXnackSetting)
inline

Sets xnack setting to NewXnackSetting.

Definition at line 195 of file AMDGPUTargetParser.h.

Referenced by llvm::AMDGPU::createAMDGPUTargetID().

◆ toString()

std::string TargetID::toString ( ) const

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