[llvm-commits] CVS: llvm/utils/TableGen/FileLexer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 6 14:23:39 PDT 2005
Changes in directory llvm/utils/TableGen:
FileLexer.cpp updated: 1.1 -> 1.2
---
Log message:
regenerate
---
Diffs of the changes: (+88 -84)
FileLexer.cpp | 172 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 88 insertions(+), 84 deletions(-)
Index: llvm/utils/TableGen/FileLexer.cpp
diff -u llvm/utils/TableGen/FileLexer.cpp:1.1 llvm/utils/TableGen/FileLexer.cpp:1.2
--- llvm/utils/TableGen/FileLexer.cpp:1.1 Sat Aug 27 13:50:39 2005
+++ llvm/utils/TableGen/FileLexer.cpp Tue Sep 6 16:23:27 2005
@@ -21,7 +21,7 @@
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
- * $Header: /var/cvs/llvm/llvm/utils/TableGen/FileLexer.cpp,v 1.1 2005/08/27 18:50:39 reid Exp $
+ * $Header: /var/cvs/llvm/llvm/utils/TableGen/FileLexer.cpp,v 1.2 2005/09/06 21:23:27 lattner Exp $
*/
#define FLEX_SCANNER
@@ -29,7 +29,6 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
-#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@@ -43,6 +42,7 @@
#ifdef __cplusplus
#include <stdlib.h>
+#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
@@ -383,19 +383,19 @@
static yyconst short int yy_base[113] =
{ 0,
- 0, 0, 29, 30, 198, 199, 39, 42, 166, 190,
- 0, 36, 42, 42, 45, 0, 160, 168, 33, 41,
- 167, 164, 42, 159, 0, 57, 61, 70, 45, 184,
- 199, 0, 66, 199, 0, 69, 0, 0, 153, 156,
- 169, 165, 161, 161, 161, 62, 150, 150, 150, 0,
- 75, 76, 199, 171, 199, 79, 151, 70, 0, 0,
- 79, 0, 141, 159, 144, 143, 151, 0, 0, 145,
- 144, 0, 0, 138, 143, 199, 199, 199, 132, 199,
- 0, 136, 0, 145, 132, 0, 136, 0, 0, 118,
- 95, 76, 0, 90, 93, 60, 45, 199, 199, 99,
+ 0, 0, 29, 30, 199, 200, 39, 42, 167, 191,
+ 0, 36, 42, 42, 45, 0, 161, 169, 33, 41,
+ 168, 165, 42, 160, 0, 57, 61, 70, 45, 185,
+ 200, 0, 66, 200, 0, 69, 0, 0, 154, 157,
+ 170, 166, 162, 162, 162, 62, 151, 151, 151, 0,
+ 75, 76, 200, 79, 200, 80, 153, 73, 0, 0,
+ 81, 0, 143, 161, 146, 145, 153, 0, 0, 147,
+ 146, 0, 0, 140, 145, 200, 200, 200, 134, 200,
+ 0, 138, 0, 147, 134, 0, 138, 0, 0, 120,
+ 97, 77, 0, 93, 95, 60, 45, 200, 200, 101,
- 105, 107, 110, 116, 122, 128, 131, 137, 140, 145,
- 151, 157
+ 107, 109, 112, 118, 124, 130, 133, 139, 142, 147,
+ 153, 159
} ;
static yyconst short int yy_def[113] =
@@ -415,7 +415,7 @@
99, 99
} ;
-static yyconst short int yy_nxt[236] =
+static yyconst short int yy_nxt[237] =
{ 0,
6, 7, 8, 7, 9, 10, 11, 6, 12, 13,
14, 15, 15, 16, 16, 17, 6, 16, 18, 19,
@@ -425,27 +425,27 @@
98, 35, 33, 33, 33, 33, 33, 33, 43, 41,
36, 42, 44, 47, 52, 98, 53, 48, 55, 57,
56, 28, 28, 28, 58, 37, 33, 33, 33, 61,
- 61, 71, 99, 52, 99, 53, 99, 77, 56, 61,
- 61, 95, 95, 72, 95, 95, 78, 94, 96, 25,
+ 61, 71, 99, 52, 99, 53, 99, 99, 99, 56,
+ 77, 61, 61, 72, 95, 95, 95, 95, 94, 78,
- 25, 25, 25, 25, 25, 30, 30, 30, 30, 30,
- 30, 32, 32, 38, 38, 38, 50, 50, 93, 50,
- 50, 50, 51, 51, 51, 51, 51, 51, 54, 54,
- 54, 54, 54, 54, 59, 59, 59, 60, 92, 60,
- 60, 60, 60, 62, 62, 63, 63, 63, 63, 63,
- 63, 79, 79, 79, 79, 79, 79, 97, 97, 97,
- 97, 97, 97, 91, 90, 89, 88, 64, 87, 86,
- 85, 84, 83, 82, 81, 80, 64, 76, 99, 75,
- 74, 73, 70, 69, 68, 67, 66, 65, 64, 31,
- 49, 46, 45, 40, 39, 31, 29, 99, 5, 99,
+ 96, 25, 25, 25, 25, 25, 25, 30, 30, 30,
+ 30, 30, 30, 32, 32, 38, 38, 38, 50, 50,
+ 93, 50, 50, 50, 51, 51, 51, 51, 51, 51,
+ 54, 54, 54, 54, 54, 54, 59, 59, 59, 60,
+ 92, 60, 60, 60, 60, 62, 62, 63, 63, 63,
+ 63, 63, 63, 79, 79, 79, 79, 79, 79, 97,
+ 97, 97, 97, 97, 97, 91, 90, 89, 88, 64,
+ 87, 86, 85, 84, 83, 82, 81, 80, 64, 76,
+ 75, 74, 73, 70, 69, 68, 67, 66, 65, 64,
+ 31, 49, 46, 45, 40, 39, 31, 29, 99, 5,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
- 99, 99, 99, 99, 99
+ 99, 99, 99, 99, 99, 99
} ;
-static yyconst short int yy_chk[236] =
+static yyconst short int yy_chk[237] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -455,24 +455,24 @@
97, 13, 14, 14, 14, 15, 15, 15, 20, 19,
14, 19, 20, 23, 26, 96, 26, 23, 27, 29,
27, 28, 28, 28, 29, 14, 33, 33, 33, 36,
- 36, 46, 51, 52, 51, 52, 56, 58, 56, 61,
- 61, 94, 94, 46, 95, 95, 58, 92, 95, 100,
+ 36, 46, 51, 52, 51, 52, 54, 56, 54, 56,
+ 58, 61, 61, 46, 94, 94, 95, 95, 92, 58,
- 100, 100, 100, 100, 100, 101, 101, 101, 101, 101,
- 101, 102, 102, 103, 103, 103, 104, 104, 91, 104,
- 104, 104, 105, 105, 105, 105, 105, 105, 106, 106,
- 106, 106, 106, 106, 107, 107, 107, 108, 90, 108,
- 108, 108, 108, 109, 109, 110, 110, 110, 110, 110,
- 110, 111, 111, 111, 111, 111, 111, 112, 112, 112,
- 112, 112, 112, 87, 85, 84, 82, 79, 75, 74,
- 71, 70, 67, 66, 65, 64, 63, 57, 54, 49,
- 48, 47, 45, 44, 43, 42, 41, 40, 39, 30,
- 24, 22, 21, 18, 17, 10, 9, 5, 99, 99,
+ 95, 100, 100, 100, 100, 100, 100, 101, 101, 101,
+ 101, 101, 101, 102, 102, 103, 103, 103, 104, 104,
+ 91, 104, 104, 104, 105, 105, 105, 105, 105, 105,
+ 106, 106, 106, 106, 106, 106, 107, 107, 107, 108,
+ 90, 108, 108, 108, 108, 109, 109, 110, 110, 110,
+ 110, 110, 110, 111, 111, 111, 111, 111, 111, 112,
+ 112, 112, 112, 112, 112, 87, 85, 84, 82, 79,
+ 75, 74, 71, 70, 67, 66, 65, 64, 63, 57,
+ 49, 48, 47, 45, 44, 43, 42, 41, 40, 39,
+ 30, 24, 22, 21, 18, 17, 10, 9, 5, 99,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99, 99, 99,
- 99, 99, 99, 99, 99
+ 99, 99, 99, 99, 99, 99
} ;
static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
@@ -489,7 +489,7 @@
#define YY_MORE_ADJ 0
#define YY_RESTORE_YY_MORE_OFFSET
char *yytext;
-#line 1 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 1 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
#define INITIAL 0
/*===-- FileLexer.l - Scanner for TableGen Files ----------------*- C++ -*-===//
//
@@ -507,7 +507,7 @@
#define YY_NEVER_INTERACTIVE 1
#define comment 1
-#line 30 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 30 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
#include "Record.h"
typedef std::pair<llvm::Record*, std::vector<llvm::Init*>*> SubClassRefTy;
#include "FileParser.h"
@@ -792,10 +792,10 @@
YY_DECL
{
register yy_state_type yy_current_state;
- register char *yy_cp = NULL, *yy_bp = NULL;
+ register char *yy_cp, *yy_bp;
register int yy_act;
-#line 176 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 176 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
#line 802 "Lexer.cpp"
@@ -891,165 +891,165 @@
{ /* beginning of action switch */
case 1:
YY_RULE_SETUP
-#line 178 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 178 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ /* Ignore comments */ }
YY_BREAK
case 2:
YY_RULE_SETUP
-#line 180 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 180 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ HandleInclude(yytext); }
YY_BREAK
case 3:
YY_RULE_SETUP
-#line 181 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 181 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ Filelval.StrVal = new std::string(yytext+2, yytext+yyleng-2);
return CODEFRAGMENT; }
YY_BREAK
case 4:
YY_RULE_SETUP
-#line 184 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 184 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return INT; }
YY_BREAK
case 5:
YY_RULE_SETUP
-#line 185 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 185 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return BIT; }
YY_BREAK
case 6:
YY_RULE_SETUP
-#line 186 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 186 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return BITS; }
YY_BREAK
case 7:
YY_RULE_SETUP
-#line 187 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 187 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return STRING; }
YY_BREAK
case 8:
YY_RULE_SETUP
-#line 188 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 188 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return LIST; }
YY_BREAK
case 9:
YY_RULE_SETUP
-#line 189 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 189 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return CODE; }
YY_BREAK
case 10:
YY_RULE_SETUP
-#line 190 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 190 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return DAG; }
YY_BREAK
case 11:
YY_RULE_SETUP
-#line 192 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 192 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return CLASS; }
YY_BREAK
case 12:
YY_RULE_SETUP
-#line 193 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 193 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return DEF; }
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 194 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 194 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return FIELD; }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 195 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 195 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return LET; }
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 196 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 196 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return IN; }
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 198 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 198 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return SRATOK; }
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 199 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 199 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return SRLTOK; }
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 200 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 200 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return SHLTOK; }
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 203 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 203 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ Filelval.StrVal = new std::string(yytext, yytext+yyleng);
return ID; }
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 205 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 205 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ Filelval.StrVal = new std::string(yytext+1, yytext+yyleng);
return VARNAME; }
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 208 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 208 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ Filelval.StrVal = new std::string(yytext+1, yytext+yyleng-1);
return STRVAL; }
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 211 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 211 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ Filelval.IntVal = ParseInt(Filetext); return INTVAL; }
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 213 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 213 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ /* Ignore whitespace */ }
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 216 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 216 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ BEGIN(comment); CommentDepth++; }
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 217 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
-/* eat anything that's not a '*' or '/' */
+#line 217 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
+{} /* eat anything that's not a '*' or '/' */
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 218 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
-/* eat up '*'s not followed by '/'s */
+#line 218 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
+{} /* eat up '*'s not followed by '/'s */
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 219 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 219 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ ++CommentDepth; }
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 220 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
-/* eat up /'s not followed by *'s */
+#line 220 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
+{} /* eat up /'s not followed by *'s */
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 221 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 221 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ if (!--CommentDepth) { BEGIN(INITIAL); } }
YY_BREAK
case YY_STATE_EOF(comment):
-#line 222 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 222 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ err() << "Unterminated comment!\n"; exit(1); }
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 224 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 224 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
{ return Filetext[0]; }
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 226 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 226 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
#line 1056 "Lexer.cpp"
@@ -1430,7 +1430,6 @@
#endif /* ifndef YY_NO_UNPUT */
-#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput()
#else
@@ -1504,7 +1503,7 @@
return c;
}
-#endif /* YY_NO_INPUT */
+
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
@@ -1615,6 +1614,11 @@
}
+#ifndef YY_ALWAYS_INTERACTIVE
+#ifndef YY_NEVER_INTERACTIVE
+extern int isatty YY_PROTO(( int ));
+#endif
+#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
@@ -1932,5 +1936,5 @@
return 0;
}
#endif
-#line 226 "/proj/llvm/build/../llvm/utils/TableGen/FileLexer.l"
+#line 226 "/Volumes/ProjectsDisk/cvs/llvm/utils/TableGen/FileLexer.l"
More information about the llvm-commits
mailing list