LLVM  5.0.0
Public Types | Public Member Functions | Protected Attributes | List of all members
llvm::AMDGPUSubtarget Class Referenceabstract

#include "Target/AMDGPU/AMDGPUSubtarget.h"

Inheritance diagram for llvm::AMDGPUSubtarget:
[legend]
Collaboration diagram for llvm::AMDGPUSubtarget:
[legend]

Public Types

enum  Generation {
  R600 = 0, R700, EVERGREEN, NORTHERN_ISLANDS,
  SOUTHERN_ISLANDS, SEA_ISLANDS, VOLCANIC_ISLANDS, GFX9
}
 
enum  {
  ISAVersion0_0_0, ISAVersion6_0_0, ISAVersion6_0_1, ISAVersion7_0_0,
  ISAVersion7_0_1, ISAVersion7_0_2, ISAVersion7_0_3, ISAVersion8_0_0,
  ISAVersion8_0_1, ISAVersion8_0_2, ISAVersion8_0_3, ISAVersion8_0_4,
  ISAVersion8_1_0, ISAVersion9_0_0, ISAVersion9_0_1, ISAVersion9_0_2,
  ISAVersion9_0_3
}
 
enum  TrapHandlerAbi { TrapHandlerAbiNone = 0, TrapHandlerAbiHsa = 1 }
 
enum  TrapID {
  TrapIDHardwareReserved = 0, TrapIDHSADebugTrap = 1, TrapIDLLVMTrap = 2, TrapIDLLVMDebugTrap = 3,
  TrapIDDebugBreakpoint = 7, TrapIDDebugReserved8 = 8, TrapIDDebugReservedFE = 0xfe, TrapIDDebugReservedFF = 0xff
}
 
enum  TrapRegValues { LLVMTrapHandlerRegValue = 1 }
 

Public Member Functions

 AMDGPUSubtarget (const Triple &TT, StringRef GPU, StringRef FS, const TargetMachine &TM)
 
 ~AMDGPUSubtarget () override
 
AMDGPUSubtarget & initializeSubtargetDependencies (const Triple &TT, StringRef GPU, StringRef FS)
 
const AMDGPUInstrInfo * getInstrInfo () const override=0
 
const AMDGPUFrameLowering * getFrameLowering () const override=0
 
const AMDGPUTargetLowering * getTargetLowering () const override=0
 
const AMDGPURegisterInfo * getRegisterInfo () const override=0
 
const InstrItineraryData * getInstrItineraryData () const override
 
const SelectionDAGTargetInfo * getSelectionDAGInfo () const override
 
void ParseSubtargetFeatures (StringRef CPU, StringRef FS)
 
bool isAmdHsaOS () const
 
bool isMesa3DOS () const
 
bool isOpenCLEnv () const
 
Generation getGeneration () const
 
unsigned getWavefrontSize () const
 
int getLocalMemorySize () const
 
int getLDSBankCount () const
 
unsigned getMaxPrivateElementSize () const
 
AMDGPUAS getAMDGPUAS () const
 
bool has16BitInsts () const
 
bool hasVOP3PInsts () const
 
bool hasHWFP64 () const
 
bool hasFastFMAF32 () const
 
bool hasHalfRate64Ops () const
 
bool hasAddr64 () const
 
bool hasBFE () const
 
bool hasBFI () const
 
bool hasBFM () const
 
bool hasBCNT (unsigned Size) const
 
bool hasMulU24 () const
 
bool hasMulI24 () const
 
bool hasFFBL () const
 
bool hasFFBH () const
 
bool hasMed3_16 () const
 
bool hasMin3Max3_16 () const
 
bool hasCARRY () const
 
bool hasBORROW () const
 
bool hasCaymanISA () const
 
TrapHandlerAbi getTrapHandlerAbi () const
 
bool isPromoteAllocaEnabled () const
 
bool unsafeDSOffsetFoldingEnabled () const
 
bool dumpCode () 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 hasFP16Denormals () const
 
bool hasFP32Denormals () const
 
bool hasFP64Denormals () const
 
bool supportsMinMaxDenormModes () const
 
bool hasFPExceptions () const
 
bool enableDX10Clamp () const
 
bool enableIEEEBit (const MachineFunction &MF) const
 
bool useFlatForGlobal () const
 
bool hasAutoWaitcntBeforeBarrier () const
 
bool hasUnalignedBufferAccess () const
 
bool hasUnalignedScratchAccess () const
 
bool hasApertureRegs () const
 
bool isTrapHandlerEnabled () const
 
bool isXNACKEnabled () const
 
bool hasFlatAddressSpace () const
 
bool hasFlatInstOffsets () const
 
bool hasFlatGlobalInsts () const
 
bool hasFlatScratchInsts () const
 
bool isMesaKernel (const MachineFunction &MF) const
 
bool isMesaGfxShader (const MachineFunction &MF) const
 
bool isAmdCodeObjectV2 (const MachineFunction &MF) const
 
bool hasFminFmaxLegacy () const
 
bool hasSDWA () const
 
bool hasSDWAOmod () const
 
bool hasSDWAScalar () const
 
