diff options
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.cpp.cvs | 7950 |
1 files changed, 3406 insertions, 4544 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs index dbfc7e9e1a..a6192c13ad 100644 --- a/lib/AsmParser/llvmAsmParser.cpp.cvs +++ b/lib/AsmParser/llvmAsmParser.cpp.cvs @@ -1,382 +1,165 @@ -/* A Bison parser, made by GNU Bison 2.3. */ -/* Skeleton implementation for Bison's Yacc-like parsers in C +/* A Bison parser, made from /Users/clamb/Documents/llvm/llvm/lib/AsmParser/llvmAsmParser.y + by GNU Bison version 1.28 */ - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. +#define YYBISON 1 /* Identify Bison output. */ - 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 - - -/* 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, - X86_FP80 = 269, - FP128 = 270, - PPC_FP128 = 271, - LABEL = 272, - TYPE = 273, - LOCALVAR = 274, - GLOBALVAR = 275, - LABELSTR = 276, - STRINGCONSTANT = 277, - ATSTRINGCONSTANT = 278, - PCTSTRINGCONSTANT = 279, - ZEROINITIALIZER = 280, - TRUETOK = 281, - FALSETOK = 282, - BEGINTOK = 283, - ENDTOK = 284, - DECLARE = 285, - DEFINE = 286, - GLOBAL = 287, - CONSTANT = 288, - SECTION = 289, - ALIAS = 290, - VOLATILE = 291, - THREAD_LOCAL = 292, - TO = 293, - DOTDOTDOT = 294, - NULL_TOK = 295, - UNDEF = 296, - INTERNAL = 297, - LINKONCE = 298, - WEAK = 299, - APPENDING = 300, - DLLIMPORT = 301, - DLLEXPORT = 302, - EXTERN_WEAK = 303, - OPAQUE = 304, - EXTERNAL = 305, - TARGET = 306, - TRIPLE = 307, - ALIGN = 308, - ADDRSPACE = 309, - DEPLIBS = 310, - CALL = 311, - TAIL = 312, - ASM_TOK = 313, - MODULE = 314, - SIDEEFFECT = 315, - CC_TOK = 316, - CCC_TOK = 317, - FASTCC_TOK = 318, - COLDCC_TOK = 319, - X86_STDCALLCC_TOK = 320, - X86_FASTCALLCC_TOK = 321, - DATALAYOUT = 322, - RET = 323, - BR = 324, - SWITCH = 325, - INVOKE = 326, - UNWIND = 327, - UNREACHABLE = 328, - ADD = 329, - SUB = 330, - MUL = 331, - UDIV = 332, - SDIV = 333, - FDIV = 334, - UREM = 335, - SREM = 336, - FREM = 337, - AND = 338, - OR = 339, - XOR = 340, - SHL = 341, - LSHR = 342, - ASHR = 343, - ICMP = 344, - FCMP = 345, - EQ = 346, - NE = 347, - SLT = 348, - SGT = 349, - SLE = 350, - SGE = 351, - ULT = 352, - UGT = 353, - ULE = 354, - UGE = 355, - OEQ = 356, - ONE = 357, - OLT = 358, - OGT = 359, - OLE = 360, - OGE = 361, - ORD = 362, - UNO = 363, - UEQ = 364, - UNE = 365, - MALLOC = 366, - ALLOCA = 367, - FREE = 368, - LOAD = 369, - STORE = 370, - GETELEMENTPTR = 371, - TRUNC = 372, - ZEXT = 373, - SEXT = 374, - FPTRUNC = 375, - FPEXT = 376, - BITCAST = 377, - UITOFP = 378, - SITOFP = 379, - FPTOUI = 380, - FPTOSI = 381, - INTTOPTR = 382, - PTRTOINT = 383, - PHI_TOK = 384, - SELECT = 385, - VAARG = 386, - EXTRACTELEMENT = 387, - INSERTELEMENT = 388, - SHUFFLEVECTOR = 389, - SIGNEXT = 390, - ZEROEXT = 391, - NORETURN = 392, - INREG = 393, - SRET = 394, - NOUNWIND = 395, - NOALIAS = 396, - BYVAL = 397, - NEST = 398, - READNONE = 399, - READONLY = 400, - GC = 401, - DEFAULT = 402, - HIDDEN = 403, - PROTECTED = 404 - }; -#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 X86_FP80 269 -#define FP128 270 -#define PPC_FP128 271 -#define LABEL 272 -#define TYPE 273 -#define LOCALVAR 274 -#define GLOBALVAR 275 -#define LABELSTR 276 -#define STRINGCONSTANT 277 -#define ATSTRINGCONSTANT 278 -#define PCTSTRINGCONSTANT 279 -#define ZEROINITIALIZER 280 -#define TRUETOK 281 -#define FALSETOK 282 -#define BEGINTOK 283 -#define ENDTOK 284 -#define DECLARE 285 -#define DEFINE 286 -#define GLOBAL 287 -#define CONSTANT 288 -#define SECTION 289 -#define ALIAS 290 -#define VOLATILE 291 -#define THREAD_LOCAL 292 -#define TO 293 -#define DOTDOTDOT 294 -#define NULL_TOK 295 -#define UNDEF 296 -#define INTERNAL 297 -#define LINKONCE 298 -#define WEAK 299 -#define APPENDING 300 -#define DLLIMPORT 301 -#define DLLEXPORT 302 -#define EXTERN_WEAK 303 -#define OPAQUE 304 -#define EXTERNAL 305 -#define TARGET 306 -#define TRIPLE 307 -#define ALIGN 308 -#define ADDRSPACE 309 -#define DEPLIBS 310 -#define CALL 311 -#define TAIL 312 -#define ASM_TOK 313 -#define MODULE 314 -#define SIDEEFFECT 315 -#define CC_TOK 316 -#define CCC_TOK 317 -#define FASTCC_TOK 318 -#define COLDCC_TOK 319 -#define X86_STDCALLCC_TOK 320 -#define X86_FASTCALLCC_TOK 321 -#define DATALAYOUT 322 -#define RET 323 -#define BR 324 -#define SWITCH 325 -#define INVOKE 326 -#define UNWIND 327 -#define UNREACHABLE 328 -#define ADD 329 -#define SUB 330 -#define MUL 331 -#define UDIV 332 -#define SDIV 333 -#define FDIV 334 -#define UREM 335 -#define SREM 336 -#define FREM 337 -#define AND 338 -#define OR 339 -#define XOR 340 -#define SHL 341 -#define LSHR 342 -#define ASHR 343 -#define ICMP 344 -#define FCMP 345 -#define EQ 346 -#define NE 347 -#define SLT 348 -#define SGT 349 -#define SLE 350 -#define SGE 351 -#define ULT 352 -#define UGT 353 -#define ULE 354 -#define UGE 355 -#define OEQ 356 -#define ONE 357 -#define OLT 358 -#define OGT 359 -#define OLE 360 -#define OGE 361 -#define ORD 362 -#define UNO 363 -#define UEQ 364 -#define UNE 365 -#define MALLOC 366 -#define ALLOCA 367 -#define FREE 368 -#define LOAD 369 -#define STORE 370 -#define GETELEMENTPTR 371 -#define TRUNC 372 -#define ZEXT 373 -#define SEXT 374 -#define FPTRUNC 375 -#define FPEXT 376 -#define BITCAST 377 -#define UITOFP 378 -#define SITOFP 379 -#define FPTOUI 380 -#define FPTOSI 381 -#define INTTOPTR 382 -#define PTRTOINT 383 -#define PHI_TOK 384 -#define SELECT 385 -#define VAARG 386 -#define EXTRACTELEMENT 387 -#define INSERTELEMENT 388 -#define SHUFFLEVECTOR 389 -#define SIGNEXT 390 -#define ZEROEXT 391 -#define NORETURN 392 -#define INREG 393 -#define SRET 394 -#define NOUNWIND 395 -#define NOALIAS 396 -#define BYVAL 397 -#define NEST 398 -#define READNONE 399 -#define READONLY 400 -#define GC 401 -#define DEFAULT 402 -#define HIDDEN 403 -#define PROTECTED 404 - - - - -/* Copy the first part of user declarations. */ -#line 14 "/Users/scottm/play/llvm-trunk/lib/AsmParser/llvmAsmParser.y" +#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 X86_FP80 268 +#define FP128 269 +#define PPC_FP128 270 +#define LABEL 271 +#define TYPE 272 +#define LOCALVAR 273 +#define GLOBALVAR 274 +#define LABELSTR 275 +#define STRINGCONSTANT 276 +#define ATSTRINGCONSTANT 277 +#define PCTSTRINGCONSTANT 278 +#define ZEROINITIALIZER 279 +#define TRUETOK 280 +#define FALSETOK 281 +#define BEGINTOK 282 +#define ENDTOK 283 +#define DECLARE 284 +#define DEFINE 285 +#define GLOBAL 286 +#define CONSTANT 287 +#define SECTION 288 +#define ALIAS 289 +#define VOLATILE 290 +#define THREAD_LOCAL 291 +#define TO 292 +#define DOTDOTDOT 293 +#define NULL_TOK 294 +#define UNDEF 295 +#define INTERNAL 296 +#define LINKONCE 297 +#define WEAK 298 +#define APPENDING 299 +#define DLLIMPORT 300 +#define DLLEXPORT 301 +#define EXTERN_WEAK 302 +#define OPAQUE 303 +#define EXTERNAL 304 +#define TARGET 305 +#define TRIPLE 306 +#define ALIGN 307 +#define ADDRSPACE 308 +#define DEPLIBS 309 +#define CALL 310 +#define TAIL 311 +#define ASM_TOK 312 +#define MODULE 313 +#define SIDEEFFECT 314 +#define CC_TOK 315 +#define CCC_TOK 316 +#define FASTCC_TOK 317 +#define COLDCC_TOK 318 +#define X86_STDCALLCC_TOK 319 +#define X86_FASTCALLCC_TOK 320 +#define DATALAYOUT 321 +#define RET 322 +#define BR 323 +#define SWITCH 324 +#define INVOKE 325 +#define UNWIND 326 +#define UNREACHABLE 327 +#define ADD 328 +#define SUB 329 +#define MUL 330 +#define UDIV 331 +#define SDIV 332 +#define FDIV 333 +#define UREM 334 +#define SREM 335 +#define FREM 336 +#define AND 337 +#define OR 338 +#define XOR 339 +#define SHL 340 +#define LSHR 341 +#define ASHR 342 +#define ICMP 343 +#define FCMP 344 +#define EQ 345 +#define NE 346 +#define SLT 347 +#define SGT 348 +#define SLE 349 +#define SGE 350 +#define ULT 351 +#define UGT 352 +#define ULE 353 +#define UGE 354 +#define OEQ 355 +#define ONE 356 +#define OLT 357 +#define OGT 358 +#define OLE 359 +#define OGE 360 +#define ORD 361 +#define UNO 362 +#define UEQ 363 +#define UNE 364 +#define MALLOC 365 +#define ALLOCA 366 +#define FREE 367 +#define LOAD 368 +#define STORE 369 +#define GETELEMENTPTR 370 +#define TRUNC 371 +#define ZEXT 372 +#define SEXT 373 +#define FPTRUNC 374 +#define FPEXT 375 +#define BITCAST 376 +#define UITOFP 377 +#define SITOFP 378 +#define FPTOUI 379 +#define FPTOSI 380 +#define INTTOPTR 381 +#define PTRTOINT 382 +#define PHI_TOK 383 +#define SELECT 384 +#define VAARG 385 +#define EXTRACTELEMENT 386 +#define INSERTELEMENT 387 +#define SHUFFLEVECTOR 388 +#define SIGNEXT 389 +#define ZEROEXT 390 +#define NORETURN 391 +#define INREG 392 +#define SRET 393 +#define NOUNWIND 394 +#define NOALIAS 395 +#define BYVAL 396 +#define NEST 397 +#define READNONE 398 +#define READONLY 399 +#define GC 400 +#define DEFAULT 401 +#define HIDDEN 402 +#define PROTECTED 403 + +#line 14 "/Users/clamb/Documents/llvm/llvm/lib/AsmParser/llvmAsmParser.y" #include "ParserInternals.h" #include "llvm/CallingConv.h" @@ -1309,29 +1092,8 @@ Module *llvm::RunVMAsmParser(llvm::MemoryBuffer *MB) { } - -/* 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 947 "/Users/scottm/play/llvm-trunk/lib/AsmParser/llvmAsmParser.y" -{ +#line 947 "/Users/clamb/Documents/llvm/llvm/lib/AsmParser/llvmAsmParser.y" +typedef union { llvm::Module *ModuleVal; llvm::Function *FunctionVal; llvm::BasicBlock *BasicBlockVal; @@ -1376,1894 +1138,1209 @@ typedef union YYSTYPE llvm::Instruction::OtherOps OtherOpVal; llvm::ICmpInst::Predicate IPredicate; llvm::FCmpInst::Predicate FPredicate; -} -/* Line 187 of yacc.c. */ -#line 1382 "llvmAsmParser.tab.c" - YYSTYPE; -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -# define YYSTYPE_IS_TRIVIAL 1 -#endif +} YYSTYPE; +#include <stdio.h> - - -/* Copy the second part of user declarations. */ - - -/* Line 216 of yacc.c. */ -#line 1395 "llvmAsmParser.tab.c" - -#ifdef short -# undef short +#ifndef __cplusplus +#ifndef __STDC__ +#define const #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 -#ifdef YYTYPE_INT16 -typedef YYTYPE_INT16 yytype_int16; -#else -typedef short int yytype_int16; -#endif +#define YYFINAL 619 +#define YYFLAG -32768 +#define YYNTBASE 164 + +#define YYTRANSLATE(x) ((unsigned)(x) <= 403 ? yytranslate[x] : 247) + +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, 150, + 151, 154, 2, 153, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 159, + 152, 160, 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, + 156, 155, 158, 2, 2, 2, 2, 2, 163, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 157, + 2, 2, 161, 2, 162, 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, 135, 136, + 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, + 147, 148, 149 +}; -#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 +#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, + 120, 122, 124, 126, 127, 132, 133, 136, 137, 139, + 141, 143, 144, 147, 149, 151, 153, 155, 157, 159, + 161, 163, 164, 166, 168, 170, 171, 173, 175, 176, + 178, 180, 182, 184, 185, 187, 189, 190, 192, 194, + 196, 198, 200, 203, 205, 207, 209, 211, 213, 215, + 217, 219, 221, 222, 225, 227, 229, 231, 233, 235, + 237, 238, 241, 242, 245, 246, 249, 250, 254, 257, + 258, 260, 261, 265, 267, 270, 272, 274, 276, 278, + 280, 282, 284, 286, 288, 292, 294, 297, 303, 309, + 315, 321, 325, 328, 334, 339, 342, 344, 346, 348, + 352, 354, 358, 360, 361, 363, 367, 372, 376, 380, + 385, 390, 394, 401, 407, 410, 413, 416, 419, 422, + 425, 428, 431, 434, 437, 440, 443, 450, 456, 465, + 472, 479, 487, 495, 502, 511, 520, 524, 526, 528, + 530, 532, 533, 536, 543, 545, 546, 548, 551, 552, + 556, 557, 561, 565, 569, 573, 574, 583, 584, 594, + 595, 605, 611, 614, 618, 620, 624, 628, 632, 636, + 638, 639, 645, 649, 651, 655, 657, 658, 669, 671, + 673, 678, 680, 682, 685, 689, 690, 692, 694, 696, + 698, 700, 702, 704, 706, 708, 712, 714, 720, 722, + 724, 726, 728, 730, 732, 735, 738, 741, 745, 748, + 749, 751, 754, 757, 761, 771, 781, 790, 805, 807, + 809, 816, 822, 825, 832, 840, 845, 850, 857, 864, + 865, 866, 870, 873, 875, 881, 887, 894, 901, 906, + 913, 918, 923, 930, 937, 940, 949, 951, 953, 954, + 958, 965, 969, 976, 979, 985, 993 +}; -#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 +static const short yyrhs[] = { 74, + 0, 75, 0, 76, 0, 77, 0, 78, 0, 79, + 0, 80, 0, 81, 0, 82, 0, 86, 0, 87, + 0, 88, 0, 83, 0, 84, 0, 85, 0, 117, + 0, 118, 0, 119, 0, 120, 0, 121, 0, 122, + 0, 123, 0, 124, 0, 125, 0, 126, 0, 127, + 0, 128, 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, 105, 0, 106, 0, 107, 0, 108, 0, 109, + 0, 110, 0, 97, 0, 98, 0, 99, 0, 100, + 0, 26, 0, 27, 0, 11, 0, 12, 0, 13, + 0, 16, 0, 15, 0, 14, 0, 19, 0, 22, + 0, 24, 0, 171, 0, 0, 54, 150, 4, 151, + 0, 0, 171, 152, 0, 0, 20, 0, 23, 0, + 177, 0, 0, 175, 152, 0, 42, 0, 44, 0, + 43, 0, 45, 0, 47, 0, 46, 0, 48, 0, + 50, 0, 0, 147, 0, 148, 0, 149, 0, 0, + 46, 0, 48, 0, 0, 42, 0, 43, 0, 44, + 0, 47, 0, 0, 44, 0, 42, 0, 0, 62, + 0, 63, 0, 64, 0, 65, 0, 66, 0, 61, + 4, 0, 136, 0, 118, 0, 135, 0, 119, 0, + 138, 0, 139, 0, 141, 0, 142, 0, 143, 0, + 0, 186, 185, 0, 137, 0, 140, 0, 136, 0, + 135, 0, 144, 0, 145, 0, 0, 188, 187, 0, + 0, 146, 22, 0, 0, 53, 4, 0, 0, 153, + 53, 4, 0, 34, 22, 0, 0, 192, 0, 0, + 153, 195, 194, 0, 192, 0, 53, 4, 0, 11, + 0, 12, 0, 13, 0, 16, 0, 15, 0, 14, + 0, 17, 0, 49, 0, 196, 0, 197, 173, 154, + 0, 231, 0, 155, 4, 0, 197, 150, 201, 151, + 188, 0, 10, 150, 201, 151, 188, 0, 156, 4, + 157, 197, 158, 0, 159, 4, 157, 197, 160, 0, + 161, 202, 162, 0, 161, 162, 0, 159, 161, 202, + 162, 160, 0, 159, 161, 162, 160, 0, 197, 186, + 0, 197, 0, 10, 0, 198, 0, 200, 153, 198, + 0, 200, 0, 200, 153, 39, 0, 39, 0, 0, + 197, 0, 202, 153, 197, 0, 197, 156, 205, 158, + 0, 197, 156, 158, 0, 197, 163, 22, 0, 197, + 159, 205, 160, 0, 197, 161, 205, 162, 0, 197, + 161, 162, 0, 197, 159, 161, 205, 162, 160, 0, + 197, 159, 161, 162, 160, 0, 197, 40, 0, 197, + 41, 0, 197, 231, 0, 197, 204, 0, 197, 25, + 0, 169, 3, 0, 169, 5, 0, 169, 4, 0, + 169, 6, 0, 11, 26, 0, 11, 27, 0, 170, + 9, 0, 166, 150, 203, 38, 197, 151, 0, 116, + 150, 203, 242, 151, 0, 130, 150, 203, 153, 203, + 153, 203, 151, 0, 164, 150, 203, 153, 203, 151, + 0, 165, 150, 203, 153, 203, 151, 0, 89, 167, + 150, 203, 153, 203, 151, 0, 90, 168, 150, 203, + 153, 203, 151, 0, 132, 150, 203, 153, 203, 151, + 0, 133, 150, 203, 153, 203, 153, 203, 151, 0, + 134, 150, 203, 153, 203, 153, 203, 151, 0, 205, + 153, 203, 0, 203, 0, 32, 0, 33, 0, 37, + 0, 0, 199, 231, 0, 122, 150, 208, 38, 197, + 151, 0, 210, 0, 0, 211, 0, 210, 211, 0, + 0, 31, 212, 227, 0, 0, 30, 213, 228, 0, + 59, 58, 217, 0, 174, 18, 197, 0, 174, 18, + 10, 0, 0, 176, 180, 207, 206, 203, 173, 214, + 194, 0, 0, 176, 178, 180, 207, 206, 203, 173, + 215, 194, 0, 0, 176, 179, 180, 207, 206, 197, + 173, 216, 194, 0, 176, 180, 35, 183, 208, 0, + 51, 218, 0, 55, 152, 219, 0, 22, 0, 52, + 152, 22, 0, 67, 152, 22, 0, 156, 220, 158, + 0, 220, 153, 22, 0, 22, 0, 0, 221, 153, + 197, 186, 172, 0, 197, 186, 172, 0, 221, 0, + 221, 153, 39, 0, 39, 0, 0, 184, 199, 175, + 150, 222, 151, 188, 193, 190, 189, 0, 28, 0, + 161, 0, 182, 180, 223, 224, 0, 29, 0, 162, + 0, 234, 226, 0, 181, 180, 223, 0, 0, 60, + 0, 3, 0, 4, 0, 9, 0, 26, 0, 27, + 0, 40, 0, 41, 0, 25, 0, 159, 205, 160, + 0, 204, 0, 58, 229, 22, 153, 22, 0, 7, + 0, 8, 0, 171, 0, 175, 0, 231, 0, 230, + 0, 197, 232, 0, 234, 235, 0, 225, 235, 0, + 236, 174, 237, 0, 236, 239, 0, 0, 21, 0, + 68, 233, 0, 68, 10, 0, 69, 17, 232, 0, + 69, 11, 232, 153, 17, 232, 153, 17, 232, 0, + 70, 169, 232, 153, 17, 232, 156, 238, 158, 0, + 70, 169, 232, 153, 17, 232, 156, 158, 0, 71, + 184, 199, 232, 150, 241, 151, 188, 38, 17, 232, + 72, 17, 232, 0, 72, 0, 73, 0, 238, 169, + 230, 153, 17, 232, 0, 169, 230, 153, 17, 232, + 0, 174, 244, 0, 197, 156, 232, 153, 232, 158, + 0, 240, 153, 156, 232, 153, 232, 158, 0, 197, + 186, 232, 186, 0, 17, 186, 232, 186, 0, 241, + 153, 197, 186, 232, 186, 0, 241, 153, 17, 186, + 232, 186, 0, 0, 0, 242, 153, 233, 0, 57, + 56, 0, 56, 0, 164, 197, 232, 153, 232, 0, + 165, 197, 232, 153, 232, 0, 89, 167, 197, 232, + 153, 232, 0, 90, 168, 197, 232, 153, 232, 0, + 166, 233, 38, 197, 0, 130, 233, 153, 233, 153, + 233, 0, 131, 233, 153, 197, 0, 132, 233, 153, + 233, 0, 133, 233, 153, 233, 153, 233, 0, 134, + 233, 153, 233, 153, 233, 0, 129, 240, 0, 243, + 184, 199, 232, 150, 241, 151, 188, 0, 246, 0, + 36, 0, 0, 111, 197, 191, 0, 111, 197, 153, + 11, 232, 191, 0, 112, 197, 191, 0, 112, 197, + 153, 11, 232, 191, 0, 113, 233, 0, 245, 114, + 197, 232, 191, 0, 245, 115, 233, 153, 197, 232, + 191, 0, 116, 197, 232, 242, 0 +}; -/* Suppress unused-variable warnings by "using" E. */ -#if ! defined lint || defined __GNUC__ -# define YYUSE(e) ((void) (e)) -#else -# define YYUSE(e) /* empty */ #endif -/* 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; -} +#if YYDEBUG != 0 +static const short yyrline[] = { 0, + 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1108, + 1108, 1108, 1108, 1108, 1108, 1109, 1109, 1109, 1109, 1109, + 1109, 1109, 1110, 1110, 1110, 1110, 1110, 1113, 1113, 1114, + 1114, 1115, 1115, 1116, 1116, 1117, 1117, 1121, 1121, 1122, + 1122, 1123, 1123, 1124, 1124, 1125, 1125, 1126, 1126, 1127, + 1127, 1128, 1129, 1134, 1135, 1135, 1135, 1135, 1135, 1137, + 1137, 1137, 1138, 1138, 1140, 1141, 1145, 1149, 1154, 1154, + 1156, 1157, 1162, 1168, 1169, 1170, 1171, 1172, 1176, 1177, + 1178, 1182, 1183, 1184, 1185, 1189, 1190, 1191, 1195, 1196, + 1197, 1198, 1199, 1203, 1204, 1205, 1208, 1208, 1209, 1210, + 1211, 1212, 1213, 1221, 1222, 1223, 1224, 1225, 1226, 1227, + 1228, 1229, 1232, 1233, 1238, 1239, 1240, 1241, 1242, 1243, + 1246, 1247, 1252, 1253, 1260, 1260, 1267, 1267, 1277, 1285, + 1285, 1291, 1291, 1293, 1298, 1311, 1311, 1311, 1311, 1311, + 1311, 1311, 1314, 1318, 1322, 1329, 1334, 1342, 1372, 1397, + 1402, 1412, 1422, 1426, 1436, 1443, 1452, 1459, 1464, 1469, + 1476, 1477, 1484, 1491, 1499, 1505, 1517, 1545, 1561, 1588, + 1616, 1642, 1662, 1688, 1708, 1720, 1727, 1793, 1803, 1813, + 1819, 1829, 1835, 1845, 1850, 1855, 1868, 1880, 1902, 1910, + 1916, 1927, 1932, 1937, 1943, 1949, 1958, 1962, 1970, 1970, + 1973, 1973, 1976, 1988, 2009, 2014, 2022, 2023, 2027, 2027, + 2031, 2031, 2034, 2037, 2061, 2072, 2080, 2083, 2089, 2092, + 2099, 2103, 2143, 2146, 2152, 2162, 2166, 2171, 2173, 2178, + 2183, 2192, 2202, 2213, 2217, 2226, 2235, 2240, 2374, 2374, + 2376, 2385, 2385, 2387, 2392, 2404, 2408, 2413, 2417, 2421, + 2425, 2429, 2433, 2437, 2441, 2445, 2470, 2474, 2484, 2488, + 2492, 2497, 2504, 2504, 2510, 2519, 2523, 2532, 2541, 2550, + 2554, 2561, 2565, 2569, 2574, 2584, 2603, 2612, 2696, 2700, + 2707, 2718, 2731, 2741, 2752, 2762, 2773, 2781, 2791, 2798, + 2801, 2802, 2809, 2813, 2818, 2834, 2851, 2865, 2879, 2891, + 2899, 2906, 2912, 2918, 2924, 2939, 3030, 3035, 3039, 3046, + 3053, 3061, 3068, 3076, 3084, 3098, 3115 +}; #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","X86_FP80","FP128","PPC_FP128","LABEL","TYPE", +"LOCALVAR","GLOBALVAR","LABELSTR","STRINGCONSTANT","ATSTRINGCONSTANT","PCTSTRINGCONSTANT", +"ZEROINITIALIZER","TRUETOK","FALSETOK","BEGINTOK","ENDTOK","DECLARE","DEFINE", +"GLOBAL","CONSTANT","SECTION","ALIAS","VOLATILE","THREAD_LOCAL","TO","DOTDOTDOT", +"NULL_TOK","UNDEF","INTERNAL","LINKONCE","WEAK","APPENDING","DLLIMPORT","DLLEXPORT", +"EXTERN_WEAK","OPAQUE","EXTERNAL","TARGET","TRIPLE","ALIGN","ADDRSPACE","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","SIGNEXT","ZEROEXT","NORETURN","INREG","SRET", +"NOUNWIND","NOALIAS","BYVAL","NEST","READNONE","READONLY","GC","DEFAULT","HIDDEN", +"PROTECTED","'('","')'","'='","','","'*'","'\\\\'","'['","'x'","']'","'<'","'>'", +"'{'","'}'","'c'","ArithmeticOps","Logic |