diff options
| author | Ahmed El-Shafiey <[email protected]> | 2014-08-06 16:57:40 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:50:59 -0700 |
| commit | fd3c208f3c51c5520dcd7150d8a521a61577a9d5 (patch) | |
| tree | d17d3c9f47c67e1f56c9e567f51fe7f56dd599c3 /src/cuda-sim/ptx_ir.h | |
| parent | 94a6b6c513c0afaf86770d2af0e41c8d7d0da3f5 (diff) | |
Support for named bariers + bar.red + bar.arrive instructions
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 18452]
Diffstat (limited to 'src/cuda-sim/ptx_ir.h')
| -rw-r--r-- | src/cuda-sim/ptx_ir.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_ir.h b/src/cuda-sim/ptx_ir.h index 5efa3a8..1dd851a 100644 --- a/src/cuda-sim/ptx_ir.h +++ b/src/cuda-sim/ptx_ir.h @@ -992,6 +992,8 @@ public: unsigned rounding_mode() const { return m_rounding_mode;} unsigned saturation_mode() const { return m_saturation_mode;} unsigned dimension() const { return m_geom_spec;} + unsigned barrier_op() const {return m_barrier_op;} + unsigned reduction_op() const {return m_reduction_op;} enum vote_mode_t { vote_any, vote_all, vote_uni, vote_ballot }; enum vote_mode_t vote_mode() const { return m_vote_mode; } @@ -1021,8 +1023,10 @@ public: return false; } + private: void set_opcode_and_latency(); + void set_bar_type(); void set_fp_or_int_archop(); void set_mul_div_or_other_archop(); @@ -1054,6 +1058,8 @@ private: unsigned m_rounding_mode; unsigned m_compare_op; unsigned m_saturation_mode; + unsigned m_barrier_op; + unsigned m_reduction_op; std::list<int> m_scalar_type; memory_space_t m_space_spec; |