bool hasSDWASdst () const
 
bool hasSDWAMac () const
 
bool hasSDWAOutModsVOPC () const
 
unsigned getExplicitKernelArgOffset (const MachineFunction &MF) const
 Returns the offset in bytes from the start of the input buffer of the first explicit kernel argument. More...
 
unsigned getAlignmentForImplicitArgPtr () const
 
unsigned getImplicitArgNumBytes (const MachineFunction &MF) const
 
unsigned getStackAlignment () const
 
bool enableMachineScheduler () const override
 
bool enableSubRegLiveness () const override
 
void setScalarizeGlobalBehavior (bool b)
 
bool getScalarizeGlobalBehavior () const
 
unsigned getEUsPerCU () const
 
unsigned getMaxWorkGroupsPerCU (unsigned FlatWorkGroupSize) const
 
unsigned getMaxWavesPerCU () const
 
unsigned getMaxWavesPerCU (unsigned FlatWorkGroupSize) const
 
unsigned getMinWavesPerEU () const
 
unsigned getMaxWavesPerEU () const
 
unsigned getMaxWavesPerEU (unsigned FlatWorkGroupSize) const
 
unsigned getMinFlatWorkGroupSize () const
 
unsigned getMaxFlatWorkGroupSize () const
 
unsigned getWavesPerWorkGroup (unsigned FlatWorkGroupSize) const
 
std::pair< unsigned, unsigned > getFlatWorkGroupSizes (const Function &F) const
 
std::pair< unsigned, unsigned > getWavesPerEU (const Function &F) const
 
bool makeLIDRangeMetadata (Instruction *I) const
 Creates value range metadata on an workitemid.* inrinsic call or load. More...
 

Protected Attributes

Triple TargetTriple
 
Generation Gen
 
unsigned IsaVersion
 
unsigned WavefrontSize
 
int LocalMemorySize
 
int LDSBankCount
 
unsigned MaxPrivateElementSize
 
bool FastFMAF32
 
bool HalfRate64Ops
 
bool FP32Denormals
 
bool FP64FP16Denormals
 
bool FPExceptions
 
bool DX10Clamp
 
bool FlatForGlobal
 
bool AutoWaitcntBeforeBarrier
 
bool UnalignedScratchAccess
 
bool UnalignedBufferAccess
 
bool HasApertureRegs
 
bool EnableXNACK
 
bool TrapHandler
 
bool DebuggerInsertNops
 
bool DebuggerReserveRegs
 
bool DebuggerEmitPrologue
 
bool EnableVGPRSpilling
 
bool EnablePromoteAlloca
 
bool EnableLoadStoreOpt
 
bool EnableUnsafeDSOffsetFolding
 
bool EnableSIScheduler
 
bool DumpCode
 
bool FP64
 
bool IsGCN
 
bool GCN1Encoding
 
bool GCN3Encoding
 
bool CIInsts
 
bool GFX9Insts
 
bool SGPRInitBug
 
bool HasSMemRealTime
 
bool Has16BitInsts
 
bool HasVOP3PInsts
 
bool HasMovrel
 
bool HasVGPRIndexMode
 
bool HasScalarStores
 
bool HasInv2PiInlineImm
 
bool HasSDWA
 
bool HasSDWAOmod
 
bool HasSDWAScalar
 
bool HasSDWASdst
 
bool HasSDWAMac
 
bool HasSDWAOutModsVOPC
 
bool HasDPP
 
bool FlatAddressSpace
 
bool FlatInstOffsets
 
bool FlatGlobalInsts
 
bool FlatScratchInsts
 
bool R600ALUInst
 
bool CaymanISA
 
bool CFALUBug
 
bool HasVertexCache
 
short TexVTXClauseSize
 
bool ScalarizeGlobal
 
bool FeatureDisable
 
InstrItineraryData InstrItins
 
SelectionDAGTargetInfo TSInfo
 
AMDGPUAS AS
 

Detailed Description

Definition at line 45 of file AMDGPUSubtarget.h.

Member Enumeration Documentation

anonymous enum
Enumerator
ISAVersion0_0_0 
ISAVersion6_0_0 
ISAVersion6_0_1 
ISAVersion7_0_0 
ISAVersion7_0_1 
ISAVersion7_0_2 
ISAVersion7_0_3 
ISAVersion8_0_0 
ISAVersion8_0_1 
ISAVersion8_0_2 
ISAVersion8_0_3 
ISAVersion8_0_4 
ISAVersion8_1_0 
ISAVersion9_0_0 
ISAVersion9_0_1 
ISAVersion9_0_2 
ISAVersion9_0_3 

Definition at line 58 of file AMDGPUSubtarget.h.

Enumerator
R600 
R700 
EVERGREEN 
NORTHERN_ISLANDS 
SOUTHERN_ISLANDS 
SEA_ISLANDS 
VOLCANIC_ISLANDS 
GFX9 

Definition at line 47 of file AMDGPUSubtarget.h.

Enumerator
TrapHandlerAbiNone 
TrapHandlerAbiHsa 

Definition at line 78 of file AMDGPUSubtarget.h.

