diff options
| author | Mengchi Zhang <[email protected]> | 2019-06-12 18:49:58 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-06-12 18:49:58 -0400 |
| commit | 5530b51c7c572d25717ad7f5d81196011dfcb540 (patch) | |
| tree | 387fa0f7eac183bbc3bf8b8e87d1e85dcd8e1f0c /src/cuda-sim/ptx_parser.h | |
| parent | c146d3707216f235a1dde3bd978239fd55b111ed (diff) | |
Move symbol table globals
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_parser.h')
| -rw-r--r-- | src/cuda-sim/ptx_parser.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_parser.h b/src/cuda-sim/ptx_parser.h index 5293c2e..cc8fe18 100644 --- a/src/cuda-sim/ptx_parser.h +++ b/src/cuda-sim/ptx_parser.h @@ -56,6 +56,9 @@ class ptx_recognizer { g_ident_add_uid = 0; g_const_alloc = 1; g_max_regs_per_thread = 0; + g_global_symbol_table = NULL; + g_current_symbol_table = NULL; + symbol *g_last_symbol = NULL; } // global list yyscan_t scanner; @@ -89,6 +92,9 @@ class ptx_recognizer { int g_ident_add_uid; unsigned g_const_alloc; unsigned g_max_regs_per_thread; + symbol_table *g_global_symbol_table; + symbol_table *g_current_symbol_table; + symbol *g_last_symbol; // member function list void init_directive_state(); @@ -154,6 +160,7 @@ class ptx_recognizer { //Jin: handle instructino group for cdp void start_inst_group(); void end_inst_group(); + bool check_for_duplicates( const char *identifier ); }; |
