LLVM 24.0.0git
llvm::PISARegisterInfo Class Reference

#include "Target/PISA/PISARegisterInfo.h"

Inheritance diagram for llvm::PISARegisterInfo:
[legend]

Public Member Functions

 PISARegisterInfo ()
const MCPhysReg * getCalleeSavedRegs (const MachineFunction *MF) const override
BitVector getReservedRegs (const MachineFunction &MF) const override
bool eliminateFrameIndex (MachineBasicBlock::iterator MI, int SPAdj, unsigned FIOperandNum, RegScavenger *RS=nullptr) const override
Register getFrameRegister (const MachineFunction &MF) const override
const TargetRegisterClass * getRegClassFromLLT (LLT Ty) const
unsigned getNumEltsFromRegClass (const TargetRegisterClass *RC) const
unsigned getBitSizeFromRegClass (const TargetRegisterClass *RC) const
const TargetRegisterClass * getVectorRegClass (unsigned NumElts, unsigned BitSize) const
unsigned getSubRegIdx (unsigned Size, unsigned Elt) const
unsigned getCompositeSubRegIdx (unsigned Size, unsigned Base, unsigned Count) const
PISA::Swizzle getSwizzle (unsigned SubReg) const
const char * getSwizzleName (unsigned SubReg) const
bool isSpecialReg (Register Reg) const
bool shouldCoalesce (MachineInstr *MI, const TargetRegisterClass *SrcRC, unsigned SubReg, const TargetRegisterClass *DstRC, unsigned DstSubReg, const TargetRegisterClass *NewRC, LiveIntervals &LIS) const override
const TargetRegisterClass * getMatchingSuperRegClass (const TargetRegisterClass *A, const TargetRegisterClass *B, unsigned SubIdx) const override

Static Public Member Functions

static bool isSelectorSwizzle (PISA::Swizzle Swizzle)

Detailed Description

Definition at line 27 of file PISARegisterInfo.h.

Constructor & Destructor Documentation

◆ PISARegisterInfo()

Member Function Documentation

◆ eliminateFrameIndex()

bool llvm::PISARegisterInfo::eliminateFrameIndex ( MachineBasicBlock::iterator MI,
int SPAdj,
unsigned FIOperandNum,
RegScavenger * RS = nullptr ) const
inlineoverride

Definition at line 32 of file PISARegisterInfo.h.

References llvm_unreachable, and MI.

◆ getBitSizeFromRegClass()

unsigned PISARegisterInfo::getBitSizeFromRegClass ( const TargetRegisterClass * RC) const

Definition at line 266 of file PISARegisterInfo.cpp.

References assert(), and I.

◆ getCalleeSavedRegs()

const MCPhysReg * PISARegisterInfo::getCalleeSavedRegs ( const MachineFunction * MF) const
override

Definition at line 145 of file PISARegisterInfo.cpp.

References CalleeSavedReg.

◆ getCompositeSubRegIdx()

unsigned PISARegisterInfo::getCompositeSubRegIdx ( unsigned Size,
unsigned Base,
unsigned Count ) const

Definition at line 180 of file PISARegisterInfo.cpp.

References llvm::sampleprof::Base, llvm::Count, llvm::Low, and llvm::Size.

◆ getFrameRegister()

Register llvm::PISARegisterInfo::getFrameRegister ( const MachineFunction & MF) const
inlineoverride

Definition at line 37 of file PISARegisterInfo.h.

References Register.

◆ getMatchingSuperRegClass()

const TargetRegisterClass * PISARegisterInfo::getMatchingSuperRegClass ( const TargetRegisterClass * A,
const TargetRegisterClass * B,
unsigned SubIdx ) const
override

Definition at line 290 of file PISARegisterInfo.cpp.

References A(), and B().

◆ getNumEltsFromRegClass()

unsigned PISARegisterInfo::getNumEltsFromRegClass ( const TargetRegisterClass * RC) const

Definition at line 256 of file PISARegisterInfo.cpp.

References assert(), and I.

◆ getRegClassFromLLT()

const TargetRegisterClass * PISARegisterInfo::getRegClassFromLLT ( LLT Ty) const

Definition at line 228 of file PISARegisterInfo.cpp.

References getVectorRegClass(), and llvm_unreachable.

◆ getReservedRegs()

BitVector PISARegisterInfo::getReservedRegs ( const MachineFunction & MF) const
override

Definition at line 127 of file PISARegisterInfo.cpp.

References llvm::Reserved.

◆ getSubRegIdx()

unsigned PISARegisterInfo::getSubRegIdx ( unsigned Size,
unsigned Elt ) const

Definition at line 157 of file PISARegisterInfo.cpp.

References assert(), llvm_unreachable, and llvm::Size.

◆ getSwizzle()

◆ getSwizzleName()

◆ getVectorRegClass()

const TargetRegisterClass * PISARegisterInfo::getVectorRegClass ( unsigned NumElts,
unsigned BitSize ) const

Definition at line 276 of file PISARegisterInfo.cpp.

References assert(), I, and P.

Referenced by getRegClassFromLLT().

◆ isSelectorSwizzle()

bool PISARegisterInfo::isSelectorSwizzle ( PISA::Swizzle Swizzle)
static

Definition at line 216 of file PISARegisterInfo.cpp.

References llvm::PISA::W, llvm::PISA::X, llvm::PISA::Y, and llvm::PISA::Z.

◆ isSpecialReg()

bool PISARegisterInfo::isSpecialReg ( Register Reg) const

Definition at line 285 of file PISARegisterInfo.cpp.

◆ shouldCoalesce()

bool PISARegisterInfo::shouldCoalesce ( MachineInstr * MI,
const TargetRegisterClass * SrcRC,
unsigned SubReg,
const TargetRegisterClass * DstRC,
unsigned DstSubReg,
const TargetRegisterClass * NewRC,
LiveIntervals & LIS ) const
override

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