Enumerator
TrapIDHardwareReserved 
TrapIDHSADebugTrap 
TrapIDLLVMTrap 
TrapIDLLVMDebugTrap 
TrapIDDebugBreakpoint 
TrapIDDebugReserved8 
TrapIDDebugReservedFE 
TrapIDDebugReservedFF 

Definition at line 83 of file AMDGPUSubtarget.h.

Enumerator
LLVMTrapHandlerRegValue 

Definition at line 94 of file AMDGPUSubtarget.h.

Constructor & Destructor Documentation

AMDGPUSubtarget::AMDGPUSubtarget ( const Triple &  TT,
StringRef  GPU,
StringRef  FS,
const TargetMachine &  TM 
)
AMDGPUSubtarget::~AMDGPUSubtarget ( )
overridedefault

Member Function Documentation

bool llvm::AMDGPUSubtarget::dumpCode ( ) const
inline
bool llvm::AMDGPUSubtarget::enableDX10Clamp ( ) const
inline

Definition at line 370 of file AMDGPUSubtarget.h.

References DX10Clamp.

Referenced by llvm::AMDGPUTargetLowering::performClampCombine().

bool llvm::AMDGPUSubtarget::enableIEEEBit ( const MachineFunction &  MF) const
inline
bool llvm::AMDGPUSubtarget::enableMachineScheduler ( ) const
inlineoverride

Definition at line 488 of file AMDGPUSubtarget.h.

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

Definition at line 492 of file AMDGPUSubtarget.h.

unsigned llvm::AMDGPUSubtarget::getAlignmentForImplicitArgPtr ( ) const
inline
AMDGPUAS llvm::AMDGPUSubtarget::getAMDGPUAS ( ) const
inline
unsigned llvm::AMDGPUSubtarget::getEUsPerCU ( ) const
inline
Returns
Number of execution units per compute unit supported by the subtarget.

Definition at line 501 of file AMDGPUSubtarget.h.

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

unsigned llvm::AMDGPUSubtarget::getExplicitKernelArgOffset ( const MachineFunction &  MF) const
inline

Returns the offset in bytes from the start of the input buffer of the first explicit kernel argument.

Definition at line 465 of file AMDGPUSubtarget.h.

References isAmdCodeObjectV2().

Referenced by llvm::AMDGPUCallLowering::lowerFormalArguments(), llvm::R600TargetLowering::LowerFormalArguments(), and llvm::SITargetLowering::LowerFormalArguments().

std::pair< unsigned, unsigned > AMDGPUSubtarget::getFlatWorkGroupSizes ( const Function &  F) const
Returns
Subtarget's default pair of minimum/maximum flat work group sizes for function F, or minimum/maximum flat work group sizes explicitly requested using "amdgpu-flat-work-group-size" attribute attached to function F.
Subtarget's default values if explicitly requested values cannot be converted to integer, or violate subtarget's specifications.

Definition at line 206 of file AMDGPUSubtarget.cpp.

References llvm::Default, llvm::Function::getCallingConv(), llvm::AMDGPU::getIntegerAttribute(), llvm::AMDGPU::getIntegerPairAttribute(), getMaxFlatWorkGroupSize(), getMinFlatWorkGroupSize(), getWavefrontSize(), llvm::AMDGPU::isCompute(), and fuzzer::min().

Referenced by getMaxLocalMemSizeWithWaveCount(), getOccupancyWithLocalMemSize(), getWavesPerEU(), ImplicitBufferPtr(), and makeLIDRangeMetadata().

const AMDGPUFrameLowering* llvm::AMDGPUSubtarget::getFrameLowering ( ) const
overridepure virtual

Implemented in llvm::SISubtarget, and llvm::R600Subtarget.

Generation llvm::AMDGPUSubtarget::getGeneration ( ) const
inline
unsigned llvm::AMDGPUSubtarget::getImplicitArgNumBytes ( const MachineFunction &  MF) const
inline

Definition at line 473 of file AMDGPUSubtarget.h.

References isAmdHsaOS(), isMesaKernel(), and isOpenCLEnv().

Referenced by llvm::SISubtarget::getKernArgSegmentSize().

const AMDGPUInstrInfo* llvm::AMDGPUSubtarget::getInstrInfo ( ) const
overridepure virtual
const InstrItineraryData* llvm::AMDGPUSubtarget::getInstrItineraryData ( ) const
inlineoverride

Definition at line 189 of file AMDGPUSubtarget.h.

References InstrItins.

int llvm::AMDGPUSubtarget::getLDSBankCount ( ) const
inline

Definition at line 225 of file AMDGPUSubtarget.h.

References LDSBankCount.

int llvm::AMDGPUSubtarget::getLocalMemorySize ( ) const
inline

Definition at line 221 of file AMDGPUSubtarget.h.

References LocalMemorySize.

Referenced by getMaxLocalMemSizeWithWaveCount(), and getOccupancyWithLocalMemSize().

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

Definition at line 550 of file AMDGPUSubtarget.h.

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

Referenced by getFlatWorkGroupSizes().

