102 void print(std::stringstream& stream)
const;
104 static std::vector<std::string>
keys();
106 std::vector<std::string>
values()
const;
encapsulates code generation backend implementations
Helper class to collect performance statistics.
void print(std::stringstream &stream) const
int n_unique_global_write
std::vector< std::string > values() const
int n_int_func_call
mod functions (before/after inlining)
int n_local_read
cheap : typically local variables in mod file means registers
int n_global_read
expensive : typically access to dynamically allocated memory
int n_ext_func_call
could be external math funcs
int n_add
basic ops (<= 1 cycle)
int n_unique_constant_read
int n_unique_constant_write
std::string title
name for pretty-printing
friend PerfStat operator+(const PerfStat &first, const PerfStat &second)
int n_constant_read
could be optimized : access to variables that could be read-only in this case write counts are typica...
static std::vector< std::string > keys()
int n_exp
expensive functions : commonly used functions in mod files