summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_parser.h
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-05-30 13:44:15 -0400
committerMengchi Zhang <[email protected]>2019-05-30 13:44:15 -0400
commit603e53ee948fecd623837b52c4e94ca2dbf0012b (patch)
treee63aed2aac68737f0dd96f79541a6c869f38c63f /src/cuda-sim/ptx_parser.h
parent9e3a9ac5ed0a70ec9b048bd3cb4df781687e85f8 (diff)
Move some variables in ptx_parser
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/ptx_parser.h')
-rw-r--r--src/cuda-sim/ptx_parser.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_parser.h b/src/cuda-sim/ptx_parser.h
index fdff6ce..fb1b7f2 100644
--- a/src/cuda-sim/ptx_parser.h
+++ b/src/cuda-sim/ptx_parser.h
@@ -42,11 +42,18 @@ class ptx_recognizer {
public:
ptx_recognizer() {
scanner = NULL;
+ g_size = -1;
+ g_add_identifier_cached__identifier = NULL;
}
yyscan_t scanner;
#define LINEBUF_SIZE (4*1024)
char linebuf[LINEBUF_SIZE];
unsigned col;
+ int g_size;
+ char *g_add_identifier_cached__identifier;
+ int g_add_identifier_cached__array_dim;
+ int g_add_identifier_cached__array_ident;
+
void init_directive_state();
void init_instruction_state();
void start_function( int entry_point );