diff options
| author | Jonathan <[email protected]> | 2018-06-05 17:22:35 -0700 |
|---|---|---|
| committer | Jonathan <[email protected]> | 2018-06-05 17:22:35 -0700 |
| commit | b79708980b80b6e50b1612f5436655c724377779 (patch) | |
| tree | 950ab3128ad9f43e655457afc69be60b38fb406a /src/cuda-sim/ptx_parser.cc | |
| parent | f7b0d64c68f12d604e09aec8dbba569df354faf6 (diff) | |
ptx parse only
Diffstat (limited to 'src/cuda-sim/ptx_parser.cc')
| -rw-r--r-- | src/cuda-sim/ptx_parser.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cuda-sim/ptx_parser.cc b/src/cuda-sim/ptx_parser.cc index 06ca870..c418fac 100644 --- a/src/cuda-sim/ptx_parser.cc +++ b/src/cuda-sim/ptx_parser.cc @@ -142,9 +142,7 @@ symbol_table *init_parser( const char *ptx_filename ) g_global_allfiles_symbol_table = new symbol_table("global_allfiles", 0, NULL); g_global_symbol_table = g_current_symbol_table = g_global_allfiles_symbol_table; } -// else { -// g_global_symbol_table = g_current_symbol_table = new symbol_table("global",0,g_global_allfiles_symbol_table); -// } + ptx_lineno = 1; #define DEF(X,Y) g_ptx_token_decode[X] = Y; @@ -164,6 +162,7 @@ symbol_table *init_parser( const char *ptx_filename ) g_ptx_token_decode[global_space] = "global_space"; g_ptx_token_decode[generic_space] = "generic_space"; g_ptx_token_decode[instruction_space] = "instruction_space"; + init_directive_state(); init_instruction_state(); |
