1 #define yy_create_buffer llvmAsm_create_buffer
2 #define yy_delete_buffer llvmAsm_delete_buffer
3 #define yy_scan_buffer llvmAsm_scan_buffer
4 #define yy_scan_string llvmAsm_scan_string
5 #define yy_scan_bytes llvmAsm_scan_bytes
6 #define yy_flex_debug llvmAsm_flex_debug
7 #define yy_init_buffer llvmAsm_init_buffer
8 #define yy_flush_buffer llvmAsm_flush_buffer
9 #define yy_load_buffer_state llvmAsm_load_buffer_state
10 #define yy_switch_to_buffer llvmAsm_switch_to_buffer
11 #define yyin llvmAsmin
12 #define yyleng llvmAsmleng
13 #define yylex llvmAsmlex
14 #define yyout llvmAsmout
15 #define yyrestart llvmAsmrestart
16 #define yytext llvmAsmtext
17 #define yylineno llvmAsmlineno
20 /* A lexical scanner generated by flex*/
22 /* Scanner skeleton version:
27 #define YY_FLEX_MAJOR_VERSION 2
28 #define YY_FLEX_MINOR_VERSION 5
34 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
46 /* Use prototypes in function declarations. */
49 /* The "const" storage-class-modifier is valid. */
52 #else /* ! __cplusplus */
60 #endif /* ! __cplusplus */
79 #define YY_PROTO(proto) proto
81 #define YY_PROTO(proto) ()
84 /* Returned upon end-of-file. */
87 /* Promotes a possibly negative, possibly signed char to an unsigned
88 * integer for use as an array index. If the signed char is negative,
89 * we want to instead treat it as an 8-bit unsigned char, hence the
92 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
94 /* Enter a start condition. This macro really ought to take a parameter,
95 * but we do it the disgusting crufty way forced on us by the ()-less
96 * definition of BEGIN.
98 #define BEGIN yy_start = 1 + 2 *
100 /* Translate the current start state into a value that can be later handed
101 * to BEGIN to return to the state. The YYSTATE alias is for lex
104 #define YY_START ((yy_start - 1) / 2)
105 #define YYSTATE YY_START
107 /* Action number for EOF rule of a given start state. */
108 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
110 /* Special action meaning "start processing a new file". */
111 #define YY_NEW_FILE yyrestart( yyin )
113 #define YY_END_OF_BUFFER_CHAR 0
115 /* Size of default input buffer. */
116 #define YY_BUF_SIZE (16384*64)
118 typedef struct yy_buffer_state *YY_BUFFER_STATE;
121 extern FILE *yyin, *yyout;
123 #define EOB_ACT_CONTINUE_SCAN 0
124 #define EOB_ACT_END_OF_FILE 1
125 #define EOB_ACT_LAST_MATCH 2
127 /* The funky do-while in the following #define is used to turn the definition
128 * int a single C statement (which needs a semi-colon terminator). This
129 * avoids problems with code like:
131 * if ( condition_holds )
134 * do_something_else();
136 * Prior to using the do-while the compiler would get upset at the
137 * "else" because it interpreted the "if" statement as being all
138 * done when it reached the ';' after the yyless() call.
141 /* Return all but the first 'n' matched characters back to the input stream. */
146 /* Undo effects of setting up yytext. */ \
147 *yy_cp = yy_hold_char; \
148 YY_RESTORE_YY_MORE_OFFSET \
149 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
150 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
154 #define unput(c) yyunput( c, yytext_ptr )
156 /* Some routines like yy_flex_realloc() are emitted as static but are
157 not called by all lexers. This generates warnings in some compilers,
158 notably GCC. Arrange to suppress these. */
160 #define YY_MAY_BE_UNUSED __attribute__((unused))
162 #define YY_MAY_BE_UNUSED
165 /* The following is because we cannot portably get our hands on size_t
166 * (without autoconf's help, which isn't available because we want
167 * flex-generated scanners to compile on their own).
169 typedef unsigned int yy_size_t;
172 struct yy_buffer_state
176 char *yy_ch_buf; /* input buffer */
177 char *yy_buf_pos; /* current position in input buffer */
179 /* Size of input buffer in bytes, not including room for EOB
182 yy_size_t yy_buf_size;
184 /* Number of characters read into yy_ch_buf, not including EOB
189 /* Whether we "own" the buffer - i.e., we know we created it,
190 * and can realloc() it to grow it, and should free() it to
193 int yy_is_our_buffer;
195 /* Whether this is an "interactive" input source; if so, and
196 * if we're using stdio for input, then we want to use getc()
197 * instead of fread(), to make sure we stop fetching input after
200 int yy_is_interactive;
202 /* Whether we're considered to be at the beginning of a line.
203 * If so, '^' rules will be active on the next match, otherwise
208 /* Whether to try to fill the input buffer when we reach the
213 int yy_buffer_status;
214 #define YY_BUFFER_NEW 0
215 #define YY_BUFFER_NORMAL 1
216 /* When an EOF's been seen but there's still some text to process
217 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
218 * shouldn't try reading from the input source any more. We might
219 * still have a bunch of tokens to match, though, because of
220 * possible backing-up.
222 * When we actually see the EOF, we change the status to "new"
223 * (via yyrestart()), so that the user can continue scanning by
224 * just pointing yyin at a new input file.
226 #define YY_BUFFER_EOF_PENDING 2
229 static YY_BUFFER_STATE yy_current_buffer = 0;
231 /* We provide macros for accessing buffer states in case in the
232 * future we want to put the buffer states in a more general
235 #define YY_CURRENT_BUFFER yy_current_buffer
238 /* yy_hold_char holds the character lost when yytext is formed. */
239 static char yy_hold_char;
241 static int yy_n_chars; /* number of characters read into yy_ch_buf */
246 /* Points to current character in buffer. */
247 static char *yy_c_buf_p = (char *) 0;
248 static int yy_init = 1; /* whether we need to initialize */
249 static int yy_start = 0; /* start state number */
251 /* Flag which is used to allow yywrap()'s to do buffer switches
252 * instead of setting up a fresh yyin. A bit of a hack ...
254 static int yy_did_buffer_switch_on_eof;
256 void yyrestart YY_PROTO(( FILE *input_file ));
258 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
259 void yy_load_buffer_state YY_PROTO(( void ));
260 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
261 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
262 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
263 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
264 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
266 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
267 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
268 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
270 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
271 static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) YY_MAY_BE_UNUSED;
272 static void yy_flex_free YY_PROTO(( void * ));
274 #define yy_new_buffer yy_create_buffer
276 #define yy_set_interactive(is_interactive) \
278 if ( ! yy_current_buffer ) \
279 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
280 yy_current_buffer->yy_is_interactive = is_interactive; \
283 #define yy_set_bol(at_bol) \
285 if ( ! yy_current_buffer ) \
286 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
287 yy_current_buffer->yy_at_bol = at_bol; \
290 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
293 #define YY_USES_REJECT
296 #define YY_SKIP_YYWRAP
297 typedef unsigned char YY_CHAR;
298 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
299 typedef int yy_state_type;
303 #define yytext_ptr yytext
305 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
306 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
307 static int yy_get_next_buffer YY_PROTO(( void ));
308 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
310 /* Done after the current pattern has been matched and before the
311 * corresponding action - sets up yytext.
313 #define YY_DO_BEFORE_ACTION \
314 yytext_ptr = yy_bp; \
315 yyleng = (int) (yy_cp - yy_bp); \
316 yy_hold_char = *yy_cp; \
320 #define YY_NUM_RULES 134
321 #define YY_END_OF_BUFFER 135
322 static yyconst short int yy_acclist[212] =
324 135, 133, 134, 132, 133, 134, 132, 134, 133, 134,
325 133, 134, 133, 134, 133, 134, 133, 134, 133, 134,
326 125, 133, 134, 125, 133, 134, 1, 133, 134, 133,
327 134, 133, 134, 133, 134, 133, 134, 133, 134, 133,
328 134, 133, 134, 133, 134, 133, 134, 133, 134, 133,
329 134, 133, 134, 133, 134, 133, 134, 133, 134, 133,
330 134, 133, 134, 133, 134, 133, 134, 133, 134, 133,
331 134, 124, 122, 121, 121, 128, 126, 130, 125, 1,
332 107, 41, 75, 23, 124, 121, 121, 129, 130, 20,
333 130, 131, 63, 74, 39, 34, 42, 66, 3, 54,
335 65, 25, 83, 70, 106, 99, 100, 64, 76, 123,
336 130, 130, 102, 49, 84, 85, 69, 114, 73, 115,
337 56, 101, 22, 127, 68, 88, 72, 26, 4, 61,
338 67, 55, 71, 48, 11, 87, 130, 36, 2, 5,
339 58, 90, 60, 50, 78, 82, 80, 81, 79, 77,
340 52, 116, 86, 51, 57, 21, 104, 113, 45, 59,
341 30, 24, 44, 94, 93, 7, 109, 33, 112, 38,
342 62, 98, 92, 108, 27, 28, 91, 110, 53, 105,
343 103, 97, 43, 6, 29, 89, 37, 8, 17, 9,
344 95, 10, 96, 35, 12, 14, 13, 32, 40, 15,
346 31, 111, 117, 119, 120, 16, 46, 118, 18, 47,
350 static yyconst short int yy_accept[577] =
352 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
353 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
354 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
355 60, 62, 64, 66, 68, 70, 72, 72, 73, 73,
356 74, 75, 76, 77, 77, 78, 78, 79, 80, 80,
357 81, 81, 81, 81, 81, 81, 81, 81, 81, 82,
358 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
359 83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
360 83, 83, 83, 83, 83, 83, 83, 83, 83, 83,
361 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,
363 84, 84, 84, 84, 84, 84, 85, 85, 85, 85,
364 85, 85, 85, 85, 85, 85, 85, 85, 85, 85,
365 85, 85, 86, 87, 89, 90, 91, 92, 92, 93,
366 94, 94, 94, 95, 95, 95, 96, 96, 97, 97,
367 97, 97, 97, 98, 98, 98, 98, 98, 98, 98,
368 99, 99, 99, 100, 100, 100, 100, 100, 100, 100,
369 100, 100, 100, 100, 100, 100, 100, 101, 101, 101,
370 101, 101, 101, 101, 101, 101, 101, 102, 103, 103,
371 103, 104, 104, 104, 105, 106, 106, 106, 106, 106,
372 106, 106, 106, 107, 107, 108, 108, 108, 108, 108,
374 108, 109, 109, 109, 109, 109, 109, 109, 109, 109,
375 109, 109, 109, 109, 109, 109, 109, 109, 109, 109,
376 109, 109, 109, 109, 109, 109, 110, 110, 110, 111,
377 112, 112, 112, 112, 113, 113, 113, 113, 114, 114,
378 114, 115, 116, 117, 117, 117, 117, 117, 117, 117,
379 117, 117, 117, 117, 117, 117, 117, 117, 117, 118,
380 118, 118, 118, 118, 119, 120, 120, 120, 120, 120,
381 120, 120, 120, 120, 120, 120, 121, 122, 123, 123,
382 123, 124, 124, 124, 124, 125, 125, 126, 126, 126,
383 126, 126, 126, 126, 127, 127, 127, 127, 127, 128,
385 128, 128, 129, 129, 129, 130, 130, 131, 131, 132,
386 133, 133, 133, 133, 133, 133, 133, 134, 134, 134,
387 134, 134, 135, 135, 136, 136, 136, 137, 138, 139,
388 139, 139, 140, 140, 140, 140, 140, 140, 140, 140,
389 140, 140, 140, 140, 140, 140, 140, 141, 141, 142,
390 143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
391 143, 144, 144, 144, 144, 144, 144, 144, 144, 145,
392 145, 145, 146, 147, 148, 149, 150, 151, 152, 152,
393 152, 152, 153, 153, 153, 153, 154, 155, 155, 156,
394 157, 157, 157, 157, 157, 157, 158, 158, 158, 158,
396 158, 158, 159, 159, 159, 160, 160, 160, 160, 160,
397 160, 160, 160, 161, 162, 163, 163, 163, 164, 165,
398 166, 166, 166, 167, 167, 167, 167, 167, 168, 168,
399 169, 170, 171, 172, 172, 172, 172, 173, 173, 173,
400 174, 175, 176, 177, 178, 178, 178, 179, 180, 181,
401 182, 182, 182, 182, 182, 182, 183, 183, 184, 184,
402 185, 186, 186, 186, 186, 186, 186, 187, 187, 187,
403 187, 187, 187, 187, 187, 187, 188, 188, 188, 188,
404 188, 188, 188, 188, 188, 188, 189, 189, 189, 189,
405 189, 190, 190, 190, 190, 190, 191, 192, 193, 193,
407 194, 194, 194, 194, 194, 195, 195, 195, 195, 196,
408 196, 197, 198, 198, 198, 198, 198, 198, 198, 198,
409 198, 198, 198, 198, 198, 198, 199, 199, 199, 199,
410 199, 199, 199, 199, 200, 200, 200, 200, 200, 200,
411 201, 201, 201, 201, 201, 202, 202, 202, 203, 203,
412 203, 203, 203, 203, 203, 203, 203, 203, 203, 203,
413 203, 203, 204, 204, 205, 206, 207, 207, 208, 208,
414 209, 210, 211, 211, 212, 212
417 static yyconst int yy_ec[256] =
419 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
420 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
421 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
422 1, 2, 1, 4, 1, 5, 6, 1, 1, 1,
423 1, 1, 7, 1, 8, 9, 1, 10, 11, 11,
424 11, 11, 11, 12, 11, 13, 11, 14, 15, 1,
425 1, 1, 1, 1, 16, 16, 16, 16, 17, 16,
426 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
427 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
428 1, 1, 1, 1, 18, 1, 19, 20, 21, 22,
430 23, 24, 25, 26, 27, 5, 28, 29, 30, 31,
431 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
432 42, 43, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
439 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
443 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
445 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 static yyconst int yy_meta[44] =
451 1, 1, 2, 1, 3, 1, 1, 3, 3, 3,
452 3, 3, 3, 4, 1, 3, 3, 3, 3, 3,
453 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
454 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
458 static yyconst short int yy_base[581] =
460 0, 0, 1240, 1241, 1241, 1241, 1235, 1224, 36, 40,
461 44, 50, 56, 62, 0, 63, 66, 81, 89, 47,
462 100, 97, 76, 96, 111, 49, 113, 110, 68, 140,
463 126, 171, 120, 130, 124, 141, 1233, 1241, 1222, 1241,
464 0, 159, 176, 199, 204, 70, 209, 224, 229, 0,
465 137, 165, 143, 72, 169, 159, 230, 215, 1221, 168,
466 182, 31, 69, 187, 240, 191, 242, 243, 244, 248,
467 246, 245, 251, 254, 256, 249, 260, 262, 264, 211,
468 273, 274, 270, 280, 275, 284, 285, 288, 292, 1220,
469 293, 294, 298, 300, 301, 276, 302, 310, 311, 313,
471 305, 309, 312, 330, 331, 1219, 334, 320, 322, 338,
472 340, 324, 341, 346, 348, 361, 356, 359, 162, 353,
473 368, 1218, 0, 383, 387, 1217, 401, 418, 0, 1216,
474 376, 370, 1215, 393, 373, 1214, 392, 1213, 406, 407,
475 408, 403, 1212, 419, 95, 420, 372, 409, 421, 1211,
476 425, 431, 428, 430, 433, 435, 432, 440, 443, 444,
477 445, 451, 447, 446, 449, 450, 453, 461, 468, 458,
478 469, 470, 473, 474, 475, 480, 1210, 1209, 481, 482,
479 1208, 483, 485, 1207, 1206, 513, 491, 488, 494, 489,
480 524, 503, 1205, 486, 1204, 487, 525, 527, 250, 528,
482 1203, 506, 531, 532, 536, 542, 538, 530, 537, 540,
483 548, 544, 556, 550, 560, 557, 375, 554, 568, 558,
484 571, 493, 576, 564, 582, 1202, 574, 552, 1241, 591,
485 605, 609, 613, 618, 619, 577, 620, 1201, 621, 591,
486 1200, 1199, 1198, 622, 623, 624, 625, 626, 628, 627,
487 632, 630, 634, 633, 635, 644, 642, 643, 1197, 653,
488 655, 657, 658, 1196, 1195, 659, 660, 661, 662, 663,
489 667, 583, 671, 669, 673, 1194, 1193, 1192, 672, 677,
490 1191, 675, 666, 680, 0, 691, 1190, 693, 694, 695,
491 696, 702, 703, 1189, 697, 585, 704, 707, 1188, 709,
493 714, 1187, 722, 708, 1186, 726, 1185, 727, 1184, 1183,
494 724, 728, 730, 716, 732, 735, 1182, 738, 741, 742,
495 743, 1181, 744, 1180, 746, 745, 1179, 751, 1178, 755,
496 757, 1177, 751, 754, 764, 771, 772, 763, 499, 766,
497 774, 779, 775, 776, 780, 782, 1176, 783, 1175, 1174,
498 781, 787, 786, 795, 791, 796, 798, 801, 805, 802,
499 1173, 808, 807, 810, 813, 814, 819, 820, 1172, 809,
500 815, 1171, 1170, 1169, 1168, 1167, 1166, 1165, 826, 829,
501 830, 1164, 831, 832, 835, 1163, 1162, 834, 1161, 1160,
502 836, 840, 837, 842, 846, 1159, 848, 850, 851, 852,
504 860, 1158, 854, 858, 1157, 861, 862, 864, 870, 866,
505 868, 872, 1156, 1155, 1154, 880, 873, 1153, 1152, 1151,
506 876, 882, 1150, 891, 893, 889, 874, 1149, 899, 1148,
507 1147, 1146, 1145, 887, 895, 901, 1144, 904, 905, 1143,
508 1142, 1141, 1140, 1139, 903, 907, 1138, 1137, 1136, 1135,
509 909, 910, 914, 917, 911, 1134, 920, 1133, 921, 1132,
510 1131, 923, 925, 926, 927, 929, 1130, 931, 933, 934,
511 936, 935, 945, 937, 941, 1129, 947, 948, 953, 955,
512 961, 962, 966, 963, 965, 1128, 967, 969, 971, 968,
513 1127, 974, 978, 975, 979, 1126, 1123, 1113, 980, 1112,
515 981, 996, 982, 999, 1111, 1000, 1001, 1002, 1109, 987,
516 1108, 1107, 1004, 1008, 1011, 1013, 1012, 1014, 1016, 1019,
517 1020, 1021, 1022, 1024, 1025, 1104, 1026, 1029, 1031, 1032,
518 1035, 1037, 1038, 1101, 1041, 1047, 1048, 1049, 1051, 1100,
519 1053, 1052, 1054, 1057, 1098, 1058, 1059, 1096, 1065, 1071,
520 1060, 1069, 1072, 1077, 1079, 1082, 1081, 1083, 1084, 1085,
521 1087, 984, 1088, 983, 710, 668, 1092, 664, 1097, 593,
522 345, 214, 1094, 213, 1241, 1129, 1131, 187, 1135, 138
525 static yyconst short int yy_def[581] =
527 575, 1, 575, 575, 575, 575, 576, 577, 578, 575,
528 577, 577, 577, 577, 579, 577, 577, 577, 577, 577,
529 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
530 577, 577, 577, 577, 577, 577, 576, 575, 577, 575,
531 580, 580, 575, 575, 577, 577, 577, 577, 577, 579,
532 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
533 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
534 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
535 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
536 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
538 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
539 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
540 577, 575, 580, 580, 575, 577, 577, 577, 49, 577,
541 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
542 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
543 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
544 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
545 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
546 577, 577, 577, 577, 577, 49, 577, 577, 577, 577,
547 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
549 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
550 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
551 577, 577, 577, 577, 577, 577, 577, 577, 575, 575,
552 575, 575, 577, 577, 577, 577, 577, 577, 577, 577,
553 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
554 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
555 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
556 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
557 577, 577, 577, 577, 186, 577, 577, 577, 577, 577,
558 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
560 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
561 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
562 577, 577, 577, 577, 577, 577, 577, 575, 577, 577,
563 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
564 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
565 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
566 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
567 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
568 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
569 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
571 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
572 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
573 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
574 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
575 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
576 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
577 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
578 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
579 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
580 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
582 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
583 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
584 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
585 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
586 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
587 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
588 577, 577, 577, 577, 577, 577, 577, 577, 577, 577,
589 577, 577, 577, 577, 0, 575, 575, 575, 575, 575
592 static yyconst short int yy_nxt[1285] =
594 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
595 14, 14, 14, 4, 15, 8, 8, 8, 16, 17,
596 18, 19, 20, 21, 22, 8, 23, 8, 24, 25,
597 26, 27, 28, 8, 29, 30, 31, 32, 33, 34,
598 35, 8, 36, 42, 40, 43, 43, 43, 43, 44,
599 44, 44, 44, 45, 45, 45, 45, 40, 46, 144,
600 40, 145, 40, 40, 47, 48, 48, 48, 48, 40,
601 47, 48, 48, 48, 48, 40, 40, 69, 126, 40,
602 87, 40, 40, 40, 51, 40, 88, 70, 56, 40,
603 94, 52, 57, 53, 40, 54, 49, 58, 55, 60,
605 59, 61, 40, 146, 134, 78, 79, 64, 40, 40,
606 40, 65, 62, 40, 80, 66, 63, 67, 71, 76,
607 68, 72, 81, 40, 40, 77, 40, 82, 73, 84,
608 245, 83, 74, 40, 75, 91, 119, 40, 116, 40,
609 123, 92, 85, 40, 105, 89, 93, 90, 86, 95,
610 40, 117, 118, 40, 40, 120, 40, 106, 130, 96,
611 107, 97, 98, 121, 133, 99, 100, 108, 124, 124,
612 124, 124, 40, 225, 101, 40, 102, 103, 40, 104,
613 95, 40, 40, 137, 40, 43, 43, 43, 43, 41,
614 109, 131, 110, 132, 135, 40, 141, 111, 136, 112,
616 40, 113, 143, 142, 40, 114, 115, 125, 44, 44,
617 44, 44, 47, 45, 45, 45, 45, 40, 127, 127,
618 127, 127, 40, 147, 40, 128, 40, 40, 40, 150,
619 169, 128, 47, 48, 48, 48, 48, 40, 129, 129,
620 129, 129, 40, 40, 129, 129, 140, 129, 129, 129,
621 129, 129, 129, 40, 138, 40, 40, 40, 40, 40,
622 148, 40, 40, 40, 40, 153, 139, 40, 154, 40,
623 151, 158, 149, 40, 156, 40, 160, 40, 162, 299,
624 152, 157, 159, 40, 155, 163, 40, 40, 40, 40,
625 161, 164, 172, 40, 165, 174, 176, 40, 40, 166,
627 167, 40, 168, 170, 173, 40, 40, 40, 175, 171,
628 180, 40, 177, 40, 40, 40, 179, 187, 40, 181,
629 182, 178, 40, 40, 40, 40, 40, 199, 188, 184,
630 189, 201, 183, 40, 197, 40, 185, 40, 190, 193,
631 200, 186, 194, 40, 40, 195, 191, 40, 196, 198,
632 192, 40, 207, 40, 40, 212, 202, 203, 40, 40,
633 205, 40, 213, 208, 209, 204, 40, 214, 217, 40,
634 210, 206, 40, 218, 40, 215, 211, 224, 219, 220,
635 216, 40, 222, 40, 223, 40, 40, 226, 40, 40,
636 247, 221, 124, 124, 124, 124, 230, 230, 230, 230,
638 235, 236, 227, 231, 317, 40, 40, 238, 228, 231,
639 127, 127, 127, 127, 40, 237, 40, 128, 239, 40,
640 40, 40, 40, 128, 232, 233, 240, 234, 234, 234,
641 234, 40, 40, 40, 40, 241, 242, 248, 40, 243,
642 244, 40, 246, 40, 40, 40, 40, 250, 40, 249,
643 252, 251, 254, 40, 253, 255, 40, 40, 40, 40,
644 40, 260, 40, 40, 40, 267, 40, 256, 258, 266,
645 257, 40, 269, 264, 40, 270, 262, 268, 259, 263,
646 265, 40, 40, 40, 261, 274, 40, 40, 40, 271,
647 273, 276, 272, 40, 40, 40, 40, 277, 40, 40,
649 40, 40, 40, 279, 40, 275, 40, 40, 278, 281,
650 296, 289, 40, 283, 322, 282, 40, 280, 410, 40,
651 295, 284, 285, 285, 285, 285, 287, 286, 285, 285,
652 288, 285, 285, 285, 285, 285, 285, 40, 40, 294,
653 40, 40, 301, 40, 40, 40, 290, 297, 291, 40,
654 40, 40, 292, 40, 293, 40, 303, 40, 298, 302,
655 307, 40, 300, 40, 305, 40, 308, 40, 304, 40,
656 40, 40, 306, 40, 312, 309, 310, 40, 313, 311,
657 314, 40, 315, 316, 40, 318, 319, 40, 327, 40,
658 40, 324, 320, 321, 323, 40, 40, 330, 40, 325,
660 230, 230, 230, 230, 40, 326, 40, 231, 379, 333,
661 360, 232, 232, 231, 328, 328, 328, 328, 328, 328,
662 328, 328, 234, 234, 234, 234, 40, 234, 234, 234,
663 234, 40, 40, 40, 40, 40, 40, 40, 40, 40,
664 40, 40, 334, 40, 338, 40, 40, 40, 40, 329,
665 331, 332, 343, 337, 339, 40, 40, 40, 342, 335,
666 336, 341, 346, 348, 347, 344, 40, 340, 40, 345,
667 40, 40, 40, 40, 40, 40, 40, 40, 355, 40,
668 40, 40, 40, 356, 40, 40, 40, 354, 40, 349,
669 40, 350, 351, 40, 352, 353, 357, 358, 359, 361,
671 362, 363, 367, 364, 40, 365, 40, 40, 40, 40,
672 40, 368, 366, 369, 371, 40, 40, 40, 373, 370,
673 40, 40, 40, 40, 375, 377, 380, 40, 372, 40,
674 381, 382, 374, 378, 383, 40, 385, 40, 376, 40,
675 40, 40, 391, 40, 384, 40, 386, 388, 40, 387,
676 392, 40, 389, 390, 40, 40, 40, 40, 40, 40,
677 328, 328, 328, 328, 40, 393, 396, 40, 40, 399,
678 40, 401, 394, 402, 405, 395, 40, 40, 403, 40,
679 398, 400, 406, 397, 40, 40, 404, 40, 40, 40,
680 408, 407, 40, 40, 40, 40, 40, 409, 411, 40,
682 40, 413, 417, 418, 40, 414, 412, 419, 40, 40,
683 416, 40, 415, 420, 40, 40, 421, 422, 40, 423,
684 40, 40, 40, 40, 428, 424, 40, 40, 40, 430,
685 431, 426, 40, 40, 425, 432, 433, 427, 429, 40,
686 436, 434, 40, 40, 40, 40, 435, 40, 40, 40,
687 40, 437, 439, 40, 438, 40, 441, 443, 447, 40,
688 446, 40, 440, 40, 40, 40, 444, 40, 442, 452,
689 449, 40, 445, 40, 40, 40, 451, 40, 448, 40,
690 455, 40, 458, 40, 450, 40, 40, 40, 453, 40,
691 454, 457, 460, 40, 456, 40, 467, 464, 465, 462,
693 40, 461, 40, 463, 40, 459, 40, 471, 40, 466,
694 472, 468, 40, 469, 40, 470, 40, 40, 40, 473,
695 40, 474, 40, 40, 40, 475, 477, 40, 478, 479,
696 40, 476, 480, 40, 40, 483, 40, 481, 40, 40,
697 40, 485, 40, 484, 40, 482, 40, 40, 40, 40,
698 40, 492, 487, 493, 40, 491, 486, 488, 40, 489,
699 40, 40, 495, 494, 496, 490, 40, 498, 40, 497,
700 502, 503, 499, 504, 40, 40, 40, 500, 40, 40,
701 40, 40, 40, 505, 40, 501, 507, 40, 40, 509,
702 513, 40, 40, 40, 40, 40, 40, 40, 506, 508,
704 40, 517, 514, 519, 510, 511, 518, 512, 515, 40,
705 521, 516, 40, 40, 40, 40, 520, 40, 522, 524,
706 523, 40, 527, 526, 40, 40, 40, 40, 525, 40,
707 528, 530, 40, 40, 40, 40, 533, 40, 40, 40,
708 537, 531, 40, 539, 40, 40, 535, 529, 40, 536,
709 40, 40, 538, 540, 40, 534, 532, 544, 541, 545,
710 40, 40, 40, 542, 40, 40, 40, 40, 543, 548,
711 40, 40, 40, 40, 546, 552, 549, 550, 40, 551,
712 554, 557, 40, 547, 40, 40, 560, 555, 553, 556,
713 40, 559, 40, 558, 40, 40, 40, 40, 40, 561,
715 40, 40, 566, 567, 568, 40, 562, 40, 563, 40,
716 40, 40, 572, 40, 40, 564, 565, 40, 571, 573,
717 40, 40, 40, 570, 40, 40, 40, 569, 574, 37,
718 37, 37, 37, 39, 39, 50, 40, 50, 50, 40,
719 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
720 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
721 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
722 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
723 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
724 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
726 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
727 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
728 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
729 40, 229, 40, 40, 40, 40, 122, 40, 38, 575,
730 3, 575, 575, 575, 575, 575, 575, 575, 575, 575,
731 575, 575, 575, 575, 575, 575, 575, 575, 575, 575,
732 575, 575, 575, 575, 575, 575, 575, 575, 575, 575,
733 575, 575, 575, 575, 575, 575, 575, 575, 575, 575,
737 static yyconst short int yy_chk[1285] =
739 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
740 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
741 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
742 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
743 1, 1, 1, 9, 62, 9, 9, 9, 9, 10,
744 10, 10, 10, 11, 11, 11, 11, 11, 12, 62,
745 20, 62, 26, 12, 13, 13, 13, 13, 13, 13,
746 14, 14, 14, 14, 14, 14, 16, 20, 46, 17,
747 26, 29, 63, 46, 16, 54, 26, 20, 17, 23,
748 29, 16, 17, 16, 18, 16, 13, 17, 16, 18,
750 17, 18, 19, 63, 54, 23, 23, 19, 145, 24,
751 22, 19, 18, 21, 24, 19, 18, 19, 21, 22,
752 19, 21, 24, 28, 25, 22, 27, 24, 21, 25,
753 145, 24, 21, 33, 21, 28, 35, 35, 33, 31,
754 580, 28, 25, 34, 31, 27, 28, 27, 25, 30,
755 51, 33, 34, 30, 36, 35, 53, 31, 51, 30,
756 31, 30, 30, 36, 53, 30, 30, 31, 42, 42,
757 42, 42, 56, 119, 30, 119, 30, 30, 52, 30,
758 32, 60, 55, 56, 32, 43, 43, 43, 43, 578,
759 32, 52, 32, 52, 55, 61, 60, 32, 55, 32,
761 64, 32, 61, 60, 66, 32, 32, 44, 44, 44,
762 44, 44, 45, 45, 45, 45, 45, 45, 47, 47,
763 47, 47, 47, 64, 80, 47, 574, 572, 58, 66,
764 80, 47, 48, 48, 48, 48, 48, 48, 49, 49,
765 49, 49, 49, 57, 49, 49, 58, 49, 49, 49,
766 49, 49, 49, 65, 57, 67, 68, 69, 72, 71,
767 65, 70, 76, 199, 73, 69, 57, 74, 70, 75,
768 67, 72, 65, 77, 71, 78, 74, 79, 75, 199,
769 68, 71, 73, 83, 70, 76, 81, 82, 85, 96,
770 74, 77, 82, 84, 78, 83, 85, 86, 87, 79,
772 79, 88, 79, 81, 82, 89, 91, 92, 84, 81,
773 89, 93, 86, 94, 95, 97, 88, 96, 101, 91,
774 92, 87, 102, 98, 99, 103, 100, 101, 97, 94,
775 98, 103, 93, 108, 100, 109, 94, 112, 98, 99,
776 102, 95, 99, 104, 105, 99, 98, 107, 99, 100,
777 98, 110, 108, 111, 113, 112, 104, 105, 571, 114,
778 107, 115, 113, 109, 110, 105, 120, 113, 114, 117,
779 111, 107, 118, 115, 116, 113, 111, 118, 116, 116,
780 113, 121, 117, 132, 117, 147, 135, 120, 217, 131,
781 147, 116, 124, 124, 124, 124, 125, 125, 125, 125,
783 131, 132, 121, 125, 217, 137, 134, 135, 121, 125,
784 127, 127, 127, 127, 127, 134, 142, 127, 137, 139,
785 140, 141, 148, 127, 128, 128, 139, 128, 128, 128,
786 128, 128, 144, 146, 149, 140, 141, 148, 151, 142,
787 144, 153, 146, 154, 152, 157, 155, 151, 156, 149,
788 152, 151, 154, 158, 153, 155, 159, 160, 161, 164,
789 163, 159, 165, 166, 162, 164, 167, 155, 157, 163,
790 156, 170, 166, 162, 168, 167, 161, 165, 158, 161,
791 162, 169, 171, 172, 160, 170, 173, 174, 175, 167,
792 169, 172, 168, 176, 179, 180, 182, 173, 183, 194,
794 196, 188, 190, 175, 187, 171, 222, 189, 174, 179,
795 196, 190, 339, 182, 222, 180, 192, 176, 339, 202,
796 194, 183, 186, 186, 186, 186, 188, 187, 186, 186,
797 189, 186, 186, 186, 186, 186, 186, 191, 197, 192,
798 198, 200, 202, 208, 203, 204, 191, 197, 191, 205,
799 209, 207, 191, 210, 191, 206, 204, 212, 198, 203,
800 207, 211, 200, 214, 206, 228, 208, 218, 205, 213,
801 216, 220, 206, 215, 212, 209, 210, 224, 213, 211,
802 214, 219, 215, 216, 221, 218, 219, 227, 228, 223,
803 236, 224, 220, 221, 223, 225, 272, 236, 296, 225,
805 230, 230, 230, 230, 240, 227, 570, 230, 296, 240,
806 272, 231, 231, 230, 231, 231, 231, 231, 232, 232,
807 232, 232, 233, 233, 233, 233, 233, 234, 234, 234,
808 234, 234, 235, 237, 239, 244, 245, 246, 247, 248,
809 250, 249, 244, 252, 248, 251, 254, 253, 255, 235,
810 237, 239, 253, 247, 249, 257, 258, 256, 252, 245,
811 246, 251, 256, 258, 257, 254, 260, 250, 261, 255,
812 262, 263, 266, 267, 268, 269, 270, 568, 267, 283,
813 271, 566, 274, 268, 273, 279, 275, 266, 282, 260,
814 280, 261, 262, 284, 262, 263, 269, 270, 271, 273,
816 274, 275, 283, 279, 286, 280, 288, 289, 290, 291,
817 295, 284, 282, 286, 289, 292, 293, 297, 291, 288,
818 298, 304, 300, 565, 292, 293, 297, 301, 290, 314,
819 298, 300, 291, 295, 301, 303, 304, 311, 292, 306,
820 308, 312, 314, 313, 303, 315, 306, 311, 316, 308,
821 315, 318, 312, 313, 319, 320, 321, 323, 326, 325,
822 328, 328, 328, 328, 333, 316, 320, 334, 330, 325,
823 331, 326, 318, 330, 334, 319, 338, 335, 331, 340,
824 323, 325, 335, 321, 336, 337, 333, 341, 343, 344,
825 337, 336, 342, 345, 351, 346, 348, 338, 340, 353,
827 352, 342, 346, 348, 355, 343, 341, 351, 354, 356,
828 345, 357, 344, 352, 358, 360, 353, 354, 359, 355,
829 363, 362, 370, 364, 360, 356, 365, 366, 371, 363,
830 364, 358, 367, 368, 357, 365, 366, 359, 362, 379,
831 370, 367, 380, 381, 383, 384, 368, 388, 385, 391,
832 393, 371, 380, 392, 379, 394, 383, 385, 393, 395,
833 392, 397, 381, 398, 399, 400, 388, 403, 384, 399,
834 395, 404, 391, 401, 406, 407, 398, 408, 394, 410,
835 403, 411, 407, 409, 397, 412, 417, 427, 400, 421,
836 401, 406, 409, 416, 404, 422, 421, 416, 416, 411,
838 434, 410, 426, 412, 424, 408, 425, 426, 435, 417,
839 427, 422, 429, 424, 436, 425, 445, 438, 439, 429,
840 446, 434, 451, 452, 455, 435, 438, 453, 439, 445,
841 454, 436, 446, 457, 459, 453, 462, 451, 463, 464,
842 465, 455, 466, 454, 468, 452, 469, 470, 472, 471,
843 474, 466, 459, 468, 475, 465, 457, 462, 473, 463,
844 477, 478, 470, 469, 471, 464, 479, 473, 480, 472,
845 478, 479, 474, 480, 481, 482, 484, 475, 485, 483,
846 487, 490, 488, 481, 489, 477, 483, 492, 494, 485,
847 490, 493, 495, 499, 501, 503, 564, 562, 482, 484,
849 510, 495, 492, 501, 487, 488, 499, 489, 493, 502,
850 503, 494, 504, 506, 507, 508, 502, 513, 504, 507,
851 506, 514, 513, 510, 515, 517, 516, 518, 508, 519,
852 514, 516, 520, 521, 522, 523, 519, 524, 525, 527,
853 523, 517, 528, 525, 529, 530, 521, 515, 531, 522,
854 532, 533, 524, 527, 535, 520, 518, 531, 528, 532,
855 536, 537, 538, 529, 539, 542, 541, 543, 530, 536,
856 544, 546, 547, 551, 533, 541, 537, 538, 549, 539,
857 543, 547, 552, 535, 550, 553, 551, 544, 542, 546,
858 554, 550, 555, 549, 557, 556, 558, 559, 560, 552,
860 561, 563, 557, 558, 559, 567, 553, 573, 554, 548,
861 569, 545, 567, 540, 534, 555, 556, 526, 563, 569,
862 512, 511, 509, 561, 505, 500, 498, 560, 573, 576,
863 576, 576, 576, 577, 577, 579, 497, 579, 579, 496,
864 491, 486, 476, 467, 461, 460, 458, 456, 450, 449,
865 448, 447, 444, 443, 442, 441, 440, 437, 433, 432,
866 431, 430, 428, 423, 420, 419, 418, 415, 414, 413,
867 405, 402, 396, 390, 389, 387, 386, 382, 378, 377,
868 376, 375, 374, 373, 372, 369, 361, 350, 349, 347,
869 332, 329, 327, 324, 322, 317, 310, 309, 307, 305,
871 302, 299, 294, 287, 281, 278, 277, 276, 265, 264,
872 259, 243, 242, 241, 238, 226, 201, 195, 193, 185,
873 184, 181, 178, 177, 150, 143, 138, 136, 133, 130,
874 126, 122, 106, 90, 59, 39, 37, 8, 7, 3,
875 575, 575, 575, 575, 575, 575, 575, 575, 575, 575,
876 575, 575, 575, 575, 575, 575, 575, 575, 575, 575,
877 575, 575, 575, 575, 575, 575, 575, 575, 575, 575,
878 575, 575, 575, 575, 575, 575, 575, 575, 575, 575,
882 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
883 static char *yy_full_match;
887 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
888 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
892 #define yymore() yymore_used_but_not_detected
893 #define YY_MORE_ADJ 0
894 #define YY_RESTORE_YY_MORE_OFFSET
896 #line 1 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
898 /*===-- Lexer.l - Scanner for llvm assembly files --------------*- C++ -*--===//
900 // The LLVM Compiler Infrastructure
902 // This file was developed by the LLVM research group and is distributed under
903 // the University of Illinois Open Source License. See LICENSE.TXT for details.
905 //===----------------------------------------------------------------------===//
907 // This file implements the flex scanner for LLVM assembly languages files.
909 //===----------------------------------------------------------------------===*/
910 #define YY_NEVER_INTERACTIVE 1
911 #line 28 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
912 #include "ParserInternals.h"
913 #include "llvm/Module.h"
915 #include "llvmAsmParser.h"
919 void set_scan_file(FILE * F){
920 yy_switch_to_buffer(yy_create_buffer( F, YY_BUF_SIZE ) );
922 void set_scan_string (const char * str) {
923 yy_scan_string (str);
926 // Construct a token value for a non-obsolete token
927 #define RET_TOK(type, Enum, sym) \
928 llvmAsmlval.type.opcode = Instruction::Enum; \
929 llvmAsmlval.type.obsolete = false; \
932 // Construct a token value for an obsolete token
933 #define RET_TOK_OBSOLETE(type, Enum, sym) \
934 llvmAsmlval.type.opcode = Instruction::Enum; \
935 llvmAsmlval.type.obsolete = true; \
938 // Construct a token value for an obsolete token
939 #define RET_TY(CTYPE, SIGN, SYM) \
940 llvmAsmlval.TypeVal.type = new PATypeHolder(CTYPE); \
941 llvmAsmlval.TypeVal.signedness = SIGN; \
946 // TODO: All of the static identifiers are figured out by the lexer,
947 // these should be hashed to reduce the lexer size
950 // atoull - Convert an ascii string of decimal digits into the unsigned long
951 // long representation... this does not have to do input error checking,
952 // because we know that the input will be matched by a suitable regex...
954 static uint64_t atoull(const char *Buffer) {
956 for (; *Buffer; Buffer++) {
957 uint64_t OldRes = Result;
959 Result += *Buffer-'0';
960 if (Result < OldRes) // Uh, oh, overflow detected!!!
961 GenerateError("constant bigger than 64 bits detected!");
966 static uint64_t HexIntToVal(const char *Buffer) {
968 for (; *Buffer; ++Buffer) {
969 uint64_t OldRes = Result;
972 if (C >= '0' && C <= '9')
974 else if (C >= 'A' && C <= 'F')
976 else if (C >= 'a' && C <= 'f')
979 if (Result < OldRes) // Uh, oh, overflow detected!!!
980 GenerateError("constant bigger than 64 bits detected!");
986 // HexToFP - Convert the ascii string in hexidecimal format to the floating
987 // point representation of it.
989 static double HexToFP(const char *Buffer) {
990 // Behave nicely in the face of C TBAA rules... see:
991 // http://www.nullstone.com/htmls/category/aliastyp.htm
996 UIntToFP.UI = HexIntToVal(Buffer);
998 assert(sizeof(double) == sizeof(uint64_t) &&
999 "Data sizes incompatible on this target!");
1000 return UIntToFP.FP; // Cast Hex constant to double
1004 // UnEscapeLexed - Run through the specified buffer and change \xx codes to the
1005 // appropriate character. If AllowNull is set to false, a \00 value will cause
1006 // an exception to be thrown.
1008 // If AllowNull is set to true, the return value of the function points to the
1009 // last character of the string in memory.
1011 char *UnEscapeLexed(char *Buffer, bool AllowNull) {
1012 char *BOut = Buffer;
1013 for (char *BIn = Buffer; *BIn; ) {
1014 if (BIn[0] == '\\' && isxdigit(BIn[1]) && isxdigit(BIn[2])) {
1015 char Tmp = BIn[3]; BIn[3] = 0; // Terminate string
1016 *BOut = (char)strtol(BIn+1, 0, 16); // Convert to number
1017 if (!AllowNull && !*BOut)
1018 GenerateError("String literal cannot accept \\00 escape!");
1020 BIn[3] = Tmp; // Restore character
1021 BIn += 3; // Skip over handled chars
1031 } // End llvm namespace
1033 using namespace llvm;
1035 #define YY_NEVER_INTERACTIVE 1
1036 /* Comments start with a ; and go till end of line */
1037 /* Variable(Value) identifiers start with a % sign */
1038 /* Label identifiers end with a colon */
1039 /* Quoted names can contain any character except " and \ */
1040 /* [PN]Integer: match positive and negative literal integer values that
1041 * are preceeded by a '%' character. These represent unnamed variable slots.
1043 /* E[PN]Integer: match positive and negative literal integer values */
1044 /* FPConstant - A Floating point constant.
1046 /* HexFPConstant - Floating point constant represented in IEEE format as a
1047 * hexadecimal number for when exponential notation is not precise enough.
1049 /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
1050 * it to deal with 64 bit numbers.
1052 #line 1053 "Lexer.cpp"
1054 /* Macros after this point can all be overridden by user definitions in
1058 #ifndef YY_SKIP_YYWRAP
1060 extern "C" int yywrap YY_PROTO(( void ));
1062 extern int yywrap YY_PROTO(( void ));
1067 static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1071 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
1074 #ifdef YY_NEED_STRLEN
1075 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
1080 static int yyinput YY_PROTO(( void ));
1082 static int input YY_PROTO(( void ));
1087 static int yy_start_stack_ptr = 0;
1088 static int yy_start_stack_depth = 0;
1089 static int *yy_start_stack = 0;
1090 #ifndef YY_NO_PUSH_STATE
1091 static void yy_push_state YY_PROTO(( int new_state ));
1093 #ifndef YY_NO_POP_STATE
1094 static void yy_pop_state YY_PROTO(( void ));
1096 #ifndef YY_NO_TOP_STATE
1097 static int yy_top_state YY_PROTO(( void ));
1101 #define YY_NO_PUSH_STATE 1
1102 #define YY_NO_POP_STATE 1
1103 #define YY_NO_TOP_STATE 1
1106 #ifdef YY_MALLOC_DECL
1114 /* Just try to get by without declaring the routines. This will fail
1115 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1116 * or sizeof(void*) != sizeof(int).
1121 /* Amount of stuff to slurp up with each read. */
1122 #ifndef YY_READ_BUF_SIZE
1123 #define YY_READ_BUF_SIZE 8192
1126 /* Copy whatever the last rule matched to the standard output. */
1129 /* This used to be an fputs(), but since the string might contain NUL's,
1130 * we now use fwrite().
1132 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1135 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1136 * is returned in "result".
1139 #define YY_INPUT(buf,result,max_size) \
1140 if ( yy_current_buffer->yy_is_interactive ) \
1143 for ( n = 0; n < max_size && \
1144 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1145 buf[n] = (char) c; \
1147 buf[n++] = (char) c; \
1148 if ( c == EOF && ferror( yyin ) ) \
1149 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1152 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1153 && ferror( yyin ) ) \
1154 YY_FATAL_ERROR( "input in flex scanner failed" );
1157 /* No semi-colon after return; correct usage is to write "yyterminate();" -
1158 * we don't want an extra ';' after the "return" because that will cause
1159 * some compilers to complain about unreachable statements.
1162 #define yyterminate() return YY_NULL
1165 /* Number of entries by which start-condition stack grows. */
1166 #ifndef YY_START_STACK_INCR
1167 #define YY_START_STACK_INCR 25
1170 /* Report a fatal error. */
1171 #ifndef YY_FATAL_ERROR
1172 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1175 /* Default declaration of generated scanner - a define so the user can
1176 * easily add parameters.
1179 #define YY_DECL int yylex YY_PROTO(( void ))
1182 /* Code executed at the beginning of each rule, after yytext and yyleng
1185 #ifndef YY_USER_ACTION
1186 #define YY_USER_ACTION
1189 /* Code executed at the end of each rule. */
1191 #define YY_BREAK break;
1194 #define YY_RULE_SETUP \
1199 register yy_state_type yy_current_state;
1200 register char *yy_cp = NULL, *yy_bp = NULL;
1201 register int yy_act;
1203 #line 194 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1206 #line 1207 "Lexer.cpp"
1217 yy_start = 1; /* first start state */
1225 if ( ! yy_current_buffer )
1227 yy_create_buffer( yyin, YY_BUF_SIZE );
1229 yy_load_buffer_state();
1232 while ( 1 ) /* loops until end-of-file is reached */
1236 /* Support of yytext. */
1237 *yy_cp = yy_hold_char;
1239 /* yy_bp points to the position in yy_ch_buf of the start of
1244 yy_current_state = yy_start;
1245 yy_state_ptr = yy_state_buf;
1246 *yy_state_ptr++ = yy_current_state;
1250 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1251 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1253 yy_current_state = (int) yy_def[yy_current_state];
1254 if ( yy_current_state >= 576 )
1255 yy_c = yy_meta[(unsigned int) yy_c];
1257 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1258 *yy_state_ptr++ = yy_current_state;
1261 while ( yy_current_state != 575 );
1264 yy_current_state = *--yy_state_ptr;
1265 yy_lp = yy_accept[yy_current_state];
1266 find_rule: /* we branch to this label when backing up */
1267 for ( ; ; ) /* until we find what rule we matched */
1269 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1271 yy_act = yy_acclist[yy_lp];
1273 yy_full_match = yy_cp;
1278 yy_current_state = *--yy_state_ptr;
1279 yy_lp = yy_accept[yy_current_state];
1282 YY_DO_BEFORE_ACTION;
1284 if ( yy_act != YY_END_OF_BUFFER )
1287 for ( yyl = 0; yyl < yyleng; ++yyl )
1288 if ( yytext[yyl] == '\n' )
1292 do_action: /* This label is used only to access EOF actions. */
1296 { /* beginning of action switch */
1299 #line 196 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1300 { /* Ignore comments for now */ }
1304 #line 198 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1305 { return BEGINTOK; }
1309 #line 199 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1314 #line 200 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1319 #line 201 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1320 { return FALSETOK; }
1324 #line 202 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1329 #line 203 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1334 #line 204 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1335 { return CONSTANT; }
1339 #line 205 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1340 { return INTERNAL; }
1344 #line 206 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1345 { return LINKONCE; }
1349 #line 207 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1354 #line 208 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1355 { return APPENDING; }
1359 #line 209 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1360 { return DLLIMPORT; }
1364 #line 210 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1365 { return DLLEXPORT; }
1369 #line 211 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1370 { return EXTERN_WEAK; }
1374 #line 212 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1375 { return EXTERNAL; } /* Deprecated, turn into external */
1379 #line 213 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1380 { return EXTERNAL; }
1384 #line 214 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1385 { return IMPLEMENTATION; }
1389 #line 215 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1390 { return ZEROINITIALIZER; }
1394 #line 216 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1395 { return DOTDOTDOT; }
1399 #line 217 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1404 #line 218 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1405 { return NULL_TOK; }
1409 #line 219 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1414 #line 220 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1415 { RET_TOK(TermOpVal, Unwind, UNWIND); }
1419 #line 221 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1420 { return NOT; } /* Deprecated, turned into XOR */
1424 #line 222 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1429 #line 223 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1434 #line 224 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1439 #line 225 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1444 #line 226 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1449 #line 227 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1450 { return POINTERSIZE; }
1454 #line 228 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1455 { return DATALAYOUT; }
1459 #line 229 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1464 #line 230 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1469 #line 231 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1470 { return VOLATILE; }
1474 #line 232 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1479 #line 233 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1484 #line 234 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1489 #line 235 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1494 #line 236 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1495 { return SIDEEFFECT; }
1499 #line 238 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1504 #line 239 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1509 #line 240 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1510 { return CSRETCC_TOK; }
1514 #line 241 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1515 { return FASTCC_TOK; }
1519 #line 242 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1520 { return COLDCC_TOK; }
1524 #line 243 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1525 { return X86_STDCALLCC_TOK; }
1529 #line 244 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1530 { return X86_FASTCALLCC_TOK; }
1534 #line 246 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1535 { RET_TY(Type::VoidTy, isSignless, VOID); }
1539 #line 247 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1540 { RET_TY(Type::BoolTy, isSignless, BOOL); }
1544 #line 248 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1545 { RET_TY(Type::SByteTy, isSigned, SBYTE); }
1549 #line 249 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1550 { RET_TY(Type::UByteTy, isUnsigned, UBYTE); }
1554 #line 250 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1555 { RET_TY(Type::ShortTy, isSigned, SHORT); }
1559 #line 251 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1560 { RET_TY(Type::UShortTy,isUnsigned, USHORT);}
1564 #line 252 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1565 { RET_TY(Type::IntTy, isSigned, INT); }
1569 #line 253 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1570 { RET_TY(Type::UIntTy, isUnsigned, UINT); }
1574 #line 254 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1575 { RET_TY(Type::LongTy, isSigned, LONG); }
1579 #line 255 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1580 { RET_TY(Type::ULongTy, isUnsigned, ULONG); }
1584 #line 256 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1585 { RET_TY(Type::FloatTy, isSignless, FLOAT); }
1589 #line 257 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1590 { RET_TY(Type::DoubleTy,isSignless, DOUBLE);}
1594 #line 258 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1595 { RET_TY(Type::LabelTy, isSignless, LABEL); }
1599 #line 259 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1604 #line 260 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1609 #line 262 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1610 { RET_TOK(BinaryOpVal, Add, ADD); }
1614 #line 263 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1615 { RET_TOK(BinaryOpVal, Sub, SUB); }
1619 #line 264 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1620 { RET_TOK(BinaryOpVal, Mul, MUL); }
1624 #line 265 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1625 { RET_TOK_OBSOLETE(BinaryOpVal, UDiv, UDIV); }
1629 #line 266 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1630 { RET_TOK(BinaryOpVal, UDiv, UDIV); }
1634 #line 267 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1635 { RET_TOK(BinaryOpVal, SDiv, SDIV); }
1639 #line 268 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1640 { RET_TOK(BinaryOpVal, FDiv, FDIV); }
1644 #line 269 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1645 { RET_TOK_OBSOLETE(BinaryOpVal, URem, UREM); }
1649 #line 270 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1650 { RET_TOK(BinaryOpVal, URem, UREM); }
1654 #line 271 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1655 { RET_TOK(BinaryOpVal, SRem, SREM); }
1659 #line 272 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1660 { RET_TOK(BinaryOpVal, FRem, FREM); }
1664 #line 273 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1665 { RET_TOK(BinaryOpVal, And, AND); }
1669 #line 274 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1670 { RET_TOK(BinaryOpVal, Or , OR ); }
1674 #line 275 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1675 { RET_TOK(BinaryOpVal, Xor, XOR); }
1679 #line 276 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1680 { RET_TOK(BinaryOpVal, SetNE, SETNE); }
1684 #line 277 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1685 { RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
1689 #line 278 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1690 { RET_TOK(BinaryOpVal, SetLT, SETLT); }
1694 #line 279 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1695 { RET_TOK(BinaryOpVal, SetGT, SETGT); }
1699 #line 280 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1700 { RET_TOK(BinaryOpVal, SetLE, SETLE); }
1704 #line 281 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1705 { RET_TOK(BinaryOpVal, SetGE, SETGE); }
1709 #line 283 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1710 { RET_TOK(OtherOpVal, PHI, PHI_TOK); }
1714 #line 284 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1715 { RET_TOK(OtherOpVal, Call, CALL); }
1719 #line 285 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1720 { RET_TOK_OBSOLETE(CastOpVal, Trunc, TRUNC); }
1724 #line 286 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1725 { RET_TOK(CastOpVal, Trunc, TRUNC); }
1729 #line 287 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1730 { RET_TOK(CastOpVal, ZExt, ZEXT); }
1734 #line 288 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1735 { RET_TOK(CastOpVal, SExt, SEXT); }
1739 #line 289 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1740 { RET_TOK(CastOpVal, FPTrunc, FPTRUNC); }
1744 #line 290 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1745 { RET_TOK(CastOpVal, FPExt, FPEXT); }
1749 #line 291 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1750 { RET_TOK(CastOpVal, UIToFP, UITOFP); }
1754 #line 292 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1755 { RET_TOK(CastOpVal, SIToFP, SITOFP); }
1759 #line 293 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1760 { RET_TOK(CastOpVal, FPToUI, FPTOUI); }
1764 #line 294 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1765 { RET_TOK(CastOpVal, FPToSI, FPTOSI); }
1769 #line 295 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1770 { RET_TOK(CastOpVal, IntToPtr, INTTOPTR); }
1774 #line 296 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1775 { RET_TOK(CastOpVal, PtrToInt, PTRTOINT); }
1779 #line 297 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1780 { RET_TOK(CastOpVal, BitCast, BITCAST); }
1784 #line 298 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1785 { RET_TOK(OtherOpVal, Select, SELECT); }
1789 #line 299 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1790 { RET_TOK(OtherOpVal, Shl, SHL); }
1794 #line 300 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1795 { RET_TOK_OBSOLETE(OtherOpVal, LShr, LSHR); }
1799 #line 301 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1800 { RET_TOK(OtherOpVal, LShr, LSHR); }
1804 #line 302 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1805 { RET_TOK(OtherOpVal, AShr, ASHR); }
1809 #line 303 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1810 { return VANEXT_old; }
1814 #line 304 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1815 { return VAARG_old; }
1819 #line 305 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1820 { RET_TOK(OtherOpVal, VAArg , VAARG); }
1824 #line 306 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1825 { RET_TOK(TermOpVal, Ret, RET); }
1829 #line 307 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1830 { RET_TOK(TermOpVal, Br, BR); }
1834 #line 308 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1835 { RET_TOK(TermOpVal, Switch, SWITCH); }
1839 #line 309 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1840 { RET_TOK(TermOpVal, Invoke, INVOKE); }
1844 #line 310 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1845 { RET_TOK(TermOpVal, Unwind, UNWIND); }
1849 #line 311 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1850 { RET_TOK(TermOpVal, Unreachable, UNREACHABLE); }
1854 #line 313 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1855 { RET_TOK(MemOpVal, Malloc, MALLOC); }
1859 #line 314 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1860 { RET_TOK(MemOpVal, Alloca, ALLOCA); }
1864 #line 315 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1865 { RET_TOK(MemOpVal, Free, FREE); }
1869 #line 316 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1870 { RET_TOK(MemOpVal, Load, LOAD); }
1874 #line 317 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1875 { RET_TOK(MemOpVal, Store, STORE); }
1879 #line 318 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1880 { RET_TOK(MemOpVal, GetElementPtr, GETELEMENTPTR); }
1884 #line 320 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1885 { RET_TOK(OtherOpVal, ExtractElement, EXTRACTELEMENT); }
1889 #line 321 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1890 { RET_TOK(OtherOpVal, InsertElement, INSERTELEMENT); }
1894 #line 322 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1895 { RET_TOK(OtherOpVal, ShuffleVector, SHUFFLEVECTOR); }
1899 #line 325 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1901 UnEscapeLexed(yytext+1);
1902 llvmAsmlval.StrVal = strdup(yytext+1); // Skip %
1908 #line 330 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1910 yytext[strlen(yytext)-1] = 0; // nuke colon
1911 UnEscapeLexed(yytext);
1912 llvmAsmlval.StrVal = strdup(yytext);
1918 #line 336 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1920 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
1921 UnEscapeLexed(yytext+1);
1922 llvmAsmlval.StrVal = strdup(yytext+1);
1928 #line 343 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1929 { // Note that we cannot unescape a string constant here! The
1930 // string constant might contain a \00 which would not be
1931 // understood by the string stuff. It is valid to make a
1932 // [sbyte] c"Hello World\00" constant, for example.
1934 yytext[strlen(yytext)-1] = 0; // nuke end quote
1935 llvmAsmlval.StrVal = strdup(yytext+1); // Nuke start quote
1936 return STRINGCONSTANT;
1941 #line 354 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1942 { llvmAsmlval.UInt64Val = atoull(yytext); return EUINT64VAL; }
1946 #line 355 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1948 uint64_t Val = atoull(yytext+1);
1949 // +1: we have bigger negative range
1950 if (Val > (uint64_t)INT64_MAX+1)
1951 GenerateError("Constant too large for signed 64 bits!");
1952 llvmAsmlval.SInt64Val = -Val;
1958 #line 363 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1960 llvmAsmlval.UInt64Val = HexIntToVal(yytext+3);
1961 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
1966 #line 368 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1968 uint64_t Val = atoull(yytext+1);
1969 if ((unsigned)Val != Val)
1970 GenerateError("Invalid value number (too large)!");
1971 llvmAsmlval.UIntVal = unsigned(Val);
1977 #line 375 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1979 uint64_t Val = atoull(yytext+2);
1980 // +1: we have bigger negative range
1981 if (Val > (uint64_t)INT32_MAX+1)
1982 GenerateError("Constant too large for signed 32 bits!");
1983 llvmAsmlval.SIntVal = (int)-Val;
1989 #line 384 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1990 { llvmAsmlval.FPVal = atof(yytext); return FPVAL; }
1994 #line 385 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
1995 { llvmAsmlval.FPVal = HexToFP(yytext); return FPVAL; }
1997 case YY_STATE_EOF(INITIAL):
1998 #line 387 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
2000 /* Make sure to free the internal buffers for flex when we are
2001 * done reading our input!
2003 yy_delete_buffer(YY_CURRENT_BUFFER);
2009 #line 395 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
2010 { /* Ignore whitespace */ }
2014 #line 396 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
2015 { return yytext[0]; }
2019 #line 398 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"
2020 YY_FATAL_ERROR( "flex scanner jammed" );
2022 #line 2023 "Lexer.cpp"
2024 case YY_END_OF_BUFFER:
2026 /* Amount of text matched not including the EOB char. */
2027 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
2029 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2030 *yy_cp = yy_hold_char;
2031 YY_RESTORE_YY_MORE_OFFSET
2033 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
2035 /* We're scanning a new file or input source. It's
2036 * possible that this happened because the user
2037 * just pointed yyin at a new source and called
2038 * yylex(). If so, then we have to assure
2039 * consistency between yy_current_buffer and our
2040 * globals. Here is the right place to do so, because
2041 * this is the first action (other than possibly a
2042 * back-up) that will match for the new input source.
2044 yy_n_chars = yy_current_buffer->yy_n_chars;
2045 yy_current_buffer->yy_input_file = yyin;
2046 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
2049 /* Note that here we test for yy_c_buf_p "<=" to the position
2050 * of the first EOB in the buffer, since yy_c_buf_p will
2051 * already have been incremented past the NUL character
2052 * (since all states make transitions on EOB to the
2053 * end-of-buffer state). Contrast this with the test
2056 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2057 { /* This was really a NUL. */
2058 yy_state_type yy_next_state;
2060 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2062 yy_current_state = yy_get_previous_state();
2064 /* Okay, we're now positioned to make the NUL
2065 * transition. We couldn't have
2066 * yy_get_previous_state() go ahead and do it
2067 * for us because it doesn't know how to deal
2068 * with the possibility of jamming (and we don't
2069 * want to build jamming into it because then it
2070 * will run more slowly).
2073 yy_next_state = yy_try_NUL_trans( yy_current_state );
2075 yy_bp = yytext_ptr + YY_MORE_ADJ;
2077 if ( yy_next_state )
2079 /* Consume the NUL. */
2080 yy_cp = ++yy_c_buf_p;
2081 yy_current_state = yy_next_state;
2088 goto yy_find_action;
2092 else switch ( yy_get_next_buffer() )
2094 case EOB_ACT_END_OF_FILE:
2096 yy_did_buffer_switch_on_eof = 0;
2100 /* Note: because we've taken care in
2101 * yy_get_next_buffer() to have set up
2102 * yytext, we can now set up
2103 * yy_c_buf_p so that if some total
2104 * hoser (like flex itself) wants to
2105 * call the scanner after we return the
2106 * YY_NULL, it'll still work - another
2107 * YY_NULL will get returned.
2109 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
2111 yy_act = YY_STATE_EOF(YY_START);
2117 if ( ! yy_did_buffer_switch_on_eof )
2123 case EOB_ACT_CONTINUE_SCAN:
2125 yytext_ptr + yy_amount_of_matched_text;
2127 yy_current_state = yy_get_previous_state();
2130 yy_bp = yytext_ptr + YY_MORE_ADJ;
2133 case EOB_ACT_LAST_MATCH:
2135 &yy_current_buffer->yy_ch_buf[yy_n_chars];
2137 yy_current_state = yy_get_previous_state();
2140 yy_bp = yytext_ptr + YY_MORE_ADJ;
2141 goto yy_find_action;
2148 "fatal flex scanner internal error--no action found" );
2149 } /* end of action switch */
2150 } /* end of scanning one token */
2151 } /* end of yylex */
2154 /* yy_get_next_buffer - try to read in a new buffer
2156 * Returns a code representing an action:
2157 * EOB_ACT_LAST_MATCH -
2158 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2159 * EOB_ACT_END_OF_FILE - end of file
2162 static int yy_get_next_buffer()
2164 register char *dest = yy_current_buffer->yy_ch_buf;
2165 register char *source = yytext_ptr;
2166 register int number_to_move, i;
2169 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2171 "fatal flex scanner internal error--end of buffer missed" );
2173 if ( yy_current_buffer->yy_fill_buffer == 0 )
2174 { /* Don't try to fill the buffer, so this is an EOF. */
2175 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2177 /* We matched a single character, the EOB, so
2178 * treat this as a final EOF.
2180 return EOB_ACT_END_OF_FILE;
2185 /* We matched some text prior to the EOB, first
2188 return EOB_ACT_LAST_MATCH;
2192 /* Try to read more data. */
2194 /* First move last chars to start of buffer. */
2195 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2197 for ( i = 0; i < number_to_move; ++i )
2198 *(dest++) = *(source++);
2200 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2201 /* don't do the read, it's not guaranteed to return an EOF,
2204 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2209 yy_current_buffer->yy_buf_size - number_to_move - 1;
2211 while ( num_to_read <= 0 )
2212 { /* Not enough room in the buffer - grow it. */
2213 #ifdef YY_USES_REJECT
2215 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2218 /* just a shorter name for the current buffer */
2219 YY_BUFFER_STATE b = yy_current_buffer;
2221 int yy_c_buf_p_offset =
2222 (int) (yy_c_buf_p - b->yy_ch_buf);
2224 if ( b->yy_is_our_buffer )
2226 int new_size = b->yy_buf_size * 2;
2228 if ( new_size <= 0 )
2229 b->yy_buf_size += b->yy_buf_size / 8;
2231 b->yy_buf_size *= 2;
2233 b->yy_ch_buf = (char *)
2234 /* Include room in for 2 EOB chars. */
2235 yy_flex_realloc( (void *) b->yy_ch_buf,
2236 b->yy_buf_size + 2 );
2239 /* Can't grow it, we don't own it. */
2242 if ( ! b->yy_ch_buf )
2244 "fatal error - scanner input buffer overflow" );
2246 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2248 num_to_read = yy_current_buffer->yy_buf_size -
2253 if ( num_to_read > YY_READ_BUF_SIZE )
2254 num_to_read = YY_READ_BUF_SIZE;
2256 /* Read in more data. */
2257 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2258 yy_n_chars, num_to_read );
2260 yy_current_buffer->yy_n_chars = yy_n_chars;
2263 if ( yy_n_chars == 0 )
2265 if ( number_to_move == YY_MORE_ADJ )
2267 ret_val = EOB_ACT_END_OF_FILE;
2273 ret_val = EOB_ACT_LAST_MATCH;
2274 yy_current_buffer->yy_buffer_status =
2275 YY_BUFFER_EOF_PENDING;
2280 ret_val = EOB_ACT_CONTINUE_SCAN;
2282 yy_n_chars += number_to_move;
2283 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2284 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2286 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2292 /* yy_get_previous_state - get the state just before the EOB char was reached */
2294 static yy_state_type yy_get_previous_state()
2296 register yy_state_type yy_current_state;
2297 register char *yy_cp;
2299 yy_current_state = yy_start;
2300 yy_state_ptr = yy_state_buf;
2301 *yy_state_ptr++ = yy_current_state;
2303 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2305 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2306 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2308 yy_current_state = (int) yy_def[yy_current_state];
2309 if ( yy_current_state >= 576 )
2310 yy_c = yy_meta[(unsigned int) yy_c];
2312 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2313 *yy_state_ptr++ = yy_current_state;
2316 return yy_current_state;
2320 /* yy_try_NUL_trans - try to make a transition on the NUL character
2323 * next_state = yy_try_NUL_trans( current_state );
2326 #ifdef YY_USE_PROTOS
2327 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2329 static yy_state_type yy_try_NUL_trans( yy_current_state )
2330 yy_state_type yy_current_state;
2333 register int yy_is_jam;
2335 register YY_CHAR yy_c = 1;
2336 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2338 yy_current_state = (int) yy_def[yy_current_state];
2339 if ( yy_current_state >= 576 )
2340 yy_c = yy_meta[(unsigned int) yy_c];
2342 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2343 yy_is_jam = (yy_current_state == 575);
2345 *yy_state_ptr++ = yy_current_state;
2347 return yy_is_jam ? 0 : yy_current_state;
2352 #ifdef YY_USE_PROTOS
2353 static inline void yyunput( int c, register char *yy_bp )
2355 static inline void yyunput( c, yy_bp )
2357 register char *yy_bp;
2360 register char *yy_cp = yy_c_buf_p;
2362 /* undo effects of setting up yytext */
2363 *yy_cp = yy_hold_char;
2365 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2366 { /* need to shift things up to make room */
2367 /* +2 for EOB chars. */
2368 register int number_to_move = yy_n_chars + 2;
2369 register char *dest = &yy_current_buffer->yy_ch_buf[
2370 yy_current_buffer->yy_buf_size + 2];
2371 register char *source =
2372 &yy_current_buffer->yy_ch_buf[number_to_move];
2374 while ( source > yy_current_buffer->yy_ch_buf )
2375 *--dest = *--source;
2377 yy_cp += (int) (dest - source);
2378 yy_bp += (int) (dest - source);
2379 yy_current_buffer->yy_n_chars =
2380 yy_n_chars = yy_current_buffer->yy_buf_size;
2382 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2383 YY_FATAL_ERROR( "flex scanner push-back overflow" );
2386 *--yy_cp = (char) c;
2392 yy_hold_char = *yy_cp;
2395 #endif /* ifndef YY_NO_UNPUT */
2400 static int yyinput()
2407 *yy_c_buf_p = yy_hold_char;
2409 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2411 /* yy_c_buf_p now points to the character we want to return.
2412 * If this occurs *before* the EOB characters, then it's a
2413 * valid NUL; if not, then we've hit the end of the buffer.
2415 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2416 /* This was really a NUL. */
2420 { /* need more input */
2421 int offset = yy_c_buf_p - yytext_ptr;
2424 switch ( yy_get_next_buffer() )
2426 case EOB_ACT_LAST_MATCH:
2427 /* This happens because yy_g_n_b()
2428 * sees that we've accumulated a
2429 * token and flags that we need to
2430 * try matching the token before
2431 * proceeding. But for input(),
2432 * there's no matching to consider.
2433 * So convert the EOB_ACT_LAST_MATCH
2434 * to EOB_ACT_END_OF_FILE.
2437 /* Reset buffer status. */
2442 case EOB_ACT_END_OF_FILE:
2447 if ( ! yy_did_buffer_switch_on_eof )
2456 case EOB_ACT_CONTINUE_SCAN:
2457 yy_c_buf_p = yytext_ptr + offset;
2463 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2464 *yy_c_buf_p = '\0'; /* preserve yytext */
2465 yy_hold_char = *++yy_c_buf_p;
2472 #endif /* YY_NO_INPUT */
2474 #ifdef YY_USE_PROTOS
2475 void yyrestart( FILE *input_file )
2477 void yyrestart( input_file )
2481 if ( ! yy_current_buffer )
2482 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2484 yy_init_buffer( yy_current_buffer, input_file );
2485 yy_load_buffer_state();
2489 #ifdef YY_USE_PROTOS
2490 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2492 void yy_switch_to_buffer( new_buffer )
2493 YY_BUFFER_STATE new_buffer;
2496 if ( yy_current_buffer == new_buffer )
2499 if ( yy_current_buffer )
2501 /* Flush out information for old buffer. */
2502 *yy_c_buf_p = yy_hold_char;
2503 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2504 yy_current_buffer->yy_n_chars = yy_n_chars;
2507 yy_current_buffer = new_buffer;
2508 yy_load_buffer_state();
2510 /* We don't actually know whether we did this switch during
2511 * EOF (yywrap()) processing, but the only time this flag
2512 * is looked at is after yywrap() is called, so it's safe
2513 * to go ahead and always set it.
2515 yy_did_buffer_switch_on_eof = 1;
2519 #ifdef YY_USE_PROTOS
2520 void yy_load_buffer_state( void )
2522 void yy_load_buffer_state()
2525 yy_n_chars = yy_current_buffer->yy_n_chars;
2526 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2527 yyin = yy_current_buffer->yy_input_file;
2528 yy_hold_char = *yy_c_buf_p;
2532 #ifdef YY_USE_PROTOS
2533 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2535 YY_BUFFER_STATE yy_create_buffer( file, size )
2542 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2544 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2546 b->yy_buf_size = size;
2548 /* yy_ch_buf has to be 2 characters longer than the size given because
2549 * we need to put in 2 end-of-buffer characters.
2551 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2552 if ( ! b->yy_ch_buf )
2553 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2555 b->yy_is_our_buffer = 1;
2557 yy_init_buffer( b, file );
2563 #ifdef YY_USE_PROTOS
2564 void yy_delete_buffer( YY_BUFFER_STATE b )
2566 void yy_delete_buffer( b )
2573 if ( b == yy_current_buffer )
2574 yy_current_buffer = (YY_BUFFER_STATE) 0;
2576 if ( b->yy_is_our_buffer )
2577 yy_flex_free( (void *) b->yy_ch_buf );
2579 yy_flex_free( (void *) b );
2584 #ifdef YY_USE_PROTOS
2585 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2587 void yy_init_buffer( b, file )
2594 yy_flush_buffer( b );
2596 b->yy_input_file = file;
2597 b->yy_fill_buffer = 1;
2599 #if YY_ALWAYS_INTERACTIVE
2600 b->yy_is_interactive = 1;
2602 #if YY_NEVER_INTERACTIVE
2603 b->yy_is_interactive = 0;
2605 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2611 #ifdef YY_USE_PROTOS
2612 void yy_flush_buffer( YY_BUFFER_STATE b )
2614 void yy_flush_buffer( b )
2624 /* We always need two end-of-buffer characters. The first causes
2625 * a transition to the end-of-buffer state. The second causes
2626 * a jam in that state.
2628 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2629 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2631 b->yy_buf_pos = &b->yy_ch_buf[0];
2634 b->yy_buffer_status = YY_BUFFER_NEW;
2636 if ( b == yy_current_buffer )
2637 yy_load_buffer_state();
2641 #ifndef YY_NO_SCAN_BUFFER
2642 #ifdef YY_USE_PROTOS
2643 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2645 YY_BUFFER_STATE yy_scan_buffer( base, size )
2653 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2654 base[size-1] != YY_END_OF_BUFFER_CHAR )
2655 /* They forgot to leave room for the EOB's. */
2658 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2660 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2662 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2663 b->yy_buf_pos = b->yy_ch_buf = base;
2664 b->yy_is_our_buffer = 0;
2665 b->yy_input_file = 0;
2666 b->yy_n_chars = b->yy_buf_size;
2667 b->yy_is_interactive = 0;
2669 b->yy_fill_buffer = 0;
2670 b->yy_buffer_status = YY_BUFFER_NEW;
2672 yy_switch_to_buffer( b );
2679 #ifndef YY_NO_SCAN_STRING
2680 #ifdef YY_USE_PROTOS
2681 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2683 YY_BUFFER_STATE yy_scan_string( yy_str )
2684 yyconst char *yy_str;
2688 for ( len = 0; yy_str[len]; ++len )
2691 return yy_scan_bytes( yy_str, len );
2696 #ifndef YY_NO_SCAN_BYTES
2697 #ifdef YY_USE_PROTOS
2698 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2700 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2701 yyconst char *bytes;
2710 /* Get memory for full buffer, including space for trailing EOB's. */
2712 buf = (char *) yy_flex_alloc( n );
2714 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2716 for ( i = 0; i < len; ++i )
2719 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2721 b = yy_scan_buffer( buf, n );
2723 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2725 /* It's okay to grow etc. this buffer, and we should throw it
2726 * away when we're done.
2728 b->yy_is_our_buffer = 1;
2735 #ifndef YY_NO_PUSH_STATE
2736 #ifdef YY_USE_PROTOS
2737 static void yy_push_state( int new_state )
2739 static void yy_push_state( new_state )
2743 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2747 yy_start_stack_depth += YY_START_STACK_INCR;
2748 new_size = yy_start_stack_depth * sizeof( int );
2750 if ( ! yy_start_stack )
2751 yy_start_stack = (int *) yy_flex_alloc( new_size );
2754 yy_start_stack = (int *) yy_flex_realloc(
2755 (void *) yy_start_stack, new_size );
2757 if ( ! yy_start_stack )
2759 "out of memory expanding start-condition stack" );
2762 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2769 #ifndef YY_NO_POP_STATE
2770 static void yy_pop_state()
2772 if ( --yy_start_stack_ptr < 0 )
2773 YY_FATAL_ERROR( "start-condition stack underflow" );
2775 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2780 #ifndef YY_NO_TOP_STATE
2781 static int yy_top_state()
2783 return yy_start_stack[yy_start_stack_ptr - 1];
2787 #ifndef YY_EXIT_FAILURE
2788 #define YY_EXIT_FAILURE 2
2791 #ifdef YY_USE_PROTOS
2792 static void yy_fatal_error( yyconst char msg[] )
2794 static void yy_fatal_error( msg )
2798 (void) fprintf( stderr, "%s\n", msg );
2799 exit( YY_EXIT_FAILURE );
2804 /* Redefine yyless() so it works in section 3 code. */
2810 /* Undo effects of setting up yytext. */ \
2811 yytext[yyleng] = yy_hold_char; \
2812 yy_c_buf_p = yytext + n; \
2813 yy_hold_char = *yy_c_buf_p; \
2814 *yy_c_buf_p = '\0'; \
2820 /* Internal utility routines. */
2823 #ifdef YY_USE_PROTOS
2824 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
2826 static void yy_flex_strncpy( s1, s2, n )
2833 for ( i = 0; i < n; ++i )
2838 #ifdef YY_NEED_STRLEN
2839 #ifdef YY_USE_PROTOS
2840 static int yy_flex_strlen( yyconst char *s )
2842 static int yy_flex_strlen( s )
2847 for ( n = 0; s[n]; ++n )
2855 #ifdef YY_USE_PROTOS
2856 static void *yy_flex_alloc( yy_size_t size )
2858 static void *yy_flex_alloc( size )
2862 return (void *) malloc( size );
2865 #ifdef YY_USE_PROTOS
2866 static inline void *yy_flex_realloc( void *ptr, yy_size_t size )
2868 static inline void *yy_flex_realloc( ptr, size )
2873 /* The cast to (char *) in the following accommodates both
2874 * implementations that use char* generic pointers, and those
2875 * that use void* generic pointers. It works with the latter
2876 * because both ANSI C and C++ allow castless assignment from
2877 * any pointer type to void*, and deal with argument conversions
2878 * as though doing an assignment.
2880 return (void *) realloc( (char *) ptr, size );
2883 #ifdef YY_USE_PROTOS
2884 static void yy_flex_free( void *ptr )
2886 static void yy_flex_free( ptr )
2900 #line 398 "/proj/llvm/llvm-4/lib/AsmParser/Lexer.l"