LLVM 24.0.0git
llvm::MIPS_MC Namespace Reference

Functions

void initLLVMToCVRegMapping (MCRegisterInfo *MRI)
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

◆ 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 72 of file MipsMCTargetDesc.cpp.

References llvm::MCRegisterInfo::getEncodingValue(), and matchRegisterName().

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 )

◆ 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 207 of file MipsMCTargetDesc.cpp.

References llvm::Triple::MipsSubArch_r6.

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