unsigned AMDGPUSubtarget::getMaxLocalMemSizeWithWaveCount ( unsigned  WaveCount,
const Function &  F 
) const

Return the amount of LDS that can be used that will not restrict the occupancy lower than WaveCount.

Definition at line 184 of file AMDGPUSubtarget.cpp.

References getFlatWorkGroupSizes(), getLocalMemorySize(), getMaxWavesPerEU(), and getMaxWorkGroupsPerCU().

unsigned llvm::AMDGPUSubtarget::getMaxPrivateElementSize ( ) const
inline
unsigned llvm::AMDGPUSubtarget::getMaxWavesPerCU ( ) const
inline
Returns
Maximum number of waves per compute unit supported by the subtarget without any kind of limitation.

Definition at line 514 of file AMDGPUSubtarget.h.

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

unsigned llvm::AMDGPUSubtarget::getMaxWavesPerCU ( unsigned  FlatWorkGroupSize) const
inline
Returns
Maximum number of waves per compute unit supported by the subtarget and limited by given FlatWorkGroupSize.

Definition at line 520 of file AMDGPUSubtarget.h.

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

unsigned llvm::AMDGPUSubtarget::getMaxWavesPerEU ( ) const
inline
Returns
Maximum number of waves per execution unit supported by the subtarget without any kind of limitation.

Definition at line 533 of file AMDGPUSubtarget.h.

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

Referenced by getMaxLocalMemSizeWithWaveCount(), getOccupancyWithLocalMemSize(), and getWavesPerEU().

unsigned llvm::AMDGPUSubtarget::getMaxWavesPerEU ( unsigned  FlatWorkGroupSize) const
inline
Returns
Maximum number of waves per execution unit supported by the subtarget and limited by given FlatWorkGroupSize.

Definition at line 539 of file AMDGPUSubtarget.h.

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

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

Definition at line 507 of file AMDGPUSubtarget.h.

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

Referenced by getMaxLocalMemSizeWithWaveCount(), and getOccupancyWithLocalMemSize().

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

Definition at line 545 of file AMDGPUSubtarget.h.

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

Referenced by getFlatWorkGroupSizes().

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

Definition at line 527 of file AMDGPUSubtarget.h.

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

Referenced by getWavesPerEU().

unsigned AMDGPUSubtarget::getOccupancyWithLocalMemSize ( uint32_t  Bytes,
const Function &  F 
) const

Inverse of getMaxLocalMemWithWaveCount.

Return the maximum wavecount if the given LDS memory size is the only constraint.

Definition at line 194 of file AMDGPUSubtarget.cpp.

References getFlatWorkGroupSizes(), getLocalMemorySize(), getMaxWavesPerEU(), getMaxWorkGroupsPerCU(), llvm::max(), and fuzzer::min().

Referenced by getMaxWaves(), getOccupancyWithLocalMemSize(), and llvm::SIRegisterInfo::getRegPressureLimit().

unsigned llvm::AMDGPUSubtarget::getOccupancyWithLocalMemSize ( const MachineFunction &  MF) const
inline
const AMDGPURegisterInfo* llvm::AMDGPUSubtarget::getRegisterInfo ( ) const
overridepure virtual
bool llvm::AMDGPUSubtarget::getScalarizeGlobalBehavior ( ) const
inline

Definition at line 497 of file AMDGPUSubtarget.h.

References ScalarizeGlobal.

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

Definition at line 194 of file AMDGPUSubtarget.h.

References TSInfo.

unsigned llvm::AMDGPUSubtarget::getStackAlignment ( ) const
inline

Definition at line 484 of file AMDGPUSubtarget.h.

const AMDGPUTargetLowering* llvm::AMDGPUSubtarget::getTargetLowering ( ) const
overridepure virtual

Implemented in llvm::SISubtarget, and llvm::R600Subtarget.

TrapHandlerAbi llvm::AMDGPUSubtarget::getTrapHandlerAbi ( ) const
inline

Definition at line 320 of file AMDGPUSubtarget.h.

References isAmdHsaOS(), TrapHandlerAbiHsa, and TrapHandlerAbiNone.

unsigned llvm::AMDGPUSubtarget::getWavefrontSize ( ) const
inline
std::pair< unsigned, unsigned > AMDGPUSubtarget::getWavesPerEU ( const Function &  F) const
Returns
Subtarget's default pair of minimum/maximum number of waves per execution unit for function F, or minimum/maximum number of waves per execution unit explicitly requested using "amdgpu-waves-per-eu" attribute attached to function F.
Subtarget's default values if explicitly requested values cannot be converted to integer, violate subtarget's specifications, or are not compatible with minimum/maximum number of waves limited by flat work group size, register usage, and/or lds usage.

Definition at line 238 of file AMDGPUSubtarget.cpp.

References llvm::Default, getFlatWorkGroupSizes(), llvm::AMDGPU::getIntegerPairAttribute(), getMaxWavesPerEU(), getMinWavesPerEU(), and llvm::Function::hasFnAttribute().

Referenced by ImplicitBufferPtr().

