diff options
| author | andrewboktor <[email protected]> | 2015-03-05 13:18:54 -0800 |
|---|---|---|
| committer | andrewboktor <[email protected]> | 2015-03-05 13:18:54 -0800 |
| commit | 4dc9d53085b568aea0cefe75d599f87bb5e0841f (patch) | |
| tree | b9eb3212e2b7730771103d86336a72b2963a5796 /src/cuda-sim/ptx.y | |
| parent | d46bf67b50b265dd3afae7c9a6a13c4cbdd6176f (diff) | |
| parent | 66d5ba0e9143b1bd6b839643bbffff6fb7db4aa6 (diff) | |
Merge pull request #9 from ElTantawy/master
initial support for CUDA 5.0, 5.5, 6.0 to get template from SDK running
Diffstat (limited to 'src/cuda-sim/ptx.y')
| -rw-r--r-- | src/cuda-sim/ptx.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx.y b/src/cuda-sim/ptx.y index 770ee1d..79faddf 100644 --- a/src/cuda-sim/ptx.y +++ b/src/cuda-sim/ptx.y @@ -239,6 +239,7 @@ function_ident_param: IDENTIFIER { add_function_name($1); } LEFT_PAREN {func_hea ; function_decl_header: ENTRY_DIRECTIVE { $$ = 1; g_func_decl=1; func_header(".entry"); } + | VISIBLE_DIRECTIVE ENTRY_DIRECTIVE { $$ = 1; g_func_decl=1; func_header(".entry"); } | FUNC_DIRECTIVE { $$ = 0; g_func_decl=1; func_header(".func"); } | VISIBLE_DIRECTIVE FUNC_DIRECTIVE { $$ = 0; g_func_decl=1; func_header(".func"); } | EXTERN_DIRECTIVE FUNC_DIRECTIVE { $$ = 2; g_func_decl=1; func_header(".func"); } @@ -279,6 +280,7 @@ directive_statement: variable_declaration SEMI_COLON | TARGET_DIRECTIVE IDENTIFIER COMMA IDENTIFIER COMMA IDENTIFIER { target_header3($2,$4,$6); } | TARGET_DIRECTIVE IDENTIFIER { target_header($2); } | FILE_DIRECTIVE INT_OPERAND STRING { add_file($2,$3); } + | FILE_DIRECTIVE INT_OPERAND STRING COMMA INT_OPERAND COMMA INT_OPERAND { add_file($2,$3); } | LOC_DIRECTIVE INT_OPERAND INT_OPERAND INT_OPERAND | PRAGMA_DIRECTIVE STRING SEMI_COLON { add_pragma($2); } | function_decl SEMI_COLON {/*Do nothing*/} |
