14#ifndef LLVM_LIB_TARGET_PPC_GISEL_PPCREGISTERBANKINFO_H
15#define LLVM_LIB_TARGET_PPC_GISEL_PPCREGISTERBANKINFO_H
21#define GET_REGBANK_DECLARATIONS
22#include "PPCGenRegisterBank.inc"
25class TargetRegisterInfo;
60#define GET_TARGET_REGBANK_CLASS
61#include "PPCGenRegisterBank.inc"
69 LLT Ty)
const override;
79 const unsigned MaxFPRSearchDepth = 2;
84 unsigned Depth = 0)
const;
unsigned const MachineRegisterInfo * MRI
unsigned const TargetRegisterInfo * TRI
Representation of each machine instruction.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
static const RegisterBankInfo::ValueMapping ValMappings[]
static const RegisterBankInfo::ValueMapping * getCopyMapping(unsigned DstBankID, unsigned SrcBankID, unsigned Size)
Get the pointer to the ValueMapping of the operands of a copy instruction from the SrcBankID register...
static const PartialMappingIdx BankIDToCopyMapIdx[]
static const RegisterBankInfo::PartialMapping PartMappings[]
static const RegisterBankInfo::ValueMapping * getValueMapping(PartialMappingIdx RBIdx)
Get the pointer to the ValueMapping representing the RegisterBank at RBIdx.
const RegisterBank & getRegBankFromRegClass(const TargetRegisterClass &RC, LLT Ty) const override
Get a register bank that covers RC.
InstructionMappings getInstrAlternativeMappings(const MachineInstr &MI) const override
Get the alternative mappings for MI.
const InstructionMapping & getInstrMapping(const MachineInstr &MI) const override
Get the mapping of the different operands of MI on the register bank.
Helper class that represents how the value of an instruction may be mapped and what is the related co...
Holds all the information related to register banks.
This class implements the register bank concept.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
This is an optimization pass for GlobalISel generic memory operations.
Helper struct that represents how a value is partially mapped into a register.
Helper struct that represents how a value is mapped through different register banks.