unsigned llvm::AMDGPUSubtarget::getWavesPerWorkGroup ( unsigned  FlatWorkGroupSize) const
inline
Returns
Number of waves per work group supported by the subtarget and limited by given FlatWorkGroupSize.

Definition at line 556 of file AMDGPUSubtarget.h.

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

bool llvm::AMDGPUSubtarget::has16BitInsts ( ) const
inline
bool llvm::AMDGPUSubtarget::hasAddr64 ( ) const
inline

Definition at line 257 of file AMDGPUSubtarget.h.

References getGeneration(), and VOLCANIC_ISLANDS.

Referenced by initializeSubtargetDependencies().

bool llvm::AMDGPUSubtarget::hasApertureRegs ( ) const
inline

Definition at line 394 of file AMDGPUSubtarget.h.

References HasApertureRegs.

bool llvm::AMDGPUSubtarget::hasAutoWaitcntBeforeBarrier ( ) const
inline

Definition at line 382 of file AMDGPUSubtarget.h.

References AutoWaitcntBeforeBarrier.

bool llvm::AMDGPUSubtarget::hasBCNT ( unsigned  Size) const
inline
bool llvm::AMDGPUSubtarget::hasBFE ( ) const
inline
bool llvm::AMDGPUSubtarget::hasBFI ( ) const
inline

Definition at line 265 of file AMDGPUSubtarget.h.

References EVERGREEN, and getGeneration().

Referenced by llvm::AMDGPUTargetLowering::AMDGPUTargetLowering().

bool llvm::AMDGPUSubtarget::hasBFM ( ) const
inline

Definition at line 269 of file AMDGPUSubtarget.h.

References hasBFE().

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

Definition at line 312 of file AMDGPUSubtarget.h.

References EVERGREEN, and getGeneration().

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

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

Definition at line 308 of file AMDGPUSubtarget.h.

References EVERGREEN, and getGeneration().

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

bool llvm::AMDGPUSubtarget::hasCaymanISA ( ) const
inline
bool llvm::AMDGPUSubtarget::hasFastFMAF32 ( ) const
inline

Definition at line 249 of file AMDGPUSubtarget.h.

References FastFMAF32.

Referenced by llvm::SITargetLowering::isFMAFasterThanFMulAndFAdd().

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

Definition at line 296 of file AMDGPUSubtarget.h.

References EVERGREEN, and getGeneration().

Referenced by llvm::AMDGPUTargetLowering::AMDGPUTargetLowering().

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

Definition at line 292 of file AMDGPUSubtarget.h.

References EVERGREEN, and getGeneration().

Referenced by llvm::AMDGPUTargetLowering::AMDGPUTargetLowering().

bool llvm::AMDGPUSubtarget::hasFlatAddressSpace ( ) const
inline

Definition at line 406 of file AMDGPUSubtarget.h.

References FlatAddressSpace.

Referenced by llvm::AMDGPUTTIImpl::getFlatAddressSpace(), and ImplicitBufferPtr().

bool llvm::AMDGPUSubtarget::hasFlatGlobalInsts ( ) const
inline

Definition at line 414 of file AMDGPUSubtarget.h.

References FlatGlobalInsts.

bool llvm::AMDGPUSubtarget::hasFlatInstOffsets ( ) const
inline

Definition at line 410 of file AMDGPUSubtarget.h.

References FlatInstOffsets.

bool llvm::AMDGPUSubtarget::hasFlatScratchInsts ( ) const
inline

Definition at line 418 of file AMDGPUSubtarget.h.

References FlatScratchInsts.

bool llvm::AMDGPUSubtarget::hasFminFmaxLegacy ( ) const
inline
bool llvm::AMDGPUSubtarget::hasFP16Denormals ( ) const
inline
bool llvm::AMDGPUSubtarget::hasFP32Denormals ( ) const
inline
bool llvm::AMDGPUSubtarget::hasFP64Denormals ( ) const
inline

Definition at line 358 of file AMDGPUSubtarget.h.

References FP64FP16Denormals.

Referenced by getFPMode().

bool llvm::AMDGPUSubtarget::hasFPExceptions ( ) const
inline

Definition at line 366 of file AMDGPUSubtarget.h.

References FPExceptions.

Referenced by llvm::AMDGPUTargetLowering::AMDGPUTargetLowering().

bool llvm::AMDGPUSubtarget::hasHalfRate64Ops ( ) const
inline

Definition at line 253 of file AMDGPUSubtarget.h.

References HalfRate64Ops.

bool llvm::AMDGPUSubtarget::hasHWFP64 ( ) const
inline

Definition at line 245 of file AMDGPUSubtarget.h.

References FP64.

bool llvm::AMDGPUSubtarget::hasMed3_16 ( ) const
inline

Definition at line 300 of file AMDGPUSubtarget.h.

References getGeneration(), and GFX9.

bool llvm::AMDGPUSubtarget::hasMin3Max3_16 ( ) const
inline

Definition at line 304 of file AMDGPUSubtarget.h.

References getGeneration(), and GFX9.

bool llvm::AMDGPUSubtarget::hasMulI24 ( ) const
inline
bool llvm::AMDGPUSubtarget::hasMulU24 ( ) const
inline
bool llvm::AMDGPUSubtarget::hasSDWA ( ) const
inline
bool llvm::AMDGPUSubtarget::hasSDWAMac ( ) const
inline

