diff options
| author | Jin Wang <[email protected]> | 2014-10-03 19:08:39 -0400 |
|---|---|---|
| committer | Jin Wang <[email protected]> | 2016-07-05 08:59:56 -0400 |
| commit | db5fe9600dd57ce59864b0f22c9d5407231ab5b1 (patch) | |
| tree | 7b6c73945a9254cd38a86655ca54059fb17e05b0 /src/cuda-sim/ptx_parser.cc | |
| parent | 5cc6392a98bf736a05ffa7c7c557c4556753c8c2 (diff) | |
ADD: initial support for instruction group used by CDP
Diffstat (limited to 'src/cuda-sim/ptx_parser.cc')
| -rw-r--r-- | src/cuda-sim/ptx_parser.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_parser.cc b/src/cuda-sim/ptx_parser.cc index 824714a..39257da 100644 --- a/src/cuda-sim/ptx_parser.cc +++ b/src/cuda-sim/ptx_parser.cc @@ -187,6 +187,17 @@ void add_function_name( const char *name ) g_global_symbol_table->add_function( g_func_info, g_filename, ptx_lineno ); } +//Jin: handle instruction group for cdp +void start_inst_group() { + PTX_PARSE_DPRINTF("start_instruction_group"); + g_current_symbol_table = g_current_symbol_table->start_inst_group(); +} + +void end_inst_group() { + PTX_PARSE_DPRINTF("end_instruction_group"); + g_current_symbol_table = g_current_symbol_table->end_inst_group(); +} + void add_directive() { PTX_PARSE_DPRINTF("add_directive"); |
