diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2006-09-14 18:25:26 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2006-09-14 18:25:26 +0000 |
commit | 43e3aad6af54fca7e02352e86f62a8a5e2d49eff (patch) | |
tree | ac041ecd81353490b20e8dabb849edc6796e25b9 /lib/AsmParser/llvmAsmParser.cpp.cvs | |
parent | b74ed07bfd3af42331b1964c24c39912610a08f4 (diff) |
Adding generated files for the last commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.cpp.cvs | 6417 |
1 files changed, 3750 insertions, 2667 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs index 929940f08a..0a9cae83b2 100644 --- a/lib/AsmParser/llvmAsmParser.cpp.cvs +++ b/lib/AsmParser/llvmAsmParser.cpp.cvs @@ -1,118 +1,294 @@ +/* A Bison parser, made by GNU Bison 2.2. */ -/* A Bison parser, made from /Volumes/ProjectsDisk/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.2" + +/* 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 SINTVAL 259 -#define UINTVAL 260 -#define FPVAL 261 -#define VOID 262 -#define BOOL 263 -#define SBYTE 264 -#define UBYTE 265 -#define SHORT 266 -#define USHORT 267 -#define INT 268 -#define UINT 269 -#define LONG 270 -#define ULONG 271 -#define FLOAT 272 -#define DOUBLE 273 -#define TYPE 274 -#define LABEL 275 -#define VAR_ID 276 -#define LABELSTR 277 -#define STRINGCONSTANT 278 -#define IMPLEMENTATION 279 -#define ZEROINITIALIZER 280 -#define TRUETOK 281 -#define FALSETOK 282 -#define BEGINTOK 283 -#define ENDTOK 284 -#define DECLARE 285 -#define GLOBAL 286 -#define CONSTANT 287 -#define SECTION 288 -#define VOLATILE 289 -#define TO 290 -#define DOTDOTDOT 291 -#define NULL_TOK 292 -#define UNDEF 293 -#define CONST 294 -#define INTERNAL 295 -#define LINKONCE 296 -#define WEAK 297 -#define APPENDING 298 -#define OPAQUE 299 -#define NOT 300 -#define EXTERNAL 301 -#define TARGET 302 -#define TRIPLE 303 -#define ENDIAN 304 -#define POINTERSIZE 305 -#define LITTLE 306 -#define BIG 307 -#define ALIGN 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 CSRETCC_TOK 317 -#define FASTCC_TOK 318 -#define COLDCC_TOK 319 -#define RET 320 -#define BR 321 -#define SWITCH 322 -#define INVOKE 323 -#define UNWIND 324 -#define UNREACHABLE 325 -#define ADD 326 -#define SUB 327 -#define MUL 328 -#define DIV 329 -#define REM 330 -#define AND 331 -#define OR 332 -#define XOR 333 -#define SETLE 334 -#define SETGE 335 -#define SETLT 336 -#define SETGT 337 -#define SETEQ 338 -#define SETNE 339 -#define MALLOC 340 -#define ALLOCA 341 -#define FREE 342 -#define LOAD 343 -#define STORE 344 -#define GETELEMENTPTR 345 -#define PHI_TOK 346 -#define CAST 347 -#define SELECT 348 -#define SHL 349 -#define SHR 350 -#define VAARG 351 -#define EXTRACTELEMENT 352 -#define INSERTELEMENT 353 -#define SHUFFLEVECTOR 354 -#define VAARG_old 355 -#define VANEXT_old 356 - -#line 14 "/Volumes/ProjectsDisk/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, + SINTVAL = 260, + UINTVAL = 261, + FPVAL = 262, + VOID = 263, + BOOL = 264, + SBYTE = 265, + UBYTE = 266, + SHORT = 267, + USHORT = 268, + INT = 269, + UINT = 270, + LONG = 271, + ULONG = 272, + FLOAT = 273, + DOUBLE = 274, + TYPE = 275, + LABEL = 276, + VAR_ID = 277, + LABELSTR = 278, + STRINGCONSTANT = 279, + IMPLEMENTATION = 280, + ZEROINITIALIZER = 281, + TRUETOK = 282, + FALSETOK = 283, + BEGINTOK = 284, + ENDTOK = 285, + DECLARE = 286, + GLOBAL = 287, + CONSTANT = 288, + SECTION = 289, + VOLATILE = 290, + TO = 291, + DOTDOTDOT = 292, + NULL_TOK = 293, + UNDEF = 294, + CONST = 295, + INTERNAL = 296, + LINKONCE = 297, + WEAK = 298, + APPENDING = 299, + DLLIMPORT = 300, + DLLEXPORT = 301, + EXTERN_WEAK = 302, + OPAQUE = 303, + NOT = 304, + EXTERNAL = 305, + TARGET = 306, + TRIPLE = 307, + ENDIAN = 308, + POINTERSIZE = 309, + LITTLE = 310, + BIG = 311, + ALIGN = 312, + DEPLIBS = 313, + CALL = 314, + TAIL = 315, + ASM_TOK = 316, + MODULE = 317, + SIDEEFFECT = 318, + CC_TOK = 319, + CCC_TOK = 320, + CSRETCC_TOK = 321, + FASTCC_TOK = 322, + COLDCC_TOK = 323, + RET = 324, + BR = 325, + SWITCH = 326, + INVOKE = 327, + UNWIND = 328, + UNREACHABLE = 329, + ADD = 330, + SUB = 331, + MUL = 332, + DIV = 333, + REM = 334, + AND = 335, + OR = 336, + XOR = 337, + SETLE = 338, + SETGE = 339, + SETLT = 340, + SETGT = 341, + SETEQ = 342, + SETNE = 343, + MALLOC = 344, + ALLOCA = 345, + FREE = 346, + LOAD = 347, + STORE = 348, + GETELEMENTPTR = 349, + PHI_TOK = 350, + CAST = 351, + SELECT = 352, + SHL = 353, + SHR = 354, + VAARG = 355, + EXTRACTELEMENT = 356, + INSERTELEMENT = 357, + SHUFFLEVECTOR = 358, + VAARG_old = 359, + VANEXT_old = 360 + }; +#endif +/* Tokens. */ +#define ESINT64VAL 258 +#define EUINT64VAL 259 +#define SINTVAL 260 +#define UINTVAL 261 +#define FPVAL 262 +#define VOID 263 +#define BOOL 264 +#define SBYTE 265 +#define UBYTE 266 +#define SHORT 267 +#define USHORT 268 +#define INT 269 +#define UINT 270 +#define LONG 271 +#define ULONG 272 +#define FLOAT 273 +#define DOUBLE 274 +#define TYPE 275 +#define LABEL 276 +#define VAR_ID 277 +#define LABELSTR 278 +#define STRINGCONSTANT 279 +#define IMPLEMENTATION 280 +#define ZEROINITIALIZER 281 +#define TRUETOK 282 +#define FALSETOK 283 +#define BEGINTOK 284 +#define ENDTOK 285 +#define DECLARE 286 +#define GLOBAL 287 +#define CONSTANT 288 +#define SECTION 289 +#define VOLATILE 290 +#define TO 291 +#define DOTDOTDOT 292 +#define NULL_TOK 293 +#define UNDEF 294 +#define CONST 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 NOT 304 +#define EXTERNAL 305 +#define TARGET 306 +#define TRIPLE 307 +#define ENDIAN 308 +#define POINTERSIZE 309 +#define LITTLE 310 +#define BIG 311 +#define ALIGN 312 +#define DEPLIBS 313 +#define CALL 314 +#define TAIL 315 +#define ASM_TOK 316 +#define MODULE 317 +#define SIDEEFFECT 318 +#define CC_TOK 319 +#define CCC_TOK 320 +#define CSRETCC_TOK 321 +#define FASTCC_TOK 322 +#define COLDCC_TOK 323 +#define RET 324 +#define BR 325 +#define SWITCH 326 +#define INVOKE 327 +#define UNWIND 328 +#define UNREACHABLE 329 +#define ADD 330 +#define SUB 331 +#define MUL 332 +#define DIV 333 +#define REM 334 +#define AND 335 +#define OR 336 +#define XOR 337 +#define SETLE 338 +#define SETGE 339 +#define SETLT 340 +#define SETGT 341 +#define SETEQ 342 +#define SETNE 343 +#define MALLOC 344 +#define ALLOCA 345 +#define FREE 346 +#define LOAD 347 +#define STORE 348 +#define GETELEMENTPTR 349 +#define PHI_TOK 350 +#define CAST 351 +#define SELECT 352 +#define SHL 353 +#define SHR 354 +#define VAARG 355 +#define EXTRACTELEMENT 356 +#define INSERTELEMENT 357 +#define SHUFFLEVECTOR 358 +#define VAARG_old 359 +#define VANEXT_old 360 + + + + +/* 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" @@ -252,9 +428,10 @@ static struct PerModuleInfo { static struct PerFunctionInfo { Function *CurrentFunction; // Pointer to current function being created - std::map<const Type*, ValueList> Values; // Keep track of #'d definitions + std::map<const Type*, ValueList> Values; // Keep track of #'d definitions std::map<const Type*, ValueList> LateResolveValues; - bool isDeclare; // Is this function a forward declararation? + bool isDeclare; // Is this function a forward declararation? + GlobalValue::LinkageTypes Linkage; // Linkage for forward declaration. /// BBForwardRefs - When we see forward references to basic blocks, keep /// track of them here. @@ -265,6 +442,7 @@ static struct PerFunctionInfo { inline PerFunctionInfo() { CurrentFunction = 0; isDeclare = false; + Linkage = GlobalValue::ExternalLinkage; } inline void FunctionStart(Function *M) { @@ -286,6 +464,7 @@ static struct PerFunctionInfo { Values.clear(); // Clear out function local definitions CurrentFunction = 0; isDeclare = false; + Linkage = GlobalValue::ExternalLinkage; } } CurFun; // Info for the current function... @@ -1008,8 +1187,29 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) { } -#line 910 "/Volumes/ProjectsDisk/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 913 "/home/asl/proj/llvm/src/lib/AsmParser/llvmAsmParser.y" +{ llvm::Module *ModuleVal; llvm::Function *FunctionVal; std::pair<llvm::PATypeHolder*, char*> *ArgVal; @@ -1047,972 +1247,1667 @@ typedef union { llvm::Instruction::MemoryOps MemOpVal; llvm::Instruction::OtherOps OtherOpVal; llvm::Module::Endianness Endianness; -} YYSTYPE; -#include <stdio.h> +} +/* Line 193 of yacc.c. */ +#line 1253 "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 1266 "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 496 -#define YYFLAG -32768 -#define YYNTBASE 117 - -#define YYTRANSLATE(x) ((unsigned)(x) <= 356 ? yytranslate[x] : 188) - -static const char 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, 106, - 107, 115, 2, 104, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 111, - 103, 112, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 108, 105, 110, 2, 2, 2, 2, 2, 116, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 109, - 2, 2, 113, 2, 114, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 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 -}; +#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, 67, 68, 70, 72, 74, 76, 77, - 78, 80, 82, 84, 86, 89, 90, 93, 94, 98, - 101, 102, 104, 105, 109, 111, 114, 116, 118, 120, - 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, - 142, 144, 146, 148, 150, 152, 154, 156, 159, 164, - 170, 176, 180, 183, 186, 188, 192, 194, 198, 200, - 201, 206, 210, 214, 219, 224, 228, 231, 234, 237, - 240, 243, 246, 249, 252, 255, 258, 265, 271, 280, - 287, 294, 301, 308, 315, 324, 333, 337, 339, 341, - 343, 345, 348, 351, 356, 359, 361, 366, 369, 374, - 375, 383, 384, 392, 396, 401, 402, 404, 406, 408, - 412, 416, 420, 424, 428, 430, 431, 433, 435, 437, - 438, 441, 445, 447, 449, 453, 455, 456, 465, 467, - 469, 473, 475, 477, 480, 481, 485, 486, 488, 490, - 492, 494, 496, 498, 500, 502, 504, 508, 510, 516, - 518, 520, 522, 524, 527, 530, 533, 537, 540, 541, - 543, 546, 549, 553, 563, 573, 582, 596, 598, 600, - 607, 613, 616, 623, 631, 633, 637, 639, 640, 643, - 645, 651, 657, 663, 666, 671, 676, 683, 688, 693, - 698, 703, 710, 717, 720, 728, 730, 733, 734, 736, - 737, 741, 748, 752, 759, 762, 767, 774 -}; +#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[] = { 5, - 0, 6, 0, 3, 0, 4, 0, 72, 0, 73, - 0, 74, 0, 75, 0, 76, 0, 77, 0, 78, - 0, 79, 0, 80, 0, 81, 0, 82, 0, 83, - 0, 84, 0, 85, 0, 95, 0, 96, 0, 16, - 0, 14, 0, 12, 0, 10, 0, 17, 0, 15, - 0, 13, 0, 11, 0, 123, 0, 124, 0, 18, - 0, 19, 0, 157, 103, 0, 0, 41, 0, 42, - 0, 43, 0, 44, 0, 0, 0, 62, 0, 63, - 0, 64, 0, 65, 0, 61, 4, 0, 0, 54, - 4, 0, 0, 104, 54, 4, 0, 34, 24, 0, - 0, 132, 0, 0, 104, 135, 134, 0, 132, 0, - 54, 4, 0, 138, 0, 8, 0, 140, 0, 8, - 0, 140, 0, 9, 0, 10, 0, 11, 0, 12, - 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, - 0, 18, 0, 19, 0, 20, 0, 21, 0, 45, - 0, 139, 0, 171, 0, 105, 4, 0, 137, 106, - 142, 107, 0, 108, 4, 109, 140, 110, 0, 111, - 4, 109, 140, 112, 0, 113, 141, 114, 0, 113, - 114, 0, 140, 115, 0, 140, 0, 141, 104, 140, - 0, 141, 0, 141, 104, 37, 0, 37, 0, 0, - 138, 108, 145, 110, 0, 138, 108, 110, 0, 138, - 116, 24, 0, 138, 111, 145, 112, 0, 138, 113, - 145, 114, 0, 138, 113, 114, 0, 138, 38, 0, - 138, 39, 0, 138, 171, 0, 138, 144, 0, 138, - 26, 0, 123, 118, 0, 124, 4, 0, 9, 27, - 0, 9, 28, 0, 126, 7, 0, 93, 106, 143, - 36, 138, 107, 0, 91, 106, 143, 185, 107, 0, - 94, 106, 143, 104, 143, 104, 143, 107, 0, 119, - 106, 143, 104, 143, 107, 0, 120, 106, 143, 104, - 143, 107, 0, 121, 106, 143, 104, 143, 107, 0, - 122, 106, 143, 104, 143, 107, 0, 98, 106, 143, - 104, 143, 107, 0, 99, 106, 143, 104, 143, 104, - 143, 107, 0, 100, 106, 143, 104, 143, 104, 143, - 107, 0, 145, 104, 143, 0, 143, 0, 32, 0, - 33, 0, 148, 0, 148, 166, 0, 148, 167, 0, - 148, 59, 58, 152, 0, 148, 25, 0, 149, 0, - 149, 127, 20, 136, 0, 149, 167, 0, 149, 59, - 58, 152, 0, 0, 149, 127, 128, 146, 143, 150, - 134, 0, 0, 149, 127, 47, 146, 138, 151, 134, - 0, 149, 48, 154, 0, 149, 55, 103, 155, 0, - 0, 24, 0, 53, 0, 52, 0, 50, 103, 153, - 0, 51, 103, 4, 0, 49, 103, 24, 0, 108, - 156, 110, 0, 156, 104, 24, 0, 24, 0, 0, - 22, 0, 24, 0, 157, 0, 0, 138, 158, 0, - 160, 104, 159, 0, 159, 0, 160, 0, 160, 104, - 37, 0, 37, 0, 0, 129, 136, 157, 106, 161, - 107, 133, 130, 0, 29, 0, 113, 0, 128, 162, - 163, 0, 30, 0, 114, 0, 174, 165, 0, 0, - 31, 168, 162, 0, 0, 60, 0, 3, 0, 4, - 0, 7, 0, 27, 0, 28, 0, 38, 0, 39, - 0, 26, 0, 111, 145, 112, 0, 144, 0, 58, - 169, 24, 104, 24, 0, 117, 0, 157, 0, 171, - 0, 170, 0, 138, 172, 0, 174, 175, 0, 164, - 175, 0, 176, 127, 177, 0, 176, 179, 0, 0, - 23, 0, 66, 173, 0, 66, 8, 0, 67, 21, - 172, 0, 67, 9, 172, 104, 21, 172, 104, 21, - 172, 0, 68, 125, 172, 104, 21, 172, 108, 178, - 110, 0, 68, 125, 172, 104, 21, 172, 108, 110, - 0, 69, 129, 136, 172, 106, 182, 107, 36, 21, - 172, 70, 21, 172, 0, 70, 0, 71, 0, 178, - 125, 170, 104, 21, 172, 0, 125, 170, 104, 21, - 172, 0, 127, 184, 0, 138, 108, 172, 104, 172, - 110, 0, 180, 104, 108, 172, 104, 172, 110, 0, - 173, 0, 181, 104, 173, 0, 181, 0, 0, 57, - 56, 0, 56, 0, 119, 138, 172, 104, 172, 0, - 120, 138, 172, 104, 172, 0, 121, 138, 172, 104, - 172, 0, 46, 173, 0, 122, 173, 104, 173, 0, - 93, 173, 36, 138, 0, 94, 173, 104, 173, 104, - 173, 0, 97, 173, 104, 138, 0, 101, 173, 104, - 138, 0, 102, 173, 104, 138, 0, 98, 173, 104, - 173, 0, 99, 173, 104, 173, 104, 173, 0, 100, - 173, 104, 173, 104, 173, 0, 92, 180, 0, 183, - 129, 136, 172, 106, 182, 107, 0, 187, 0, 104, - 181, 0, 0, 35, 0, 0, 86, 138, 131, 0, - 86, 138, 104, 15, 172, 131, 0, 87, 138, 131, - 0, 87, 138, 104, 15, 172, 131, 0, 88, 173, - 0, 186, 89, 138, 172, 0, 186, 90, 173, 104, - 138, 172, 0, 91, 138, 172, 185, 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, - 1030, 1031, 1039, 1040, 1050, 1050, 1050, 1050, 1050, 1051, - 1051, 1051, 1052, 1052, 1052, 1052, 1052, 1052, 1054, 1054, - 1058, 1058, 1058, 1058, 1059, 1059, 1059, 1059, 1060, 1060, - 1061, 1061, 1064, 1068, 1073, 1073, 1074, 1075, 1076, 1079, - 1079, 1080, 1081, 1082, 1083, 1093, 1093, 1100, 1100, 1109, - 1117, 1117, 1123, 1123, 1125, 1130, 1144, 1144, 1145, 1145, - 1147, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1158, 1158, - 1158, 1158, 1158, 1158, 1159, 1163, 1167, 1174, 1182, 1195, - 1200, 1212, 1222, 1226, 1235, 1240, 1246, 1247, 1251, 1255, - 1266, 1292, 1306, 1336, 1362, 1383, 1396, 1406, 1411, 1471, - 1478, 1487, 1493, 1499, 1503, 1507, 1515, 1526, 1558, 1566, - 1588, 1599, 1605, 1613, 1619, 1625, 1634, 1638, 1646, 1646, - 1656, 1664, 1669, 1673, 1677, 1681, 1696, 1717, 1720, 1723, - 1726, 1730, 1734, 1738, 1741, 1744, 1748, 1761, 1762, 1764, - 1768, 1777, 1783, 1785, 1790, 1795, 1804, 1804, 1805, 1805, - 1807, 1814, 1820, 1827, 1831, 1837, 1842, 1847, 1934, 1934, - 1936, 1944, 1944, 1946, 1951, 1951, 1961, 1965, 1970, 1974, - 1978, 1982, 1986, 1990, 1994, 1998, 2002, 2027, 2031, 2045, - 2049, 2055, 2055, 2061, 2066, 2070, 2079, 2089, 2094, 2105, - 2117, 2121, 2125, 2129, 2133, 2148, 2153, 2207, 2211, 2218, - 2227, 2238, 2246, 2252, 2260, 2265, 2272, 2272, 2274, 2278, - 2285, 2298, 2310, 2321, 2334, 2342, 2350, 2358, 2364, 2384, - 2407, 2413, 2419, 2425, 2440, 2498, 2505, 2508, 2513, 2517, - 2524, 2529, 2534, 2539, 2544, 2552, 2563, 2577 -}; +/* 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","SINTVAL","UINTVAL","FPVAL","VOID","BOOL","SBYTE","UBYTE","SHORT", -"USHORT","INT","UINT","LONG","ULONG","FLOAT","DOUBLE","TYPE","LABEL","VAR_ID", -"LABELSTR","STRINGCONSTANT","IMPLEMENTATION","ZEROINITIALIZER","TRUETOK","FALSETOK", -"BEGINTOK","ENDTOK","DECLARE","GLOBAL","CONSTANT","SECTION","VOLATILE","TO", -"DOTDOTDOT","NULL_TOK","UNDEF","CONST","INTERNAL","LINKONCE","WEAK","APPENDING", -"OPAQUE","NOT","EXTERNAL","TARGET","TRIPLE","ENDIAN","POINTERSIZE","LITTLE", -"BIG","ALIGN","DEPLIBS","CALL","TAIL","ASM_TOK","MODULE","SIDEEFFECT","CC_TOK", -"CCC_TOK","CSRETCC_TOK","FASTCC_TOK","COLDCC_TOK","RET","BR","SWITCH","INVOKE", -"UNWIND","UNREACHABLE","ADD","SUB","MUL","DIV","REM","AND","OR","XOR","SETLE", -"SETGE","SETLT","SETGT","SETEQ","SETNE","MALLOC","ALLOCA","FREE","LOAD","STORE", -"GETELEMENTPTR","PHI_TOK","CAST","SELECT","SHL","SHR","VAARG","EXTRACTELEMENT", -"INSERTELEMENT","SHUFFLEVECTOR","VAARG_old","VANEXT_old","'='","','","'\\\\'", -"'('","')'","'['","'x'","']'","'<'","'>'","'{'","'}'","'*'","'c'","INTVAL","EINT64VAL", -"ArithmeticOps","LogicalOps","SetCondOps","ShiftOps","SIntType","UIntType","IntType", -"FPType","OptAssign","OptLinkage","OptCallingConv","OptAlign","OptCAlign","SectionString", -"OptSection","GlobalVarAttributes","GlobalVarAttribute","TypesV","UpRTypesV", -"Types","PrimType","UpRTypes","TypeListI","ArgTypeListI","ConstVal","ConstExpr", -"ConstVector","GlobalType","Module","FunctionList","ConstPool","@1","@2","AsmBlock", -"BigOrLittle","TargetDefinition","LibrariesDefinition","LibList","Name","OptName", -"ArgVal","ArgListH","ArgList","FunctionHeaderH","BEGIN","FunctionHeader","END", -"Function","FunctionProto","@3","OptSideEffect","ConstValueRef","SymbolicValueRef", -"ValueRef","ResolvedVal","BasicBlockList","BasicBlock","InstructionList","BBTerminatorInst", -"JumpTable","Inst","PHIList","ValueRefList","ValueRefListE","OptTailCall","InstVal", -"IndexList","OptVolatile","MemoryInst", NULL -}; #endif -static const short yyr1[] = { 0, - 117, 117, 118, 118, 119, 119, 119, 119, 119, 120, - 120, 120, 121, 121, 121, 121, 121, 121, 122, 122, - 123, 123, 123, 123, 124, 124, 124, 124, 125, 125, - 126, 126, 127, 127, 128, 128, 128, 128, 128, 129, - 129, 129, 129, 129, 129, 130, 130, 131, 131, 132, - 133, 133, 134, 134, 135, 135, 136, 136, 137, 137, - 138, 139, 139, 139, 139, 139, 139, 139, 139, 139, - 139, 139, 139, 139, 140, 140, 140, 140, 140, 140, - 140, 140, 140, 140, 141, 141, 142, 142, 142, 142, - 143, 143, 143, 143, 143, 143, 143, 143, 143, 143, - 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, - 144, 144, 144, 144, 144, 144, 145, 145, 146, 146, - 147, 148, 148, 148, 148, 148, 149, 149, 149, 150, - 149, 151, 149, 149, 149, 149, 152, 153, 153, 154, - 154, 154, 155, 156, 156, 156, 157, 157, 158, 158, - 159, 160, 160, 161, 161, 161, 161, 162, 163, 163, - 164, 165, 165, 166, 168, 167, 169, 169, 170, 170, - 170, 170, 170, 170, 170, 170, 170, 170, 170, 171, - 171, 172, 172, 173, 174, 174, 175, 176, 176, 176, - 177, 177, 177, 177, 177, 177, 177, 177, 177, 178, - 178, 179, 180, 180, 181, 181, 182, 182, 183, 183, - 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, - 184, 184, 184, 184, 184, 184, 185, 185, 186, 186, - 187, 187, 187, 187, 187, 187, 187, 187 +/* YYFINAL -- State number of the termination state. */ +#define YYFINAL 4 +/* YYLAST -- Last index in YYTABLE. */ +#define YYLAST 1326 + +/* YYNTOKENS -- Number of terminals. */ +#define YYNTOKENS 120 +/* YYNNTS -- Number of nonterminals. */ +#define YYNNTS 75 +/* YYNRULES -- Number of rules. */ +#define YYNRULES 249 +/* YYNRULES -- Number of states. */ +#define YYNSTATES 512 + +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ +#define YYUNDEFTOK 2 +#define YYMAXUTOK 360 + +#define YYTRANSLATE(YYX) \ + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) + +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ +static const yytype_uint8 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, + 109, 110, 118, 2, 107, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 114, 106, 115, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 111, 108, 113, 2, 2, 2, 2, 2, 119, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 112, 2, 2, 116, 2, 117, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + |