/*===- TableGen'erated file -------------------------------------*- C++ -*-===*\ |* *| |* Register Bank Source Fragments *| |* *| |* Automatically generated file, do not edit! *| |* *| \*===----------------------------------------------------------------------===*/ #ifdef GET_REGBANK_DECLARATIONS #undef GET_REGBANK_DECLARATIONS namespace llvm { namespace Mips { enum { GPRBRegBankID, NumRegisterBanks, }; } // end namespace Mips } // end namespace llvm #endif // GET_REGBANK_DECLARATIONS #ifdef GET_TARGET_REGBANK_CLASS #undef GET_TARGET_REGBANK_CLASS private: static RegisterBank *RegBanks[]; protected: MipsGenRegisterBankInfo(); #endif // GET_TARGET_REGBANK_CLASS #ifdef GET_TARGET_REGBANK_IMPL #undef GET_TARGET_REGBANK_IMPL namespace llvm { namespace Mips { const uint32_t GPRBRegBankCoverageData[] = { // 0-31 (1u << (Mips::GPR32RegClassID - 0)) | (1u << (Mips::GPR32NONZERORegClassID - 0)) | (1u << (Mips::CPU16RegsPlusSPRegClassID - 0)) | (1u << (Mips::CPU16RegsRegClassID - 0)) | (1u << (Mips::GPRMM16RegClassID - 0)) | (1u << (Mips::CPU16Regs_and_GPRMM16ZeroRegClassID - 0)) | (1u << (Mips::CPU16Regs_and_GPRMM16MovePRegClassID - 0)) | (1u << (Mips::GPR32NONZERO_and_GPRMM16MovePRegClassID - 0)) | (1u << (Mips::GPRMM16MovePRegClassID - 0)) | (1u << (Mips::GPRMM16MoveP_and_GPRMM16ZeroRegClassID - 0)) | (1u << (Mips::GPRMM16ZeroRegClassID - 0)) | 0, // 32-63 (1u << (Mips::GPRMM16MoveP_and_CPU16Regs_and_GPRMM16ZeroRegClassID - 32)) | (1u << (Mips::CPUSPRegRegClassID - 32)) | (1u << (Mips::SP32RegClassID - 32)) | (1u << (Mips::CPURARegRegClassID - 32)) | (1u << (Mips::GP32RegClassID - 32)) | (1u << (Mips::GPR32ZERORegClassID - 32)) | 0, // 64-95 0, }; RegisterBank GPRBRegBank(/* ID */ Mips::GPRBRegBankID, /* Name */ "GPRB", /* Size */ 32, /* CoveredRegClasses */ GPRBRegBankCoverageData, /* NumRegClasses */ 73); } // end namespace Mips RegisterBank *MipsGenRegisterBankInfo::RegBanks[] = { &Mips::GPRBRegBank, }; MipsGenRegisterBankInfo::MipsGenRegisterBankInfo() : RegisterBankInfo(RegBanks, Mips::NumRegisterBanks) { // Assert that RegBank indices match their ID's #ifndef NDEBUG unsigned Index = 0; for (const auto &RB : RegBanks) assert(Index++ == RB->getID() && "Index != ID"); #endif // NDEBUG } } // end namespace llvm #endif // GET_TARGET_REGBANK_IMPL