gem5
v20.1.0.0
|
#include <statistics.hh>
Public Member Functions | |
BinaryNode (NodePtr &a, NodePtr &b) | |
const VResult & | result () const override |
Return the result vector of this subtree. More... | |
Result | total () const override |
Return the total of the result vector. More... | |
size_type | size () const override |
Return the number of nodes in the subtree starting at this node. More... | |
std::string | str () const override |
Public Member Functions inherited from Stats::Node | |
virtual | ~Node () |
Public Attributes | |
NodePtr | l |
NodePtr | r |
VResult | vresult |
Definition at line 2370 of file statistics.hh.
|
inline |
Definition at line 2378 of file statistics.hh.
|
inlineoverridevirtual |
Return the result vector of this subtree.
Implements Stats::Node.
Definition at line 2381 of file statistics.hh.
References ArmISA::i, Stats::BinaryNode< Op >::l, X86ISA::op, Stats::BinaryNode< Op >::r, Stats::BinaryNode< Op >::size(), and Stats::BinaryNode< Op >::vresult.
Referenced by Stats::BinaryNode< Op >::total().
|
inlineoverridevirtual |
Return the number of nodes in the subtree starting at this node.
Implements Stats::Node.
Definition at line 2445 of file statistics.hh.
References Stats::BinaryNode< Op >::l, Stats::BinaryNode< Op >::r, and ArmISA::rs.
Referenced by Stats::BinaryNode< Op >::result(), and Stats::BinaryNode< Op >::total().
|
inlineoverridevirtual |
Implements Stats::Node.
Definition at line 2460 of file statistics.hh.
References csprintf(), Stats::BinaryNode< Op >::l, and Stats::BinaryNode< Op >::r.
|
inlineoverridevirtual |
Return the total of the result vector.
If vectors are the same divide their sums (x0+x1)/(y0+y1)
Otherwise divide each item by the divisor
Implements Stats::Node.
Definition at line 2413 of file statistics.hh.
References ArmISA::i, Stats::BinaryNode< Op >::l, X86ISA::op, Stats::BinaryNode< Op >::r, Stats::BinaryNode< Op >::result(), and Stats::BinaryNode< Op >::size().
NodePtr Stats::BinaryNode< Op >::l |
Definition at line 2373 of file statistics.hh.
Referenced by Stats::BinaryNode< Op >::result(), Stats::BinaryNode< Op >::size(), Stats::BinaryNode< Op >::str(), and Stats::BinaryNode< Op >::total().
NodePtr Stats::BinaryNode< Op >::r |
Definition at line 2374 of file statistics.hh.
Referenced by Stats::BinaryNode< Op >::result(), Stats::BinaryNode< Op >::size(), Stats::BinaryNode< Op >::str(), and Stats::BinaryNode< Op >::total().
|
mutable |
Definition at line 2375 of file statistics.hh.
Referenced by Stats::BinaryNode< Op >::result().