LLVM  3.7.0
Classes | Public Member Functions | Public Attributes | List of all members
llvm::SIMachineFunctionInfo Class Reference

This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which interpolation parameters to load. More...

#include <SIMachineFunctionInfo.h>

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

Classes

struct  SpilledReg
 

Public Member Functions

 SIMachineFunctionInfo (const MachineFunction &MF)
 
SpilledReg getSpilledReg (MachineFunction *MF, unsigned FrameIndex, unsigned SubIdx)
 
bool hasCalculatedTID () const
 
unsigned getTIDReg () const
 
void setTIDReg (unsigned Reg)
 
bool hasSpilledVGPRs () const
 
void setHasSpilledVGPRs (bool Spill=true)
 
unsigned getMaximumWorkGroupSize (const MachineFunction &MF) const
 
- Public Member Functions inherited from llvm::AMDGPUMachineFunction
 AMDGPUMachineFunction (const MachineFunction &MF)
 
unsigned getShaderType () const
 
- Public Member Functions inherited from llvm::MachineFunctionInfo
virtual ~MachineFunctionInfo ()
 

Public Attributes

unsigned PSInputAddr
 
unsigned NumUserSGPRs
 
std::map< unsigned, unsignedLaneVGPRs
 
unsigned LDSWaveSpillSize
 
unsigned ScratchOffsetReg
 
- Public Attributes inherited from llvm::AMDGPUMachineFunction
std::map< const GlobalValue
*, unsigned
LocalMemoryObjects
 A map to keep track of local memory objects and their offsets within the local memory space. More...
 
unsigned LDSSize
 Number of bytes in the LDS that are being used. More...
 
unsigned ABIArgOffset
 Start of implicit kernel args. More...
 
unsigned ScratchSize
 
bool IsKernel
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::MachineFunctionInfo
template<typename Ty >
static Ty * create (BumpPtrAllocator &Allocator, MachineFunction &MF)
 Factory function: default behavior is to call new using the supplied allocator. More...
 

Detailed Description

This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which interpolation parameters to load.

Definition at line 28 of file SIMachineFunctionInfo.h.

Constructor & Destructor Documentation

SIMachineFunctionInfo::SIMachineFunctionInfo ( const MachineFunction MF)

Definition at line 29 of file SIMachineFunctionInfo.cpp.

Member Function Documentation

unsigned SIMachineFunctionInfo::getMaximumWorkGroupSize ( const MachineFunction MF) const
SIMachineFunctionInfo::SpilledReg SIMachineFunctionInfo::getSpilledReg ( MachineFunction MF,
unsigned  FrameIndex,
unsigned  SubIdx 
)
unsigned llvm::SIMachineFunctionInfo::getTIDReg ( ) const
inline

Definition at line 55 of file SIMachineFunctionInfo.h.

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

bool llvm::SIMachineFunctionInfo::hasCalculatedTID ( ) const
inline

Definition at line 54 of file SIMachineFunctionInfo.h.

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

bool llvm::SIMachineFunctionInfo::hasSpilledVGPRs ( ) const
inline

Definition at line 57 of file SIMachineFunctionInfo.h.

void llvm::SIMachineFunctionInfo::setHasSpilledVGPRs ( bool  Spill = true)
inline

Definition at line 58 of file SIMachineFunctionInfo.h.

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

void llvm::SIMachineFunctionInfo::setTIDReg ( unsigned  Reg)
inline

Definition at line 56 of file SIMachineFunctionInfo.h.

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

Member Data Documentation

std::map<unsigned, unsigned> llvm::SIMachineFunctionInfo::LaneVGPRs

Definition at line 51 of file SIMachineFunctionInfo.h.

Referenced by getSpilledReg().

unsigned llvm::SIMachineFunctionInfo::LDSWaveSpillSize

Definition at line 52 of file SIMachineFunctionInfo.h.

unsigned llvm::SIMachineFunctionInfo::NumUserSGPRs
unsigned llvm::SIMachineFunctionInfo::PSInputAddr
unsigned llvm::SIMachineFunctionInfo::ScratchOffsetReg

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