diff options
| author | Akshay Jain <[email protected]> | 2018-03-22 04:45:59 -0400 |
|---|---|---|
| committer | Akshay Jain <[email protected]> | 2018-03-22 04:45:59 -0400 |
| commit | b43b94569734d9f27b2e4bbb22272aa4243fbd56 (patch) | |
| tree | 1766d1a3952a79e265b51de1a8e36b11d12d3873 /src/abstract_hardware_model.h | |
| parent | 525f177a1d4f1fc309d22197bc8af26ee8d4c454 (diff) | |
Change 332 by jain156@akshayj-lt1 on 2018/02/01 05:20:33
Added shmem_divergence_hist and warp_inst_classification
Diffstat (limited to 'src/abstract_hardware_model.h')
| -rw-r--r-- | src/abstract_hardware_model.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index cec75f9..9ba31d9 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -798,6 +798,7 @@ public: arch_reg.dst[i] = -1; } isize=0; + op_classification = 0; } bool valid() const { return m_decoded; } virtual void print_insn( FILE *fp ) const @@ -816,6 +817,7 @@ public: address_type pc; // program counter address of instruction unsigned isize; // size of instruction in bytes op_type op; // opcode (uarch visible) + int op_classification; // classification of opcode for statistics purpopses barrier_type bar_type; reduction_type red_type; @@ -1023,6 +1025,11 @@ public: return cycles > 0; } + unsigned get_cycles() + { + return cycles; + } + void print( FILE *fout ) const; unsigned get_uid() const { return m_uid; } |
