Go to the documentation of this file.
21 #define GET_TARGET_REGBANK_IMPL
22 #include "M68kGenRegisterBank.inc"
69 auto Opc =
MI.getOpcode();
77 using namespace TargetOpcode;
79 unsigned NumOperands =
MI.getNumOperands();
This is an optimization pass for GlobalISel generic memory operations.
const InstructionMapping & getInstrMappingImpl(const MachineInstr &MI) const
Try to get the mapping of MI.
bool isPreISelGenericOpcode(unsigned Opcode)
Check whether the given Opcode is a generic opcode that is not supposed to appear after ISel.
const RegisterBank & getRegBankFromRegClass(const TargetRegisterClass &RC, LLT) const override
Get a register bank that covers RC.
RegisterBank & getRegBank(unsigned ID)
Get the register bank identified by ID.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
bool isValid() const
Check whether this object is valid.
unsigned const TargetRegisterInfo * TRI
M68kRegisterBankInfo(const TargetRegisterInfo &TRI)
This class implements the register bank concept.
Helper struct that represents how a value is partially mapped into a register.
const InstructionMapping & getInstrMapping(const MachineInstr &MI) const override
Get the mapping of the different operands of MI on the register bank.
Representation of each machine instruction.
Helper class that represents how the value of an instruction may be mapped and what is the related co...
static const unsigned DefaultMappingID
Identifier used when the related instruction mapping instance is generated by target independent code...
const ValueMapping * getOperandsMapping(Iterator Begin, Iterator End) const
Get the uniquely generated array of ValueMapping for the elements of between Begin and End.
const InstructionMapping & getInstructionMapping(unsigned ID, unsigned Cost, const ValueMapping *OperandsMapping, unsigned NumOperands) const
Method to get a uniquely generated InstructionMapping.
Helper struct that represents how a value is mapped through different register banks.
RegisterBankInfo::PartialMapping PartMappings[]
const InstructionMapping & getInvalidInstructionMapping() const
Method to get a uniquely generated invalid InstructionMapping.
RegisterBankInfo::ValueMapping ValueMappings[]