LLVM  13.0.0git
Public Member Functions | List of all members
llvm::R600Subtarget Class Referencefinal

#include "Target/AMDGPU/R600Subtarget.h"

Inheritance diagram for llvm::R600Subtarget:
Inheritance graph
[legend]
Collaboration diagram for llvm::R600Subtarget:
Collaboration graph
[legend]

Public Member Functions

 R600Subtarget (const Triple &TT, StringRef CPU, StringRef FS, const TargetMachine &TM)
 
const R600InstrInfogetInstrInfo () const override
 
const R600FrameLoweringgetFrameLowering () const override
 
const R600TargetLoweringgetTargetLowering () const override
 
const R600RegisterInfogetRegisterInfo () const override
 
const InstrItineraryDatagetInstrItineraryData () const override
 
const SelectionDAGTargetInfogetSelectionDAGInfo () const override
 
void ParseSubtargetFeatures (StringRef CPU, StringRef TuneCPU, StringRef FS)
 
Generation getGeneration () const
 
Align getStackAlignment () const
 
R600SubtargetinitializeSubtargetDependencies (const Triple &TT, StringRef GPU, StringRef FS)
 
bool hasBFE () const
 
bool hasBFI () const
 
bool hasBCNT (unsigned Size) const
 
bool hasBORROW () const
 
bool hasCARRY () const
 
bool hasCaymanISA () const
 
bool hasFFBL () const
 
bool hasFFBH () const
 
bool hasFMA () const
 
bool hasCFAluBug () const
 
bool hasVertexCache () const
 
short getTexVTXClauseSize () const
 
bool enableMachineScheduler () const override
 
bool enableSubRegLiveness () const override
 
unsigned getMaxWorkGroupsPerCU (unsigned FlatWorkGroupSize) const override
 
unsigned getMinFlatWorkGroupSize () const override
 
unsigned getMaxFlatWorkGroupSize () const override
 
unsigned getWavesPerEUForWorkGroup (unsigned FlatWorkGroupSize) const override
 
unsigned getMinWavesPerEU () const override
 
- Public Member Functions inherited from llvm::AMDGPUSubtarget
 AMDGPUSubtarget (const Triple &TT)
 
std::pair< unsigned, unsigned > getDefaultFlatWorkGroupSize (CallingConv::ID CC) const
 
std::pair< unsigned, unsigned > getFlatWorkGroupSizes (const Function &F) const
 
std::pair< unsigned, unsigned > getWavesPerEU (const Function &F) const
 
unsigned getMaxLocalMemSizeWithWaveCount (unsigned WaveCount, const Function &) const
 Return the amount of LDS that can be used that will not restrict the occupancy lower than WaveCount. More...
 
unsigned getOccupancyWithLocalMemSize (uint32_t Bytes, const Function &) const
 Inverse of getMaxLocalMemWithWaveCount. More...
 
unsigned getOccupancyWithLocalMemSize (const MachineFunction &MF) const
 
bool isAmdHsaOS () const
 
bool isAmdPalOS () const
 
bool isMesa3DOS () const
 
bool isMesaKernel (const Function &F) const
 
bool isAmdHsaOrMesa (const Function &F) const
 
bool isGCN () const
 
bool isGCN3Encoding () const
 
bool has16BitInsts () const
 
bool hasMadMixInsts () const
 
bool hasMadMacF32Insts () const
 
bool hasDsSrc2Insts () const
 
bool hasSDWA () const
 
bool hasVOP3PInsts () const
 
bool hasMulI24 () const
 
bool hasMulU24 () const
 
bool hasInv2PiInlineImm () const
 
bool hasFminFmaxLegacy () const
 
bool hasTrigReducedRange () const
 
bool isPromoteAllocaEnabled () const
 
unsigned getWavefrontSize () const
 
unsigned getWavefrontSizeLog2 () const
 
unsigned getLocalMemorySize () const
 
Align getAlignmentForImplicitArgPtr () const
 
unsigned getExplicitKernelArgOffset (const Function &F) const
 Returns the offset in bytes from the start of the input buffer of the first explicit kernel argument. More...
 
