gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::statistics::BinaryNode< Op > Class Template Reference

#include <statistics.hh>

Inheritance diagram for gem5::statistics::BinaryNode< Op >:
gem5::statistics::Node

Public Member Functions

 BinaryNode (NodePtr &a, NodePtr &b)
 
const VResultresult () const override
 Return the result vector of this subtree.
 
Result total () const override
 Return the total of the result vector.
 
size_type size () const override
 Return the number of nodes in the subtree starting at this node.
 
std::string str () const override
 
- Public Member Functions inherited from gem5::statistics::Node
virtual ~Node ()
 

Public Attributes

NodePtr l
 
NodePtr r
 
VResult vresult
 

Detailed Description

template<class Op>
class gem5::statistics::BinaryNode< Op >

Definition at line 1766 of file statistics.hh.

Constructor & Destructor Documentation

◆ BinaryNode()

template<class Op>
gem5::statistics::BinaryNode< Op >::BinaryNode ( NodePtr & a,
NodePtr & b )
inline

Definition at line 1774 of file statistics.hh.

References gem5::ArmISA::a, gem5::ArmISA::b, l, and r.

Member Function Documentation

◆ result()

template<class Op>
const VResult & gem5::statistics::BinaryNode< Op >::result ( ) const
inlineoverridevirtual

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements gem5::statistics::Node.

Definition at line 1777 of file statistics.hh.

References gem5::ArmISA::i, l, gem5::X86ISA::op, r, size(), and vresult.

Referenced by total().

◆ size()

template<class Op>
size_type gem5::statistics::BinaryNode< Op >::size ( ) const
inlineoverridevirtual

Return the number of nodes in the subtree starting at this node.

Returns
the number of nodes in this subtree.

Implements gem5::statistics::Node.

Definition at line 1841 of file statistics.hh.

References l, r, and gem5::ArmISA::rs.

Referenced by result(), and total().

◆ str()

template<class Op>
std::string gem5::statistics::BinaryNode< Op >::str ( ) const
inlineoverridevirtual

Implements gem5::statistics::Node.

Definition at line 1856 of file statistics.hh.

References gem5::csprintf(), l, and r.

◆ total()

template<class Op>
Result gem5::statistics::BinaryNode< Op >::total ( ) const
inlineoverridevirtual

Return the total of the result vector.

Returns
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 gem5::statistics::Node.

Definition at line 1809 of file statistics.hh.

References gem5::ArmISA::i, l, gem5::X86ISA::op, r, result(), size(), total(), and gem5::PowerISA::vec.

Referenced by total().

Member Data Documentation

◆ l

template<class Op>
NodePtr gem5::statistics::BinaryNode< Op >::l

Definition at line 1769 of file statistics.hh.

Referenced by BinaryNode(), result(), size(), str(), and total().

◆ r

template<class Op>
NodePtr gem5::statistics::BinaryNode< Op >::r

Definition at line 1770 of file statistics.hh.

Referenced by BinaryNode(), result(), size(), str(), and total().

◆ vresult

template<class Op>
VResult gem5::statistics::BinaryNode< Op >::vresult
mutable

Definition at line 1771 of file statistics.hh.

Referenced by result().


The documentation for this class was generated from the following file:

Generated on Mon May 26 2025 09:19:38 for gem5 by doxygen 1.13.2