LLVM  14.0.0git
Classes | Public Member Functions | Protected Attributes | List of all members
AMDGPURegBankCombinerHelper Class Reference
Collaboration diagram for AMDGPURegBankCombinerHelper:
Collaboration graph
[legend]

Classes

struct  Med3MatchInfo
 
struct  MinMaxMedOpc
 

Public Member Functions

 AMDGPURegBankCombinerHelper (MachineIRBuilder &B, CombinerHelper &Helper)
 
bool isVgprRegBank (Register Reg)
 
MinMaxMedOpc getMinMaxPair (unsigned Opc)
 
template<class m_Cst , typename CstTy >
bool matchMed (MachineInstr &MI, MachineRegisterInfo &MRI, MinMaxMedOpc MMMOpc, Register &Val, CstTy &K0, CstTy &K1)
 
bool matchIntMinMaxToMed3 (MachineInstr &MI, Med3MatchInfo &MatchInfo)
 
void applyMed3 (MachineInstr &MI, Med3MatchInfo &MatchInfo)
 

Protected Attributes

MachineIRBuilderB
 
MachineFunctionMF
 
MachineRegisterInfoMRI
 
const RegisterBankInfoRBI
 
const TargetRegisterInfoTRI
 
CombinerHelperHelper
 

Detailed Description

Definition at line 32 of file AMDGPURegBankCombiner.cpp.

Constructor & Destructor Documentation

◆ AMDGPURegBankCombinerHelper()

AMDGPURegBankCombinerHelper::AMDGPURegBankCombinerHelper ( MachineIRBuilder B,
CombinerHelper Helper 
)
inline

Definition at line 42 of file AMDGPURegBankCombiner.cpp.

Member Function Documentation

◆ applyMed3()

void AMDGPURegBankCombinerHelper::applyMed3 ( MachineInstr MI,
Med3MatchInfo MatchInfo 
)

Definition at line 133 of file AMDGPURegBankCombiner.cpp.

References B, MI, and AMDGPURegBankCombinerHelper::Med3MatchInfo::Opc.

◆ getMinMaxPair()

AMDGPURegBankCombinerHelper::MinMaxMedOpc AMDGPURegBankCombinerHelper::getMinMaxPair ( unsigned  Opc)

Definition at line 73 of file AMDGPURegBankCombiner.cpp.

References llvm_unreachable.

◆ isVgprRegBank()

bool AMDGPURegBankCombinerHelper::isVgprRegBank ( Register  Reg)

Definition at line 68 of file AMDGPURegBankCombiner.cpp.

References MRI, Reg, and TRI.

◆ matchIntMinMaxToMed3()

bool AMDGPURegBankCombinerHelper::matchIntMinMaxToMed3 ( MachineInstr MI,
Med3MatchInfo MatchInfo 
)

◆ matchMed()

template<class m_Cst , typename CstTy >
bool AMDGPURegBankCombinerHelper::matchMed ( MachineInstr MI,
MachineRegisterInfo MRI,
MinMaxMedOpc  MMMOpc,
Register Val,
CstTy &  K0,
CstTy &  K1 
)

Member Data Documentation

◆ B

MachineIRBuilder& AMDGPURegBankCombinerHelper::B
protected

Definition at line 34 of file AMDGPURegBankCombiner.cpp.

◆ Helper

CombinerHelper& AMDGPURegBankCombinerHelper::Helper
protected

Definition at line 39 of file AMDGPURegBankCombiner.cpp.

◆ MF

MachineFunction& AMDGPURegBankCombinerHelper::MF
protected

Definition at line 35 of file AMDGPURegBankCombiner.cpp.

◆ MRI

MachineRegisterInfo& AMDGPURegBankCombinerHelper::MRI
protected

Definition at line 36 of file AMDGPURegBankCombiner.cpp.

◆ RBI

const RegisterBankInfo& AMDGPURegBankCombinerHelper::RBI
protected

Definition at line 37 of file AMDGPURegBankCombiner.cpp.

◆ TRI

const TargetRegisterInfo& AMDGPURegBankCombinerHelper::TRI
protected

Definition at line 38 of file AMDGPURegBankCombiner.cpp.


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