13 #ifndef LLVM_LIB_TARGET_MIPS_MIPSREGISTERBANKINFO_H 14 #define LLVM_LIB_TARGET_MIPS_MIPSREGISTERBANKINFO_H 18 #define GET_REGBANK_DECLARATIONS 19 #include "MipsGenRegisterBank.inc" 23 class TargetRegisterInfo;
26 #define GET_TARGET_REGBANK_CLASS 27 #include "MipsGenRegisterBank.inc" 78 class AmbiguousRegDefUseContainer {
105 class TypeInfoForMF {
107 std::string MFName =
"";
129 void setTypesAccordingToPhysicalRegister(
const MachineInstr *MI,
144 const InstType &getRecordedTypeForInstr(
const MachineInstr *MI)
const {
145 assert(wasVisited(MI) &&
"Instruction was not visited!");
146 return Types.
find(MI)->getSecond();
150 void changeRecordedTypeForInstr(
const MachineInstr *MI, InstType InstTy) {
151 assert(wasVisited(MI) &&
"Instruction was not visited!");
152 Types.
find(MI)->getSecond() = InstTy;
158 assert(WaitingQueues.
count(MI) &&
"Instruction was not visited!");
159 return WaitingQueues.
find(MI)->getSecond();
165 assert(WaitingQueues.
count(MI) &&
"Instruction was not visited!");
166 WaitingQueues.
find(MI)->getSecond().push_back(WaitingForMI);
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...
Helper class used to get/create the virtual registers that will be used to replace the MachineOperand...
unsigned const TargetRegisterInfo * TRI
Holds all the information related to register banks.
iterator find(const_arg_type_t< KeyT > Val)
unsigned const MachineRegisterInfo * MRI
virtual const InstructionMapping & getInstrMapping(const MachineInstr &MI) const
Get the mapping of the different operands of MI on the register bank.
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
std::pair< iterator, bool > try_emplace(KeyT &&Key, Ts &&... Args)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
This class provides the information for the target register banks.
This class implements the register bank concept.
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
Representation of each machine instruction.
virtual void applyMappingImpl(const OperandsMapper &OpdMapper) const
See applyMapping.
size_type count(const_arg_type_t< KeyT > Val) const
Return 1 if the specified key is in the map, 0 otherwise.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
virtual const RegisterBank & getRegBankFromRegClass(const TargetRegisterClass &RC, LLT Ty) const
Get a register bank that covers RC.
StringRef - Represent a constant reference to a string, i.e.
Wrapper class representing virtual and physical registers.