Go to the documentation of this file.
58 assert(MachineType_base_level((MachineType)(machine + 1)) -
59 MachineType_base_level(machine) == 1);
60 m_bits[MachineType_base_level(machine)] = set;
89 for (MachineType machine = MachineType_FIRST;
90 machine < MachineType_NUM; ++machine) {
98 for (
NodeID i = 0;
i < MachineType_base_count(machineType);
i++) {
110 for (
int i = 0;
i <
m_bits.size();
i++) {
111 for (
int j = 0;
j <
m_bits[
i].getSize();
j++) {
113 int id = MachineType_base_number((MachineType)
i) +
j;
114 dest.push_back((
NodeID)
id);
125 for (
int i = 0;
i <
m_bits.size();
i++) {
141 for (
int i = 0;
i <
m_bits.size();
i++) {
144 MachineID mach = {MachineType_from_base_level(
i),
j};
149 panic(
"No smallest element of an empty set.");
155 int size =
m_bits[MachineType_base_level(machine)].getSize();
163 panic(
"No smallest element of given MachineType.");
170 for (
int i = 0;
i <
m_bits.size();
i++) {
182 for (
int i = 0;
i <
m_bits.size();
i++) {
196 for (
int i = 0;
i <
m_bits.size();
i++) {
208 for (
int i = 0;
i <
m_bits.size();
i++) {
219 for (
int i = 0;
i <
m_bits.size();
i++) {
232 for (
int i = 0;
i <
m_bits.size();
i++) {
249 m_bits.resize(MachineType_base_level(MachineType_NUM));
250 assert(
m_bits.size() == MachineType_NUM);
252 for (
int i = 0;
i <
m_bits.size();
i++) {
253 m_bits[
i].setSize(MachineType_base_count((MachineType)
i));
260 out <<
"[NetDest (" <<
m_bits.size() <<
") ";
262 for (
int i = 0;
i <
m_bits.size();
i++) {
263 for (
int j = 0;
j <
m_bits[
i].getSize();
j++) {
274 assert(
m_bits.size() ==
n.m_bits.size());
275 for (
unsigned int i = 0;
i <
m_bits.size(); ++
i) {
void add(MachineID newElement)
void remove(MachineID oldElement)
NodeID elementAt(MachineID index)
bool intersectionIsEmpty(const NetDest &other_netDest) const
bool isElement(MachineID element) const
void print(std::ostream &out) const
void setNetDest(MachineType machine, const Set &set)
std::vector< Set > m_bits
MachineID smallestElement() const
NetDest OR(const NetDest &orNetDest) const
NodeID bitIndex(NodeID index) const
bool isSuperset(const NetDest &test) const
int vecIndex(MachineID m) const
NodeID num
range: 0 ... number of this machine's components in system - 1
void addNetDest(const NetDest &netDest)
bool intersectionIsNotEmpty(const NetDest &other_netDest) const
NetDest AND(const NetDest &andNetDest) const
bool isEqual(const NetDest &netDest) const
std::vector< NodeID > getAllDest()
void removeNetDest(const NetDest &netDest)
#define panic(...)
This implements a cprintf based panic() function.
Generated on Wed Sep 30 2020 14:02:13 for gem5 by doxygen 1.8.17