gem5 v24.0.0.0
|
#include <reg_class.hh>
Public Types | |
using | iterator = RegClassIterator |
Public Member Functions | |
constexpr | RegClass (RegClassType type, const char *new_name, size_t num_regs, const debug::Flag &debug_flag) |
constexpr RegClass | needsFlattening () const |
constexpr RegClass | ops (const RegClassOps &new_ops) const |
template<class RegType > | |
constexpr RegClass | regType () const |
constexpr RegClassType | type () const |
constexpr const char * | name () const |
constexpr size_t | numRegs () const |
constexpr size_t | regBytes () const |
constexpr size_t | regShift () const |
constexpr const debug::Flag & | debug () const |
constexpr bool | isFlat () const |
std::string | regName (const RegId &id) const |
std::string | valString (const void *val) const |
std::string | valString (const void *val, const uint64_t &num_bytes) const |
RegId | flatten (const BaseISA &isa, const RegId &id) const |
iterator | begin () const |
iterator | end () const |
constexpr RegId | operator[] (RegIndex idx) const |
Private Attributes | |
RegClassType | _type |
const char * | _name |
size_t | _numRegs |
size_t | _regBytes = sizeof(RegVal) |
size_t | _regShift = ceilLog2(sizeof(RegVal)) |
const RegClassOps * | _ops = &defaultOps |
const debug::Flag & | debugFlag |
bool | _flat = true |
Static Private Attributes | |
static RegClassOps | defaultOps |
Definition at line 185 of file reg_class.hh.
Definition at line 261 of file reg_class.hh.
|
inlineconstexpr |
Definition at line 205 of file reg_class.hh.
|
inline |
Definition at line 346 of file reg_class.hh.
|
inlineconstexpr |
Definition at line 241 of file reg_class.hh.
References debugFlag.
|
inline |
Definition at line 352 of file reg_class.hh.
References numRegs().
Definition at line 256 of file reg_class.hh.
References _ops, gem5::RegClassOps::flatten(), gem5::ArmISA::id, and isFlat().
Referenced by gem5::RegId::flatten().
|
inlineconstexpr |
Definition at line 242 of file reg_class.hh.
References _flat.
Referenced by flatten(), and gem5::RegId::isFlat().
|
inlineconstexpr |
Definition at line 237 of file reg_class.hh.
References _name.
Referenced by gem5::RegId::className().
|
inlineconstexpr |
Definition at line 211 of file reg_class.hh.
References _flat.
|
inlineconstexpr |
Definition at line 238 of file reg_class.hh.
References _numRegs.
Referenced by end(), and gem5::o3::SimpleRenameMap::init().
Definition at line 358 of file reg_class.hh.
|
inlineconstexpr |
Definition at line 219 of file reg_class.hh.
References _ops.
|
inlineconstexpr |
Definition at line 239 of file reg_class.hh.
References _regBytes.
Referenced by gem5::o3::DynInst::forwardOldRegs(), gem5::InstResult::operator==(), gem5::InstResult::set(), valString(), and valString().
|
inline |
Definition at line 244 of file reg_class.hh.
References _ops, and gem5::RegClassOps::regName().
|
inlineconstexpr |
Definition at line 240 of file reg_class.hh.
References _regShift.
|
inlineconstexpr |
Definition at line 228 of file reg_class.hh.
References _regBytes, _regShift, and gem5::ceilLog2().
|
inlineconstexpr |
Definition at line 236 of file reg_class.hh.
References _type.
Referenced by gem5::RegId::classValue(), gem5::RegId::is(), gem5::trace::InstRecord::setData(), and gem5::trace::InstRecord::setData().
|
inline |
Definition at line 246 of file reg_class.hh.
References _ops, regBytes(), gem5::X86ISA::val, and gem5::RegClassOps::valString().
Referenced by gem5::InstResult::asString(), gem5::InstResult::asString(), gem5::o3::PhysRegFile::getReg(), and gem5::o3::PhysRegFile::setReg().
|
inline |
Definition at line 251 of file reg_class.hh.
References _ops, regBytes(), gem5::X86ISA::val, and gem5::RegClassOps::valString().
|
private |
Definition at line 202 of file reg_class.hh.
Referenced by isFlat(), and needsFlattening().
|
private |
Definition at line 189 of file reg_class.hh.
Referenced by name().
|
private |
Definition at line 191 of file reg_class.hh.
Referenced by numRegs().
|
private |
Definition at line 199 of file reg_class.hh.
Referenced by flatten(), ops(), regName(), valString(), and valString().
|
private |
Definition at line 192 of file reg_class.hh.
Referenced by regBytes(), and regType().
Definition at line 196 of file reg_class.hh.
Referenced by regShift(), and regType().
|
private |
Definition at line 188 of file reg_class.hh.
Referenced by type().
|
private |
Definition at line 200 of file reg_class.hh.
Referenced by debug().
|
inlinestaticprivate |
Definition at line 198 of file reg_class.hh.