diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-28 13:48:45 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-28 13:48:45 +0000 |
commit | 38e09802f6cdfdc18c790e4ca31cac20fa00539f (patch) | |
tree | 514297877e35a2fcf12596610ce3f53e5ff37b7a /lib/AsmParser/llvmAsmParser.cpp.cvs | |
parent | a80e1181b78183dc36ec6568559d38faa86981f0 (diff) |
Regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.cpp.cvs | 7528 |
1 files changed, 4339 insertions, 3189 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs index 9c8917d170..d09350ced8 100644 --- a/lib/AsmParser/llvmAsmParser.cpp.cvs +++ b/lib/AsmParser/llvmAsmParser.cpp.cvs @@ -1,151 +1,354 @@ +/* A Bison parser, made by GNU Bison 2.3. */ -/* A Bison parser, made from /Users/sabre/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 ALIAS 285 -#define VOLATILE 286 -#define THREAD_LOCAL 287 -#define TO 288 -#define DOTDOTDOT 289 -#define NULL_TOK 290 -#define UNDEF 291 -#define INTERNAL 292 -#define LINKONCE 293 -#define WEAK 294 -#define APPENDING 295 -#define DLLIMPORT 296 -#define DLLEXPORT 297 -#define EXTERN_WEAK 298 -#define OPAQUE 299 -#define EXTERNAL 300 -#define TARGET 301 -#define TRIPLE 302 -#define ALIGN 303 -#define DEPLIBS 304 -#define CALL 305 -#define TAIL 306 -#define ASM_TOK 307 -#define MODULE 308 -#define SIDEEFFECT 309 -#define CC_TOK 310 -#define CCC_TOK 311 -#define FASTCC_TOK 312 -#define COLDCC_TOK 313 -#define X86_STDCALLCC_TOK 314 -#define X86_FASTCALLCC_TOK 315 -#define DATALAYOUT 316 -#define RET 317 -#define BR 318 -#define SWITCH 319 -#define INVOKE 320 -#define UNWIND 321 -#define UNREACHABLE 322 -#define ADD 323 -#define SUB 324 -#define MUL 325 -#define UDIV 326 -#define SDIV 327 -#define FDIV 328 -#define UREM 329 -#define SREM 330 -#define FREM 331 -#define AND 332 -#define OR 333 -#define XOR 334 -#define SHL 335 -#define LSHR 336 -#define ASHR 337 -#define ICMP 338 -#define FCMP 339 -#define EQ 340 -#define NE 341 -#define SLT 342 -#define SGT 343 -#define SLE 344 -#define SGE 345 -#define ULT 346 -#define UGT 347 -#define ULE 348 -#define UGE 349 -#define OEQ 350 -#define ONE 351 -#define OLT 352 -#define OGT 353 -#define OLE 354 -#define OGE 355 -#define ORD 356 -#define UNO 357 -#define UEQ 358 -#define UNE 359 -#define MALLOC 360 -#define ALLOCA 361 -#define FREE 362 -#define LOAD 363 -#define STORE 364 -#define GETELEMENTPTR 365 -#define TRUNC 366 -#define ZEXT 367 -#define SEXT 368 -#define FPTRUNC 369 -#define FPEXT 370 -#define BITCAST 371 -#define UITOFP 372 -#define SITOFP 373 -#define FPTOUI 374 -#define FPTOSI 375 -#define INTTOPTR 376 -#define PTRTOINT 377 -#define PHI_TOK 378 -#define SELECT 379 -#define VAARG 380 -#define EXTRACTELEMENT 381 -#define INSERTELEMENT 382 -#define SHUFFLEVECTOR 383 -#define NORETURN 384 -#define INREG 385 -#define SRET 386 -#define NOUNWIND 387 -#define DEFAULT 388 -#define HIDDEN 389 - -#line 14 "/Users/sabre/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" @@ -615,8 +818,24 @@ static Value *getVal(const Type *Ty, const ValID &ID) { // or an id number that hasn't been read yet. We may be referencing something // forward, so just create an entry to be resolved later and get to it... // - V = new Argument(Ty); - + switch (ID.Type) { + case ValID::GlobalName: + case ValID::GlobalID: + const PointerType *PTy = dyn_cast<PointerType>(Ty); + if (!PTy) { + GenerateError("Invalid type for reference to global" ); + return 0; + } + const Type* ElTy = PTy->getElementType(); + if (const FunctionType *FTy = dyn_cast<FunctionType>(ElTy)) + V = new Function(FTy, GlobalValue::ExternalLinkage); + else + V = new GlobalVariable(ElTy, false, GlobalValue::ExternalLinkage); + break; + default: + V = new Argument(Ty); + } + // Remember where this forward reference came from. FIXME, shouldn't we try // to recycle these things?? CurModule.PlaceHolderInfo.insert(std::make_pair(V, std::make_pair(ID, @@ -1069,8 +1288,29 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) { } -#line 938 "/Users/sabre/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 954 "/home/asl/proj/llvm/src/lib/AsmParser/llvmAsmParser.y" +{ llvm::Module *ModuleVal; llvm::Function *FunctionVal; llvm::BasicBlock *BasicBlockVal; @@ -1115,1076 +1355,1785 @@ typedef union { llvm::Instruction::OtherOps OtherOpVal; llvm::ICmpInst::Predicate IPredicate; llvm::FCmpInst::Predicate FPredicate; -} YYSTYPE; -#include <stdio.h> +} +/* Line 187 of yacc.c. */ +#line 1361 "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. */ + + +/* Line 216 of yacc.c. */ +#line 1374 "llvmAsmParser.tab.c" -#ifndef __cplusplus -#ifndef __STDC__ -#define const +#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 573 -#define YYFLAG -32768 -#define YYNTBASE 150 - -#define YYTRANSLATE(x) ((unsigned)(x) <= 389 ? yytranslate[x] : 230) - -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, 140, - 141, 138, 2, 137, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 145, - 136, 146, 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, - 142, 139, 144, 2, 2, 2, 2, 2, 149, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 143, - 2, 2, 147, 2, 148, 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 -}; +#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, 129, 130, 133, 135, 137, - 139, 141, 143, 145, 147, 149, 150, 152, 154, 155, - 157, 159, 160, 162, 164, 166, 168, 169, 171, 173, - 174, 176, 178, 180, 182, 184, 187, 189, 191, 193, - 195, 196, 199, 201, 203, 205, 206, 209, 210, 213, - 214, 218, 221, 222, 224, 225, 229, 231, 234, 236, - 238, 240, 242, 244, 246, 249, 251, 254, 260, 266, - 272, 278, 282, 285, 291, 296, 299, 301, 303, 305, - 309, 311, 315, 317, 318, 320, 324, 329, 333, 337, - 342, 347, 351, 358, 364, 367, 370, 373, 376, 379, - 382, 385, 388, 391, 394, 397, 400, 407, 413, 422, - 429, 436, 444, 452, 459, 468, 477, 481, 483, 485, - 487, 489, 490, 492, 493, 495, 498, 499, 503, 504, - 508, 512, 516, 520, 521, 529, 530, 539, 540, 549, - 556, 559, 563, 565, 569, 573, 577, 581, 583, 584, - 590, 594, 596, 600, 602, 603, 613, 615, 617, 622, - 624, 626, 629, 633, 634, 636, 638, 640, 642, 644, - 646, 648, 650, 652, 656, 658, 664, 666, 668, 670, - 672, 674, 676, 679, 682, 685, 689, 692, 693, 695, - 698, 701, 705, 715, 725, 734, 749, 751, 753, 760, - 766, 769, 776, 784, 788, 794, 795, 796, 800, 803, - 805, 811, 817, 824, 831, 836, 843, 848, 853, 860, - 867, 870, 879, 881, 883, 884, 888, 895, 899, 906, - 909, 915, 923 -}; +#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[] = { 69, - 0, 70, 0, 71, 0, 72, 0, 73, 0, 74, - 0, 75, 0, 76, 0, 77, 0, 81, 0, 82, - 0, 83, 0, 78, 0, 79, 0, 80, 0, 112, - 0, 113, 0, 114, 0, 115, 0, 116, 0, 117, - 0, 118, 0, 119, 0, 120, 0, 121, 0, 122, - 0, 123, 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, 105, 0, 92, 0, 93, 0, 94, 0, 95, - 0, 22, 0, 23, 0, 11, 0, 12, 0, 13, - 0, 16, 0, 19, 0, 157, 0, 0, 157, 136, - 0, 0, 17, 0, 20, 0, 162, 0, 0, 160, - 136, 0, 38, 0, 40, 0, 39, 0, 41, 0, - 43, 0, 42, 0, 44, 0, 46, 0, 0, 134, - 0, 135, 0, 0, 42, 0, 44, 0, 0, 38, - 0, 39, 0, 40, 0, 43, 0, 0, 40, 0, - 38, 0, 0, 57, 0, 58, 0, 59, 0, 60, - 0, 61, 0, 56, 4, 0, 113, 0, 114, 0, - 131, 0, 132, 0, 0, 171, 170, 0, 130, 0, - 133, 0, 170, 0, 0, 173, 172, 0, 0, 49, - 4, 0, 0, 137, 49, 4, 0, 30, 19, 0, - 0, 176, 0, 0, 137, 179, 178, 0, 176, 0, - 49, 4, 0, 11, 0, 12, 0, 13, 0, 14, - 0, 45, 0, 180, 0, 181, 138, 0, 214, 0, - 139, 4, 0, 181, 140, 185, 141, 173, 0, 10, - 140, 185, 141, 173, 0, 142, 4, 143, 181, 144, - 0, 145, 4, 143, 181, 146, 0, 147, 186, 148, - 0, 147, 148, 0, 145, 147, 186, 148, 146, 0, - 145, 147, 148, 146, 0, 181, 171, 0, 181, 0, - 10, 0, 182, 0, 184, 137, 182, 0, 184, 0, - 184, 137, 35, 0, 35, 0, 0, 181, 0, 186, - 137, 181, 0, 181, 142, 189, 144, 0, 181, 142, - 144, 0, 181, 149, 19, 0, 181, 145, 189, 146, - 0, 181, 147, 189, 148, 0, 181, 147, 148, 0, - 181, 145, 147, 189, 148, 146, 0, 181, 145, 147, - 148, 146, 0, 181, 36, 0, 181, 37, 0, 181, - 214, 0, 181, 188, 0, 181, 21, 0, 155, 3, - 0, 155, 5, 0, 155, 4, 0, 155, 6, 0, - 11, 22, 0, 11, 23, 0, 156, 9, 0, 152, - 140, 187, 34, 181, 141, 0, 111, 140, 187, 225, - 141, 0, 125, 140, 187, 137, 187, 137, 187, 141, - 0, 150, 140, 187, 137, 187, 141, 0, 151, 140, - 187, 137, 187, 141, 0, 84, 153, 140, 187, 137, - 187, 141, 0, 85, 154, 140, 187, 137, 187, 141, - 0, 127, 140, 187, 137, 187, 141, 0, 128, 140, - 187, 137, 187, 137, 187, 141, 0, 129, 140, 187, - 137, 187, 137, 187, 141, 0, 189, 137, 187, 0, - 187, 0, 28, 0, 29, 0, 33, 0, 0, 193, - 0, 0, 194, 0, 193, 194, 0, 0, 27, 195, - 210, 0, 0, 26, 196, 211, 0, 54, 53, 200, - 0, 159, 15, 181, 0, 159, 15, 10, 0, 0, - 161, 165, 191, 190, 187, 197, 178, 0, 0, 161, - 163, 165, 191, 190, 187, 198, 178, 0, 0, 161, - 164, 165, 191, 190, 181, 199, 178, 0, 161, 165, - 31, 168, 183, 214, 0, 47, 201, 0, 50, 136, - 202, 0, 19, 0, 48, 136, 19, 0, 62, 136, - 19, 0, 142, 203, 144, 0, 203, 137, 19, 0, - 19, 0, 0, 204, 137, 181, 171, 158, 0, 181, - 171, 158, 0, 204, 0, 204, 137, 35, 0, 35, - 0, 0, 169, 183, 160, 140, 205, 141, 173, 177, - 174, 0, 24, 0, 147, 0, 167, 165, 206, 207, - 0, 25, 0, 148, 0, 217, 209, 0, 166, 165, - 206, 0, 0, 55, 0, 3, 0, 4, 0, 9, - 0, 22, 0, 23, 0, 36, 0, 37, 0, 21, - 0, 145, 189, 146, 0, 188, 0, 53, 212, 19, - 137, 19, 0, 7, 0, 8, 0, 157, 0, 160, - 0, 214, 0, 213, 0, 181, 215, 0, 217, 218, - 0, 208, 218, 0, 219, 159, 220, 0, 219, 222, - 0, 0, 18, 0, 63, 216, 0, 63, 10, 0, - 64, 14, 215, 0, 64, 11, 215, 137, 14, 215, - 137, 14, 215, 0, 65, 155, 215, 137, 14, 215, - 142, 221, 144, 0, 65, 155, 215, 137, 14, 215, - 142, 144, 0, 66, 169, 183, 215, 140, 224, 141, - 173, 34, 14, 215, 67, 14, 215, 0, 67, 0, - 68, 0, 221, 155, 213, 137, 14, 215, 0, 155, - 213, 137, 14, 215, 0, 159, 227, 0, 181, 142, - 215, 137, 215, 144, 0, 223, 137, 142, 215, 137, - 215, 144, 0, 181, 215, 171, 0, 224, 137, 181, - 215, 171, 0, 0, 0, 225, 137, 216, 0, 52, - 51, 0, 51, 0, 150, 181, 215, 137, 215, 0, - 151, 181, 215, 137, 215, 0, 84, 153, 181, 215, - 137, 215, 0, 85, 154, 181, 215, 137, 215, 0, - 152, 216, 34, 181, 0, 125, 216, 137, 216, 137, - 216, 0, 126, 216, 137, 181, 0, 127, 216, 137, - 216, 0, 128, 216, 137, 216, 137, 216, 0, 129, - 216, 137, 216, 137, 216, 0, 124, 223, 0, 226, - 169, 183, 215, 140, 224, 141, 173, 0, 229, 0, - 32, 0, 0, 106, 181, 175, 0, 106, 181, 137, - 11, 215, 175, 0, 107, 181, 175, 0, 107, 181, - 137, 11, 215, 175, 0, 108, 216, 0, 228, 109, - 181, 215, 175, 0, 228, 110, 216, 137, 181, 215, - 175, 0, 111, 181, 215, 225, 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, - 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1095, - 1095, 1095, 1095, 1095, 1095, 1096, 1096, 1096, 1096, 1096, - 1096, 1096, 1097, 1097, 1097, 1097, 1097, 1100, 1100, 1101, - 1101, 1102, 1102, 1103, 1103, 1104, 1104, 1108, 1108, 1109, - 1109, 1110, 1110, 1111, 1111, 1112, 1112, 1113, 1113, 1114, - 1114, 1115, 1116, 1121, 1122, 1122, 1124, 1124, 1125, 1125, - 1129, 1133, 1138, 1138, 1140, 1141, 1146, 1152, 1153, 1154, - 1155, 1156, 1160, 1161, 1162, 1166, 1167, 1168, 1172, 1173, - 1174, 1178, 1179, 1180, 1181, 1182, 1186, 1187, 1188, 1191, - 1191, 1192, 1193, 1194, 1195, 1196, 1204, 1205, 1206, 1207, - 1210, 1211, 1216, 1217, 1218, 1221, 1222, 1229, 1229, 1236, - 1236, 1245, 1253, 1253, 1259, 1259, 1261, 1266, 1279, 1279, - 1279, 1279, 1282, 1286, 1290, 1297, 1302, 1310, 1340, 1371, - 1376, 1388, 1398, 1402, 1412, 1419, 1426, 1433, 1438, 1443, - 1450, 1451, 1458, 1465, 1473, 1479, 1491, 1519, 1535, 1564, - 1592, 1618, 1638, 1664, 1684, 1696, 1703, 1769, 1779, 1789, - 1795, 1805, 1811, 1821, 1826, 1831, 1839, 1851, 1873, 1881, - 1887, 1898, 1903, 1908, 1914, 1920, 1929, 1933, 1941, 1941, - 1944, 1944, 1955, 1960, 1968, 1969, 1973, 1973, 1977, 1977, - 1980, 1983, 2007, 2018, 2025, 2028, 2034, 2037, 2044, 2048, - 2077, 2080, 2086, 2099, 2103, 2108, 2110, 2115, 2120, 2129, - 2139, 2150, 2154, 2163, 2172, 2177, 2299, 2299, 2301, 2310, - 2310, 2312, 2317, 2329, 2333, 2338, 2342, 2346, 2350, 2354, - 2358, 2362, 2366, 2370, 2395, 2399, 2413, 2417, 2421, 2425, - 2431, 2431, 2437, 2446, 2450, 2459, 2468, 2477, 2481, 2486, - 2490, 2494, 2499, 2509, 2528, 2537, 2617, 2621, 2628, 2639, - 2652, 2662, 2673, 2683, 2692, 2701, 2704, 2705, 2712, 2716, - 2721, 2742, 2759, 2773, 2787, 2799, 2807, 2814, 2820, 2826, - 2832, 2847, 2932, 2937, 2941, 2948, 2955, 2963, 2970, 2978, - 2986, 3000, 3017 -}; +/* 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","ALIAS","VOLATILE", -"THREAD_LOCAL","TO","DOTDOTDOT","NULL_TOK","UNDEF","INTERNAL","LINKONCE","WEAK", -"APPENDING","DLLIMPORT","DLLEXPORT","EXTERN_WEAK","OPAQUE","EXTERNAL","TARG |