20 #ifndef LLVM_LIB_TARGET_MIPS_MIPSOPTIONRECORD_H
21 #define LLVM_LIB_TARGET_MIPS_MIPSOPTIONRECORD_H
30 class MipsELFStreamer;
42 : Streamer(S), Context(Context) {
44 ri_cprmask[0] = ri_cprmask[1] = ri_cprmask[2] = ri_cprmask[3] = 0;
48 GPR32RegClass = &(TRI->
getRegClass(Mips::GPR32RegClassID));
49 GPR64RegClass = &(TRI->
getRegClass(Mips::GPR64RegClassID));
50 FGR32RegClass = &(TRI->
getRegClass(Mips::FGR32RegClassID));
51 FGR64RegClass = &(TRI->
getRegClass(Mips::FGR64RegClassID));
52 AFGR64RegClass = &(TRI->
getRegClass(Mips::AFGR64RegClassID));
53 MSA128BRegClass = &(TRI->
getRegClass(Mips::MSA128BRegClassID));
54 COP0RegClass = &(TRI->
getRegClass(Mips::COP0RegClassID));
55 COP2RegClass = &(TRI->
getRegClass(Mips::COP2RegClassID));
56 COP3RegClass = &(TRI->
getRegClass(Mips::COP3RegClassID));
83 #endif // LLVM_LIB_TARGET_MIPS_MIPSOPTIONRECORD_H
Reg
All possible values of the reg field in the ModR/M byte.
void EmitMipsOptionRecord() override
Context object for machine code objects.
virtual void EmitMipsOptionRecord()=0
void SetPhysRegUsed(unsigned Reg, const MCRegisterInfo *MCRegInfo)
MCRegisterClass - Base class of TargetRegisterClass.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
const MCRegisterClass & getRegClass(unsigned i) const
Returns the register class associated with the enumeration value.
virtual ~MipsOptionRecord()=default
const MCRegisterInfo * getRegisterInfo() const
~MipsRegInfoRecord() override=default
MipsRegInfoRecord(MipsELFStreamer *S, MCContext &Context)