unsigned getMaxWavesPerEU () const
 
unsigned getMaxWorkitemID (const Function &Kernel, unsigned Dimension) const
 Return the maximum workitem ID value in the function, for the given (0, 1, 2) dimension. More...
 
bool makeLIDRangeMetadata (Instruction *I) const
 Creates value range metadata on an workitemid.* intrinsic call or load. More...
 
unsigned getImplicitArgNumBytes (const Function &F) const
 
uint64_t getExplicitKernArgSize (const Function &F, Align &MaxAlign) const
 
unsigned getKernArgSegmentSize (const Function &F, Align &MaxAlign) const
 
AMDGPUDwarfFlavour getAMDGPUDwarfFlavour () const
 
virtual ~AMDGPUSubtarget ()
 

Additional Inherited Members

- Public Types inherited from llvm::AMDGPUSubtarget
enum  Generation {
  INVALID = 0, R600 = 1, R700 = 2, EVERGREEN = 3,
  NORTHERN_ISLANDS = 4, SOUTHERN_ISLANDS = 5, SEA_ISLANDS = 6, VOLCANIC_ISLANDS = 7,
  GFX9 = 8, GFX10 = 9
}
 
- Static Public Member Functions inherited from llvm::AMDGPUSubtarget
static const AMDGPUSubtargetget (const MachineFunction &MF)
 
static const AMDGPUSubtargetget (const TargetMachine &TM, const Function &F)
 
- Protected Attributes inherited from llvm::AMDGPUSubtarget
bool GCN3Encoding
 
bool Has16BitInsts
 
bool HasMadMixInsts
 
bool HasMadMacF32Insts
 
bool HasDsSrc2Insts
 
bool HasSDWA
 
bool HasVOP3PInsts
 
bool HasMulI24
 
bool HasMulU24
 
bool HasInv2PiInlineImm
 
bool HasFminFmaxLegacy
 
bool EnablePromoteAlloca
 
bool HasTrigReducedRange
 
unsigned MaxWavesPerEU
 
unsigned LocalMemorySize
 
char WavefrontSizeLog2
 

Detailed Description

Definition at line 36 of file R600Subtarget.h.

Constructor & Destructor Documentation

◆ R600Subtarget()

R600Subtarget::R600Subtarget ( const Triple TT,
StringRef  CPU,
StringRef  FS,
const TargetMachine TM 
)

Definition at line 618 of file AMDGPUSubtarget.cpp.

Member Function Documentation

◆ enableMachineScheduler()

bool llvm::R600Subtarget::enableMachineScheduler ( ) const
inlineoverride

Definition at line 134 of file R600Subtarget.h.

◆ enableSubRegLiveness()

bool llvm::R600Subtarget::enableSubRegLiveness ( ) const
inlineoverride

Definition at line 138 of file R600Subtarget.h.

◆ getFrameLowering()

const R600FrameLowering* llvm::R600Subtarget::getFrameLowering ( ) const
inlineoverride

Definition at line 59 of file R600Subtarget.h.

◆ getGeneration()

Generation llvm::R600Subtarget::getGeneration ( ) const
inline

◆ getInstrInfo()

const R600InstrInfo* llvm::R600Subtarget::getInstrInfo ( ) const
inlineoverride

◆ getInstrItineraryData()

const InstrItineraryData* llvm::R600Subtarget::getInstrItineraryData ( ) const
inlineoverride

Definition at line 71 of file R600Subtarget.h.

◆ getMaxFlatWorkGroupSize()

unsigned llvm::R600Subtarget::getMaxFlatWorkGroupSize ( ) const
inlineoverridevirtual
Returns
Maximum flat work group size supported by the subtarget.

Implements llvm::AMDGPUSubtarget.

Definition at line 154 of file R600Subtarget.h.

References llvm::AMDGPU::IsaInfo::getMaxFlatWorkGroupSize().

◆ getMaxWorkGroupsPerCU()

unsigned llvm::R600Subtarget::getMaxWorkGroupsPerCU ( unsigned  FlatWorkGroupSize) const
inlineoverridevirtual
Returns
Maximum number of work groups per compute unit supported by the subtarget and limited by given FlatWorkGroupSize.

