llvm.org GIT mirror llvm / 9c9b63a
Regenerate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36543 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
4 changed file(s) with 2225 addition(s) and 2569 deletion(s). Raw diff Collapse all Expand all
None #line 2 "Lexer.cpp"
1
2 #line 4 "Lexer.cpp"
3
4 #define YY_INT_ALIGNED short int
5
6 /* A lexical scanner generated by flex */
0 #define yy_create_buffer llvmAsm_create_buffer
1 #define yy_delete_buffer llvmAsm_delete_buffer
2 #define yy_scan_buffer llvmAsm_scan_buffer
3 #define yy_scan_string llvmAsm_scan_string
4 #define yy_scan_bytes llvmAsm_scan_bytes
5 #define yy_flex_debug llvmAsm_flex_debug
6 #define yy_init_buffer llvmAsm_init_buffer
7 #define yy_flush_buffer llvmAsm_flush_buffer
8 #define yy_load_buffer_state llvmAsm_load_buffer_state
9 #define yy_switch_to_buffer llvmAsm_switch_to_buffer
10 #define yyin llvmAsmin
11 #define yyleng llvmAsmleng
12 #define yylex llvmAsmlex
13 #define yyout llvmAsmout
14 #define yyrestart llvmAsmrestart
15 #define yytext llvmAsmtext
16 #define yylineno llvmAsmlineno
17
18 #line 20 "Lexer.cpp"
19 /* A lexical scanner generated by flex*/
20
21 /* Scanner skeleton version:
22 * $Header$
23 */
724
825 #define FLEX_SCANNER
926 #define YY_FLEX_MAJOR_VERSION 2
1027 #define YY_FLEX_MINOR_VERSION 5
11 #define YY_FLEX_SUBMINOR_VERSION 33
12 #if YY_FLEX_SUBMINOR_VERSION > 0
13 #define FLEX_BETA
14 #endif
15
16 /* First, we deal with platform-specific or compiler-specific issues. */
17
18 /* begin standard C headers. */
28
1929 #include
20 #include
21 #include <errno.h>
30 #include <unistd.h>
31
32
33 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
34 #ifdef c_plusplus
35 #ifndef __cplusplus
36 #define __cplusplus
37 #endif
38 #endif
39
40
41 #ifdef __cplusplus
42
2243 #include
2344
24 /* end standard C headers. */
25
26 /* flex integer type definitions */
27
28 #ifndef FLEXINT_H
29 #define FLEXINT_H
30
31 /* C99 systems have . Non-C99 systems may or may not. */
32
33 #if __STDC_VERSION__ >= 199901L
34
35 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
36 * if you want the limit (max/min) macros for int types.
37 */
38 #ifndef __STDC_LIMIT_MACROS
39 #define __STDC_LIMIT_MACROS 1
40 #endif
41
42 #include
43 typedef int8_t flex_int8_t;
44 typedef uint8_t flex_uint8_t;
45 typedef int16_t flex_int16_t;
46 typedef uint16_t flex_uint16_t;
47 typedef int32_t flex_int32_t;
48 typedef uint32_t flex_uint32_t;
49 #else
50 typedef signed char flex_int8_t;
51 typedef short int flex_int16_t;
52 typedef int flex_int32_t;
53 typedef unsigned char flex_uint8_t;
54 typedef unsigned short int flex_uint16_t;
55 typedef unsigned int flex_uint32_t;
56 #endif /* ! C99 */
57
58 /* Limits of integral types. */
59 #ifndef INT8_MIN
60 #define INT8_MIN (-128)
61 #endif
62 #ifndef INT16_MIN
63 #define INT16_MIN (-32767-1)
64 #endif
65 #ifndef INT32_MIN
66 #define INT32_MIN (-2147483647-1)
67 #endif
68 #ifndef INT8_MAX
69 #define INT8_MAX (127)
70 #endif
71 #ifndef INT16_MAX
72 #define INT16_MAX (32767)
73 #endif
74 #ifndef INT32_MAX
75 #define INT32_MAX (2147483647)
76 #endif
77 #ifndef UINT8_MAX
78 #define UINT8_MAX (255U)
79 #endif
80 #ifndef UINT16_MAX
81 #define UINT16_MAX (65535U)
82 #endif
83 #ifndef UINT32_MAX
84 #define UINT32_MAX (4294967295U)
85 #endif
86
87 #endif /* ! FLEXINT_H */
88
89 #ifdef __cplusplus
45 /* Use prototypes in function declarations. */
46 #define YY_USE_PROTOS
9047
9148 /* The "const" storage-class-modifier is valid. */
9249 #define YY_USE_CONST
9552
9653 #if __STDC__
9754
55 #define YY_USE_PROTOS
9856 #define YY_USE_CONST
9957
10058 #endif /* __STDC__ */
10159 #endif /* ! __cplusplus */
10260
61 #ifdef __TURBOC__
62 #pragma warn -rch
63 #pragma warn -use
64 #include
65 #include
66 #define YY_USE_CONST
67 #define YY_USE_PROTOS
68 #endif
69
10370 #ifdef YY_USE_CONST
10471 #define yyconst const
10572 #else
10673 #define yyconst
74 #endif
75
76
77 #ifdef YY_USE_PROTOS
78 #define YY_PROTO(proto) proto
79 #else
80 #define YY_PROTO(proto) ()
10781 #endif
10882
10983 /* Returned upon end-of-file. */
12094 * but we do it the disgusting crufty way forced on us by the ()-less
12195 * definition of BEGIN.
12296 */
123 #define BEGIN (yy_start) = 1 + 2 *
97 #define BEGIN yy_start = 1 + 2 *
12498
12599 /* Translate the current start state into a value that can be later handed
126100 * to BEGIN to return to the state. The YYSTATE alias is for lex
127101 * compatibility.
128102 */
129 #define YY_START (((yy_start) - 1) / 2)
103 #define YY_START ((yy_start - 1) / 2)
130104 #define YYSTATE YY_START
131105
132106 /* Action number for EOF rule of a given start state. */
133107 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
134108
135109 /* Special action meaning "start processing a new file". */
136 #define YY_NEW_FILE llvmAsmrestart(llvmAsmin )
110 #define YY_NEW_FILE yyrestart( yyin )
137111
138112 #define YY_END_OF_BUFFER_CHAR 0
139113
140114 /* Size of default input buffer. */
141 #ifndef YY_BUF_SIZE
142115 #define YY_BUF_SIZE (16384*64)
143 #endif
144
145 /* The state buf must be large enough to hold one state per character in the main buffer.
146 */
147 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
148
149 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
150 #define YY_TYPEDEF_YY_BUFFER_STATE
116
151117 typedef struct yy_buffer_state *YY_BUFFER_STATE;
152 #endif
153
154 extern int llvmAsmleng;
155
156 extern FILE *llvmAsmin, *llvmAsmout;
118
119 extern int yyleng;
120 extern FILE *yyin, *yyout;
157121
158122 #define EOB_ACT_CONTINUE_SCAN 0
159123 #define EOB_ACT_END_OF_FILE 1
160124 #define EOB_ACT_LAST_MATCH 2
161125
162 /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
163 * access to the local variable yy_act. Since yyless() is a macro, it would break
164 * existing scanners that call yyless() from OUTSIDE llvmAsmlex.
165 * One obvious solution it to make yy_act a global. I tried that, and saw
166 * a 5% performance hit in a non-llvmAsmlineno scanner, because yy_act is
167 * normally declared as a register variable-- so it is not worth it.
168 */
169 #define YY_LESS_LINENO(n) \
170 do { \
171 int yyl;\
172 for ( yyl = n; yyl < llvmAsmleng; ++yyl )\
173 if ( llvmAsmtext[yyl] == '\n' )\
174 --llvmAsmlineno;\
175 }while(0)
176
177 /* Return all but the first "n" matched characters back to the input stream. */
126 /* The funky do-while in the following #define is used to turn the definition
127 * int a single C statement (which needs a semi-colon terminator). This
128 * avoids problems with code like:
129 *
130 * if ( condition_holds )
131 * yyless( 5 );
132 * else
133 * do_something_else();
134 *
135 * Prior to using the do-while the compiler would get upset at the
136 * "else" because it interpreted the "if" statement as being all
137 * done when it reached the ';' after the yyless() call.
138 */
139
140 /* Return all but the first 'n' matched characters back to the input stream. */
141
178142 #define yyless(n) \
179143 do \
180144 { \
181 /* Undo effects of setting up llvmAsmtext. */ \
182 int yyless_macro_arg = (n); \
183 YY_LESS_LINENO(yyless_macro_arg);\
184 *yy_cp = (yy_hold_char); \
145 /* Undo effects of setting up yytext. */ \
146 *yy_cp = yy_hold_char; \
185147 YY_RESTORE_YY_MORE_OFFSET \
186 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
187 YY_DO_BEFORE_ACTION; /* set up llvmAsmtext again */ \
148 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
149 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
188150 } \
189151 while ( 0 )
190152
191 #define unput(c) yyunput( c, (yytext_ptr) )
153 #define unput(c) yyunput( c, yytext_ptr )
154
155 /* Some routines like yy_flex_realloc() are emitted as static but are
156 not called by all lexers. This generates warnings in some compilers,
157 notably GCC. Arrange to suppress these. */
158 #ifdef __GNUC__
159 #define YY_MAY_BE_UNUSED __attribute__((unused))
160 #else
161 #define YY_MAY_BE_UNUSED
162 #endif
192163
193164 /* The following is because we cannot portably get our hands on size_t
194165 * (without autoconf's help, which isn't available because we want
195166 * flex-generated scanners to compile on their own).
196167 */
197
198 #ifndef YY_TYPEDEF_YY_SIZE_T
199 #define YY_TYPEDEF_YY_SIZE_T
200168 typedef unsigned int yy_size_t;
201 #endif
202
203 #ifndef YY_STRUCT_YY_BUFFER_STATE
204 #define YY_STRUCT_YY_BUFFER_STATE
169
170
205171 struct yy_buffer_state
206172 {
207173 FILE *yy_input_file;
238204 */
239205 int yy_at_bol;
240206
241 int yy_bs_lineno; /**< The line count. */
242 int yy_bs_column; /**< The column count. */
243
244207 /* Whether to try to fill the input buffer when we reach the
245208 * end of it.
246209 */
247210 int yy_fill_buffer;
248211
249212 int yy_buffer_status;
250
251213 #define YY_BUFFER_NEW 0
252214 #define YY_BUFFER_NORMAL 1
253215 /* When an EOF's been seen but there's still some text to process
257219 * possible backing-up.
258220 *
259221 * When we actually see the EOF, we change the status to "new"
260 * (via llvmAsmrestart()), so that the user can continue scanning by
261 * just pointing llvmAsmin at a new input file.
222 * (via yyrestart()), so that the user can continue scanning by
223 * just pointing yyin at a new input file.
262224 */
263225 #define YY_BUFFER_EOF_PENDING 2
264
265226 };
266 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
267
268 /* Stack of input buffers. */
269 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
270 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
271 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
227
228 static YY_BUFFER_STATE yy_current_buffer = 0;
272229
273230 /* We provide macros for accessing buffer states in case in the
274231 * future we want to put the buffer states in a more general
275232 * "scanner state".
276 *
277 * Returns the top of the stack, or NULL.
278233 */
279 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
280 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
281 : NULL)
282
283 /* Same as previous macro, but useful when we know that the buffer stack is not
284 * NULL or when we need an lvalue. For internal use only.
285 */
286 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
287
288 /* yy_hold_char holds the character lost when llvmAsmtext is formed. */
234 #define YY_CURRENT_BUFFER yy_current_buffer
235
236
237 /* yy_hold_char holds the character lost when yytext is formed. */
289238 static char yy_hold_char;
239
290240 static int yy_n_chars; /* number of characters read into yy_ch_buf */
291 int llvmAsmleng;
241
242
243 int yyleng;
292244
293245 /* Points to current character in buffer. */
294246 static char *yy_c_buf_p = (char *) 0;
295 static int yy_init = 0; /* whether we need to initialize */
247 static int yy_init = 1; /* whether we need to initialize */
296248 static int yy_start = 0; /* start state number */
297249
298 /* Flag which is used to allow llvmAsmwrap()'s to do buffer switches
299 * instead of setting up a fresh llvmAsmin. A bit of a hack ...
250 /* Flag which is used to allow yywrap()'s to do buffer switches
251 * instead of setting up a fresh yyin. A bit of a hack ...
300252 */
301253 static int yy_did_buffer_switch_on_eof;
302254
303 void llvmAsmrestart (FILE *input_file );
304 void llvmAsm_switch_to_buffer (YY_BUFFER_STATE new_buffer );
305 YY_BUFFER_STATE llvmAsm_create_buffer (FILE *file,int size );
306 void llvmAsm_delete_buffer (YY_BUFFER_STATE b );
307 void llvmAsm_flush_buffer (YY_BUFFER_STATE b );
308 void llvmAsmpush_buffer_state (YY_BUFFER_STATE new_buffer );
309 void llvmAsmpop_buffer_state (void );
310
311 static void llvmAsmensure_buffer_stack (void );
312 static void llvmAsm_load_buffer_state (void );
313 static void llvmAsm_init_buffer (YY_BUFFER_STATE b,FILE *file );
314
315 #define YY_FLUSH_BUFFER llvmAsm_flush_buffer(YY_CURRENT_BUFFER )
316
317 YY_BUFFER_STATE llvmAsm_scan_buffer (char *base,yy_size_t size );
318 YY_BUFFER_STATE llvmAsm_scan_string (yyconst char *yy_str );
319 YY_BUFFER_STATE llvmAsm_scan_bytes (yyconst char *bytes,int len );
320
321 void *llvmAsmalloc (yy_size_t );
322 void *llvmAsmrealloc (void *,yy_size_t );
323 void llvmAsmfree (void * );
324
325 #define yy_new_buffer llvmAsm_create_buffer
255 void yyrestart YY_PROTO(( FILE *input_file ));
256
257 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
258 void yy_load_buffer_state YY_PROTO(( void ));
259 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
260 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
261 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
262 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
263 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
264
265 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
266 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
267 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
268
269 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
270 static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
271 static void yy_flex_free YY_PROTO(( void * ));
272
273 #define yy_new_buffer yy_create_buffer
326274
327275 #define yy_set_interactive(is_interactive) \
328276 { \
329 if ( ! YY_CURRENT_BUFFER ){ \
330 llvmAsmensure_buffer_stack (); \
331 YY_CURRENT_BUFFER_LVALUE = \
332 llvmAsm_create_buffer(llvmAsmin,YY_BUF_SIZE ); \
333 } \
334 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
277 if ( ! yy_current_buffer ) \
278 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
279 yy_current_buffer->yy_is_interactive = is_interactive; \
335280 }
336281
337282 #define yy_set_bol(at_bol) \
338283 { \
339 if ( ! YY_CURRENT_BUFFER ){\
340 llvmAsmensure_buffer_stack (); \
341 YY_CURRENT_BUFFER_LVALUE = \
342 llvmAsm_create_buffer(llvmAsmin,YY_BUF_SIZE ); \
343 } \
344 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
284 if ( ! yy_current_buffer ) \
285 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
286 yy_current_buffer->yy_at_bol = at_bol; \
345287 }
346288
347 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
348
349 /* Begin user sect3 */
350
351 #define llvmAsmwrap(n) 1
289 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
290
291
292 #define YY_USES_REJECT
293
294 #define yywrap() 1
352295 #define YY_SKIP_YYWRAP
353
354296 typedef unsigned char YY_CHAR;
355
356 FILE *llvmAsmin = (FILE *) 0, *llvmAsmout = (FILE *) 0;
357
297 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
358298 typedef int yy_state_type;
359
360 extern int llvmAsmlineno;
361
362 int llvmAsmlineno = 1;
363
364 extern char *llvmAsmtext;
365 #define yytext_ptr llvmAsmtext
366
367 static yy_state_type yy_get_previous_state (void );
368 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
369 static int yy_get_next_buffer (void );
370 static void yy_fatal_error (yyconst char msg[] );
299 extern int yylineno;
300 int yylineno = 1;
301 extern char *yytext;
302 #define yytext_ptr yytext
303
304 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
305 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
306 static int yy_get_next_buffer YY_PROTO(( void ));
307 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
371308
372309 /* Done after the current pattern has been matched and before the
373 * corresponding action - sets up llvmAsmtext.
310 * corresponding action - sets up yytext.
374311 */
375312 #define YY_DO_BEFORE_ACTION \
376 (yytext_ptr) = yy_bp; \
377 llvmAsmleng = (size_t) (yy_cp - yy_bp); \
378 (yy_hold_char) = *yy_cp; \
313 yytext_ptr = yy_bp; \
314 yyleng = (int) (yy_cp - yy_bp); \
315 yy_hold_char = *yy_cp; \
379316 *yy_cp = '\0'; \
380 (yy_c_buf_p) = yy_cp;
317 yy_c_buf_p = yy_cp;
381318
382319 #define YY_NUM_RULES 137
383320 #define YY_END_OF_BUFFER 138
384 /* This struct is not used in this scanner,
385 but its presence is necessary. */
386 struct yy_trans_info
387 {
388 flex_int32_t yy_verify;
389 flex_int32_t yy_nxt;
390 };
391 static yyconst flex_int16_t yy_accept[552] =
321 static yyconst short int yy_acclist[218] =
392322 { 0,
393 0, 0, 138, 136, 135, 135, 136, 136, 136, 136,
394 136, 136, 128, 128, 1, 136, 136, 136, 136, 136,
395 136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
396 136, 136, 136, 136, 136, 136, 136, 136, 0, 126,
397 0, 124, 122, 131, 0, 129, 0, 133, 128, 0,
398 1, 0, 123, 132, 0, 0, 0, 0, 0, 0,
399 0, 108, 0, 37, 0, 0, 0, 0, 0, 0,
400 71, 0, 0, 0, 0, 0, 0, 0, 0, 0,
401 0, 53, 0, 0, 0, 0, 0, 0, 0, 0,
402 0, 72, 0, 0, 0, 0, 0, 0, 0, 67,
403
404 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
405 0, 0, 0, 0, 0, 0, 24, 0, 0, 0,
406 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
407 0, 0, 126, 122, 133, 21, 133, 0, 134, 0,
408 127, 123, 54, 0, 0, 66, 0, 0, 35, 0,
409 0, 0, 38, 0, 0, 0, 0, 0, 0, 0,
410 0, 3, 0, 0, 0, 0, 0, 0, 0, 0,
411 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
412 0, 0, 0, 0, 0, 56, 0, 0, 0, 81,
413 86, 84, 85, 83, 82, 0, 87, 91, 0, 107,
414
415 0, 0, 0, 0, 0, 76, 74, 63, 0, 0,
416 0, 75, 73, 0, 0, 55, 0, 0, 0, 0,
417 0, 0, 0, 0, 89, 80, 78, 0, 79, 77,
418 0, 90, 88, 0, 0, 0, 0, 0, 0, 0,
419 0, 68, 0, 0, 125, 133, 0, 0, 0, 133,
420 0, 0, 0, 0, 65, 0, 0, 92, 0, 0,
421 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
422 0, 70, 59, 0, 0, 0, 0, 115, 62, 0,
423 0, 0, 69, 0, 0, 0, 0, 0, 0, 0,
424 116, 64, 0, 0, 0, 0, 23, 0, 0, 130,
425
426 58, 0, 0, 95, 0, 0, 0, 61, 44, 0,
427 0, 25, 0, 0, 0, 4, 0, 51, 57, 0,
428 0, 0, 0, 60, 0, 47, 0, 12, 0, 0,
429 94, 133, 33, 31, 0, 0, 2, 0, 0, 0,
430 0, 0, 0, 0, 0, 0, 0, 0, 0, 5,
431 0, 48, 97, 0, 0, 0, 0, 0, 0, 43,
432 0, 0, 0, 0, 50, 0, 0, 0, 0, 0,
433 0, 0, 0, 0, 0, 0, 0, 117, 0, 0,
434 0, 0, 93, 0, 22, 0, 0, 0, 0, 0,
435 0, 0, 114, 0, 0, 40, 0, 0, 0, 7,
436
437 0, 0, 0, 49, 0, 0, 39, 101, 100, 0,
438 0, 8, 16, 0, 0, 0, 110, 0, 113, 34,
439 0, 0, 52, 0, 0, 105, 0, 0, 99, 109,
440 26, 0, 27, 98, 0, 111, 106, 0, 0, 0,
441 0, 0, 104, 0, 0, 6, 28, 0, 0, 0,
442 0, 0, 96, 0, 0, 0, 0, 0, 0, 0,
443 0, 32, 0, 0, 0, 0, 0, 0, 0, 0,
444 0, 9, 0, 0, 0, 0, 18, 0, 0, 0,
445 10, 102, 11, 46, 45, 103, 0, 0, 0, 0,
446 30, 0, 0, 0, 13, 0, 15, 14, 0, 0,
447
448 0, 0, 0, 0, 0, 0, 0, 0, 0, 29,
449 0, 0, 0, 0, 0, 36, 0, 0, 0, 0,
450 0, 17, 0, 0, 0, 0, 0, 112, 0, 0,
451 0, 0, 0, 0, 0, 19, 0, 0, 0, 0,
452 118, 120, 121, 0, 41, 0, 119, 42, 0, 20,
453 0
323 138, 136, 137, 135, 136, 137, 135, 137, 136, 137,
324 136, 137, 136, 137, 136, 137, 136, 137, 136, 137,
325 128, 136, 137, 128, 136, 137, 1, 136, 137, 136,
326 137, 136, 137, 136, 137, 136, 137, 136, 137, 136,
327 137, 136, 137, 136, 137, 136, 137, 136, 137, 136,
328 137, 136, 137, 136, 137, 136, 137, 136, 137, 136,
329 137, 136, 137, 136, 137, 136, 137, 136, 137, 136,
330 137, 136, 137, 136, 137, 126, 124, 122, 131, 129,
331 133, 128, 1, 123, 132, 108, 37, 71, 53, 72,
332 67, 24, 126, 122, 133, 21, 133, 134, 127, 123,
333
334 54, 66, 35, 38, 3, 56, 81, 86, 84, 85,
335 83, 82, 87, 91, 107, 76, 74, 63, 75, 73,
336 55, 89, 80, 78, 79, 77, 90, 88, 68, 125,
337 133, 133, 65, 92, 70, 59, 115, 62, 69, 116,
338 64, 23, 130, 58, 95, 61, 44, 25, 4, 51,
339 57, 60, 47, 12, 94, 133, 33, 31, 2, 5,
340 48, 97, 43, 50, 117, 93, 22, 114, 40, 7,
341 49, 39, 101, 100, 8, 16, 110, 113, 34, 52,
342 105, 99, 109, 26, 27, 98, 111, 106, 104, 6,
343 28, 96, 32, 9, 18, 10, 102, 11, 46, 45,
344
345 103, 30, 13, 15, 14, 29, 36, 17, 112, 19,
346 118, 120, 121, 41, 119, 42, 20
454347 } ;
455348
456 static yyconst flex_int32_t yy_ec[256] =
349 static yyconst short int yy_accept[553] =
350 { 0,
351 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
352 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
353 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
354 60, 62, 64, 66, 68, 70, 72, 74, 76, 76,
355 77, 77, 78, 79, 80, 80, 81, 81, 82, 83,
356 83, 84, 84, 85, 86, 86, 86, 86, 86, 86,
357 86, 86, 87, 87, 88, 88, 88, 88, 88, 88,
358 88, 89, 89, 89, 89, 89, 89, 89, 89, 89,
359 89, 89, 90, 90, 90, 90, 90, 90, 90, 90,
360 90, 90, 91, 91, 91, 91, 91, 91, 91, 91,
361
362 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
363 92, 92, 92, 92, 92, 92, 92, 93, 93, 93,
364 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
365 93, 93, 93, 94, 95, 96, 97, 98, 98, 99,
366 99, 100, 101, 102, 102, 102, 103, 103, 103, 104,
367 104, 104, 104, 105, 105, 105, 105, 105, 105, 105,
368 105, 105, 106, 106, 106, 106, 106, 106, 106, 106,
369 106, 106, 106, 106, 106, 106, 106, 106, 106, 106,
370 106, 106, 106, 106, 106, 106, 107, 107, 107, 107,
371 108, 109, 110, 111, 112, 113, 113, 114, 115, 115,
372
373 116, 116, 116, 116, 116, 116, 117, 118, 119, 119,
374 119, 119, 120, 121, 121, 121, 122, 122, 122, 122,
375 122, 122, 122, 122, 122, 123, 124, 125, 125, 126,
376 127, 127, 128, 129, 129, 129, 129, 129, 129, 129,
377 129, 129, 130, 130, 130, 131, 132, 132, 132, 132,
378 133, 133, 133, 133, 133, 134, 134, 134, 135, 135,
379 135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
380 135, 135, 136, 137, 137, 137, 137, 137, 138, 139,
381 139, 139, 139, 140, 140, 140, 140, 140, 140, 140,
382 140, 141, 142, 142, 142, 142, 142, 143, 143, 143,
383
384 144, 145, 145, 145, 146, 146, 146, 146, 147, 148,
385 148, 148, 149, 149, 149, 149, 150, 150, 151, 152,
386 152, 152, 152, 152, 153, 153, 154, 154, 155, 155,
387 155, 156, 157, 158, 159, 159, 159, 160, 160, 160,
388 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
389 161, 161, 162, 163, 163, 163, 163, 163, 163, 163,
390 164, 164, 164, 164, 164, 165, 165, 165, 165, 165,
391 165, 165, 165, 165, 165, 165, 165, 165, 166, 166,
392 166, 166, 166, 167, 167, 168, 168, 168, 168, 168,
393 168, 168, 168, 169, 169, 169, 170, 170, 170, 170,
394
395 171, 171, 171, 171, 172, 172, 172, 173, 174, 175,
396 175, 175, 176, 177, 177, 177, 177, 178, 178, 179,
397 180, 180, 180, 181, 181, 181, 182, 182, 182, 183,
398 184, 185, 185, 186, 187, 187, 188, 189, 189, 189,
399 189, 189, 189, 190, 190, 190, 191, 192, 192, 192,
400 192, 192, 192, 193, 193, 193, 193, 193, 193, 193,
401 193, 193, 194, 194, 194, 194, 194, 194, 194, 194,
402 194, 194, 195, 195, 195, 195, 195, 196, 196, 196,
403 196, 197, 198, 199, 200, 201, 202, 202, 202, 202,
404 202, 203, 203, 203, 203, 204, 204, 205, 206, 206,
405
406 206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
407 207, 207, 207, 207, 207, 207, 208, 208, 208, 208,
408 208, 208, 209, 209, 209, 209, 209, 209, 210, 210,
409 210, 210, 210, 210, 210, 210, 211, 211, 211, 211,
410 211, 212, 213, 214, 214, 215, 215, 216, 217, 217,
411 218, 218
412 } ;
413
414 static yyconst int yy_ec[256] =
457415 { 0,
458416 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
459417 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
485443 1, 1, 1, 1, 1
486444 } ;
487445
488 static yyconst flex_int32_t yy_meta[45] =
446 static yyconst int yy_meta[45] =
489447 { 0,
490448 1, 1, 2, 3, 4, 1, 1, 4, 4, 4,
491449 4, 4, 4, 5, 1, 1, 4, 4, 4, 4,
494452 4, 4, 4, 4
495453 } ;
496454
497 static yyconst flex_int16_t yy_base[560] =
455 static yyconst short int yy_base[560] =
498456 { 0,
499457 0, 0, 1201, 1202, 1202, 1202, 1196, 1185, 35, 39,
500458 43, 49, 55, 61, 0, 72, 64, 67, 66, 86,
559517 1202, 1079, 1081, 212, 1086, 1089, 167, 1093, 108
560518 } ;
561519
562 static yyconst flex_int16_t yy_def[560] =
520 static yyconst short int yy_def[560] =
563521 { 0,
564522 551, 1, 551, 551, 551, 551, 552, 553, 554, 551,
565523 553, 553, 553, 553, 555, 556, 553, 553, 553, 553,
624582 0, 551, 551, 551, 551, 551, 551, 551, 551
625583 } ;
626584
627 static yyconst flex_int16_t yy_nxt[1247] =
585 static yyconst short int yy_nxt[1247] =
628586 { 0,
629587 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
630588 14, 14, 14, 4, 15, 16, 8, 8, 8, 17,
765723 551, 551, 551, 551, 551, 551
766724 } ;
767725
768 static yyconst flex_int16_t yy_chk[1247] =
726 static yyconst short int yy_chk[1247] =
769727 { 0,
770728 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
771729 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
906864 551, 551, 551, 551, 551, 551
907865 } ;
908866
909 /* Table of booleans, true if rule could match eol. */
910 static yyconst flex_int32_t yy_rule_can_match_eol[138] =
911 { 0,
912 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
913 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
914 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
915 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
916 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
917 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
918 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, };
919
920 static yy_state_type yy_last_accepting_state;
921 static char *yy_last_accepting_cpos;
922
923 extern int llvmAsm_flex_debug;
924 int llvmAsm_flex_debug = 0;
925
926 /* The intent behind this definition is that it'll catch
927 * any uses of REJECT which flex missed.
928 */
929 #define REJECT reject_used_but_not_detected
867 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
868 static char *yy_full_match;
869 static int yy_lp;
870 #define REJECT \
871 { \
872 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
873 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
874 ++yy_lp; \
875 goto find_rule; \
876 }
930877 #define yymore() yymore_used_but_not_detected
931878 #define YY_MORE_ADJ 0
932879 #define YY_RESTORE_YY_MORE_OFFSET
933 char *llvmAsmtext;
934 #line 1 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
880 char *yytext;
881 #line 1 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
882 #define INITIAL 0
935883 /*===-- Lexer.l - Scanner for llvm assembly files --------------*- C++ -*--===//
936884 //
937885 // The LLVM Compiler Infrastructure
944892 // This file implements the flex scanner for LLVM assembly languages files.
945893 //
946894 //===----------------------------------------------------------------------===*/
947 #line 28 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
895 #define YY_NEVER_INTERACTIVE 1
896 #line 28 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
948897 #include "ParserInternals.h"
949898 #include "llvm/Module.h"
950899 #include
953902 #include
954903
955904 void set_scan_file(FILE * F){
956 llvmAsm_switch_to_buffer(llvmAsm_create_buffer(F,YY_BUF_SIZE ) );
905 yy_switch_to_buffer(yy_create_buffer( F, YY_BUF_SIZE ) );
957906 }
958907 void set_scan_string (const char * str) {
959 llvmAsm_scan_string (str);
908 yy_scan_string (str);
960909 }
961910
962911 // Construct a token value for a non-obsolete token
10771026 /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
10781027 * it to deal with 64 bit numbers.
10791028 */
1080 #line 1082 "Lexer.cpp"
1081
1082 #define INITIAL 0
1083
1084 #ifndef YY_NO_UNISTD_H
1085 /* Special case for "unistd.h", since it is non-ANSI. We include it way
1086 * down here because we want the user's section 1 to have been scanned first.
1087 * The user has a chance to override it with an option.
1088 */
1089 #include
1090 #endif
1091
1092 #ifndef YY_EXTRA_TYPE
1093 #define YY_EXTRA_TYPE void *
1094 #endif
1095
1096 static int yy_init_globals (void );
1029 #line 1031 "Lexer.cpp"
10971030
10981031 /* Macros after this point can all be overridden by user definitions in
10991032 * section 1.
11011034
11021035 #ifndef YY_SKIP_YYWRAP
11031036 #ifdef __cplusplus
1104 extern "C" int llvmAsmwrap (void );
1105 #else
1106 extern int llvmAsmwrap (void );
1107 #endif
1108 #endif
1109
1110 static inline void yyunput (int c,char *buf_ptr );
1111
1037 extern "C" int yywrap YY_PROTO(( void ));
1038 #else
1039 extern int yywrap YY_PROTO(( void ));
1040 #endif
1041 #endif
1042
1043 #ifndef YY_NO_UNPUT
1044 static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1045 #endif
1046
11121047 #ifndef yytext_ptr
1113 static void yy_flex_strncpy (char *,yyconst char *,int );
1048 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
11141049 #endif
11151050
11161051 #ifdef YY_NEED_STRLEN
1117 static int yy_flex_strlen (yyconst char * );
1052 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
11181053 #endif
11191054
11201055 #ifndef YY_NO_INPUT
1121
11221056 #ifdef __cplusplus
1123 static int yyinput (void );
1124 #else
1125 static int input (void );
1126 #endif
1127
1057 static int yyinput YY_PROTO(( void ));
1058 #else
1059 static int input YY_PROTO(( void ));
1060 #endif
1061 #endif
1062
1063 #if YY_STACK_USED
1064 static int yy_start_stack_ptr = 0;
1065 static int yy_start_stack_depth = 0;
1066 static int *yy_start_stack = 0;
1067 #ifndef YY_NO_PUSH_STATE
1068 static void yy_push_state YY_PROTO(( int new_state ));
1069 #endif
1070 #ifndef YY_NO_POP_STATE
1071 static void yy_pop_state YY_PROTO(( void ));
1072 #endif
1073 #ifndef YY_NO_TOP_STATE
1074 static int yy_top_state YY_PROTO(( void ));
1075 #endif
1076
1077 #else
1078 #define YY_NO_PUSH_STATE 1
1079 #define YY_NO_POP_STATE 1
1080 #define YY_NO_TOP_STATE 1
1081 #endif
1082
1083 #ifdef YY_MALLOC_DECL
1084 YY_MALLOC_DECL
1085 #else
1086 #if __STDC__
1087 #ifndef __cplusplus
1088 #include
1089 #endif
1090 #else
1091 /* Just try to get by without declaring the routines. This will fail
1092 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1093 * or sizeof(void*) != sizeof(int).
1094 */
1095 #endif
11281096 #endif
11291097
11301098 /* Amount of stuff to slurp up with each read. */
11331101 #endif
11341102
11351103 /* Copy whatever the last rule matched to the standard output. */
1104
11361105 #ifndef ECHO
11371106 /* This used to be an fputs(), but since the string might contain NUL's,
11381107 * we now use fwrite().
11391108 */
1140 #define ECHO (void) fwrite( llvmAsmtext, llvmAsmleng, 1, llvmAsmout )
1109 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
11411110 #endif
11421111
11431112 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
11451114 */
11461115 #ifndef YY_INPUT
11471116 #define YY_INPUT(buf,result,max_size) \
1148 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1117 if ( yy_current_buffer->yy_is_interactive ) \
11491118 { \
1150 int c = '*'; \
1151 size_t n; \
1119 int c = '*', n; \
11521120 for ( n = 0; n < max_size && \
1153 (c = getc( llvmAsmin )) != EOF && c != '\n'; ++n ) \
1121 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
11541122 buf[n] = (char) c; \
11551123 if ( c == '\n' ) \
11561124 buf[n++] = (char) c; \
1157 if ( c == EOF && ferror( llvmAsmin ) ) \
1125 if ( c == EOF && ferror( yyin ) ) \
11581126 YY_FATAL_ERROR( "input in flex scanner failed" ); \
11591127 result = n; \
11601128 } \
1161 else \
1162 { \
1163 errno=0; \
1164 while ( (result = fread(buf, 1, max_size, llvmAsmin))==0 && ferror(llvmAsmin)) \
1165 { \
1166 if( errno != EINTR) \
1167 { \
1168 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1169 break; \
1170 } \
1171 errno=0; \
1172 clearerr(llvmAsmin); \
1173 } \
1174 }\
1175 \
1176
1129 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1130 && ferror( yyin ) ) \
1131 YY_FATAL_ERROR( "input in flex scanner failed" );
11771132 #endif
11781133
11791134 /* No semi-colon after return; correct usage is to write "yyterminate();" -
11941149 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
11951150 #endif
11961151
1197 /* end tables serialization structures and prototypes */
1198
11991152 /* Default declaration of generated scanner - a define so the user can
12001153 * easily add parameters.
12011154 */
12021155 #ifndef YY_DECL
1203 #define YY_DECL_IS_OURS 1
1204
1205 extern int llvmAsmlex (void);
1206
1207 #define YY_DECL int llvmAsmlex (void)
1208 #endif /* !YY_DECL */
1209
1210 /* Code executed at the beginning of each rule, after llvmAsmtext and llvmAsmleng
1156 #define YY_DECL int yylex YY_PROTO(( void ))
1157 #endif
1158
1159 /* Code executed at the beginning of each rule, after yytext and yyleng
12111160 * have been set up.
12121161 */
12131162 #ifndef YY_USER_ACTION
12221171 #define YY_RULE_SETUP \
12231172 YY_USER_ACTION
12241173
1225 /** The main scanner function which does all the work.
1226 */
12271174 YY_DECL
1228 {
1175 {
12291176 register yy_state_type yy_current_state;
1230 register char *yy_cp, *yy_bp;
1177 register char *yy_cp = NULL, *yy_bp = NULL;
12311178 register int yy_act;
1232
1233 #line 190 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1234
1235
1236 #line 1238 "Lexer.cpp"
1237
1238 if ( !(yy_init) )
1179
1180 #line 190 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
1181
1182
1183 #line 1185 "Lexer.cpp"
1184
1185 if ( yy_init )
12391186 {
1240 (yy_init) = 1;
1187 yy_init = 0;
12411188
12421189 #ifdef YY_USER_INIT
12431190 YY_USER_INIT;
12441191 #endif
12451192
1246 if ( ! (yy_start) )
1247 (yy_start) = 1; /* first start state */
1248
1249 if ( ! llvmAsmin )
1250 llvmAsmin = stdin;
1251
1252 if ( ! llvmAsmout )
1253 llvmAsmout = stdout;
1254
1255 if ( ! YY_CURRENT_BUFFER ) {
1256 llvmAsmensure_buffer_stack ();
1257 YY_CURRENT_BUFFER_LVALUE =
1258 llvmAsm_create_buffer(llvmAsmin,YY_BUF_SIZE );
1259 }
1260
1261 llvmAsm_load_buffer_state( );
1193 if ( ! yy_start )
1194 yy_start = 1; /* first start state */
1195
1196 if ( ! yyin )
1197 yyin = stdin;
1198
1199 if ( ! yyout )
1200 yyout = stdout;
1201
1202 if ( ! yy_current_buffer )
1203 yy_current_buffer =
1204 yy_create_buffer( yyin, YY_BUF_SIZE );
1205
1206 yy_load_buffer_state();
12621207 }
12631208
12641209 while ( 1 ) /* loops until end-of-file is reached */
12651210 {
1266 yy_cp = (yy_c_buf_p);
1267
1268 /* Support of llvmAsmtext. */
1269 *yy_cp = (yy_hold_char);
1211 yy_cp = yy_c_buf_p;
1212
1213 /* Support of yytext. */
1214 *yy_cp = yy_hold_char;
12701215
12711216 /* yy_bp points to the position in yy_ch_buf of the start of
12721217 * the current run.
12731218 */
12741219 yy_bp = yy_cp;
12751220
1276 yy_current_state = (yy_start);
1221 yy_current_state = yy_start;
1222 yy_state_ptr = yy_state_buf;
1223 *yy_state_ptr++ = yy_current_state;
12771224 yy_match:
12781225 do
12791226 {
12801227 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1281 if ( yy_accept[yy_current_state] )
1282 {
1283 (yy_last_accepting_state) = yy_current_state;
1284 (yy_last_accepting_cpos) = yy_cp;
1285 }
12861228 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
12871229 {
12881230 yy_current_state = (int) yy_def[yy_current_state];
12901232 yy_c = yy_meta[(unsigned int) yy_c];
12911233 }
12921234 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1235 *yy_state_ptr++ = yy_current_state;
12931236 ++yy_cp;
12941237 }
12951238 while ( yy_current_state != 551 );
1296 yy_cp = (yy_last_accepting_cpos);
1297 yy_current_state = (yy_last_accepting_state);
12981239
12991240 yy_find_action:
1300 yy_act = yy_accept[yy_current_state];
1241 yy_current_state = *--yy_state_ptr;
1242 yy_lp = yy_accept[yy_current_state];
1243 find_rule: /* we branch to this label when backing up */
1244 for ( ; ; ) /* until we find what rule we matched */
1245 {
1246 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1247 {
1248 yy_act = yy_acclist[yy_lp];
1249 {
1250 yy_full_match = yy_cp;
1251 break;
1252 }
1253 }
1254 --yy_cp;
1255 yy_current_state = *--yy_state_ptr;
1256 yy_lp = yy_accept[yy_current_state];
1257 }
13011258
13021259 YY_DO_BEFORE_ACTION;
13031260
1304 if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
1261 if ( yy_act != YY_END_OF_BUFFER )
13051262 {
13061263 int yyl;
1307 for ( yyl = 0; yyl < llvmAsmleng; ++yyl )
1308 if ( llvmAsmtext[yyl] == '\n' )
1309
1310 llvmAsmlineno++;
1311 ;
1264 for ( yyl = 0; yyl < yyleng; ++yyl )
1265 if ( yytext[yyl] == '\n' )
1266 ++yylineno;
13121267 }
13131268
13141269 do_action: /* This label is used only to access EOF actions. */
1270
13151271
13161272 switch ( yy_act )
13171273 { /* beginning of action switch */
1318 case 0: /* must back up */
1319 /* undo the effects of YY_DO_BEFORE_ACTION */
1320 *yy_cp = (yy_hold_char);
1321 yy_cp = (yy_last_accepting_cpos);
1322 yy_current_state = (yy_last_accepting_state);
1323 goto yy_find_action;
1324
13251274 case 1:
13261275 YY_RULE_SETUP
1327 #line 192 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1276 #line 192 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13281277 { /* Ignore comments for now */ }
13291278 YY_BREAK
13301279 case 2:
13311280 YY_RULE_SETUP
1332 #line 194 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1281 #line 194 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13331282 { return BEGINTOK; }
13341283 YY_BREAK
13351284 case 3:
13361285 YY_RULE_SETUP
1337 #line 195 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1286 #line 195 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13381287 { return ENDTOK; }
13391288 YY_BREAK
13401289 case 4:
13411290 YY_RULE_SETUP
1342 #line 196 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1291 #line 196 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13431292 { return TRUETOK; }
13441293 YY_BREAK
13451294 case 5:
13461295 YY_RULE_SETUP
1347 #line 197 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1296 #line 197 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13481297 { return FALSETOK; }
13491298 YY_BREAK
13501299 case 6:
13511300 YY_RULE_SETUP
1352 #line 198 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1301 #line 198 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13531302 { return DECLARE; }
13541303 YY_BREAK
13551304 case 7:
13561305 YY_RULE_SETUP
1357 #line 199 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1306 #line 199 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13581307 { return DEFINE; }
13591308 YY_BREAK
13601309 case 8:
13611310 YY_RULE_SETUP
1362 #line 200 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1311 #line 200 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13631312 { return GLOBAL; }
13641313 YY_BREAK
13651314 case 9:
13661315 YY_RULE_SETUP
1367 #line 201 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1316 #line 201 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13681317 { return CONSTANT; }
13691318 YY_BREAK
13701319 case 10:
13711320 YY_RULE_SETUP
1372 #line 202 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1321 #line 202 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13731322 { return INTERNAL; }
13741323 YY_BREAK
13751324 case 11:
13761325 YY_RULE_SETUP
1377 #line 203 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1326 #line 203 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13781327 { return LINKONCE; }
13791328 YY_BREAK
13801329 case 12:
13811330 YY_RULE_SETUP
1382 #line 204 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1331 #line 204 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13831332 { return WEAK; }
13841333 YY_BREAK
13851334 case 13:
13861335 YY_RULE_SETUP
1387 #line 205 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1336 #line 205 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13881337 { return APPENDING; }
13891338 YY_BREAK
13901339 case 14:
13911340 YY_RULE_SETUP
1392 #line 206 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1341 #line 206 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13931342 { return DLLIMPORT; }
13941343 YY_BREAK
13951344 case 15:
13961345 YY_RULE_SETUP
1397 #line 207 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1346 #line 207 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
13981347 { return DLLEXPORT; }
13991348 YY_BREAK
14001349 case 16:
14011350 YY_RULE_SETUP
1402 #line 208 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1351 #line 208 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14031352 { return HIDDEN; }
14041353 YY_BREAK
14051354 case 17:
14061355 YY_RULE_SETUP
1407 #line 209 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1356 #line 209 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14081357 { return EXTERN_WEAK; }
14091358 YY_BREAK
14101359 case 18:
14111360 YY_RULE_SETUP
1412 #line 210 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1361 #line 210 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14131362 { return EXTERNAL; }
14141363 YY_BREAK
14151364 case 19:
14161365 YY_RULE_SETUP
1417 #line 211 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1366 #line 211 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14181367 { return THREAD_LOCAL; }
14191368 YY_BREAK
14201369 case 20:
14211370 YY_RULE_SETUP
1422 #line 212 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1371 #line 212 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14231372 { return ZEROINITIALIZER; }
14241373 YY_BREAK
14251374 case 21:
14261375 YY_RULE_SETUP
1427 #line 213 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1376 #line 213 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14281377 { return DOTDOTDOT; }
14291378 YY_BREAK
14301379 case 22:
14311380 YY_RULE_SETUP
1432 #line 214 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1381 #line 214 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14331382 { return UNDEF; }
14341383 YY_BREAK
14351384 case 23:
14361385 YY_RULE_SETUP
1437 #line 215 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1386 #line 215 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14381387 { return NULL_TOK; }
14391388 YY_BREAK
14401389 case 24:
14411390 YY_RULE_SETUP
1442 #line 216 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1391 #line 216 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14431392 { return TO; }
14441393 YY_BREAK
14451394 case 25:
14461395 YY_RULE_SETUP
1447 #line 217 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1396 #line 217 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14481397 { return TAIL; }
14491398 YY_BREAK
14501399 case 26:
14511400 YY_RULE_SETUP
1452 #line 218 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1401 #line 218 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14531402 { return TARGET; }
14541403 YY_BREAK
14551404 case 27:
14561405 YY_RULE_SETUP
1457 #line 219 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1406 #line 219 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14581407 { return TRIPLE; }
14591408 YY_BREAK
14601409 case 28:
14611410 YY_RULE_SETUP
1462 #line 220 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1411 #line 220 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14631412 { return DEPLIBS; }
14641413 YY_BREAK
14651414 case 29:
14661415 YY_RULE_SETUP
1467 #line 221 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1416 #line 221 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14681417 { return DATALAYOUT; }
14691418 YY_BREAK
14701419 case 30:
14711420 YY_RULE_SETUP
1472 #line 222 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1421 #line 222 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14731422 { return VOLATILE; }
14741423 YY_BREAK
14751424 case 31:
14761425 YY_RULE_SETUP
1477 #line 223 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1426 #line 223 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14781427 { return ALIGN; }
14791428 YY_BREAK
14801429 case 32:
14811430 YY_RULE_SETUP
1482 #line 224 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1431 #line 224 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14831432 { return SECTION; }
14841433 YY_BREAK
14851434 case 33:
14861435 YY_RULE_SETUP
1487 #line 225 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1436 #line 225 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14881437 { return ALIAS; }
14891438 YY_BREAK
14901439 case 34:
14911440 YY_RULE_SETUP
1492 #line 226 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1441 #line 226 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14931442 { return MODULE; }
14941443 YY_BREAK
14951444 case 35:
14961445 YY_RULE_SETUP
1497 #line 227 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1446 #line 227 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
14981447 { return ASM_TOK; }
14991448 YY_BREAK
15001449 case 36:
15011450 YY_RULE_SETUP
1502 #line 228 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1451 #line 228 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15031452 { return SIDEEFFECT; }
15041453 YY_BREAK
15051454 case 37:
15061455 YY_RULE_SETUP
1507 #line 230 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1456 #line 230 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15081457 { return CC_TOK; }
15091458 YY_BREAK
15101459 case 38:
15111460 YY_RULE_SETUP
1512 #line 231 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1461 #line 231 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15131462 { return CCC_TOK; }
15141463 YY_BREAK
15151464 case 39:
15161465 YY_RULE_SETUP
1517 #line 232 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1466 #line 232 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15181467 { return FASTCC_TOK; }
15191468 YY_BREAK
15201469 case 40:
15211470 YY_RULE_SETUP
1522 #line 233 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1471 #line 233 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15231472 { return COLDCC_TOK; }
15241473 YY_BREAK
15251474 case 41:
15261475 YY_RULE_SETUP
1527 #line 234 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1476 #line 234 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15281477 { return X86_STDCALLCC_TOK; }
15291478 YY_BREAK
15301479 case 42:
15311480 YY_RULE_SETUP
1532 #line 235 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1481 #line 235 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15331482 { return X86_FASTCALLCC_TOK; }
15341483 YY_BREAK
15351484 case 43:
15361485 YY_RULE_SETUP
1537 #line 237 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1486 #line 237 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15381487 { return INREG; }
15391488 YY_BREAK
15401489 case 44:
15411490 YY_RULE_SETUP
1542 #line 238 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1491 #line 238 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15431492 { return SRET; }
15441493 YY_BREAK
15451494 case 45:
15461495 YY_RULE_SETUP
1547 #line 239 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1496 #line 239 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15481497 { return NOUNWIND; }
15491498 YY_BREAK
15501499 case 46:
15511500 YY_RULE_SETUP
1552 #line 240 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1501 #line 240 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15531502 { return NORETURN; }
15541503 YY_BREAK
15551504 case 47:
15561505 YY_RULE_SETUP
1557 #line 242 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1506 #line 242 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15581507 { RET_TY(Type::VoidTy, VOID); }
15591508 YY_BREAK
15601509 case 48:
15611510 YY_RULE_SETUP
1562 #line 243 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1511 #line 243 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15631512 { RET_TY(Type::FloatTy, FLOAT); }
15641513 YY_BREAK
15651514 case 49:
15661515 YY_RULE_SETUP
1567 #line 244 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1516 #line 244 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15681517 { RET_TY(Type::DoubleTy,DOUBLE);}
15691518 YY_BREAK
15701519 case 50:
15711520 YY_RULE_SETUP
1572 #line 245 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1521 #line 245 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15731522 { RET_TY(Type::LabelTy, LABEL); }
15741523 YY_BREAK
15751524 case 51:
15761525 YY_RULE_SETUP
1577 #line 246 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1526 #line 246 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15781527 { return TYPE; }
15791528 YY_BREAK
15801529 case 52:
15811530 YY_RULE_SETUP
1582 #line 247 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1531 #line 247 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15831532 { return OPAQUE; }
15841533 YY_BREAK
15851534 case 53:
15861535 YY_RULE_SETUP
1587 #line 248 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1588 { uint64_t NumBits = atoull(llvmAsmtext+1);
1536 #line 248 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
1537 { uint64_t NumBits = atoull(yytext+1);
15891538 if (NumBits < IntegerType::MIN_INT_BITS ||
15901539 NumBits > IntegerType::MAX_INT_BITS)
15911540 GenerateError("Bitwidth for integer type out of range!");
15951544 YY_BREAK
15961545 case 54:
15971546 YY_RULE_SETUP
1598 #line 256 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1547 #line 256 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
15991548 { RET_TOK(BinaryOpVal, Add, ADD); }
16001549 YY_BREAK
16011550 case 55:
16021551 YY_RULE_SETUP
1603 #line 257 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1552 #line 257 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16041553 { RET_TOK(BinaryOpVal, Sub, SUB); }
16051554 YY_BREAK
16061555 case 56:
16071556 YY_RULE_SETUP
1608 #line 258 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1557 #line 258 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16091558 { RET_TOK(BinaryOpVal, Mul, MUL); }
16101559 YY_BREAK
16111560 case 57:
16121561 YY_RULE_SETUP
1613 #line 259 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1562 #line 259 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16141563 { RET_TOK(BinaryOpVal, UDiv, UDIV); }
16151564 YY_BREAK
16161565 case 58:
16171566 YY_RULE_SETUP
1618 #line 260 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1567 #line 260 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16191568 { RET_TOK(BinaryOpVal, SDiv, SDIV); }
16201569 YY_BREAK
16211570 case 59:
16221571 YY_RULE_SETUP
1623 #line 261 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1572 #line 261 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16241573 { RET_TOK(BinaryOpVal, FDiv, FDIV); }
16251574 YY_BREAK
16261575 case 60:
16271576 YY_RULE_SETUP
1628 #line 262 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1577 #line 262 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16291578 { RET_TOK(BinaryOpVal, URem, UREM); }
16301579 YY_BREAK
16311580 case 61:
16321581 YY_RULE_SETUP
1633 #line 263 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1582 #line 263 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16341583 { RET_TOK(BinaryOpVal, SRem, SREM); }
16351584 YY_BREAK
16361585 case 62:
16371586 YY_RULE_SETUP
1638 #line 264 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1587 #line 264 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16391588 { RET_TOK(BinaryOpVal, FRem, FREM); }
16401589 YY_BREAK
16411590 case 63:
16421591 YY_RULE_SETUP
1643 #line 265 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1592 #line 265 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16441593 { RET_TOK(BinaryOpVal, Shl, SHL); }
16451594 YY_BREAK
16461595 case 64:
16471596 YY_RULE_SETUP
1648 #line 266 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1597 #line 266 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16491598 { RET_TOK(BinaryOpVal, LShr, LSHR); }
16501599 YY_BREAK
16511600 case 65:
16521601 YY_RULE_SETUP
1653 #line 267 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1602 #line 267 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16541603 { RET_TOK(BinaryOpVal, AShr, ASHR); }
16551604 YY_BREAK
16561605 case 66:
16571606 YY_RULE_SETUP
1658 #line 268 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1607 #line 268 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16591608 { RET_TOK(BinaryOpVal, And, AND); }
16601609 YY_BREAK
16611610 case 67:
16621611 YY_RULE_SETUP
1663 #line 269 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1612 #line 269 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16641613 { RET_TOK(BinaryOpVal, Or , OR ); }
16651614 YY_BREAK
16661615 case 68:
16671616 YY_RULE_SETUP
1668 #line 270 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1617 #line 270 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16691618 { RET_TOK(BinaryOpVal, Xor, XOR); }
16701619 YY_BREAK
16711620 case 69:
16721621 YY_RULE_SETUP
1673 #line 271 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1622 #line 271 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16741623 { RET_TOK(OtherOpVal, ICmp, ICMP); }
16751624 YY_BREAK
16761625 case 70:
16771626 YY_RULE_SETUP
1678 #line 272 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1627 #line 272 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16791628 { RET_TOK(OtherOpVal, FCmp, FCMP); }
16801629 YY_BREAK
16811630 case 71:
16821631 YY_RULE_SETUP
1683 #line 274 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1632 #line 274 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16841633 { return EQ; }
16851634 YY_BREAK
16861635 case 72:
16871636 YY_RULE_SETUP
1688 #line 275 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1637 #line 275 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16891638 { return NE; }
16901639 YY_BREAK
16911640 case 73:
16921641 YY_RULE_SETUP
1693 #line 276 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1642 #line 276 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16941643 { return SLT; }
16951644 YY_BREAK
16961645 case 74:
16971646 YY_RULE_SETUP
1698 #line 277 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1647 #line 277 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
16991648 { return SGT; }
17001649 YY_BREAK
17011650 case 75:
17021651 YY_RULE_SETUP
1703 #line 278 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1652 #line 278 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17041653 { return SLE; }
17051654 YY_BREAK
17061655 case 76:
17071656 YY_RULE_SETUP
1708 #line 279 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1657 #line 279 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17091658 { return SGE; }
17101659 YY_BREAK
17111660 case 77:
17121661 YY_RULE_SETUP
1713 #line 280 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1662 #line 280 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17141663 { return ULT; }
17151664 YY_BREAK
17161665 case 78:
17171666 YY_RULE_SETUP
1718 #line 281 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1667 #line 281 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17191668 { return UGT; }
17201669 YY_BREAK
17211670 case 79:
17221671 YY_RULE_SETUP
1723 #line 282 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1672 #line 282 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17241673 { return ULE; }
17251674 YY_BREAK
17261675 case 80:
17271676 YY_RULE_SETUP
1728 #line 283 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1677 #line 283 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17291678 { return UGE; }
17301679 YY_BREAK
17311680 case 81:
17321681 YY_RULE_SETUP
1733 #line 284 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1682 #line 284 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17341683 { return OEQ; }
17351684 YY_BREAK
17361685 case 82:
17371686 YY_RULE_SETUP
1738 #line 285 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1687 #line 285 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17391688 { return ONE; }
17401689 YY_BREAK
17411690 case 83:
17421691 YY_RULE_SETUP
1743 #line 286 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1692 #line 286 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17441693 { return OLT; }
17451694 YY_BREAK
17461695 case 84:
17471696 YY_RULE_SETUP
1748 #line 287 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1697 #line 287 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17491698 { return OGT; }
17501699 YY_BREAK
17511700 case 85:
17521701 YY_RULE_SETUP
1753 #line 288 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1702 #line 288 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17541703 { return OLE; }
17551704 YY_BREAK
17561705 case 86:
17571706 YY_RULE_SETUP
1758 #line 289 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1707 #line 289 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17591708 { return OGE; }
17601709 YY_BREAK
17611710 case 87:
17621711 YY_RULE_SETUP
1763 #line 290 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1712 #line 290 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17641713 { return ORD; }
17651714 YY_BREAK
17661715 case 88:
17671716 YY_RULE_SETUP
1768 #line 291 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1717 #line 291 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17691718 { return UNO; }
17701719 YY_BREAK
17711720 case 89:
17721721 YY_RULE_SETUP
1773 #line 292 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1722 #line 292 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17741723 { return UEQ; }
17751724 YY_BREAK
17761725 case 90:
17771726 YY_RULE_SETUP
1778 #line 293 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1727 #line 293 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17791728 { return UNE; }
17801729 YY_BREAK
17811730 case 91:
17821731 YY_RULE_SETUP
1783 #line 295 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1732 #line 295 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17841733 { RET_TOK(OtherOpVal, PHI, PHI_TOK); }
17851734 YY_BREAK
17861735 case 92:
17871736 YY_RULE_SETUP
1788 #line 296 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1737 #line 296 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17891738 { RET_TOK(OtherOpVal, Call, CALL); }
17901739 YY_BREAK
17911740 case 93:
17921741 YY_RULE_SETUP
1793 #line 297 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1742 #line 297 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17941743 { RET_TOK(CastOpVal, Trunc, TRUNC); }
17951744 YY_BREAK
17961745 case 94:
17971746 YY_RULE_SETUP
1798 #line 298 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1747 #line 298 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
17991748 { RET_TOK(CastOpVal, ZExt, ZEXT); }
18001749 YY_BREAK
18011750 case 95:
18021751 YY_RULE_SETUP
1803 #line 299 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1752 #line 299 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18041753 { RET_TOK(CastOpVal, SExt, SEXT); }
18051754 YY_BREAK
18061755 case 96:
18071756 YY_RULE_SETUP
1808 #line 300 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1757 #line 300 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18091758 { RET_TOK(CastOpVal, FPTrunc, FPTRUNC); }
18101759 YY_BREAK
18111760 case 97:
18121761 YY_RULE_SETUP
1813 #line 301 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1762 #line 301 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18141763 { RET_TOK(CastOpVal, FPExt, FPEXT); }
18151764 YY_BREAK
18161765 case 98:
18171766 YY_RULE_SETUP
1818 #line 302 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1767 #line 302 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18191768 { RET_TOK(CastOpVal, UIToFP, UITOFP); }
18201769 YY_BREAK
18211770 case 99:
18221771 YY_RULE_SETUP
1823 #line 303 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1772 #line 303 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18241773 { RET_TOK(CastOpVal, SIToFP, SITOFP); }
18251774 YY_BREAK
18261775 case 100:
18271776 YY_RULE_SETUP
1828 #line 304 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1777 #line 304 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18291778 { RET_TOK(CastOpVal, FPToUI, FPTOUI); }
18301779 YY_BREAK
18311780 case 101:
18321781 YY_RULE_SETUP
1833 #line 305 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1782 #line 305 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18341783 { RET_TOK(CastOpVal, FPToSI, FPTOSI); }
18351784 YY_BREAK
18361785 case 102:
18371786 YY_RULE_SETUP
1838 #line 306 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1787 #line 306 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18391788 { RET_TOK(CastOpVal, IntToPtr, INTTOPTR); }
18401789 YY_BREAK
18411790 case 103:
18421791 YY_RULE_SETUP
1843 #line 307 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1792 #line 307 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18441793 { RET_TOK(CastOpVal, PtrToInt, PTRTOINT); }
18451794 YY_BREAK
18461795 case 104:
18471796 YY_RULE_SETUP
1848 #line 308 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1797 #line 308 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18491798 { RET_TOK(CastOpVal, BitCast, BITCAST); }
18501799 YY_BREAK
18511800 case 105:
18521801 YY_RULE_SETUP
1853 #line 309 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1802 #line 309 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18541803 { RET_TOK(OtherOpVal, Select, SELECT); }
18551804 YY_BREAK
18561805 case 106:
18571806 YY_RULE_SETUP
1858 #line 310 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1807 #line 310 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18591808 { RET_TOK(OtherOpVal, VAArg , VAARG); }
18601809 YY_BREAK
18611810 case 107:
18621811 YY_RULE_SETUP
1863 #line 311 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1812 #line 311 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18641813 { RET_TOK(TermOpVal, Ret, RET); }
18651814 YY_BREAK
18661815 case 108:
18671816 YY_RULE_SETUP
1868 #line 312 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1817 #line 312 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18691818 { RET_TOK(TermOpVal, Br, BR); }
18701819 YY_BREAK
18711820 case 109:
18721821 YY_RULE_SETUP
1873 #line 313 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1822 #line 313 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18741823 { RET_TOK(TermOpVal, Switch, SWITCH); }
18751824 YY_BREAK
18761825 case 110:
18771826 YY_RULE_SETUP
1878 #line 314 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1827 #line 314 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18791828 { RET_TOK(TermOpVal, Invoke, INVOKE); }
18801829 YY_BREAK
18811830 case 111:
18821831 YY_RULE_SETUP
1883 #line 315 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1832 #line 315 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18841833 { RET_TOK(TermOpVal, Unwind, UNWIND); }
18851834 YY_BREAK
18861835 case 112:
18871836 YY_RULE_SETUP
1888 #line 316 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1837 #line 316 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18891838 { RET_TOK(TermOpVal, Unreachable, UNREACHABLE); }
18901839 YY_BREAK
18911840 case 113:
18921841 YY_RULE_SETUP
1893 #line 318 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1842 #line 318 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18941843 { RET_TOK(MemOpVal, Malloc, MALLOC); }
18951844 YY_BREAK
18961845 case 114:
18971846 YY_RULE_SETUP
1898 #line 319 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1847 #line 319 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
18991848 { RET_TOK(MemOpVal, Alloca, ALLOCA); }
19001849 YY_BREAK
19011850 case 115:
19021851 YY_RULE_SETUP
1903 #line 320 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1852 #line 320 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19041853 { RET_TOK(MemOpVal, Free, FREE); }
19051854 YY_BREAK
19061855 case 116:
19071856 YY_RULE_SETUP
1908 #line 321 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1857 #line 321 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19091858 { RET_TOK(MemOpVal, Load, LOAD); }
19101859 YY_BREAK
19111860 case 117:
19121861 YY_RULE_SETUP
1913 #line 322 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1862 #line 322 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19141863 { RET_TOK(MemOpVal, Store, STORE); }
19151864 YY_BREAK
19161865 case 118:
19171866 YY_RULE_SETUP
1918 #line 323 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1867 #line 323 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19191868 { RET_TOK(MemOpVal, GetElementPtr, GETELEMENTPTR); }
19201869 YY_BREAK
19211870 case 119:
19221871 YY_RULE_SETUP
1923 #line 325 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1872 #line 325 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19241873 { RET_TOK(OtherOpVal, ExtractElement, EXTRACTELEMENT); }
19251874 YY_BREAK
19261875 case 120:
19271876 YY_RULE_SETUP
1928 #line 326 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1877 #line 326 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19291878 { RET_TOK(OtherOpVal, InsertElement, INSERTELEMENT); }
19301879 YY_BREAK
19311880 case 121:
19321881 YY_RULE_SETUP
1933 #line 327 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1882 #line 327 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19341883 { RET_TOK(OtherOpVal, ShuffleVector, SHUFFLEVECTOR); }
19351884 YY_BREAK
19361885 case 122:
19371886 YY_RULE_SETUP
1938 #line 330 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1887 #line 330 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19391888 {
1940 UnEscapeLexed(llvmAsmtext+1);
1941 llvmAsmlval.StrVal = strdup(llvmAsmtext+1); // Skip %
1889 UnEscapeLexed(yytext+1);
1890 llvmAsmlval.StrVal = strdup(yytext+1); // Skip %
19421891 return LOCALVAR;
19431892 }
19441893 YY_BREAK
19451894 case 123:
19461895 YY_RULE_SETUP
1947 #line 335 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1896 #line 335 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19481897 {
1949 UnEscapeLexed(llvmAsmtext+1);
1950 llvmAsmlval.StrVal = strdup(llvmAsmtext+1); // Skip @
1898 UnEscapeLexed(yytext+1);
1899 llvmAsmlval.StrVal = strdup(yytext+1); // Skip @
19511900 return GLOBALVAR;
19521901 }
19531902 YY_BREAK
19541903 case 124:
19551904 YY_RULE_SETUP
1956 #line 340 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1905 #line 340 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19571906 {
1958 llvmAsmtext[strlen(llvmAsmtext)-1] = 0; // nuke colon
1959 UnEscapeLexed(llvmAsmtext);
1960 llvmAsmlval.StrVal = strdup(llvmAsmtext);
1907 yytext[strlen(yytext)-1] = 0; // nuke colon
1908 UnEscapeLexed(yytext);
1909 llvmAsmlval.StrVal = strdup(yytext);
19611910 return LABELSTR;
19621911 }
19631912 YY_BREAK
19641913 case 125:
1965 /* rule 125 can match eol */
1966 YY_RULE_SETUP
1967 #line 346 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1914 YY_RULE_SETUP
1915 #line 346 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19681916 {
1969 llvmAsmtext[strlen(llvmAsmtext)-2] = 0; // nuke colon, end quote
1970 UnEscapeLexed(llvmAsmtext+1);
1971 llvmAsmlval.StrVal = strdup(llvmAsmtext+1);
1917 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
1918 UnEscapeLexed(yytext+1);
1919 llvmAsmlval.StrVal = strdup(yytext+1);
19721920 return LABELSTR;
19731921 }
19741922 YY_BREAK
19751923 case 126:
1976 /* rule 126 can match eol */
1977 YY_RULE_SETUP
1978 #line 353 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1924 YY_RULE_SETUP
1925 #line 353 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19791926 { // Note that we cannot unescape a string constant here! The
19801927 // string constant might contain a \00 which would not be
19811928 // understood by the string stuff. It is valid to make a
19821929 // [sbyte] c"Hello World\00" constant, for example.
19831930 //
1984 llvmAsmtext[strlen(llvmAsmtext)-1] = 0; // nuke end quote
1985 llvmAsmlval.StrVal = strdup(llvmAsmtext+1); // Nuke start quote
1931 yytext[strlen(yytext)-1] = 0; // nuke end quote
1932 llvmAsmlval.StrVal = strdup(yytext+1); // Nuke start quote
19861933 return STRINGCONSTANT;
19871934 }
19881935 YY_BREAK
19891936 case 127:
1990 /* rule 127 can match eol */
1991 YY_RULE_SETUP
1992 #line 362 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
1937 YY_RULE_SETUP
1938 #line 362 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
19931939 {
1994 llvmAsmtext[strlen(llvmAsmtext)-1] = 0; // nuke end quote
1995 llvmAsmlval.StrVal = strdup(llvmAsmtext+2); // Nuke @, quote
1940 yytext[strlen(yytext)-1] = 0; // nuke end quote
1941 llvmAsmlval.StrVal = strdup(yytext+2); // Nuke @, quote
19961942 return ATSTRINGCONSTANT;
19971943 }
19981944 YY_BREAK
19991945 case 128:
20001946 YY_RULE_SETUP
2001 #line 368 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2002 { int len = strlen(llvmAsmtext);
1947 #line 368 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
1948 { int len = strlen(yytext);
20031949 uint32_t numBits = ((len * 64) / 19) + 1;
2004 APInt Tmp(numBits, llvmAsmtext, len, 10);
1950 APInt Tmp(numBits, yytext, len, 10);
20051951 uint32_t activeBits = Tmp.getActiveBits();
20061952 if (activeBits > 0 && activeBits < numBits)
20071953 Tmp.trunc(activeBits);
20161962 YY_BREAK
20171963 case 129:
20181964 YY_RULE_SETUP
2019 #line 382 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2020 { int len = strlen(llvmAsmtext);
1965 #line 382 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
1966 { int len = strlen(yytext);
20211967 uint32_t numBits = (((len-1) * 64) / 19) + 2;
2022 APInt Tmp(numBits, llvmAsmtext, len, 10);
1968 APInt Tmp(numBits, yytext, len, 10);
20231969 uint32_t minBits = Tmp.getMinSignedBits();
20241970 if (minBits > 0 && minBits < numBits)
20251971 Tmp.trunc(minBits);
20341980 YY_BREAK
20351981 case 130:
20361982 YY_RULE_SETUP
2037 #line 397 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2038 { int len = strlen(llvmAsmtext+3) - 3;
1983 #line 397 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
1984 { int len = strlen(yytext+3) - 3;
20391985 uint32_t bits = len * 4;
2040 APInt Tmp(bits, llvmAsmtext+3, len, 16);
1986 APInt Tmp(bits, yytext+3, len, 16);
20411987 uint32_t activeBits = Tmp.getActiveBits();
20421988 if (activeBits > 0 && activeBits < bits)
20431989 Tmp.trunc(activeBits);
20441990 if (Tmp.getBitWidth() > 64) {
20451991 llvmAsmlval.APIntVal = new APInt(Tmp);
2046 return llvmAsmtext[0] == 's' ? ESAPINTVAL : EUAPINTVAL;
2047 } else if (llvmAsmtext[0] == 's') {
1992 return yytext[0] == 's' ? ESAPINTVAL : EUAPINTVAL;
1993 } else if (yytext[0] == 's') {
20481994 llvmAsmlval.SInt64Val = Tmp.getSExtValue();
20491995 return ESINT64VAL;
20501996 } else {
20552001 YY_BREAK
20562002 case 131:
20572003 YY_RULE_SETUP
2058 #line 415 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2004 #line 415 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
20592005 {
2060 uint64_t Val = atoull(llvmAsmtext+1);
2006 uint64_t Val = atoull(yytext+1);
20612007 if ((unsigned)Val != Val)
20622008 GenerateError("Invalid value number (too large)!");
20632009 llvmAsmlval.UIntVal = unsigned(Val);
20662012 YY_BREAK
20672013 case 132:
20682014 YY_RULE_SETUP
2069 #line 422 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2015 #line 422 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
20702016 {
2071 uint64_t Val = atoull(llvmAsmtext+1);
2017 uint64_t Val = atoull(yytext+1);
20722018 if ((unsigned)Val != Val)
20732019 GenerateError("Invalid value number (too large)!");
20742020 llvmAsmlval.UIntVal = unsigned(Val);
20772023 YY_BREAK
20782024 case 133:
20792025 YY_RULE_SETUP
2080 #line 430 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2081 { llvmAsmlval.FPVal = atof(llvmAsmtext); return FPVAL; }
2026 #line 430 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
2027 { llvmAsmlval.FPVal = atof(yytext); return FPVAL; }
20822028 YY_BREAK
20832029 case 134:
20842030 YY_RULE_SETUP
2085 #line 431 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2086 { llvmAsmlval.FPVal = HexToFP(llvmAsmtext); return FPVAL; }
2031 #line 431 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
2032 { llvmAsmlval.FPVal = HexToFP(yytext); return FPVAL; }
20872033 YY_BREAK
20882034 case YY_STATE_EOF(INITIAL):
2089 #line 433 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2035 #line 433 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
20902036 {
20912037 /* Make sure to free the internal buffers for flex when we are
20922038 * done reading our input!
20932039 */
2094 llvmAsm_delete_buffer(YY_CURRENT_BUFFER);
2040 yy_delete_buffer(YY_CURRENT_BUFFER);
20952041 return EOF;
20962042 }
20972043 YY_BREAK
20982044 case 135:
2099 /* rule 135 can match eol */
2100 YY_RULE_SETUP
2101 #line 441 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2045 YY_RULE_SETUP
2046 #line 441 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
21022047 { /* Ignore whitespace */ }
21032048 YY_BREAK
21042049 case 136:
21052050 YY_RULE_SETUP
2106 #line 442 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2107 { return llvmAsmtext[0]; }
2051 #line 442 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
2052 { return yytext[0]; }
21082053 YY_BREAK
21092054 case 137:
21102055 YY_RULE_SETUP
2111 #line 444 "/home/asl/proj/llvm/src/lib/AsmParser/Lexer.l"
2056 #line 444 "/proj/llvm/llvm-2/lib/AsmParser/Lexer.l"
21122057 YY_FATAL_ERROR( "flex scanner jammed" );
21132058 YY_BREAK
2114 #line 2116 "Lexer.cpp"
2059 #line 2061 "Lexer.cpp"
21152060
21162061 case YY_END_OF_BUFFER:
21172062 {
21182063 /* Amount of text matched not including the EOB char. */
2119 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
2064 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
21202065
21212066 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2122 *yy_cp = (yy_hold_char);
2067 *yy_cp = yy_hold_char;
21232068 YY_RESTORE_YY_MORE_OFFSET
21242069
2125 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
2070 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
21262071 {
21272072 /* We're scanning a new file or input source. It's
21282073 * possible that this happened because the user
2129 * just pointed llvmAsmin at a new source and called
2130 * llvmAsmlex(). If so, then we have to assure
2131 * consistency between YY_CURRENT_BUFFER and our
2074 * just pointed yyin at a new source and called
2075 * yylex(). If so, then we have to assure
2076 * consistency between yy_current_buffer and our
21322077 * globals. Here is the right place to do so, because
21332078 * this is the first action (other than possibly a
21342079 * back-up) that will match for the new input source.
21352080 */
2136 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2137 YY_CURRENT_BUFFER_LVALUE->yy_input_file = llvmAsmin;
2138 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
2081 yy_n_chars = yy_current_buffer->yy_n_chars;
2082 yy_current_buffer->yy_input_file = yyin;
2083 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
21392084 }
21402085
21412086 /* Note that here we test for yy_c_buf_p "<=" to the position
21452090 * end-of-buffer state). Contrast this with the test
21462091 * in input().
21472092 */
2148 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2093 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
21492094 { /* This was really a NUL. */
21502095 yy_state_type yy_next_state;
21512096
2152 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
2153
2154 yy_current_state = yy_get_previous_state( );
2097 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2098
2099 yy_current_state = yy_get_previous_state();
21552100
21562101 /* Okay, we're now positioned to make the NUL
21572102 * transition. We couldn't have
21642109
21652110 yy_next_state = yy_try_NUL_trans( yy_current_state );
21662111
2167 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2112 yy_bp = yytext_ptr + YY_MORE_ADJ;
21682113
21692114 if ( yy_next_state )
21702115 {
21712116 /* Consume the NUL. */
2172 yy_cp = ++(yy_c_buf_p);
2117 yy_cp = ++yy_c_buf_p;
21732118 yy_current_state = yy_next_state;
21742119 goto yy_match;
21752120 }
21762121
21772122 else
21782123 {
2179 yy_cp = (yy_last_accepting_cpos);
2180 yy_current_state = (yy_last_accepting_state);
2124 yy_cp = yy_c_buf_p;
21812125 goto yy_find_action;
21822126 }
21832127 }
21842128
2185 else switch ( yy_get_next_buffer( ) )
2129 else switch ( yy_get_next_buffer() )
21862130 {
21872131 case EOB_ACT_END_OF_FILE:
21882132 {
2189 (yy_did_buffer_switch_on_eof) = 0;
2190
2191 if ( llvmAsmwrap( ) )
2133 yy_did_buffer_switch_on_eof = 0;
2134
2135 if ( yywrap() )
21922136 {
21932137 /* Note: because we've taken care in
21942138 * yy_get_next_buffer() to have set up
2195 * llvmAsmtext, we can now set up
2139 * yytext, we can now set up
21962140 * yy_c_buf_p so that if some total
21972141 * hoser (like flex itself) wants to
21982142 * call the scanner after we return the
21992143 * YY_NULL, it'll still work - another
22002144 * YY_NULL will get returned.
22012145 */
2202 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
2146 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
22032147
22042148 yy_act = YY_STATE_EOF(YY_START);
22052149 goto do_action;
22072151
22082152 else
22092153 {
2210 if ( ! (yy_did_buffer_switch_on_eof) )
2154 if ( ! yy_did_buffer_switch_on_eof )
22112155 YY_NEW_FILE;
22122156 }
22132157 break;
22142158 }
22152159
22162160 case EOB_ACT_CONTINUE_SCAN:
2217 (yy_c_buf_p) =
2218 (yytext_ptr) + yy_amount_of_matched_text;
2219
2220 yy_current_state = yy_get_previous_state( );
2221
2222 yy_cp = (yy_c_buf_p);
2223 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2161 yy_c_buf_p =
2162 yytext_ptr + yy_amount_of_matched_text;
2163
2164 yy_current_state = yy_get_previous_state();
2165
2166 yy_cp = yy_c_buf_p;
2167 yy_bp = yytext_ptr + YY_MORE_ADJ;
22242168 goto yy_match;
22252169
22262170 case EOB_ACT_LAST_MATCH:
2227 (yy_c_buf_p) =
2228 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2229
2230 yy_current_state = yy_get_previous_state( );
2231
2232 yy_cp = (yy_c_buf_p);
2233 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2171 yy_c_buf_p =
2172 &yy_current_buffer->yy_ch_buf[yy_n_chars];
2173
2174 yy_current_state = yy_get_previous_state();
2175
2176 yy_cp = yy_c_buf_p;
2177 yy_bp = yytext_ptr + YY_MORE_ADJ;
22342178 goto yy_find_action;
22352179 }
22362180 break;
22412185 "fatal flex scanner internal error--no action found" );
22422186 } /* end of action switch */
22432187 } /* end of scanning one token */
2244 } /* end of llvmAsmlex */
2188 } /* end of yylex */
2189
22452190
22462191 /* yy_get_next_buffer - try to read in a new buffer
22472192 *
22502195 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
22512196 * EOB_ACT_END_OF_FILE - end of file
22522197 */
2253 static int yy_get_next_buffer (void)
2254 {
2255 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2256 register char *source = (yytext_ptr);
2198
2199 static int yy_get_next_buffer()
2200 {
2201 register char *dest = yy_current_buffer->yy_ch_buf;
2202 register char *source = yytext_ptr;
22572203 register int number_to_move, i;
22582204 int ret_val;
22592205
2260 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
2206 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
22612207 YY_FATAL_ERROR(
22622208 "fatal flex scanner internal error--end of buffer missed" );
22632209
2264 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
2210 if ( yy_current_buffer->yy_fill_buffer == 0 )
22652211 { /* Don't try to fill the buffer, so this is an EOF. */
2266 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
2212 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
22672213 {
22682214 /* We matched a single character, the EOB, so
22692215 * treat this as a final EOF.
22832229 /* Try to read more data. */
22842230
22852231 /* First move last chars to start of buffer. */
2286 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
2232 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
22872233
22882234 for ( i = 0; i < number_to_move; ++i )
22892235 *(dest++) = *(source++);
22902236
2291 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2237 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
22922238 /* don't do the read, it's not guaranteed to return an EOF,
22932239 * just force an EOF
22942240 */
2295 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
2241 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
22962242
22972243 else
22982244 {
2299 int num_to_read =
2300 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2245 int num_to_read =
2246 yy_current_buffer->yy_buf_size - number_to_move - 1;
23012247
23022248 while ( num_to_read <= 0 )
23032249 { /* Not enough room in the buffer - grow it. */
2250 #ifdef YY_USES_REJECT
2251 YY_FATAL_ERROR(
2252 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2253 #else
23042254
23052255 /* just a shorter name for the current buffer */
2306 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
2256 YY_BUFFER_STATE b = yy_current_buffer;
23072257
23082258 int yy_c_buf_p_offset =
2309 (int) ((yy_c_buf_p) - b->yy_ch_buf);
2259 (int) (yy_c_buf_p - b->yy_ch_buf);
23102260
23112261 if ( b->yy_is_our_buffer )
23122262 {
23192269
23202270 b->yy_ch_buf = (char *)
23212271 /* Include room in for 2 EOB chars. */
2322 llvmAsmrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
2272 yy_flex_realloc( (void *) b->yy_ch_buf,
2273 b->yy_buf_size + 2 );
23232274 }
23242275 else
23252276 /* Can't grow it, we don't own it. */
23292280 YY_FATAL_ERROR(
23302281 "fatal error - scanner input buffer overflow" );
23312282
2332 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
2333
2334 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2283 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2284
2285 num_to_read = yy_current_buffer->yy_buf_size -
23352286 number_to_move - 1;
2336
2287 #endif
23372288 }
23382289
23392290 if ( num_to_read > YY_READ_BUF_SIZE )
23402291 num_to_read = YY_READ_BUF_SIZE;
23412292
23422293 /* Read in more data. */
2343 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2344 (yy_n_chars), num_to_read );
2345
2346 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2294 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2295 yy_n_chars, num_to_read );
2296
2297 yy_current_buffer->yy_n_chars = yy_n_chars;
23472298 }
23482299
2349 if ( (yy_n_chars) == 0 )
2300 if ( yy_n_chars == 0 )
23502301 {
23512302 if ( number_to_move == YY_MORE_ADJ )
23522303 {
23532304 ret_val = EOB_ACT_END_OF_FILE;
2354 llvmAsmrestart(llvmAsmin );
2305 yyrestart( yyin );
23552306 }
23562307
23572308 else
23582309 {
23592310 ret_val = EOB_ACT_LAST_MATCH;
2360 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2311 yy_current_buffer->yy_buffer_status =
23612312 YY_BUFFER_EOF_PENDING;
23622313 }
23632314 }
23652316 else
23662317 ret_val = EOB_ACT_CONTINUE_SCAN;
23672318
2368 (yy_n_chars) += number_to_move;
2369 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2370 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2371
2372 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2319 yy_n_chars += number_to_move;
2320 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2321 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2322
2323 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
23732324
23742325 return ret_val;
2375 }
2326 }
2327
23762328
23772329 /* yy_get_previous_state - get the state just before the EOB char was reached */
23782330
2379 static yy_state_type yy_get_previous_state (void)
2380 {
2331 static yy_state_type yy_get_previous_state()
2332 {
23812333 register yy_state_type yy_current_state;
23822334 register char *yy_cp;
2383
2384 yy_current_state = (yy_start);
2385
2386 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2335
2336 yy_current_state = yy_start;
2337 yy_state_ptr = yy_state_buf;
2338 *yy_state_ptr++ = yy_current_state;
2339
2340 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
23872341 {
23882342 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2389 if ( yy_accept[yy_current_state] )
2390 {
2391 (yy_last_accepting_state) = yy_current_state;
2392 (yy_last_accepting_cpos) = yy_cp;
2393 }
23942343 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
23952344 {
23962345 yy_current_state = (int) yy_def[yy_current_state];
23982347 yy_c = yy_meta[(unsigned int) yy_c];
23992348 }
24002349 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2350 *yy_state_ptr++ = yy_current_state;
24012351 }
24022352
24032353 return yy_current_state;
2404 }
2354 }
2355
24052356
24062357 /* yy_try_NUL_trans - try to make a transition on the NUL character
24072358 *
24082359 * synopsis
24092360 * next_state = yy_try_NUL_trans( current_state );
24102361 */
2411 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
2412 {
2362
2363 #ifdef YY_USE_PROTOS
2364 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2365 #else
2366 static yy_state_type yy_try_NUL_trans( yy_current_state )
2367 yy_state_type yy_current_state;
2368 #endif
2369 {
24132370 register int yy_is_jam;
2414 register char *yy_cp = (yy_c_buf_p);
24152371
24162372 register YY_CHAR yy_c = 1;
2417 if ( yy_accept[yy_current_state] )
2418 {
2419 (yy_last_accepting_state) = yy_current_state;
2420 (yy_last_accepting_cpos) = yy_cp;
2421 }
24222373 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
24232374 {
24242375 yy_current_state = (int) yy_def[yy_current_state];
24272378 }
24282379 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
24292380 yy_is_jam = (yy_current_state == 551);
2381 if ( ! yy_is_jam )
2382 *yy_state_ptr++ = yy_current_state;
24302383
24312384 return yy_is_jam ? 0 : yy_current_state;
2432 }
2433
2434 static inline void yyunput (int c, register char * yy_bp )
2435 {
2436 register char *yy_cp;
2437
2438 yy_cp = (yy_c_buf_p);
2439
2440 /* undo effects of setting up llvmAsmtext */
2441 *yy_cp = (yy_hold_char);
2442
2443 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2385 }
2386
2387
2388 #ifndef YY_NO_UNPUT
2389 #ifdef YY_USE_PROTOS
2390 static inline void yyunput( int c, register char *yy_bp )
2391 #else
2392 static inline void yyunput( c, yy_bp )
2393 int c;
2394 register char *yy_bp;
2395 #endif
2396 {
2397 register char *yy_cp = yy_c_buf_p;
2398
2399 /* undo effects of setting up yytext */
2400 *yy_cp = yy_hold_char;
2401
2402 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
24442403 { /* need to shift things up to make room */
24452404 /* +2 for EOB chars. */
2446 register int number_to_move = (yy_n_chars) + 2;
2447 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2448 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
2405 register int number_to_move = yy_n_chars + 2;
2406 register char *dest = &yy_current_buffer->yy_ch_buf[
2407 yy_current_buffer->yy_buf_size + 2];
24492408 register char *source =
2450 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
2451
2452 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2409 &yy_current_buffer->yy_ch_buf[number_to_move];
2410
2411 while ( source > yy_current_buffer->yy_ch_buf )
24532412 *--dest = *--source;
24542413
24552414 yy_cp += (int) (dest - source);
24562415 yy_bp += (int) (dest - source);
2457 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
2458 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
2459
2460 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2416 yy_current_buffer->yy_n_chars =
2417 yy_n_chars = yy_current_buffer->yy_buf_size;
2418
2419 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
24612420 YY_FATAL_ERROR( "flex scanner push-back overflow" );
24622421 }
24632422
24642423 *--yy_cp = (char) c;
24652424
2466 if ( c == '\n' ){
2467 --llvmAsmlineno;
2468 }
2469
2470 (yytext_ptr) = yy_bp;
2471 (yy_hold_char) = *yy_cp;
2472 (yy_c_buf_p) = yy_cp;
2473 }
2425 if ( c == '\n' )
2426 --yylineno;
2427
2428 yytext_ptr = yy_bp;
2429 yy_hold_char = *yy_cp;
2430 yy_c_buf_p = yy_cp;
2431 }
2432 #endif /* ifndef YY_NO_UNPUT */
2433
24742434
24752435 #ifndef YY_NO_INPUT
24762436 #ifdef __cplusplus
2477 static int yyinput (void)
2478 #else
2479 static int input (void)
2480 #endif
2481
2482 {
2437 static int yyinput()
2438 #else
2439 static int input()
2440 #endif
2441 {
24832442 int c;
2484
2485 *(yy_c_buf_p) = (yy_hold_char);
2486
2487 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
2443
2444 *yy_c_buf_p = yy_hold_char;
2445
2446 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
24882447 {
24892448 /* yy_c_buf_p now points to the character we want to return.
24902449 * If this occurs *before* the EOB characters, then it's a
24912450 * valid NUL; if not, then we've hit the end of the buffer.
24922451 */
2493 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2452 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
24942453 /* This was really a NUL. */
2495 *(yy_c_buf_p) = '\0';
2454 *yy_c_buf_p = '\0';
24962455
24972456 else
24982457 { /* need more input */
2499 int offset = (yy_c_buf_p) - (yytext_ptr);
2500 ++(yy_c_buf_p);
2501
2502 switch ( yy_get_next_buffer( ) )
2458 int offset = yy_c_buf_p - yytext_ptr;
2459 ++yy_c_buf_p;
2460
2461 switch ( yy_get_next_buffer() )
25032462 {
25042463 case EOB_ACT_LAST_MATCH:
25052464 /* This happens because yy_g_n_b()
25132472 */
25142473
25152474 /* Reset buffer status. */
2516 llvmAsmrestart(llvmAsmin );
2517
2518 /*FALLTHROUGH*/
2475 yyrestart( yyin );
2476
2477 /* fall through */
25192478
25202479 case EOB_ACT_END_OF_FILE:
25212480 {
2522 if ( llvmAsmwrap( ) )
2481 if ( yywrap() )
25232482 return EOF;
25242483
2525 if ( ! (yy_did_buffer_switch_on_eof) )
2484 if ( ! yy_did_buffer_switch_on_eof )
25262485 YY_NEW_FILE;
25272486 #ifdef __cplusplus
25282487 return yyinput();
25322491 }
25332492
25342493 case EOB_ACT_CONTINUE_SCAN:
2535 (yy_c_buf_p) = (yytext_ptr) + offset;
2494 yy_c_buf_p = yytext_ptr + offset;
25362495 break;
25372496 }
25382497 }
25392498 }
25402499
2541 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
2542 *(yy_c_buf_p) = '\0'; /* preserve llvmAsmtext */
2543 (yy_hold_char) = *++(yy_c_buf_p);
2500 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2501 *yy_c_buf_p = '\0'; /* preserve yytext */
2502 yy_hold_char = *++yy_c_buf_p;
25442503
25452504 if ( c == '\n' )
2546
2547 llvmAsmlineno++;
2548 ;
2505 ++yylineno;
25492506
25502507 return c;
2551 }
2552 #endif /* ifndef YY_NO_INPUT */
2553
2554 /** Immediately switch to a different input stream.
2555 * @param input_file A readable stream.
2556 *
2557 * @note This function does not reset the start condition to @c INITIAL .
2558 */
2559 void llvmAsmrestart (FILE * input_file )
2560 {
2561
2562 if ( ! YY_CURRENT_BUFFER ){
2563 llvmAsmensure_buffer_stack ();
2564 YY_CURRENT_BUFFER_LVALUE =
2565 llvmAsm_create_buffer(llvmAsmin,YY_BUF_SIZE );
25662508 }
2567
2568 llvmAsm_init_buffer(YY_CURRENT_BUFFER,input_file );
2569 llvmAsm_load_buffer_state( );
2570 }
2571
2572 /** Switch to a different input buffer.
2573 * @param new_buffer The new input buffer.
2574 *
2575 */
2576 void llvmAsm_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2577 {
2578
2579 /* TODO. We should be able to replace this entire function body
2580 * with
2581 * llvmAsmpop_buffer_state();
2582 * llvmAsmpush_buffer_state(new_buffer);
2583 */
2584 llvmAsmensure_buffer_stack ();
2585 if ( YY_CURRENT_BUFFER == new_buffer )
2509 #endif /* YY_NO_INPUT */
2510
2511 #ifdef YY_USE_PROTOS
2512 void yyrestart( FILE *input_file )
2513 #else
2514 void yyrestart( input_file )
2515 FILE *input_file;
2516 #endif
2517 {
2518 if ( ! yy_current_buffer )
2519 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2520
2521 yy_init_buffer( yy_current_buffer, input_file );
2522 yy_load_buffer_state();
2523 }
2524
2525
2526 #ifdef YY_USE_PROTOS
2527 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2528 #else
2529 void yy_switch_to_buffer( new_buffer )
2530 YY_BUFFER_STATE new_buffer;
2531 #endif
2532 {
2533 if ( yy_current_buffer == new_buffer )
25862534 return;
25872535
2588 if ( YY_CURRENT_BUFFER )
2536 if ( yy_current_buffer )
25892537 {
25902538 /* Flush out information for old buffer. */
2591 *(yy_c_buf_p) = (yy_hold_char);
2592 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2593 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2539 *yy_c_buf_p = yy_hold_char;
2540 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2541 yy_current_buffer->yy_n_chars = yy_n_chars;
25942542 }
25952543
2596 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2597 llvmAsm_load_buffer_state( );
2544 yy_current_buffer = new_buffer;
2545 yy_load_buffer_state();
25982546
25992547 /* We don't actually know whether we did this switch during
2600 * EOF (llvmAsmwrap()) processing, but the only time this flag
2601 * is looked at is after llvmAsmwrap() is called, so it's safe
2548 * EOF (yywrap()) processing, but the only time this flag
2549 * is looked at is after yywrap() is called, so it's safe
26022550 * to go ahead and always set it.
26032551 */
2604 (yy_did_buffer_switch_on_eof) = 1;
2605 }
2606
2607 static void llvmAsm_load_buffer_state (void)
2608 {
2609 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2610 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2611 llvmAsmin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2612 (yy_hold_char) = *(yy_c_buf_p);
2613 }
2614
2615 /** Allocate and initialize an input buffer state.
2616 * @param file A readable stream.
2617 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2618 *
2619 * @return the allocated buffer state.
2620 */
2621 YY_BUFFER_STATE llvmAsm_create_buffer (FILE * file, int size )
2622 {
2552 yy_did_buffer_switch_on_eof = 1;
2553 }
2554
2555
2556 #ifdef YY_USE_PROTOS
2557 void yy_load_buffer_state( void )
2558 #else
2559 void yy_load_buffer_state()
2560 #endif
2561 {
2562 yy_n_chars = yy_current_buffer->yy_n_chars;
2563 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2564 yyin = yy_current_buffer->yy_input_file;
2565 yy_hold_char = *yy_c_buf_p;
2566 }
2567
2568
2569 #ifdef YY_USE_PROTOS
2570 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2571 #else
2572 YY_BUFFER_STATE yy_create_buffer( file, size )
2573 FILE *file;
2574 int size;
2575 #endif
2576 {
26232577 YY_BUFFER_STATE b;
2624
2625 b = (YY_BUFFER_STATE) llvmAsmalloc(sizeof( struct yy_buffer_state ) );
2578
2579 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
26262580 if ( ! b )
2627 YY_FATAL_ERROR( "out of dynamic memory in llvmAsm_create_buffer()" );
2581 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
26282582
26292583 b->yy_buf_size = size;
26302584
26312585 /* yy_ch_buf has to be 2 characters longer than the size given because
26322586 * we need to put in 2 end-of-buffer characters.
26332587 */
2634 b->yy_ch_buf = (char *) llvmAsmalloc(b->yy_buf_size + 2 );
2588 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
26352589 if ( ! b->yy_ch_buf )
2636 YY_FATAL_ERROR( "out of dynamic memory in llvmAsm_create_buffer()" );
2590 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
26372591
26382592 b->yy_is_our_buffer = 1;
26392593
2640 llvmAsm_init_buffer(b,file );
2594 yy_init_buffer( b, file );
26412595
26422596 return b;
2643 }
2644
2645 /** Destroy the buffer.
2646 * @param b a buffer created with llvmAsm_create_buffer()
2647 *
2648 */
2649 void llvmAsm_delete_buffer (YY_BUFFER_STATE b )
2650 {
2651
2597 }
2598
2599
2600 #ifdef YY_USE_PROTOS
2601 void yy_delete_buffer( YY_BUFFER_STATE b )
2602 #else
2603 void yy_delete_buffer( b )
2604 YY_BUFFER_STATE b;
2605 #endif
2606 {
26522607 if ( ! b )
26532608 return;
26542609
2655 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2656 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2610 if ( b == yy_current_buffer )
2611 yy_current_buffer = (YY_BUFFER_STATE) 0;
26572612
26582613 if ( b->yy_is_our_buffer )
2659 llvmAsmfree((void *) b->yy_ch_buf );
2660
2661 llvmAsmfree((void *) b );
2662 }
2663
2664 /* Initializes or reinitializes a buffer.
2665 * This function is sometimes called more than once on the same buffer,
2666 * such as during a llvmAsmrestart() or at EOF.
2667 */
2668 static void llvmAsm_init_buffer (YY_BUFFER_STATE b, FILE * file )
2669
2670 {
2671 int oerrno = errno;
2672
2673 llvmAsm_flush_buffer(b );
2614 yy_flex_free( (void *) b->yy_ch_buf );
2615
2616 yy_flex_free( (void *) b );
2617 }
2618
2619
2620
2621 #ifdef YY_USE_PROTOS
2622 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2623 #else
2624 void yy_init_buffer( b, file )
2625 YY_BUFFER_STATE b;
2626 FILE *file;
2627 #endif
2628
2629
2630 {
2631 yy_flush_buffer( b );
26742632
26752633 b->yy_input_file = file;
26762634 b->yy_fill_buffer = 1;
26772635
2678 /* If b is the current buffer, then llvmAsm_init_buffer was _probably_
2679 * called from llvmAsmrestart() or through yy_get_next_buffer.
2680 * In that case, we don't want to reset the lineno or column.
2681 */
2682 if (b != YY_CURRENT_BUFFER){
2683 b->yy_bs_lineno = 1;
2684 b->yy_bs_column = 0;
2685 }
2686
2687 b->yy_is_interactive = 0;
2688
2689 errno = oerrno;
2690 }
2691
2692 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2693 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2694 *
2695 */
2696 void llvmAsm_flush_buffer (YY_BUFFER_STATE b )
2697 {
2698 if ( ! b )
2636 #if YY_ALWAYS_INTERACTIVE
2637 b->yy_is_interactive = 1;
2638 #else
2639 #if YY_NEVER_INTERACTIVE
2640 b->yy_is_interactive = 0;
2641 #else
2642 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2643 #endif
2644 #endif
2645 }
2646
2647
2648 #ifdef YY_USE_PROTOS
2649 void yy_flush_buffer( YY_BUFFER_STATE b )
2650 #else
2651 void yy_flush_buffer( b )
2652 YY_BUFFER_STATE b;
2653 #endif
2654
2655 {
2656 if ( ! b )
26992657 return;
27002658
27012659 b->yy_n_chars = 0;
27122670 b->yy_at_bol = 1;
27132671 b->yy_buffer_status = YY_BUFFER_NEW;
27142672
2715 if ( b == YY_CURRENT_BUFFER )
2716 llvmAsm_load_buffer_state( );
2717 }
2718
2719 /** Pushes the new state onto the stack. The new state becomes
2720 * the current state. This function will allocate the stack
2721 * if necessary.
2722 * @param new_buffer The new state.
2723 *
2724 */
2725 void llvmAsmpush_buffer_state (YY_BUFFER_STATE new_buffer )
2726 {
2727 if (new_buffer == NULL)
2728 return;
2729
2730 llvmAsmensure_buffer_stack();
2731
2732 /* This block is copied from llvmAsm_switch_to_buffer. */
2733 if ( YY_CURRENT_BUFFER )
2734 {
2735 /* Flush out information for old buffer. */
2736 *(yy_c_buf_p) = (yy_hold_char);
2737 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2738 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2739 }
2740
2741 /* Only push if top exists. Otherwise, replace top. */
2742 if (YY_CURRENT_BUFFER)
2743 (yy_buffer_stack_top)++;
2744 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2745
2746 /* copied from llvmAsm_switch_to_buffer. */
2747 llvmAsm_load_buffer_state( );
2748 (yy_did_buffer_switch_on_eof) = 1;
2749 }
2750
2751 /** Removes and deletes the top of the stack, if present.
2752 * The next element becomes the new top.
2753 *
2754 */
2755 void llvmAsmpop_buffer_state (void)
2756 {
2757 if (!YY_CURRENT_BUFFER)
2758 return;
2759
2760 llvmAsm_delete_buffer(YY_CURRENT_BUFFER );
2761 YY_CURRENT_BUFFER_LVALUE = NULL;
2762 if ((yy_buffer_stack_top) > 0)
2763 --(yy_buffer_stack_top);
2764
2765 if (YY_CURRENT_BUFFER) {
2766 llvmAsm_load_buffer_state( );
2767 (yy_did_buffer_switch_on_eof) = 1;
2673 if ( b == yy_current_buffer )
2674 yy_load_buffer_state();
27682675 }
2769 }
2770
2771 /* Allocates the stack if it does not exist.
2772 * Guarantees space for at least one push.
2773 */
2774 static void llvmAsmensure_buffer_stack (void)
2775 {
2776 int num_to_alloc;
2777
2778 if (!(yy_buffer_stack)) {
2779
2780 /* First allocation is just for 2 elements, since we don't know if this
2781 * scanner will even need a stack. We use 2 instead of 1 to avoid an
2782 * immediate realloc on the next call.
2783 */
2784 num_to_alloc = 1;
2785 (yy_buffer_stack) = (struct yy_buffer_state**)llvmAsmalloc
2786 (num_to_alloc * sizeof(struct yy_buffer_state*)
2787 );
2788
2789 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2790
2791 (yy_buffer_stack_max) = num_to_alloc;
2792 (yy_buffer_stack_top) = 0;
2793 return;
2794 }
2795
2796 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2797
2798 /* Increase the buffer to prepare for a possible push. */
2799 int grow_size = 8 /* arbitrary grow size */;
2800
2801 num_to_alloc = (yy_buffer_stack_max) + grow_size;
2802 (yy_buffer_stack) = (struct yy_buffer_state**)llvmAsmrealloc
2803 ((yy_buffer_stack),
2804 num_to_alloc * sizeof(struct yy_buffer_state*)
2805 );
2806
2807 /* zero only the new slots.*/
2808 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
2809 (yy_buffer_stack_max) = num_to_alloc;
2810 }
2811 }
2812
2813 /** Setup the input buffer state to scan directly from a user-specified character buffer.
2814 * @param base the character buffer
2815 * @param size the size in bytes of the character buffer
2816 *
2817 * @return the newly allocated buffer state object.
2818 */
2819 YY_BUFFER_STATE llvmAsm_scan_buffer (char * base, yy_size_t size )
2820 {
2676
2677
2678 #ifndef YY_NO_SCAN_BUFFER
2679 #ifdef YY_USE_PROTOS
2680 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2681 #else
2682 YY_BUFFER_STATE yy_scan_buffer( base, size )
2683 char *base;
2684 yy_size_t size;
2685 #endif
2686 {
28212687 YY_BUFFER_STATE b;
2822
2688
28232689 if ( size < 2 ||
28242690 base[size-2] != YY_END_OF_BUFFER_CHAR ||
28252691 base[size-1] != YY_END_OF_BUFFER_CHAR )
28262692 /* They forgot to leave room for the EOB's. */
28272693 return 0;
28282694
2829 b = (YY_BUFFER_STATE) llvmAsmalloc(sizeof( struct yy_buffer_state ) );
2695 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
28302696 if ( ! b )
2831 YY_FATAL_ERROR( "out of dynamic memory in llvmAsm_scan_buffer()" );
2697 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
28322698
28332699 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
28342700 b->yy_buf_pos = b->yy_ch_buf = base;
28402706 b->yy_fill_buffer = 0;
28412707 b->yy_buffer_status = YY_BUFFER_NEW;
28422708
2843 llvmAsm_switch_to_buffer(b );
2709 yy_switch_to_buffer( b );
28442710
28452711 return b;
2846 }
2847
2848 /** Setup the input buffer state to scan a string. The next call to llvmAsmlex() will
2849 * scan from a @e copy of @a str.
2850 * @param str a NUL-terminated string to scan
2851 *
2852 * @return the newly allocated buffer state object.
2853 * @note If you want to scan bytes that may contain NUL values, then use
2854 * llvmAsm_scan_bytes() instead.
2855 */
2856 YY_BUFFER_STATE llvmAsm_scan_string (yyconst char * yystr )
2857 {
2858
2859 return llvmAsm_scan_bytes(yystr,strlen(yystr) );
2860 }
2861
2862 /** Setup the input buffer state to scan the given bytes. The next call to llvmAsmlex() will
2863 * scan from a @e copy of @a bytes.
2864 * @param bytes the byte buffer to scan
2865 * @param len the number of bytes in the buffer pointed to by @a bytes.
2866 *
2867 * @return the newly allocated buffer state object.
2868 */
2869 YY_BUFFER_STATE llvmAsm_scan_bytes (yyconst char * yybytes, int _yybytes_len )
2870 {
2712 }
2713 #endif
2714
2715
2716 #ifndef YY_NO_SCAN_STRING
2717 #ifdef YY_USE_PROTOS
2718 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2719 #else
2720 YY_BUFFER_STATE yy_scan_string( yy_str )
2721 yyconst char *yy_str;
2722 #endif
2723 {
2724 int len;
2725 for ( len = 0; yy_str[len]; ++len )
2726 ;
2727
2728 return yy_scan_bytes( yy_str, len );
2729 }
2730 #endif
2731
2732
2733 #ifndef YY_NO_SCAN_BYTES
2734 #ifdef YY_USE_PROTOS
2735 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2736 #else
2737 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2738 yyconst char *bytes;
2739 int len;
2740 #endif
2741 {
28712742 YY_BUFFER_STATE b;
28722743 char *buf;
28732744 yy_size_t n;
28742745 int i;
2875
2746
28762747 /* Get memory for full buffer, including space for trailing EOB's. */
2877 n = _yybytes_len + 2;
2878 buf = (char *) llvmAsmalloc(n );
2748 n = len + 2;
2749 buf = (char *) yy_flex_alloc( n );
28792750 if ( ! buf )
2880 YY_FATAL_ERROR( "out of dynamic memory in llvmAsm_scan_bytes()" );
2881
2882 for ( i = 0; i < _yybytes_len; ++i )
2883 buf[i] = yybytes[i];
2884
2885 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2886
2887 b = llvmAsm_scan_buffer(buf,n );
2751 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2752
2753 for ( i = 0; i < len; ++i )
2754 buf[i] = bytes[i];
2755
2756 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2757
2758 b = yy_scan_buffer( buf, n );
28882759 if ( ! b )
2889 YY_FATAL_ERROR( "bad buffer in llvmAsm_scan_bytes()" );
2760 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
28902761
28912762 /* It's okay to grow etc. this buffer, and we should throw it
28922763 * away when we're done.
28942765 b->yy_is_our_buffer = 1;
28952766
28962767 return b;
2897 }
2768 }
2769 #endif
2770
2771
2772 #ifndef YY_NO_PUSH_STATE
2773 #ifdef YY_USE_PROTOS
2774 static void yy_push_state( int new_state )
2775 #else
2776 static void yy_push_state( new_state )
2777 int new_state;
2778 #endif
2779 {
2780 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2781 {
2782 yy_size_t new_size;
2783
2784 yy_start_stack_depth += YY_START_STACK_INCR;
2785 new_size = yy_start_stack_depth * sizeof( int );
2786
2787 if ( ! yy_start_stack )
2788 yy_start_stack = (int *) yy_flex_alloc( new_size );
2789
2790 else
2791 yy_start_stack = (int *) yy_flex_realloc(
2792 (void *) yy_start_stack, new_size );
2793
2794 if ( ! yy_start_stack )
2795 YY_FATAL_ERROR(
2796 "out of memory expanding start-condition stack" );
2797 }
2798
2799 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2800
2801 BEGIN(new_state);
2802 }
2803 #endif
2804
2805
2806 #ifndef YY_NO_POP_STATE
2807 static void yy_pop_state()
2808 {
2809 if ( --yy_start_stack_ptr < 0 )
2810 YY_FATAL_ERROR( "start-condition stack underflow" );
2811
2812 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2813 }
2814 #endif
2815
2816
2817 #ifndef YY_NO_TOP_STATE
2818 static int yy_top_state()
2819 {
2820 return yy_start_stack[yy_start_stack_ptr - 1];
2821 }
2822 #endif
28982823
28992824 #ifndef YY_EXIT_FAILURE
29002825 #define YY_EXIT_FAILURE 2
29012826 #endif
29022827
2903 static void yy_fatal_error (yyconst char* msg )
2904 {
2905 (void) fprintf( stderr, "%s\n", msg );
2828 #ifdef YY_USE_PROTOS
2829 static void yy_fatal_error( yyconst char msg[] )
2830 #else
2831 static void yy_fatal_error( msg )
2832 char msg[];
2833 #endif
2834 {
2835 (void) fprintf( stderr, "%s\n", msg );
29062836 exit( YY_EXIT_FAILURE );
2907 }
2837 }
2838
2839
29082840
29092841 /* Redefine yyless() so it works in section 3 code. */
29102842
29122844 #define yyless(n) \
29132845 do \
29142846 { \
2915 /* Undo effects of setting up llvmAsmtext. */ \
2916 int yyless_macro_arg = (n); \
2917 YY_LESS_LINENO(yyless_macro_arg);\
2918 llvmAsmtext[llvmAsmleng] = (yy_hold_char); \
2919 (yy_c_buf_p) = llvmAsmtext + yyless_macro_arg; \
2920 (yy_hold_char) = *(yy_c_buf_p); \
2921 *(yy_c_buf_p) = '\0'; \
2922 llvmAsmleng = yyless_macro_arg; \
2847 /* Undo effects of setting up yytext. */ \
2848 yytext[yyleng] = yy_hold_char; \
2849 yy_c_buf_p = yytext + n; \
2850 yy_hold_char = *yy_c_buf_p; \
2851 *yy_c_buf_p = '\0'; \
2852 yyleng = n; \
29232853 } \
29242854 while ( 0 )
29252855
2926 /* Accessor methods (get/set functions) to struct members. */
2927
2928 /** Get the current line number.
2929 *
2930 */
2931 int llvmAsmget_lineno (void)
2932 {
2933
2934 return llvmAsmlineno;
2935 }
2936
2937 /** Get the input stream.
2938 *
2939 */
2940 FILE *llvmAsmget_in (void)
2941 {
2942 return llvmAsmin;
2943 }
2944
2945 /** Get the output stream.
2946 *
2947 */
2948 FILE *llvmAsmget_out (void)
2949 {
2950 return llvmAsmout;
2951 }
2952
2953 /** Get the length of the current token.
2954 *
2955 */
2956 int llvmAsmget_leng (void)
2957 {
2958 return llvmAsmleng;
2959 }
2960
2961 /** Get the current token.
2962 *
2963 */
2964
2965 char *llvmAsmget_text (void)
2966 {
2967 return llvmAsmtext;
2968 }
2969
2970 /** Set the current line number.
2971 * @param line_number
2972 *
2973 */
2974 void llvmAsmset_lineno (int line_number )
2975 {
2976
2977 llvmAsmlineno = line_number;
2978 }
2979
2980 /** Set the input stream. This does not discard the current
2981 * input buffer.
2982 * @param in_str A readable stream.
2983 *
2984 * @see llvmAsm_switch_to_buffer
2985 */
2986 void llvmAsmset_in (FILE * in_str )
2987 {
2988 llvmAsmin = in_str ;
2989 }
2990
2991 void llvmAsmset_out (FILE * out_str )
2992 {
2993 llvmAsmout = out_str ;
2994 }
2995
2996 int llvmAsmget_debug (void)
2997 {
2998 return llvmAsm_flex_debug;
2999 }
3000
3001 void llvmAsmset_debug (int bdebug )
3002 {
3003 llvmAsm_flex_debug = bdebug ;
3004 }
3005
3006 static int yy_init_globals (void)
3007 {
3008 /* Initialization is the same as for the non-reentrant scanner.
3009 * This function is called from llvmAsmlex_destroy(), so don't allocate here.
3010 */
3011
3012 /* We do not touch llvmAsmlineno unless the option is enabled. */
3013 llvmAsmlineno = 1;
3014
3015 (yy_buffer_stack) = 0;
3016 (yy_buffer_stack_top) = 0;
3017 (yy_buffer_stack_max) = 0;
3018 (yy_c_buf_p) = (char *) 0;
3019 (yy_init) = 0;
3020 (yy_start) = 0;
3021
3022 /* Defined in main.c */
3023 #ifdef YY_STDINIT
3024 llvmAsmin = stdin;
3025 llvmAsmout = stdout;
3026 #else
3027 llvmAsmin = (FILE *) 0;
3028 llvmAsmout = (FILE *) 0;
3029 #endif
3030
3031 /* For future reference: Set errno on error, since we are called by
3032 * llvmAsmlex_init()
3033 */
3034 return 0;
3035 }
3036
3037 /* llvmAsmlex_destroy is for both reentrant and non-reentrant scanners. */
3038 int llvmAsmlex_destroy (void)
3039 {
3040
3041 /* Pop the buffer stack, destroying each element. */
3042 while(YY_CURRENT_BUFFER){
3043 llvmAsm_delete_buffer(YY_CURRENT_BUFFER );
3044 YY_CURRENT_BUFFER_LVALUE = NULL;
3045 llvmAsmpop_buffer_state();
3046 }
3047
3048 /* Destroy the stack itself. */
3049 llvmAsmfree((yy_buffer_stack) );
3050 (yy_buffer_stack) = NULL;
3051
3052 /* Reset the globals. This is important in a non-reentrant scanner so the next time
3053 * llvmAsmlex() is called, initialization will occur. */
3054 yy_init_globals( );
3055
3056 return 0;
3057 }
3058
3059 /*
3060 * Internal utility routines.
3061 */
2856
2857 /* Internal utility routines. */
30622858
30632859 #ifndef yytext_ptr
3064 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
3065 {
2860 #ifdef YY_USE_PROTOS
2861 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2862 #else
2863 static void yy_flex_strncpy( s1, s2, n )
2864 char *s1;
2865 yyconst char *s2;
2866 int n;
2867 #endif
2868 {
30662869 register int i;
30672870 for ( i = 0; i < n; ++i )
30682871 s1[i] = s2[i];
3069 }
2872 }
30702873 #endif
30712874
30722875 #ifdef YY_NEED_STRLEN
3073 static int yy_flex_strlen (yyconst char * s )
3074 {
2876 #ifdef YY_USE_PROTOS
2877 static int yy_flex_strlen( yyconst char *s )
2878 #else
2879 static int yy_flex_strlen( s )
2880 yyconst char *s;
2881 #endif
2882 {
30752883 register int n;
30762884