LLVM  7.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
llvm::AMDGPURegisterInfo Struct Reference

#include "Target/AMDGPU/AMDGPURegisterInfo.h"

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

Public Member Functions

 AMDGPURegisterInfo ()
 
bool enableMultipleCopyHints () const override
 
void reserveRegisterTuples (BitVector &, unsigned Reg) const
 

Static Public Member Functions

static unsigned getSubRegFromChannel (unsigned Channel)
 

Detailed Description

Definition at line 27 of file AMDGPURegisterInfo.h.

Constructor & Destructor Documentation

◆ AMDGPURegisterInfo()

AMDGPURegisterInfo::AMDGPURegisterInfo ( )

Definition at line 23 of file AMDGPURegisterInfo.cpp.

Member Function Documentation

◆ enableMultipleCopyHints()

bool llvm::AMDGPURegisterInfo::enableMultipleCopyHints ( ) const
inlineoverride

Definition at line 30 of file AMDGPURegisterInfo.h.

References getSubRegFromChannel(), Reg, and reserveRegisterTuples().

◆ getSubRegFromChannel()

unsigned AMDGPURegisterInfo::getSubRegFromChannel ( unsigned  Channel)
static
Returns
the sub reg enum value for the given Channel (e.g. getSubRegFromChannel(0) -> AMDGPU::sub0)

Definition at line 30 of file AMDGPURegisterInfo.cpp.

References llvm::array_lengthof(), and assert().

Referenced by buildMUBUFOffsetLoadStore(), llvm::R600InstrInfo::copyPhysReg(), llvm::createR600ExpandSpecialInstrsPass(), enableMultipleCopyHints(), and getConstantValue().

◆ reserveRegisterTuples()

void AMDGPURegisterInfo::reserveRegisterTuples ( BitVector Reserved,
unsigned  Reg 
) const

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