LLVM 24.0.0git
llvm::MIPS_MC Namespace Reference

Functions

const MipsMCOptions & getCLOpts (const MCTargetOptions &Options)
void initLLVMToCVRegMapping (MCRegisterInfo *MRI)
constexpr unsigned encodeCOP0Register (unsigned Reg, unsigned Sel)
 COP0 hardware encodings reserve five bits each for REG and SEL.
constexpr unsigned getCOP0RegNum (unsigned Encoding)
constexpr unsigned getCOP0Sel (unsigned Encoding)
MCRegister getCOP0Register (const MCRegisterInfo &MRI, unsigned Encoding)
StringRef selectMipsCPU (const Triple &TT, StringRef CPU)
 Select the Mips CPU for the given triple and cpu name.
MCRegister matchRegisterName (StringRef Name, const MCRegisterInfo &MRI, unsigned RegClassID, unsigned AltIdx)
 Match a symbolic name in RegClassID, or return an invalid register.
int getCPURegisterIndex (StringRef Name, const MCRegisterInfo &MRI, unsigned AltIdx, bool *IsDeprecated=nullptr)
 Return a GPR name's hardware index, or -1 if unknown.

Function Documentation

◆ encodeCOP0Register()

unsigned llvm::MIPS_MC::encodeCOP0Register ( unsigned Reg,
unsigned Sel )
constexpr

COP0 hardware encodings reserve five bits each for REG and SEL.

Definition at line 65 of file MipsMCTargetDesc.h.

References Reg.

◆ getCLOpts()

const MipsMCOptions & llvm::MIPS_MC::getCLOpts ( const MCTargetOptions & Options)
inline

Definition at line 18 of file MipsMCOptions.h.

References llvm::cl::LibraryOptionsContext::get(), and Options.

◆ getCOP0Register()

MCRegister llvm::MIPS_MC::getCOP0Register ( const MCRegisterInfo & MRI,
unsigned Encoding )

Definition at line 56 of file MipsMCTargetDesc.cpp.

References assert(), getCOP0RegNum(), getCOP0Sel(), and MRI.

Referenced by DecodeCOP0RegisterClass().

◆ getCOP0RegNum()

unsigned llvm::MIPS_MC::getCOP0RegNum ( unsigned Encoding)
constexpr

◆ getCOP0Sel()

unsigned llvm::MIPS_MC::getCOP0Sel ( unsigned Encoding)
constexpr

◆ getCPURegisterIndex()

int llvm::MIPS_MC::getCPURegisterIndex ( StringRef Name,
const MCRegisterInfo & MRI,
unsigned AltIdx,
bool * IsDeprecated = nullptr )

Return a GPR name's hardware index, or -1 if unknown.

Definition at line 86 of file MipsMCTargetDesc.cpp.

References llvm::Mips::FP, matchRegisterName(), and MRI.

Referenced by llvm::MipsTargetLowering::getRegisterByName().

◆ initLLVMToCVRegMapping()

void llvm::MIPS_MC::initLLVMToCVRegMapping ( MCRegisterInfo * MRI)

◆ matchRegisterName()

MCRegister llvm::MIPS_MC::matchRegisterName ( StringRef Name,
const MCRegisterInfo & MRI,
unsigned RegClassID,
unsigned AltIdx )

Match a symbolic name in RegClassID, or return an invalid register.

Definition at line 65 of file MipsMCTargetDesc.cpp.

References llvm::MCRegisterClass::contains(), MatchRegisterAltName(), MatchRegisterName(), and MRI.

Referenced by getCPURegisterIndex().

◆ selectMipsCPU()

StringRef llvm::MIPS_MC::selectMipsCPU ( const Triple & TT,
StringRef CPU )

Select the Mips CPU for the given triple and cpu name.

Definition at line 221 of file MipsMCTargetDesc.cpp.

References llvm::Triple::MipsSubArch_r6.

Referenced by createMipsMCSubtargetInfo(), llvm::MipsAsmPrinter::emitStartOfAsmFile(), and llvm::MipsSubtarget::initializeSubtargetDependencies().