Definition at line 455 of file AMDGPUSubtarget.h.

References HasSDWAMac.

bool llvm::AMDGPUSubtarget::hasSDWAOmod ( ) const
inline

Definition at line 443 of file AMDGPUSubtarget.h.

References HasSDWAOmod.

Referenced by llvm::SIInstrInfo::verifyInstruction().

bool llvm::AMDGPUSubtarget::hasSDWAOutModsVOPC ( ) const
inline

Definition at line 459 of file AMDGPUSubtarget.h.

References HasSDWAOutModsVOPC.

Referenced by llvm::SIInstrInfo::verifyInstruction().

bool llvm::AMDGPUSubtarget::hasSDWAScalar ( ) const
inline

Definition at line 447 of file AMDGPUSubtarget.h.

References HasSDWAScalar.

Referenced by llvm::SIInstrInfo::verifyInstruction().

bool llvm::AMDGPUSubtarget::hasSDWASdst ( ) const
inline

Definition at line 451 of file AMDGPUSubtarget.h.

References HasSDWASdst.

Referenced by llvm::SIInstrInfo::verifyInstruction().

bool llvm::AMDGPUSubtarget::hasUnalignedBufferAccess ( ) const
inline
bool llvm::AMDGPUSubtarget::hasUnalignedScratchAccess ( ) const
inline
bool llvm::AMDGPUSubtarget::hasVOP3PInsts ( ) const
inline
AMDGPUSubtarget & AMDGPUSubtarget::initializeSubtargetDependencies ( const Triple &  TT,
StringRef  GPU,
StringRef  FS 
)
bool llvm::AMDGPUSubtarget::isAmdCodeObjectV2 ( const MachineFunction &  MF) const
inline
bool llvm::AMDGPUSubtarget::isAmdHsaOS ( ) const
inline
bool llvm::AMDGPUSubtarget::isMesa3DOS ( ) const
inline

Definition at line 204 of file AMDGPUSubtarget.h.

References llvm::Triple::getOS(), llvm::Triple::Mesa3D, and TargetTriple.

Referenced by isMesaGfxShader(), and isMesaKernel().

bool llvm::AMDGPUSubtarget::isMesaGfxShader ( const MachineFunction &  MF) const
inline
bool llvm::AMDGPUSubtarget::isMesaKernel ( const MachineFunction &  MF) const
inline
bool llvm::AMDGPUSubtarget::isOpenCLEnv ( ) const
inline
bool llvm::AMDGPUSubtarget::isPromoteAllocaEnabled ( ) const
inline

Definition at line 324 of file AMDGPUSubtarget.h.

References EnablePromoteAlloca.

bool llvm::AMDGPUSubtarget::isTrapHandlerEnabled ( ) const
inline

Definition at line 398 of file AMDGPUSubtarget.h.

References TrapHandler.

bool llvm::AMDGPUSubtarget::isXNACKEnabled ( ) const
inline

Definition at line 402 of file AMDGPUSubtarget.h.

References EnableXNACK.

Referenced by getNumExtraSGPRs(), and llvm::SISubtarget::getReservedNumSGPRs().

bool AMDGPUSubtarget::makeLIDRangeMetadata ( Instruction *  I) const
void llvm::AMDGPUSubtarget::ParseSubtargetFeatures ( StringRef  CPU,
StringRef  FS 
)
void llvm::AMDGPUSubtarget::setScalarizeGlobalBehavior ( bool  b)
inline

Definition at line 496 of file AMDGPUSubtarget.h.

References ScalarizeGlobal.

bool llvm::AMDGPUSubtarget::supportsMinMaxDenormModes ( ) const
inline

Definition at line 362 of file AMDGPUSubtarget.h.

References getGeneration(), and GFX9.

Referenced by isCanonicalized().

bool llvm::AMDGPUSubtarget::unsafeDSOffsetFoldingEnabled ( ) const
inline

Definition at line 328 of file AMDGPUSubtarget.h.

References EnableUnsafeDSOffsetFolding.

bool llvm::AMDGPUSubtarget::useFlatForGlobal ( ) const
inline

Definition at line 378 of file AMDGPUSubtarget.h.

References FlatForGlobal.

Member Data Documentation

AMDGPUAS llvm::AMDGPUSubtarget::AS
protected

Definition at line 174 of file AMDGPUSubtarget.h.

Referenced by AMDGPUSubtarget(), and getAMDGPUAS().

bool llvm::AMDGPUSubtarget::AutoWaitcntBeforeBarrier
protected

Definition at line 118 of file AMDGPUSubtarget.h.

Referenced by hasAutoWaitcntBeforeBarrier().

bool llvm::AMDGPUSubtarget::CaymanISA
protected

Definition at line 163 of file AMDGPUSubtarget.h.

Referenced by hasCaymanISA().

bool llvm::AMDGPUSubtarget::CFALUBug
protected

Definition at line 164 of file AMDGPUSubtarget.h.

Referenced by llvm::R600Subtarget::hasCFAluBug().

bool llvm::AMDGPUSubtarget::CIInsts
protected

Definition at line 141 of file AMDGPUSubtarget.h.

bool llvm::AMDGPUSubtarget::DebuggerEmitPrologue
protected

Definition at line 126 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::debuggerEmitPrologue().

bool llvm::AMDGPUSubtarget::DebuggerInsertNops
protected

Definition at line 124 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::debuggerInsertNops().

bool llvm::AMDGPUSubtarget::DebuggerReserveRegs
protected

Definition at line 125 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::debuggerReserveRegs().

bool llvm::AMDGPUSubtarget::DumpCode
protected

Definition at line 134 of file AMDGPUSubtarget.h.

Referenced by dumpCode().

bool llvm::AMDGPUSubtarget::DX10Clamp
protected

Definition at line 116 of file AMDGPUSubtarget.h.

Referenced by enableDX10Clamp().

bool llvm::AMDGPUSubtarget::EnableLoadStoreOpt
protected

Definition at line 131 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::loadStoreOptEnabled().

bool llvm::AMDGPUSubtarget::EnablePromoteAlloca
protected

Definition at line 130 of file AMDGPUSubtarget.h.

Referenced by isPromoteAllocaEnabled().

bool llvm::AMDGPUSubtarget::EnableSIScheduler
protected

Definition at line 133 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::enableSIScheduler().

bool llvm::AMDGPUSubtarget::EnableUnsafeDSOffsetFolding
protected

Definition at line 132 of file AMDGPUSubtarget.h.

Referenced by unsafeDSOffsetFoldingEnabled().

bool llvm::AMDGPUSubtarget::EnableVGPRSpilling
protected

Definition at line 129 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::isVGPRSpillingEnabled().

bool llvm::AMDGPUSubtarget::EnableXNACK
protected

Definition at line 122 of file AMDGPUSubtarget.h.

Referenced by isXNACKEnabled().

bool llvm::AMDGPUSubtarget::FastFMAF32
protected

Definition at line 109 of file AMDGPUSubtarget.h.

Referenced by hasFastFMAF32().

bool llvm::AMDGPUSubtarget::FeatureDisable
protected

Definition at line 170 of file AMDGPUSubtarget.h.

bool llvm::AMDGPUSubtarget::FlatAddressSpace
protected

Definition at line 158 of file AMDGPUSubtarget.h.

Referenced by hasFlatAddressSpace().

bool llvm::AMDGPUSubtarget::FlatForGlobal
protected

Definition at line 117 of file AMDGPUSubtarget.h.

Referenced by initializeSubtargetDependencies(), and useFlatForGlobal().

bool llvm::AMDGPUSubtarget::FlatGlobalInsts
protected

Definition at line 160 of file AMDGPUSubtarget.h.

Referenced by hasFlatGlobalInsts().

bool llvm::AMDGPUSubtarget::FlatInstOffsets
protected

Definition at line 159 of file AMDGPUSubtarget.h.

Referenced by hasFlatInstOffsets().

bool llvm::AMDGPUSubtarget::FlatScratchInsts
protected

Definition at line 161 of file AMDGPUSubtarget.h.

Referenced by hasFlatScratchInsts().

bool llvm::AMDGPUSubtarget::FP32Denormals
protected

Definition at line 113 of file AMDGPUSubtarget.h.

Referenced by hasFP32Denormals(), and initializeSubtargetDependencies().

bool llvm::AMDGPUSubtarget::FP64
protected

Definition at line 137 of file AMDGPUSubtarget.h.

Referenced by hasHWFP64().

bool llvm::AMDGPUSubtarget::FP64FP16Denormals
protected
bool llvm::AMDGPUSubtarget::FPExceptions
protected

Definition at line 115 of file AMDGPUSubtarget.h.

Referenced by hasFPExceptions().

bool llvm::AMDGPUSubtarget::GCN1Encoding
protected

Definition at line 139 of file AMDGPUSubtarget.h.

bool llvm::AMDGPUSubtarget::GCN3Encoding
protected

Definition at line 140 of file AMDGPUSubtarget.h.

Generation llvm::AMDGPUSubtarget::Gen
protected

Definition at line 101 of file AMDGPUSubtarget.h.

Referenced by getGeneration().

bool llvm::AMDGPUSubtarget::GFX9Insts
protected

Definition at line 142 of file AMDGPUSubtarget.h.

bool llvm::AMDGPUSubtarget::HalfRate64Ops
protected

Definition at line 110 of file AMDGPUSubtarget.h.

Referenced by hasHalfRate64Ops().

bool llvm::AMDGPUSubtarget::Has16BitInsts
protected

Definition at line 145 of file AMDGPUSubtarget.h.

Referenced by has16BitInsts().

bool llvm::AMDGPUSubtarget::HasApertureRegs
protected

Definition at line 121 of file AMDGPUSubtarget.h.

Referenced by hasApertureRegs().

bool llvm::AMDGPUSubtarget::HasDPP
protected

Definition at line 157 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::hasDPP().

bool llvm::AMDGPUSubtarget::HasInv2PiInlineImm
protected

