llvm::AMDGPU::TargetID

Synopsis

Declared in <llvm/TargetParser/AMDGPUTargetParser.h>

class TargetID;

Member Functions

NameDescription
TargetID [constructor]Construct a TargetID from a triple TT and the processor+features string e.g. "gfx90a", "gfx90a:xnack+:sramecc-", "".
~TargetID [destructor]Destructor
getCanonicalFeatureString
getGPUKind
getSramEccSetting
getTargetTripleString
getXnackSetting
isAMDHSA
isEquivalent Returns true if Other denotes the same target as *this, i.e. the same processor and xnack/sramecc settings on a compatible triple. This is a semantic equality that looks through spelling differences.
isSramEccOnOrAny
isSramEccOnOrOff
isSramEccSupported
isXnackOnOrAny
isXnackOnOrOff
isXnackSupported
print
printCanonicalTargetIDString Print the canonical processor name followed by any explicit xnack and sramecc feature modifiers (e.g. "gfx908:sramecc-:xnack+"), without the triple prefix.
providesFor Returns true if a device image for *this can provide the device code for a request for Other. This is directional and models logical-linking compatibility.
setSramEccSetting Sets sramecc setting to NewSramEccSetting.
setXnackSetting Sets xnack setting to NewXnackSetting.
toString
operator== Equality operator
operator!= Inequality operator

Static Member Functions

NameDescription
parse Parse and validate a TargetID for triple TT from the processor+features string ProcAndFeatures (e.g. "gfx90a", "gfx90a:xnack+:sramecc-", ""). Returns std::nullopt if the triple is not AMDGCN, the processor is unrecognized, or a feature modifier is invalid for the processor.
parseTargetIDString Parse and validate a TargetID from a full "<triple>-<processor>:<features>" directive string.