13 #ifndef LLVM_LIB_TARGET_X86_X86REGISTERBANKINFO_H 14 #define LLVM_LIB_TARGET_X86_X86REGISTERBANKINFO_H 18 #define GET_REGBANK_DECLARATIONS 19 #include "X86GenRegisterBank.inc" 27 #define GET_TARGET_REGBANK_CLASS 28 #include "X86GenRegisterBank.inc" 29 #define GET_TARGET_REGBANK_INFO_CLASS 30 #include "X86GenRegisterBankInfo.def" InstructionMappings getInstrAlternativeMappings(const MachineInstr &MI) const override
Get the alternative mappings for MI.
static RegisterBankInfo::ValueMapping ValMappings[]
This class represents lattice values for constants.
Helper class that represents how the value of an instruction may be mapped and what is the related co...
X86RegisterBankInfo(const TargetRegisterInfo &TRI)
Helper class used to get/create the virtual registers that will be used to replace the MachineOperand...
unsigned const TargetRegisterInfo * TRI
const RegisterBank & getRegBankFromRegClass(const TargetRegisterClass &RC, LLT) const override
Get a register bank that covers RC.
Holds all the information related to register banks.
This class provides the information for the target register banks.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
static PartialMappingIdx getPartialMappingIdx(const LLT &Ty, bool isFP)
static const RegisterBankInfo::ValueMapping * getValueMapping(PartialMappingIdx Idx, unsigned NumOperands)
unsigned const MachineRegisterInfo * MRI
Helper struct that represents how a value is partially mapped into a register.
void applyMappingImpl(const OperandsMapper &OpdMapper) const override
See RegisterBankInfo::applyMapping.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
static RegisterBankInfo::PartialMapping PartMappings[]
This class implements the register bank concept.
Helper struct that represents how a value is mapped through different register banks.
const InstructionMapping & getInstrMapping(const MachineInstr &MI) const override
Get the mapping of the different operands of MI on the register bank.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
Representation of each machine instruction.