Definition at line 150 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::hasInv2PiInlineImm().

bool llvm::AMDGPUSubtarget::HasMovrel
protected

Definition at line 147 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::hasMovrel().

bool llvm::AMDGPUSubtarget::HasScalarStores
protected

Definition at line 149 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::hasScalarStores().

bool llvm::AMDGPUSubtarget::HasSDWA
protected

Definition at line 151 of file AMDGPUSubtarget.h.

Referenced by hasSDWA().

bool llvm::AMDGPUSubtarget::HasSDWAMac
protected

Definition at line 155 of file AMDGPUSubtarget.h.

Referenced by hasSDWAMac().

bool llvm::AMDGPUSubtarget::HasSDWAOmod
protected

Definition at line 152 of file AMDGPUSubtarget.h.

Referenced by hasSDWAOmod().

bool llvm::AMDGPUSubtarget::HasSDWAOutModsVOPC
protected

Definition at line 156 of file AMDGPUSubtarget.h.

Referenced by hasSDWAOutModsVOPC().

bool llvm::AMDGPUSubtarget::HasSDWAScalar
protected

Definition at line 153 of file AMDGPUSubtarget.h.

Referenced by hasSDWAScalar().

bool llvm::AMDGPUSubtarget::HasSDWASdst
protected

Definition at line 154 of file AMDGPUSubtarget.h.

Referenced by hasSDWASdst().

bool llvm::AMDGPUSubtarget::HasSMemRealTime
protected

Definition at line 144 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::hasSMemRealTime().

bool llvm::AMDGPUSubtarget::HasVertexCache
protected

Definition at line 165 of file AMDGPUSubtarget.h.

Referenced by llvm::R600Subtarget::hasVertexCache().

bool llvm::AMDGPUSubtarget::HasVGPRIndexMode
protected

Definition at line 148 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::hasVGPRIndexMode().

bool llvm::AMDGPUSubtarget::HasVOP3PInsts
protected

Definition at line 146 of file AMDGPUSubtarget.h.

Referenced by hasVOP3PInsts().

InstrItineraryData llvm::AMDGPUSubtarget::InstrItins
protected

Definition at line 172 of file AMDGPUSubtarget.h.

Referenced by getInstrItineraryData().

unsigned llvm::AMDGPUSubtarget::IsaVersion
protected

Definition at line 102 of file AMDGPUSubtarget.h.

bool llvm::AMDGPUSubtarget::IsGCN
protected

Definition at line 138 of file AMDGPUSubtarget.h.

int llvm::AMDGPUSubtarget::LDSBankCount
protected

Definition at line 105 of file AMDGPUSubtarget.h.

Referenced by getLDSBankCount().

int llvm::AMDGPUSubtarget::LocalMemorySize
protected

Definition at line 104 of file AMDGPUSubtarget.h.

Referenced by getLocalMemorySize().

unsigned llvm::AMDGPUSubtarget::MaxPrivateElementSize
protected

Definition at line 106 of file AMDGPUSubtarget.h.

Referenced by getMaxPrivateElementSize(), and initializeSubtargetDependencies().

bool llvm::AMDGPUSubtarget::R600ALUInst
protected

Definition at line 162 of file AMDGPUSubtarget.h.

bool llvm::AMDGPUSubtarget::ScalarizeGlobal
protected

Definition at line 167 of file AMDGPUSubtarget.h.

Referenced by getScalarizeGlobalBehavior(), and setScalarizeGlobalBehavior().

bool llvm::AMDGPUSubtarget::SGPRInitBug
protected

Definition at line 143 of file AMDGPUSubtarget.h.

Referenced by llvm::SISubtarget::hasSGPRInitBug().

Triple llvm::AMDGPUSubtarget::TargetTriple
protected

Definition at line 100 of file AMDGPUSubtarget.h.

Referenced by isAmdHsaOS(), isMesa3DOS(), and isOpenCLEnv().

short llvm::AMDGPUSubtarget::TexVTXClauseSize
protected

Definition at line 166 of file AMDGPUSubtarget.h.

Referenced by llvm::R600Subtarget::getTexVTXClauseSize().

bool llvm::AMDGPUSubtarget::TrapHandler
protected

Definition at line 123 of file AMDGPUSubtarget.h.

Referenced by isTrapHandlerEnabled().

SelectionDAGTargetInfo llvm::AMDGPUSubtarget::TSInfo
protected

Definition at line 173 of file AMDGPUSubtarget.h.

Referenced by getSelectionDAGInfo().

bool llvm::AMDGPUSubtarget::UnalignedBufferAccess
protected

Definition at line 120 of file AMDGPUSubtarget.h.

Referenced by hasUnalignedBufferAccess().

bool llvm::AMDGPUSubtarget::UnalignedScratchAccess
protected

Definition at line 119 of file AMDGPUSubtarget.h.

Referenced by hasUnalignedScratchAccess().

unsigned llvm::AMDGPUSubtarget::WavefrontSize
protected

Definition at line 103 of file AMDGPUSubtarget.h.

Referenced by getWavefrontSize().


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