gem5
|
#include <statistics.hh>
Public Member Functions | |
BinaryNode (NodePtr &a, NodePtr &b) | |
const VResult & | result () const |
Return the result vector of this subtree. More... | |
Result | total () const |
Return the total of the result vector. More... | |
size_type | size () const |
Return the number of nodes in the subtree starting at this node. More... | |
std::string | str () const |
Public Attributes | |
NodePtr | l |
NodePtr | r |
VResult | vresult |
Definition at line 2312 of file statistics.hh.
|
inline |
Definition at line 2320 of file statistics.hh.
|
inlinevirtual |
Return the result vector of this subtree.
Implements Stats::Node.
Definition at line 2323 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().
|
inlinevirtual |
Return the number of nodes in the subtree starting at this node.
Implements Stats::Node.
Definition at line 2387 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().
|
inlinevirtual |
Implements Stats::Node.
Definition at line 2402 of file statistics.hh.
References csprintf(), Stats::BinaryNode< Op >::l, and Stats::BinaryNode< Op >::r.
|
inlinevirtual |
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 2355 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 2315 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 2316 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 2317 of file statistics.hh.
Referenced by Stats::BinaryNode< Op >::result().