LLVM  5.0.0
Public Types | Public Member Functions | Friends | List of all members
llvm::GCNRegPressure Struct Reference

#include "Target/AMDGPU/GCNRegPressure.h"

Public Types

enum  RegKind {
  SGPR32, SGPR_TUPLE, VGPR32, VGPR_TUPLE,
  TOTAL_KINDS
}
 

Public Member Functions

 GCNRegPressure ()
 
bool empty () const
 
void clear ()
 
unsigned getSGPRNum () const
 
unsigned getVGPRNum () const
 
unsigned getVGPRTuplesWeight () const
 
unsigned getSGPRTuplesWeight () const
 
unsigned getOccupancy (const SISubtarget &ST) const
 
void inc (unsigned Reg, LaneBitmask PrevMask, LaneBitmask NewMask, const MachineRegisterInfo &MRI)
 
bool higherOccupancy (const SISubtarget &ST, const GCNRegPressure &O) const
 
bool less (const SISubtarget &ST, const GCNRegPressure &O, unsigned MaxOccupancy=std::numeric_limits< unsigned >::max()) const
 
bool operator== (const GCNRegPressure &O) const
 
bool operator!= (const GCNRegPressure &O) const
 
void print (raw_ostream &OS, const SISubtarget *ST=nullptr) const
 
void dump () const
 

Friends

GCNRegPressure max (const GCNRegPressure &P1, const GCNRegPressure &P2)
 

Detailed Description

Definition at line 23 of file GCNRegPressure.h.

Member Enumeration Documentation

Enumerator
SGPR32 
SGPR_TUPLE 
VGPR32 
VGPR_TUPLE 
TOTAL_KINDS 

Definition at line 24 of file GCNRegPressure.h.

Constructor & Destructor Documentation

llvm::GCNRegPressure::GCNRegPressure ( )
inline

Definition at line 32 of file GCNRegPressure.h.

References clear().

Member Function Documentation

void llvm::GCNRegPressure::clear ( )
inline
void llvm::GCNRegPressure::dump ( ) const
inline

Definition at line 72 of file GCNRegPressure.h.

References llvm::dbgs(), and print().

bool llvm::GCNRegPressure::empty ( ) const
inline

Definition at line 36 of file GCNRegPressure.h.

References getSGPRNum(), and getVGPRNum().

Referenced by llvm::GCNIterativeScheduler::scheduleRegion().

unsigned llvm::GCNRegPressure::getOccupancy ( const SISubtarget &  ST) const
inline
unsigned llvm::GCNRegPressure::getSGPRNum ( ) const
inline

Definition at line 40 of file GCNRegPressure.h.

References SGPR32.

Referenced by empty(), getOccupancy(), less(), print(), and llvm::GCNScheduleDAGMILive::schedule().

unsigned llvm::GCNRegPressure::getSGPRTuplesWeight ( ) const
inline

Definition at line 44 of file GCNRegPressure.h.

References SGPR_TUPLE.

Referenced by less(), and print().

unsigned llvm::GCNRegPressure::getVGPRNum ( ) const
inline

Definition at line 41 of file GCNRegPressure.h.

References VGPR32.

Referenced by empty(), getOccupancy(), less(), print(), and llvm::GCNScheduleDAGMILive::schedule().

unsigned llvm::GCNRegPressure::getVGPRTuplesWeight ( ) const
inline

Definition at line 43 of file GCNRegPressure.h.

References VGPR_TUPLE.

Referenced by less(), and print().

bool llvm::GCNRegPressure::higherOccupancy ( const SISubtarget &  ST,
const GCNRegPressure &  O 
) const
inline

Definition at line 56 of file GCNRegPressure.h.

References getOccupancy().

void GCNRegPressure::inc ( unsigned  Reg,
LaneBitmask  PrevMask,
LaneBitmask  NewMask,
const MachineRegisterInfo &  MRI 
)
bool GCNRegPressure::less ( const SISubtarget &  ST,
const GCNRegPressure &  O,
unsigned  MaxOccupancy = std::numeric_limits<unsigned>::max() 
) const
bool llvm::GCNRegPressure::operator!= ( const GCNRegPressure &  O) const
inline

Definition at line 67 of file GCNRegPressure.h.

bool llvm::GCNRegPressure::operator== ( const GCNRegPressure &  O) const
inline

Definition at line 63 of file GCNRegPressure.h.

References llvm::lltok::equal, and TOTAL_KINDS.

LLVM_DUMP_METHOD void GCNRegPressure::print ( raw_ostream &  OS,
const SISubtarget *  ST = nullptr 
) const

Friends And Related Function Documentation

GCNRegPressure max ( const GCNRegPressure &  P1,
const GCNRegPressure &  P2 
)
friend

Definition at line 83 of file GCNRegPressure.h.


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