Rizin
unix-like reverse engineering framework and cli tools
MCRegisterInfo Struct Reference

#include <MCRegisterInfo.h>

Public Attributes

const MCRegisterDescDesc
 
unsigned NumRegs
 
unsigned RAReg
 
unsigned PCReg
 
const MCRegisterClassClasses
 
unsigned NumClasses
 
unsigned NumRegUnits
 
uint16_t(* RegUnitRoots )[2]
 
const MCPhysRegDiffLists
 
const char * RegStrings
 
const uint16_tSubRegIndices
 
unsigned NumSubRegIndices
 
const uint16_tRegEncodingTable
 

Detailed Description

MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc objects that represent all of the machine registers that the target has. As such, we simply have to track a pointer to this array so that we can turn register number into a register descriptor.

Note this class is designed to be a base class of TargetRegisterInfo, which is the interface used by codegen. However, specific targets should never specialize this class. MCRegisterInfo should only contain getters to access TableGen generated physical register data. It must not be extended with virtual methods.

Definition at line 78 of file MCRegisterInfo.h.

Member Data Documentation

◆ Classes

const MCRegisterClass* MCRegisterInfo::Classes

◆ Desc

◆ DiffLists

◆ NumClasses

unsigned MCRegisterInfo::NumClasses

◆ NumRegs

unsigned MCRegisterInfo::NumRegs

◆ NumRegUnits

unsigned MCRegisterInfo::NumRegUnits

Definition at line 85 of file MCRegisterInfo.h.

Referenced by MCRegisterInfo_InitMCRegisterInfo().

◆ NumSubRegIndices

unsigned MCRegisterInfo::NumSubRegIndices

Definition at line 91 of file MCRegisterInfo.h.

Referenced by MCRegisterInfo_InitMCRegisterInfo().

◆ PCReg

unsigned MCRegisterInfo::PCReg

Definition at line 82 of file MCRegisterInfo.h.

Referenced by MCRegisterInfo_InitMCRegisterInfo().

◆ RAReg

unsigned MCRegisterInfo::RAReg

Definition at line 81 of file MCRegisterInfo.h.

Referenced by MCRegisterInfo_InitMCRegisterInfo().

◆ RegEncodingTable

const uint16_t* MCRegisterInfo::RegEncodingTable

Definition at line 92 of file MCRegisterInfo.h.

Referenced by MCRegisterInfo_InitMCRegisterInfo().

◆ RegStrings

const char* MCRegisterInfo::RegStrings

Definition at line 88 of file MCRegisterInfo.h.

Referenced by MCRegisterInfo_InitMCRegisterInfo().

◆ RegUnitRoots

uint16_t(* MCRegisterInfo::RegUnitRoots)[2]

Definition at line 86 of file MCRegisterInfo.h.

Referenced by MCRegisterInfo_InitMCRegisterInfo().

◆ SubRegIndices

const uint16_t* MCRegisterInfo::SubRegIndices

Definition at line 89 of file MCRegisterInfo.h.

Referenced by MCRegisterInfo_getSubReg(), and MCRegisterInfo_InitMCRegisterInfo().


The documentation for this struct was generated from the following file: