diff options
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.cpp.cvs | 7417 |
1 files changed, 4279 insertions, 3138 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs index 6d79fb5b6c..28061f8e3f 100644 --- a/lib/AsmParser/llvmAsmParser.cpp.cvs +++ b/lib/AsmParser/llvmAsmParser.cpp.cvs @@ -1,150 +1,354 @@ +/* A Bison parser, made by GNU Bison 2.3. */ -/* A Bison parser, made from /Users/clamb/Documents/ageia/cvs/llvm/lib/AsmParser/llvmAsmParser.y - by GNU Bison version 1.28 */ +/* Skeleton implementation for Bison's Yacc-like parsers in C -#define YYBISON 1 /* Identify Bison output. */ + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + +/* C LALR(1) parser skeleton written by Richard Stallman, by + simplifying the original so-called "semantic" parser. */ + +/* All symbols defined below should begin with yy or YY, to avoid + infringing on user name space. This should be done even for local + variables, as they might otherwise be expanded by user macros. + There are some unavoidable exceptions within include files to + define necessary library symbols; they are noted "INFRINGES ON + USER NAME SPACE" below. */ + +/* Identify Bison output. */ +#define YYBISON 1 + +/* Bison version. */ +#define YYBISON_VERSION "2.3" + +/* Skeleton name. */ +#define YYSKELETON_NAME "yacc.c" + +/* Pure parsers. */ +#define YYPURE 0 + +/* Using locations. */ +#define YYLSP_NEEDED 0 + +/* Substitute the variable and function names. */ #define yyparse llvmAsmparse -#define yylex llvmAsmlex +#define yylex llvmAsmlex #define yyerror llvmAsmerror -#define yylval llvmAsmlval -#define yychar llvmAsmchar +#define yylval llvmAsmlval +#define yychar llvmAsmchar #define yydebug llvmAsmdebug #define yynerrs llvmAsmnerrs -#define ESINT64VAL 257 -#define EUINT64VAL 258 -#define ESAPINTVAL 259 -#define EUAPINTVAL 260 -#define LOCALVAL_ID 261 -#define GLOBALVAL_ID 262 -#define FPVAL 263 -#define VOID 264 -#define INTTYPE 265 -#define FLOAT 266 -#define DOUBLE 267 -#define LABEL 268 -#define TYPE 269 -#define LOCALVAR 270 -#define GLOBALVAR 271 -#define LABELSTR 272 -#define STRINGCONSTANT 273 -#define ATSTRINGCONSTANT 274 -#define ZEROINITIALIZER 275 -#define TRUETOK 276 -#define FALSETOK 277 -#define BEGINTOK 278 -#define ENDTOK 279 -#define DECLARE 280 -#define DEFINE 281 -#define GLOBAL 282 -#define CONSTANT 283 -#define SECTION 284 -#define VOLATILE 285 -#define THREAD_LOCAL 286 -#define TO 287 -#define DOTDOTDOT 288 -#define NULL_TOK 289 -#define UNDEF 290 -#define INTERNAL 291 -#define LINKONCE 292 -#define WEAK 293 -#define APPENDING 294 -#define DLLIMPORT 295 -#define DLLEXPORT 296 -#define EXTERN_WEAK 297 -#define OPAQUE 298 -#define EXTERNAL 299 -#define TARGET 300 -#define TRIPLE 301 -#define ALIGN 302 -#define DEPLIBS 303 -#define CALL 304 -#define TAIL 305 -#define ASM_TOK 306 -#define MODULE 307 -#define SIDEEFFECT 308 -#define CC_TOK 309 -#define CCC_TOK 310 -#define FASTCC_TOK 311 -#define COLDCC_TOK 312 -#define X86_STDCALLCC_TOK 313 -#define X86_FASTCALLCC_TOK 314 -#define DATALAYOUT 315 -#define RET 316 -#define BR 317 -#define SWITCH 318 -#define INVOKE 319 -#define UNWIND 320 -#define UNREACHABLE 321 -#define ADD 322 -#define SUB 323 -#define MUL 324 -#define UDIV 325 -#define SDIV 326 -#define FDIV 327 -#define UREM 328 -#define SREM 329 -#define FREM 330 -#define AND 331 -#define OR 332 -#define XOR 333 -#define SHL 334 -#define LSHR 335 -#define ASHR 336 -#define ICMP 337 -#define FCMP 338 -#define EQ 339 -#define NE 340 -#define SLT 341 -#define SGT 342 -#define SLE 343 -#define SGE 344 -#define ULT 345 -#define UGT 346 -#define ULE 347 -#define UGE 348 -#define OEQ 349 -#define ONE 350 -#define OLT 351 -#define OGT 352 -#define OLE 353 -#define OGE 354 -#define ORD 355 -#define UNO 356 -#define UEQ 357 -#define UNE 358 -#define MALLOC 359 -#define ALLOCA 360 -#define FREE 361 -#define LOAD 362 -#define STORE 363 -#define GETELEMENTPTR 364 -#define TRUNC 365 -#define ZEXT 366 -#define SEXT 367 -#define FPTRUNC 368 -#define FPEXT 369 -#define BITCAST 370 -#define UITOFP 371 -#define SITOFP 372 -#define FPTOUI 373 -#define FPTOSI 374 -#define INTTOPTR 375 -#define PTRTOINT 376 -#define PHI_TOK 377 -#define SELECT 378 -#define VAARG 379 -#define EXTRACTELEMENT 380 -#define INSERTELEMENT 381 -#define SHUFFLEVECTOR 382 -#define NORETURN 383 -#define INREG 384 -#define SRET 385 -#define NOUNWIND 386 -#define DEFAULT 387 -#define HIDDEN 388 - -#line 14 "/Users/clamb/Documents/ageia/cvs/llvm/lib/AsmParser/llvmAsmParser.y" + + +/* Tokens. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype { + ESINT64VAL = 258, + EUINT64VAL = 259, + ESAPINTVAL = 260, + EUAPINTVAL = 261, + LOCALVAL_ID = 262, + GLOBALVAL_ID = 263, + FPVAL = 264, + VOID = 265, + INTTYPE = 266, + FLOAT = 267, + DOUBLE = 268, + LABEL = 269, + TYPE = 270, + LOCALVAR = 271, + GLOBALVAR = 272, + LABELSTR = 273, + STRINGCONSTANT = 274, + ATSTRINGCONSTANT = 275, + ZEROINITIALIZER = 276, + TRUETOK = 277, + FALSETOK = 278, + BEGINTOK = 279, + ENDTOK = 280, + DECLARE = 281, + DEFINE = 282, + GLOBAL = 283, + CONSTANT = 284, + SECTION = 285, + ALIAS = 286, + VOLATILE = 287, + THREAD_LOCAL = 288, + TO = 289, + DOTDOTDOT = 290, + NULL_TOK = 291, + UNDEF = 292, + INTERNAL = 293, + LINKONCE = 294, + WEAK = 295, + APPENDING = 296, + DLLIMPORT = 297, + DLLEXPORT = 298, + EXTERN_WEAK = 299, + OPAQUE = 300, + EXTERNAL = 301, + TARGET = 302, + TRIPLE = 303, + ALIGN = 304, + DEPLIBS = 305, + CALL = 306, + TAIL = 307, + ASM_TOK = 308, + MODULE = 309, + SIDEEFFECT = 310, + CC_TOK = 311, + CCC_TOK = 312, + FASTCC_TOK = 313, + COLDCC_TOK = 314, + X86_STDCALLCC_TOK = 315, + X86_FASTCALLCC_TOK = 316, + DATALAYOUT = 317, + RET = 318, + BR = 319, + SWITCH = 320, + INVOKE = 321, + UNWIND = 322, + UNREACHABLE = 323, + ADD = 324, + SUB = 325, + MUL = 326, + UDIV = 327, + SDIV = 328, + FDIV = 329, + UREM = 330, + SREM = 331, + FREM = 332, + AND = 333, + OR = 334, + XOR = 335, + SHL = 336, + LSHR = 337, + ASHR = 338, + ICMP = 339, + FCMP = 340, + EQ = 341, + NE = 342, + SLT = 343, + SGT = 344, + SLE = 345, + SGE = 346, + ULT = 347, + UGT = 348, + ULE = 349, + UGE = 350, + OEQ = 351, + ONE = 352, + OLT = 353, + OGT = 354, + OLE = 355, + OGE = 356, + ORD = 357, + UNO = 358, + UEQ = 359, + UNE = 360, + MALLOC = 361, + ALLOCA = 362, + FREE = 363, + LOAD = 364, + STORE = 365, + GETELEMENTPTR = 366, + TRUNC = 367, + ZEXT = 368, + SEXT = 369, + FPTRUNC = 370, + FPEXT = 371, + BITCAST = 372, + UITOFP = 373, + SITOFP = 374, + FPTOUI = 375, + FPTOSI = 376, + INTTOPTR = 377, + PTRTOINT = 378, + PHI_TOK = 379, + SELECT = 380, + VAARG = 381, + EXTRACTELEMENT = 382, + INSERTELEMENT = 383, + SHUFFLEVECTOR = 384, + NORETURN = 385, + INREG = 386, + SRET = 387, + NOUNWIND = 388, + DEFAULT = 389, + HIDDEN = 390 + }; +#endif +/* Tokens. */ +#define ESINT64VAL 258 +#define EUINT64VAL 259 +#define ESAPINTVAL 260 +#define EUAPINTVAL 261 +#define LOCALVAL_ID 262 +#define GLOBALVAL_ID 263 +#define FPVAL 264 +#define VOID 265 +#define INTTYPE 266 +#define FLOAT 267 +#define DOUBLE 268 +#define LABEL 269 +#define TYPE 270 +#define LOCALVAR 271 +#define GLOBALVAR 272 +#define LABELSTR 273 +#define STRINGCONSTANT 274 +#define ATSTRINGCONSTANT 275 +#define ZEROINITIALIZER 276 +#define TRUETOK 277 +#define FALSETOK 278 +#define BEGINTOK 279 +#define ENDTOK 280 +#define DECLARE 281 +#define DEFINE 282 +#define GLOBAL 283 +#define CONSTANT 284 +#define SECTION 285 +#define ALIAS 286 +#define VOLATILE 287 +#define THREAD_LOCAL 288 +#define TO 289 +#define DOTDOTDOT 290 +#define NULL_TOK 291 +#define UNDEF 292 +#define INTERNAL 293 +#define LINKONCE 294 +#define WEAK 295 +#define APPENDING 296 +#define DLLIMPORT 297 +#define DLLEXPORT 298 +#define EXTERN_WEAK 299 +#define OPAQUE 300 +#define EXTERNAL 301 +#define TARGET 302 +#define TRIPLE 303 +#define ALIGN 304 +#define DEPLIBS 305 +#define CALL 306 +#define TAIL 307 +#define ASM_TOK 308 +#define MODULE 309 +#define SIDEEFFECT 310 +#define CC_TOK 311 +#define CCC_TOK 312 +#define FASTCC_TOK 313 +#define COLDCC_TOK 314 +#define X86_STDCALLCC_TOK 315 +#define X86_FASTCALLCC_TOK 316 +#define DATALAYOUT 317 +#define RET 318 +#define BR 319 +#define SWITCH 320 +#define INVOKE 321 +#define UNWIND 322 +#define UNREACHABLE 323 +#define ADD 324 +#define SUB 325 +#define MUL 326 +#define UDIV 327 +#define SDIV 328 +#define FDIV 329 +#define UREM 330 +#define SREM 331 +#define FREM 332 +#define AND 333 +#define OR 334 +#define XOR 335 +#define SHL 336 +#define LSHR 337 +#define ASHR 338 +#define ICMP 339 +#define FCMP 340 +#define EQ 341 +#define NE 342 +#define SLT 343 +#define SGT 344 +#define SLE 345 +#define SGE 346 +#define ULT 347 +#define UGT 348 +#define ULE 349 +#define UGE 350 +#define OEQ 351 +#define ONE 352 +#define OLT 353 +#define OGT 354 +#define OLE 355 +#define OGE 356 +#define ORD 357 +#define UNO 358 +#define UEQ 359 +#define UNE 360 +#define MALLOC 361 +#define ALLOCA 362 +#define FREE 363 +#define LOAD 364 +#define STORE 365 +#define GETELEMENTPTR 366 +#define TRUNC 367 +#define ZEXT 368 +#define SEXT 369 +#define FPTRUNC 370 +#define FPEXT 371 +#define BITCAST 372 +#define UITOFP 373 +#define SITOFP 374 +#define FPTOUI 375 +#define FPTOSI 376 +#define INTTOPTR 377 +#define PTRTOINT 378 +#define PHI_TOK 379 +#define SELECT 380 +#define VAARG 381 +#define EXTRACTELEMENT 382 +#define INSERTELEMENT 383 +#define SHUFFLEVECTOR 384 +#define NORETURN 385 +#define INREG 386 +#define SRET 387 +#define NOUNWIND 388 +#define DEFAULT 389 +#define HIDDEN 390 + + + + +/* Copy the first part of user declarations. */ +#line 14 "/home/asl/proj/llvm/src/lib/AsmParser/llvmAsmParser.y" #include "ParserInternals.h" #include "llvm/CallingConv.h" @@ -1068,8 +1272,29 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) { } -#line 938 "/Users/clamb/Documents/ageia/cvs/llvm/lib/AsmParser/llvmAsmParser.y" -typedef union { + +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif + +/* Enabling verbose error messages. */ +#ifdef YYERROR_VERBOSE +# undef YYERROR_VERBOSE +# define YYERROR_VERBOSE 1 +#else +# define YYERROR_VERBOSE 0 +#endif + +/* Enabling the token table. */ +#ifndef YYTOKEN_TABLE +# define YYTOKEN_TABLE 0 +#endif + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE +#line 938 "/home/asl/proj/llvm/src/lib/AsmParser/llvmAsmParser.y" +{ llvm::Module *ModuleVal; llvm::Function *FunctionVal; llvm::BasicBlock *BasicBlockVal; @@ -1114,1069 +1339,1755 @@ typedef union { llvm::Instruction::OtherOps OtherOpVal; llvm::ICmpInst::Predicate IPredicate; llvm::FCmpInst::Predicate FPredicate; -} YYSTYPE; -#include <stdio.h> +} +/* Line 187 of yacc.c. */ +#line 1345 "llvmAsmParser.tab.c" + YYSTYPE; +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ +# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 +#endif + + + +/* Copy the second part of user declarations. */ + -#ifndef __cplusplus -#ifndef __STDC__ -#define const +/* Line 216 of yacc.c. */ +#line 1358 "llvmAsmParser.tab.c" + +#ifdef short +# undef short #endif + +#ifdef YYTYPE_UINT8 +typedef YYTYPE_UINT8 yytype_uint8; +#else +typedef unsigned char yytype_uint8; #endif +#ifdef YYTYPE_INT8 +typedef YYTYPE_INT8 yytype_int8; +#elif (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +typedef signed char yytype_int8; +#else +typedef short int yytype_int8; +#endif +#ifdef YYTYPE_UINT16 +typedef YYTYPE_UINT16 yytype_uint16; +#else +typedef unsigned short int yytype_uint16; +#endif -#define YYFINAL 565 -#define YYFLAG -32768 -#define YYNTBASE 149 - -#define YYTRANSLATE(x) ((unsigned)(x) <= 388 ? yytranslate[x] : 227) - -static const short yytranslate[] = { 0, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 139, - 140, 137, 2, 136, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 144, - 135, 145, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 141, 138, 143, 2, 2, 2, 2, 2, 148, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 142, - 2, 2, 146, 2, 147, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, - 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, - 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, - 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, - 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, - 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, - 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, - 127, 128, 129, 130, 131, 132, 133, 134 -}; +#ifdef YYTYPE_INT16 +typedef YYTYPE_INT16 yytype_int16; +#else +typedef short int yytype_int16; +#endif -#if YYDEBUG != 0 -static const short yyprhs[] = { 0, - 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, - 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, - 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, - 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, - 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, - 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, - 119, 122, 123, 125, 127, 130, 131, 133, 135, 137, - 139, 141, 143, 145, 147, 148, 150, 151, 153, 155, - 156, 158, 160, 162, 164, 165, 167, 169, 171, 173, - 175, 178, 180, 182, 184, 186, 187, 190, 192, 194, - 196, 197, 200, 201, 204, 205, 209, 212, 213, 215, - 216, 220, 222, 225, 227, 229, 231, 233, 235, 237, - 240, 242, 245, 251, 257, 263, 269, 273, 276, 282, - 287, 290, 292, 294, 296, 300, 302, 306, 308, 309, - 311, 315, 320, 324, 328, 333, 338, 342, 349, 355, - 358, 361, 364, 367, 370, 373, 376, 379, 382, 385, - 388, 391, 398, 404, 413, 420, 427, 435, 443, 450, - 459, 468, 472, 474, 476, 478, 480, 481, 483, 484, - 486, 489, 490, 494, 495, 499, 503, 507, 511, 512, - 520, 521, 530, 531, 540, 543, 547, 549, 553, 557, - 561, 565, 567, 568, 574, 578, 580, 584, 586, 587, - 597, 599, 601, 606, 608, 610, 613, 617, 618, 620, - 622, 624, 626, 628, 630, 632, 634, 636, 640, 642, - 648, 650, 652, 654, 656, 658, 660, 663, 666, 669, - 673, 676, 677, 679, 682, 685, 689, 699, 709, 718, - 733, 735, 737, 744, 750, 753, 760, 768, 772, 778, - 779, 780, 784, 787, 789, 795, 801, 808, 815, 820, - 827, 832, 837, 844, 851, 854, 863, 865, 867, 868, - 872, 879, 883, 890, 893, 899, 907 -}; +#ifndef YYSIZE_T +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned int +# endif +#endif -static const short yyrhs[] = { 68, - 0, 69, 0, 70, 0, 71, 0, 72, 0, 73, - 0, 74, 0, 75, 0, 76, 0, 80, 0, 81, - 0, 82, 0, 77, 0, 78, 0, 79, 0, 111, - 0, 112, 0, 113, 0, 114, 0, 115, 0, 116, - 0, 117, 0, 118, 0, 119, 0, 120, 0, 121, - 0, 122, 0, 85, 0, 86, 0, 87, 0, 88, - 0, 89, 0, 90, 0, 91, 0, 92, 0, 93, - 0, 94, 0, 95, 0, 96, 0, 97, 0, 98, - 0, 99, 0, 100, 0, 101, 0, 102, 0, 103, - 0, 104, 0, 91, 0, 92, 0, 93, 0, 94, - 0, 22, 0, 23, 0, 11, 0, 12, 0, 13, - 0, 16, 0, 19, 0, 156, 0, 0, 156, 135, - 0, 0, 17, 0, 20, 0, 159, 135, 0, 0, - 37, 0, 39, 0, 38, 0, 40, 0, 42, 0, - 41, 0, 43, 0, 45, 0, 0, 134, 0, 0, - 41, 0, 43, 0, 0, 37, 0, 38, 0, 39, - 0, 42, 0, 0, 56, 0, 57, 0, 58, 0, - 59, 0, 60, 0, 55, 4, 0, 112, 0, 113, - 0, 130, 0, 131, 0, 0, 168, 167, 0, 129, - 0, 132, 0, 167, 0, 0, 170, 169, 0, 0, - 48, 4, 0, 0, 136, 48, 4, 0, 30, 19, - 0, 0, 173, 0, 0, 136, 176, 175, 0, 173, - 0, 48, 4, 0, 11, 0, 12, 0, 13, 0, - 14, 0, 44, 0, 177, 0, 178, 137, 0, 211, - 0, 138, 4, 0, 178, 139, 182, 140, 170, 0, - 10, 139, 182, 140, 170, 0, 141, 4, 142, 178, - 143, 0, 144, 4, 142, 178, 145, 0, 146, 183, - 147, 0, 146, 147, 0, 144, 146, 183, 147, 145, - 0, 144, 146, 147, 145, 0, 178, 168, 0, 178, - 0, 10, 0, 179, 0, 181, 136, 179, 0, 181, - 0, 181, 136, 34, 0, 34, 0, 0, 178, 0, - 183, 136, 178, 0, 178, 141, 186, 143, 0, 178, - 141, 143, 0, 178, 148, 19, 0, 178, 144, 186, - 145, 0, 178, 146, 186, 147, 0, 178, 146, 147, - 0, 178, 144, 146, 186, 147, 145, 0, 178, 144, - 146, 147, 145, 0, 178, 35, 0, 178, 36, 0, - 178, 211, 0, 178, 185, 0, 178, 21, 0, 154, - 3, 0, 154, 5, 0, 154, 4, 0, 154, 6, - 0, 11, 22, 0, 11, 23, 0, 155, 9, 0, - 151, 139, 184, 33, 178, 140, 0, 110, 139, 184, - 222, 140, 0, 124, 139, 184, 136, 184, 136, 184, - 140, 0, 149, 139, 184, 136, 184, 140, 0, 150, - 139, 184, 136, 184, 140, 0, 83, 152, 139, 184, - 136, 184, 140, 0, 84, 153, 139, 184, 136, 184, - 140, 0, 126, 139, 184, 136, 184, 140, 0, 127, - 139, 184, 136, 184, 136, 184, 140, 0, 128, 139, - 184, 136, 184, 136, 184, 140, 0, 186, 136, 184, - 0, 184, 0, 28, 0, 29, 0, 32, 0, 0, - 190, 0, 0, 191, 0, 190, 191, 0, 0, 27, - 192, 207, 0, 0, 26, 193, 208, 0, 53, 52, - 197, 0, 158, 15, 178, 0, 158, 15, 10, 0, - 0, 160, 163, 188, 187, 184, 194, 175, 0, 0, - 160, 161, 163, 188, 187, 184, 195, 175, 0, 0, - 160, 162, 163, 188, 187, 178, 196, 175, 0, 46, - 198, 0, 49, 135, 199, 0, 19, 0, 47, 135, - 19, 0, 61, 135, 19, 0, 141, 200, 143, 0, - 200, 136, 19, 0, 19, 0, 0, 201, 136, 178, - 168, 157, 0, 178, 168, 157, 0, 201, 0, 201, - 136, 34, 0, 34, 0, 0, 166, 180, 159, 139, - 202, 140, 170, 174, 171, 0, 24, 0, 146, 0, - 165, 163, 203, 204, 0, 25, 0, 147, 0, 214, - 206, 0, 164, 163, 203, 0, 0, 54, 0, 3, - 0, 4, 0, 9, 0, 22, 0, 23, 0, 35, - 0, 36, 0, 21, 0, 144, 186, 145, 0, 185, - 0, 52, 209, 19, 136, 19, 0, 7, 0, 8, - 0, 156, 0, 159, 0, 211, 0, 210, 0, 178, - 212, 0, 214, 215, 0, 205, 215, 0, 216, 158, - 217, 0, 216, 219, 0, 0, 18, 0, 62, 213, - 0, 62, 10, 0, 63, 14, 212, 0, 63, 11, - 212, 136, 14, 212, 136, 14, 212, 0, 64, 154, - 212, 136, 14, 212, 141, 218, 143, 0, 64, 154, - 212, 136, 14, 212, 141, 143, 0, 65, 166, 180, - 212, 139, 221, 140, 170, 33, 14, 212, 66, 14, - 212, 0, 66, 0, 67, 0, 218, 154, 210, 136, - 14, 212, 0, 154, 210, 136, 14, 212, 0, 158, - 224, 0, 178, 141, 212, 136, 212, 143, 0, 220, - 136, 141, 212, 136, 212, 143, 0, 178, 212, 168, - 0, 221, 136, 178, 212, 168, 0, 0, 0, 222, - 136, 213, 0, 51, 50, 0, 50, 0, 149, 178, - 212, 136, 212, 0, 150, 178, 212, 136, 212, 0, - 83, 152, 178, 212, 136, 212, 0, 84, 153, 178, - 212, 136, 212, 0, 151, 213, 33, 178, 0, 124, - 213, 136, 213, 136, 213, 0, 125, 213, 136, 178, - 0, 126, 213, 136, 213, 0, 127, 213, 136, 213, - 136, 213, 0, 128, 213, 136, 213, 136, 213, 0, - 123, 220, 0, 223, 166, 180, 212, 139, 221, 140, - 170, 0, 226, 0, 31, 0, 0, 105, 178, 172, - 0, 105, 178, 136, 11, 212, 172, 0, 106, 178, - 172, 0, 106, 178, 136, 11, 212, 172, 0, 107, - 213, 0, 225, 108, 178, 212, 172, 0, 225, 109, - 213, 136, 178, 212, 172, 0, 110, 178, 212, 222, - 0 -}; +#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) + +#ifndef YY_ +# if YYENABLE_NLS +# if ENABLE_NLS +# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ +# define YY_(msgid) dgettext ("bison-runtime", msgid) +# endif +# endif +# ifndef YY_ +# define YY_(msgid) msgid +# endif +#endif +/* Suppress unused-variable warnings by "using" E. */ +#if ! defined lint || defined __GNUC__ +# define YYUSE(e) ((void) (e)) +#else +# define YYUSE(e) /* empty */ #endif -#if YYDEBUG != 0 -static const short yyrline[] = { 0, - 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1094, - 1094, 1094, 1094, 1094, 1094, 1095, 1095, 1095, 1095, 1095, - 1095, 1095, 1096, 1096, 1096, 1096, 1096, 1099, 1099, 1100, - 1100, 1101, 1101, 1102, 1102, 1103, 1103, 1107, 1107, 1108, - 1108, 1109, 1109, 1110, 1110, 1111, 1111, 1112, 1112, 1113, - 1113, 1114, 1115, 1120, 1121, 1121, 1123, 1123, 1124, 1124, - 1128, 1132, 1137, 1137, 1139, 1143, 1149, 1150, 1151, 1152, - 1153, 1157, 1158, 1159, 1163, 1164, 1168, 1169, 1170, 1174, - 1175, 1176, 1177, 1178, 1181, 1181, 1182, 1183, 1184, 1185, - 1186, 1194, 1195, 1196, 1197, 1200, 1201, 1206, 1207, 1208, - 1211, 1212, 1219, 1219, 1226, 1226, 1235, 1243, 1243, 1249, - 1249, 1251, 1256, 1269, 1269, 1269, 1269, 1272, 1276, 1280, - 1287, 1292, 1300, 1330, 1361, 1366, 1378, 1388, 1392, 1402, - 1409, 1416, 1423, 1428, 1433, 1440, 1441, 1448, 1455, 1463, - 1469, 1481, 1509, 1525, 1554, 1582, 1607, 1626, 1652, 1672, - 1684, 1691, 1757, 1767, 1777, 1783, 1793, 1799, 1809, 1814, - 1819, 1827, 1839, 1861, 1869, 1875, 1886, 1891, 1896, 1902, - 1908, 1917, 1921, 1929, 1929, 1932, 1932, 1943, 1948, 1956, - 1957, 1961, 1961, 1965, 1965, 1968, 1971, 1995, 2006, 2013, - 2016, 2021, 2024, 2030, 2034, 2037, 2043, 2056, 2060, 2065, - 2067, 2072, 2077, 2086, 2096, 2107, 2111, 2120, 2129, 2134, - 2256, 2256, 2258, 2267, 2267, 2269, 2274, 2286, 2290, 2295, - 2299, 2303, 2307, 2311, 2315, 2319, 2323, 2327, 2352, 2356, - 2370, 2374, 2378, 2382, 2388, 2388, 2394, 2403, 2407, 2416, - 2425, 2434, 2438, 2443, 2447, 2451, 2456, 2466, 2485, 2494, - 2574, 2578, 2585, 2596, 2609, 2619, 2630, 2640, 2649, 2658, - 2661, 2662, 2669, 2673, 2678, 2699, 2716, 2730, 2744, 2756, - 2764, 2771, 2777, 2783, 2789, 2804, 2889, 2894, 2898, 2905, - 2912, 2920, 2927, 2935, 2943, 2957, 2974 -}; +/* Identity function, used to suppress warnings about constant conditions. */ +#ifndef lint +# define YYID(n) (n) +#else +#if (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +static int +YYID (int i) +#else +static int +YYID (i) + int i; #endif +{ + return i; +} +#endif + +#if ! defined yyoverflow || YYERROR_VERBOSE + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# ifdef YYSTACK_USE_ALLOCA +# if YYSTACK_USE_ALLOCA +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include <alloca.h> /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include <malloc.h> /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca +# else +# define YYSTACK_ALLOC alloca +# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# ifndef _STDLIB_H +# define _STDLIB_H 1 +# endif +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) +# ifndef YYSTACK_ALLOC_MAXIMUM + /* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ +# endif +# else +# define YYSTACK_ALLOC YYMALLOC +# define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && ! defined _STDLIB_H \ + && ! ((defined YYMALLOC || defined malloc) \ + && (defined YYFREE || defined free))) +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ +# ifndef _STDLIB_H +# define _STDLIB_H 1 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ + || defined __cplusplus || defined _MSC_VER) +void free (void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# endif +#endif /* ! defined yyoverflow || YYERROR_VERBOSE */ + + +#if (! defined yyoverflow \ + && (! defined __cplusplus \ + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + +/* A type that is properly aligned for any stack member. */ +union yyalloc +{ + yytype_int16 yyss; + YYSTYPE yyvs; + }; +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + + YYSTACK_GAP_MAXIMUM) + +/* Copy COUNT objects from FROM to TO. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (YYID (0)) +# endif +# endif + +/* Relocate STACK from its old location to the new one. The + local variables YYSIZE and YYSTACKSIZE give the old and new number of + elements in the stack, and YYPTR gives the new location of the + stack. Advance YYPTR to a properly aligned location for the next + stack. */ +# define YYSTACK_RELOCATE(Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY (&yyptr->Stack, Stack, yysize); \ + Stack = &yyptr->Stack; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (YYID (0)) -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE) - -static const char * const yytname[] = { "$","error","$undefined.","ESINT64VAL", -"EUINT64VAL","ESAPINTVAL","EUAPINTVAL","LOCALVAL_ID","GLOBALVAL_ID","FPVAL", -"VOID","INTTYPE","FLOAT","DOUBLE","LABEL","TYPE","LOCALVAR","GLOBALVAR","LABELSTR", -"STRINGCONSTANT","ATSTRINGCONSTANT","ZEROINITIALIZER","TRUETOK","FALSETOK","BEGINTOK", -"ENDTOK","DECLARE","DEFINE","GLOBAL","CONSTANT","SECTION","VOLATILE","THREAD_LOCAL", -"TO","DOTDOTDOT","NULL_TOK","UNDEF","INTERNAL","LINKONCE","WEAK","APPENDING", -"DLLIMPORT","DLLEXPORT","EXTERN_WEAK","OPAQUE","EXTERNAL","TARGET","TRIPLE", -"ALIGN","DEPLIBS","CALL","TAIL","ASM_TOK","MODULE","SIDEEFFECT","CC_TOK","CCC_TOK", -"FASTCC_TOK","COLDCC_TOK","X86_STDCALLCC_TOK","X86_FASTCALLCC_TOK","DATALAYOUT", -"RET","BR","SWITCH","INVOKE","UNWIND","UNREACHABLE","ADD","SUB","MUL","UDIV", -"SDIV","FDIV","UREM","SREM","FREM","AND","OR","XOR","SHL","LSHR","ASHR","ICMP", -"FCMP","EQ","NE","SLT","SGT","SLE","SGE","ULT","UGT","ULE","UGE","OEQ","ONE", -"OLT","OGT","OLE","OGE","ORD","UNO","UEQ","UNE","MALLOC","ALLOCA","FREE","LOAD", -"STORE","GETELEMENTPTR","TRUNC","ZEXT","SEXT","FPTRUNC","FPEXT","BITCAST","UITOFP", -"SITOFP","FPTOUI","FPTOSI","INTTOPTR","PTRTOINT","PHI_TOK","SELECT","VAARG", -"EXTRACTELEMENT","INSERTELEMENT","SHUFFLEVECTOR","NORETURN","INREG","SRET","NOUNWIND", -"DEFAULT","HIDDEN","'='","','","'*'","'\\\\'","'('","')'","'['","'x'","']'", -"'<'","'>'","'{'","'}'","'c'","ArithmeticOps","LogicalOps","CastOps","IPredicates", -"FPredicates","IntType","FPType","LocalName","OptLocalName","OptLocalAssign", -"GlobalName","OptGlobalAssign","GVInternalLinkage","GVExternalLinkage","GVVisibilityStyle", -"FunctionDeclareLinkage","FunctionDefineLinkage","OptCallingConv","ParamAttr", -"OptParamAttrs","FuncAttr","OptFuncAttrs","OptAlign","OptCAlign","SectionString", -"OptSection","GlobalVarAttributes","GlobalVarAttribute","PrimType","Types","ArgType", -"ResultTypes","ArgTypeList","ArgTypeListI","TypeListI","ConstVal","ConstExpr", -"ConstVector","GlobalType","ThreadLocal","Module","DefinitionList","Definition", -"@1","@2","@3","@4","@5","AsmBlock","TargetDefinition","LibrariesDefinition", -"LibList","ArgListH","ArgList","FunctionHeaderH","BEGIN","FunctionHeader","END", -"Function","FunctionProto","OptSideEffect","ConstValueRef","SymbolicValueRef", -"ValueRef","ResolvedVal","BasicBlockList","BasicBlock","InstructionList","BBTerminatorInst", -"JumpTable","Inst","PHIList","ValueRefList","IndexList","OptTailCall","InstVal", -"OptVolatile","MemoryInst", NULL -}; #endif -static const short yyr1[] = { 0, - 149, 149, 149, 149, 149, 149, 149, 149, 149, 150, - 150, 150, 150, 150, 150, 151, 151, 151, 151, 151, - 151, 151, 151, 151, 151, 151, 151, 152, 152, 152, - 152, 152, 152, 152, 152, 152, 152, 153, 153, 153, - 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, - 153, 153, 153, 154, 155, 155, 156, 156, 157, 157, - 158, 158, 159, 159, 160, 160, 161, 161, 161, 161, - 161, 162, 162, 162, 163, 163, 164, 164, 164, 165, - 165, 165, 165, 165, 166, 166, 166, 166, 166, 166, - 166, 167, 167, 167, 167, 168, 168, 169, 169, 169, - 170, 170, 171, 171, 172, 172, 173, 174, 174, 175, - 175, 176, 176, 177, 177, 177, 177, 178, 178, 178, - 178, 178, 178, 178, 178, 178, 178, 178, 178, 178, - 179, 180, 180, 181, 181, 182, 182, 182, 182, 183, - 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, - 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, - 184, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 186, 186, 187, 187, 188, 188, 189, 189, 190, - 190, 192, 191, 193, 191, 191, 191, 191, 194, 191, - 195, 191, 196, 191, 191, 191, 197, 198, 198, 199, - 200, 200, 200, 201, 201, 202, 202, 202, 202, 203, - 204, 204, 205, 206, 206, 207, 208, 209, 209, 210, |