diff options
| author | Tor Aamodt <[email protected]> | 2010-07-16 23:13:34 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-07-16 23:13:34 -0800 |
| commit | d67e0e6d7c50a5c6f567e387e17782f022553264 (patch) | |
| tree | 814766699be6d3ede2b7d74f2bdfb060cbc196cd /src/cuda-sim/ptx.y | |
| parent | 55506aed771c40e93f374cffb04c6e48b34e6003 (diff) | |
template compiled with "make noinline=1" now parses, runs, passes
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6857]
Diffstat (limited to 'src/cuda-sim/ptx.y')
| -rw-r--r-- | src/cuda-sim/ptx.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cuda-sim/ptx.y b/src/cuda-sim/ptx.y index dd69fe5..9ddb214 100644 --- a/src/cuda-sim/ptx.y +++ b/src/cuda-sim/ptx.y @@ -217,7 +217,7 @@ input: /* empty */ | input function_decl ; -function_defn: function_decl { set_symtab($1); } LEFT_BRACE statement_list RIGHT_BRACE { end_function(); } +function_defn: function_decl { set_symtab($1); start_function_definition(); } LEFT_BRACE statement_list RIGHT_BRACE { end_function(); } | function_decl { set_symtab($1); } block_spec LEFT_BRACE statement_list RIGHT_BRACE { end_function(); } ; @@ -255,6 +255,7 @@ directive_statement: variable_declaration SEMI_COLON | TARGET_DIRECTIVE IDENTIFIER | FILE_DIRECTIVE INT_OPERAND STRING { add_file($2,$3); } | LOC_DIRECTIVE INT_OPERAND INT_OPERAND INT_OPERAND + | PRAGMA_DIRECTIVE STRING SEMI_COLON { add_pragma($2); } ; variable_declaration: variable_spec identifier_list { add_variables(); } |
