diff options
| author | sspenst <[email protected]> | 2016-06-13 01:08:36 -0700 |
|---|---|---|
| committer | sspenst <[email protected]> | 2016-06-13 01:08:36 -0700 |
| commit | 547ce656018a6439e658be3c283721a961b0217f (patch) | |
| tree | cbd81e6b3d3fdee79ce9f934fe4c92a5c984cc36 /src/cuda-sim/ptxinfo.l | |
| parent | 7356669b66425ee73ba61466f37fe25b886a3641 (diff) | |
If ptxas notices any duplicate errors, they now automatically get resolved and the program continues with the duplicate function/variable declarations removed.
Diffstat (limited to 'src/cuda-sim/ptxinfo.l')
| -rw-r--r-- | src/cuda-sim/ptxinfo.l | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cuda-sim/ptxinfo.l b/src/cuda-sim/ptxinfo.l index f9b6846..33c2748 100644 --- a/src/cuda-sim/ptxinfo.l +++ b/src/cuda-sim/ptxinfo.l @@ -60,6 +60,10 @@ unsigned ptxinfo_col = 0; "line" TC; return LINE; "for" TC; return FOR; "textures" TC; return TEXTURES; +"error : Duplicate definition of" TC; return DUPLICATE; +"function" TC; ptxinfo_lval.string_value = strdup(yytext); return FUNCTION; +"variable" TC; ptxinfo_lval.string_value = strdup(yytext); return VARIABLE; +"fatal : Ptx assembly aborted due to errors" TC; return FATAL; [_A-Za-z$%][_0-9A-Za-z$]* TC; ptxinfo_lval.string_value = strdup(yytext); return IDENTIFIER; [-]{0,1}[0-9]+ TC; ptxinfo_lval.int_value = atoi(yytext); return INT_OPERAND; |