Implements llvm::AMDGPUSubtarget.

Definition at line 144 of file R600Subtarget.h.

References llvm::AMDGPU::IsaInfo::getMaxWorkGroupsPerCU().

◆ getMinFlatWorkGroupSize()

unsigned llvm::R600Subtarget::getMinFlatWorkGroupSize ( ) const
inlineoverridevirtual
Returns
Minimum flat work group size supported by the subtarget.

Implements llvm::AMDGPUSubtarget.

Definition at line 149 of file R600Subtarget.h.

References llvm::AMDGPU::IsaInfo::getMinFlatWorkGroupSize().

◆ getMinWavesPerEU()

unsigned llvm::R600Subtarget::getMinWavesPerEU ( ) const
inlineoverridevirtual
Returns
Minimum number of waves per execution unit supported by the subtarget.

Implements llvm::AMDGPUSubtarget.

Definition at line 167 of file R600Subtarget.h.

References llvm::AMDGPU::IsaInfo::getMinWavesPerEU().

◆ getRegisterInfo()

const R600RegisterInfo* llvm::R600Subtarget::getRegisterInfo ( ) const
inlineoverride

◆ getSelectionDAGInfo()

const SelectionDAGTargetInfo* llvm::R600Subtarget::getSelectionDAGInfo ( ) const
inlineoverride

Definition at line 76 of file R600Subtarget.h.

◆ getStackAlignment()

Align llvm::R600Subtarget::getStackAlignment ( ) const
inline

Definition at line 86 of file R600Subtarget.h.

References Align.

◆ getTargetLowering()

const R600TargetLowering* llvm::R600Subtarget::getTargetLowering ( ) const
inlineoverride

Definition at line 63 of file R600Subtarget.h.

◆ getTexVTXClauseSize()

short llvm::R600Subtarget::getTexVTXClauseSize ( ) const
inline

Definition at line 132 of file R600Subtarget.h.

◆ getWavesPerEUForWorkGroup()

unsigned llvm::R600Subtarget::getWavesPerEUForWorkGroup ( unsigned  FlatWorkGroupSize) const
inlineoverridevirtual
Returns
Number of waves per execution unit required to support the given FlatWorkGroupSize.

Implements llvm::AMDGPUSubtarget.

Definition at line 161 of file R600Subtarget.h.

References llvm::AMDGPU::IsaInfo::getWavesPerEUForWorkGroup().

◆ hasBCNT()

bool llvm::R600Subtarget::hasBCNT ( unsigned  Size) const
inline

◆ hasBFE()

bool llvm::R600Subtarget::hasBFE ( ) const
inline

◆ hasBFI()

bool llvm::R600Subtarget::hasBFI ( ) const
inline

◆ hasBORROW()

bool llvm::R600Subtarget::hasBORROW ( ) const
inline

◆ hasCARRY()

bool llvm::R600Subtarget::hasCARRY ( ) const
inline

◆ hasCaymanISA()

bool llvm::R600Subtarget::hasCaymanISA ( ) const
inline

◆ hasCFAluBug()

bool llvm::R600Subtarget::hasCFAluBug ( ) const
inline

Definition at line 128 of file R600Subtarget.h.

◆ hasFFBH()

bool llvm::R600Subtarget::hasFFBH ( ) const
inline

◆ hasFFBL()

bool llvm::R600Subtarget::hasFFBL ( ) const
inline

◆ hasFMA()

bool llvm::R600Subtarget::hasFMA ( ) const
inline

Definition at line 126 of file R600Subtarget.h.

Referenced by llvm::R600TargetLowering::R600TargetLowering().

◆ hasVertexCache()

bool llvm::R600Subtarget::hasVertexCache ( ) const
inline

◆ initializeSubtargetDependencies()

R600Subtarget & R600Subtarget::initializeSubtargetDependencies ( const Triple TT,
StringRef  GPU,
StringRef  FS 
)

◆ ParseSubtargetFeatures()

void llvm::R600Subtarget::ParseSubtargetFeatures ( StringRef  CPU,
StringRef  TuneCPU,
StringRef  FS 
)

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