reg_class.hh (12858:07c81183e089) reg_class.hh (13020:b5f05a988593)
1/*
2 * Copyright (c) 2016 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 70 unchanged lines hidden (view full) ---

79 private:
80 static const char* regClassStrings[];
81 RegClass regClass;
82 RegIndex regIdx;
83 ElemIndex elemIdx;
84 static constexpr size_t Scale = TheISA::NumVecElemPerVecReg;
85 friend struct std::hash<RegId>;
86 public:
1/*
2 * Copyright (c) 2016 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 70 unchanged lines hidden (view full) ---

79 private:
80 static const char* regClassStrings[];
81 RegClass regClass;
82 RegIndex regIdx;
83 ElemIndex elemIdx;
84 static constexpr size_t Scale = TheISA::NumVecElemPerVecReg;
85 friend struct std::hash<RegId>;
86 public:
87 RegId() {};
87 RegId() : regClass(IntRegClass), regIdx(0), elemIdx(-1) {}
88 RegId(RegClass reg_class, RegIndex reg_idx)
89 : regClass(reg_class), regIdx(reg_idx), elemIdx(-1)
90 {
91 panic_if(regClass == VecElemClass,
92 "Creating vector physical index w/o element index");
93 }
94
95 explicit RegId(RegClass reg_class, RegIndex reg_idx, ElemIndex elem_idx)

--- 139 unchanged lines hidden ---
88 RegId(RegClass reg_class, RegIndex reg_idx)
89 : regClass(reg_class), regIdx(reg_idx), elemIdx(-1)
90 {
91 panic_if(regClass == VecElemClass,
92 "Creating vector physical index w/o element index");
93 }
94
95 explicit RegId(RegClass reg_class, RegIndex reg_idx, ElemIndex elem_idx)

--- 139 unchanged lines hidden ---