aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-11-08 05:58:47 +0000
committerChris Lattner <sabre@nondot.org>2006-11-08 05:58:47 +0000
commitf49c1766e567a541814e8a6aa57b0b02acfa82af (patch)
treee63bb6c63083a8d360eb0e6da4eb74f201278fc2 /lib/AsmParser/llvmAsmParser.cpp.cvs
parent39033699d290a1fd17bde590d169a0ee15218264 (diff)
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs6420
1 files changed, 2790 insertions, 3630 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index f8dba72ec0..21a722f05f 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -1,298 +1,128 @@
-/* A Bison parser, made by GNU Bison 2.1. */
-/* Skeleton parser for Yacc-like parsing with Bison,
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+/* A Bison parser, made from /Users/sabre/cvs/llvm/lib/AsmParser/llvmAsmParser.y
+ by GNU Bison version 1.28 */
- 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. */
+#define YYBISON 1 /* Identify Bison output. */
-/* As a special exception, when this file is copied by Bison into a
- Bison output file, you may use that output file without restriction.
- This special exception was added by the Free Software Foundation
- in version 1.24 of Bison. */
-
-/* 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.1"
-
-/* 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,
- 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,
- X86_STDCALLCC_TOK = 324,
- X86_FASTCALLCC_TOK = 325,
- DATALAYOUT = 326,
- RET = 327,
- BR = 328,
- SWITCH = 329,
- INVOKE = 330,
- UNWIND = 331,
- UNREACHABLE = 332,
- ADD = 333,
- SUB = 334,
- MUL = 335,
- UDIV = 336,
- SDIV = 337,
- FDIV = 338,
- UREM = 339,
- SREM = 340,
- FREM = 341,
- AND = 342,
- OR = 343,
- XOR = 344,
- SETLE = 345,
- SETGE = 346,
- SETLT = 347,
- SETGT = 348,
- SETEQ = 349,
- SETNE = 350,
- MALLOC = 351,
- ALLOCA = 352,
- FREE = 353,
- LOAD = 354,
- STORE = 355,
- GETELEMENTPTR = 356,
- PHI_TOK = 357,
- CAST = 358,
- SELECT = 359,
- SHL = 360,
- SHR = 361,
- VAARG = 362,
- EXTRACTELEMENT = 363,
- INSERTELEMENT = 364,
- SHUFFLEVECTOR = 365,
- VAARG_old = 366,
- VANEXT_old = 367
- };
-#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 X86_STDCALLCC_TOK 324
-#define X86_FASTCALLCC_TOK 325
-#define DATALAYOUT 326
-#define RET 327
-#define BR 328
-#define SWITCH 329
-#define INVOKE 330
-#define UNWIND 331
-#define UNREACHABLE 332
-#define ADD 333
-#define SUB 334
-#define MUL 335
-#define UDIV 336
-#define SDIV 337
-#define FDIV 338
-#define UREM 339
-#define SREM 340
-#define FREM 341
-#define AND 342
-#define OR 343
-#define XOR 344
-#define SETLE 345
-#define SETGE 346
-#define SETLT 347
-#define SETGT 348
-#define SETEQ 349
-#define SETNE 350
-#define MALLOC 351
-#define ALLOCA 352
-#define FREE 353
-#define LOAD 354
-#define STORE 355
-#define GETELEMENTPTR 356
-#define PHI_TOK 357
-#define CAST 358
-#define SELECT 359
-#define SHL 360
-#define SHR 361
-#define VAARG 362
-#define EXTRACTELEMENT 363
-#define INSERTELEMENT 364
-#define SHUFFLEVECTOR 365
-#define VAARG_old 366
-#define VANEXT_old 367
-
-
-
-
-/* Copy the first part of user declarations. */
-#line 14 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y"
+#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 DLLIMPORT 299
+#define DLLEXPORT 300
+#define EXTERN_WEAK 301
+#define OPAQUE 302
+#define NOT 303
+#define EXTERNAL 304
+#define TARGET 305
+#define TRIPLE 306
+#define ENDIAN 307
+#define POINTERSIZE 308
+#define LITTLE 309
+#define BIG 310
+#define ALIGN 311
+#define DEPLIBS 312
+#define CALL 313
+#define TAIL 314
+#define ASM_TOK 315
+#define MODULE 316
+#define SIDEEFFECT 317
+#define CC_TOK 318
+#define CCC_TOK 319
+#define CSRETCC_TOK 320
+#define FASTCC_TOK 321
+#define COLDCC_TOK 322
+#define X86_STDCALLCC_TOK 323
+#define X86_FASTCALLCC_TOK 324
+#define DATALAYOUT 325
+#define RET 326
+#define BR 327
+#define SWITCH 328
+#define INVOKE 329
+#define UNWIND 330
+#define UNREACHABLE 331
+#define ADD 332
+#define SUB 333
+#define MUL 334
+#define UDIV 335
+#define SDIV 336
+#define FDIV 337
+#define UREM 338
+#define SREM 339
+#define FREM 340
+#define AND 341
+#define OR 342
+#define XOR 343
+#define SETLE 344
+#define SETGE 345
+#define SETLT 346
+#define SETGT 347
+#define SETEQ 348
+#define SETNE 349
+#define MALLOC 350
+#define ALLOCA 351
+#define FREE 352
+#define LOAD 353
+#define STORE 354
+#define GETELEMENTPTR 355
+#define PHI_TOK 356
+#define CAST 357
+#define SELECT 358
+#define SHL 359
+#define SHR 360
+#define VAARG 361
+#define EXTRACTELEMENT 362
+#define INSERTELEMENT 363
+#define SHUFFLEVECTOR 364
+#define VAARG_old 365
+#define VANEXT_old 366
+
+#line 14 "/Users/sabre/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
#include "ParserInternals.h"
#include "llvm/CallingConv.h"
@@ -1294,28 +1124,8 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
}
-
-/* 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)
-#line 1016 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y"
-typedef union YYSTYPE {
+#line 1016 "/Users/sabre/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
+typedef union {
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
std::pair<llvm::PATypeHolder*, char*> *ArgVal;
@@ -1354,1466 +1164,1011 @@ typedef union YYSTYPE {
OtherOpInfo OtherOpVal;
llvm::Module::Endianness Endianness;
} YYSTYPE;
-/* Line 196 of yacc.c. */
-#line 1359 "llvmAsmParser.tab.c"
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
-# define YYSTYPE_IS_TRIVIAL 1
-#endif
-
-
+#include <stdio.h>
-/* Copy the second part of user declarations. */
-
-
-/* Line 219 of yacc.c. */
-#line 1371 "llvmAsmParser.tab.c"
-
-#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
-# define YYSIZE_T __SIZE_TYPE__
-#endif
-#if ! defined (YYSIZE_T) && defined (size_t)
-# define YYSIZE_T size_t
+#ifndef __cplusplus
+#ifndef __STDC__
+#define const
#endif
-#if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))
-# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
-# define YYSIZE_T size_t
-#endif
-#if ! defined (YYSIZE_T)
-# define YYSIZE_T unsigned int
-#endif
-
-#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
-#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
-# else
-# define YYSTACK_ALLOC alloca
-# if defined (__STDC__) || defined (__cplusplus)
-# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# define YYINCLUDED_STDLIB_H
-# endif
-# endif
-# endif
-# endif
-
-# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (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 2005 */
-# endif
-# else
-# define YYSTACK_ALLOC YYMALLOC
-# define YYSTACK_FREE YYFREE
-# ifndef YYSTACK_ALLOC_MAXIMUM
-# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
-# endif
-# ifdef __cplusplus
-extern "C" {
-# endif
-# ifndef YYMALLOC
-# define YYMALLOC malloc
-# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
- && (defined (__STDC__) || defined (__cplusplus)))
-void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifndef YYFREE
-# define YYFREE free
-# if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \
- && (defined (__STDC__) || defined (__cplusplus)))
-void free (void *); /* INFRINGES ON USER NAME SPACE */
-# endif
-# endif
-# ifdef __cplusplus
-}
-# endif
-# endif
-#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
-#if (! defined (yyoverflow) \
- && (! defined (__cplusplus) \
- || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
+#define YYFINAL 521
+#define YYFLAG -32768
+#define YYNTBASE 127
+
+#define YYTRANSLATE(x) ((unsigned)(x) <= 366 ? yytranslate[x] : 201)
+
+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, 116,
+ 117, 125, 2, 114, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 121,
+ 113, 122, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 118, 115, 120, 2, 2, 2, 2, 2, 126, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 119,
+ 2, 2, 123, 2, 124, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 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
+};
-/* A type that is properly aligned for any stack member. */
-union yyalloc
-{
- short int yyss;
- YYSTYPE yyvs;
- };
+#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, 75, 76, 78,
+ 80, 82, 84, 86, 88, 90, 91, 92, 94, 96,
+ 98, 100, 102, 104, 107, 108, 111, 112, 116, 119,
+ 120, 122, 123, 127, 129, 132, 134, 136, 138, 140,
+ 142, 144, 146, 148, 150, 152, 154, 156, 158, 160,
+ 162, 164, 166, 168, 170, 172, 174, 177, 182, 188,
+ 194, 198, 201, 204, 206, 210, 212, 216, 218, 219,
+ 224, 228, 232, 237, 242, 246, 249, 252, 255, 258,
+ 261, 264, 267, 270, 273, 276, 283, 289, 298, 305,
+ 312, 319, 326, 333, 342, 351, 355, 357, 359, 361,
+ 363, 366, 369, 374, 377, 379, 384, 387, 392, 393,
+ 401, 402, 410, 411, 419, 420, 428, 432, 437, 438,
+ 440, 442, 444, 448, 452, 456, 460, 464, 468, 470,
+ 471, 473, 475, 477, 478, 481, 485, 487, 489, 493,
+ 495, 496, 505, 507, 509, 513, 515, 517, 520, 521,
+ 523, 525, 526, 531, 532, 534, 536, 538, 540, 542,
+ 544, 546, 548, 550, 554, 556, 562, 564, 566, 568,
+ 570, 573, 576, 579, 583, 586, 587, 589, 592, 595,
+ 599, 609, 619, 628, 642, 644, 646, 653, 659, 662,
+ 669, 677, 679, 683, 685, 686, 689, 691, 697, 703,
+ 709, 712, 717, 722, 729, 734, 739, 744, 749, 756,
+ 763, 766, 774, 776, 779, 780, 782, 783, 787, 794,
+ 798, 805, 808, 813, 820
+};
-/* 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 (short int) + 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 (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 (0)
+static const short yyrhs[] = { 5,
+ 0, 6, 0, 3, 0, 4, 0, 78, 0, 79,
+ 0, 80, 0, 81, 0, 82, 0, 83, 0, 84,
+ 0, 85, 0, 86, 0, 87, 0, 88, 0, 89,
+ 0, 90, 0, 91, 0, 92, 0, 93, 0, 94,
+ 0, 95, 0, 105, 0, 106, 0, 16, 0, 14,
+ 0, 12, 0, 10, 0, 17, 0, 15, 0, 13,
+ 0, 11, 0, 133, 0, 134, 0, 18, 0, 19,
+ 0, 169, 113, 0, 0, 41, 0, 42, 0, 43,
+ 0, 44, 0, 45, 0, 46, 0, 47, 0, 0,
+ 0, 65, 0, 66, 0, 67, 0, 68, 0, 69,
+ 0, 70, 0, 64, 4, 0, 0, 57, 4, 0,
+ 0, 114, 57, 4, 0, 34, 24, 0, 0, 142,
+ 0, 0, 114, 145, 144, 0, 142, 0, 57, 4,
+ 0, 148, 0, 8, 0, 150, 0, 8, 0, 150,
+ 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, 48, 0, 149,
+ 0, 184, 0, 115, 4, 0, 147, 116, 152, 117,
+ 0, 118, 4, 119, 150, 120, 0, 121, 4, 119,
+ 150, 122, 0, 123, 151, 124, 0, 123, 124, 0,
+ 150, 125, 0, 150, 0, 151, 114, 150, 0, 151,
+ 0, 151, 114, 37, 0, 37, 0, 0, 148, 118,
+ 155, 120, 0, 148, 118, 120, 0, 148, 126, 24,
+ 0, 148, 121, 155, 122, 0, 148, 123, 155, 124,
+ 0, 148, 123, 124, 0, 148, 38, 0, 148, 39,
+ 0, 148, 184, 0, 148, 154, 0, 148, 26, 0,
+ 133, 128, 0, 134, 4, 0, 9, 27, 0, 9,
+ 28, 0, 136, 7, 0, 103, 116, 153, 36, 148,
+ 117, 0, 101, 116, 153, 198, 117, 0, 104, 116,
+ 153, 114, 153, 114, 153, 117, 0, 129, 116, 153,
+ 114, 153, 117, 0, 130, 116, 153, 114, 153, 117,
+ 0, 131, 116, 153, 114, 153, 117, 0, 132, 116,
+ 153, 114, 153, 117, 0, 108, 116, 153, 114, 153,
+ 117, 0, 109, 116, 153, 114, 153, 114, 153, 117,
+ 0, 110, 116, 153, 114, 153, 114, 153, 117, 0,
+ 155, 114, 153, 0, 153, 0, 32, 0, 33, 0,
+ 158, 0, 158, 178, 0, 158, 180, 0, 158, 62,
+ 61, 164, 0, 158, 25, 0, 159, 0, 159, 137,
+ 20, 146, 0, 159, 180, 0, 159, 62, 61, 164,
+ 0, 0, 159, 137, 138, 156, 153, 160, 144, 0,
+ 0, 159, 137, 50, 156, 148, 161, 144, 0, 0,
+ 159, 137, 45, 156, 148, 162, 144, 0, 0, 159,
+ 137, 47, 156, 148, 163, 144, 0, 159, 51, 166,
+ 0, 159, 58, 113, 167, 0, 0, 24, 0, 56,
+ 0, 55, 0, 53, 113, 165, 0, 54, 113, 4,
+ 0, 52, 113, 24, 0, 71, 113, 24, 0, 118,
+ 168, 120, 0, 168, 114, 24, 0, 24, 0, 0,
+ 22, 0, 24, 0, 169, 0, 0, 148, 170, 0,
+ 172, 114, 171, 0, 171, 0, 172, 0, 172, 114,
+ 37, 0, 37, 0, 0, 139, 146, 169, 116, 173,
+ 117, 143, 140, 0, 29, 0, 123, 0, 138, 174,
+ 175, 0, 30, 0, 124, 0, 187, 177, 0, 0,
+ 45, 0, 47, 0, 0, 31, 181, 179, 174, 0,
+ 0, 63, 0, 3, 0, 4, 0, 7, 0, 27,
+ 0, 28, 0, 38, 0, 39, 0, 26, 0, 121,
+ 155, 122, 0, 154, 0, 61, 182, 24, 114, 24,
+ 0, 127, 0, 169, 0, 184, 0, 183, 0, 148,
+ 185, 0, 187, 188, 0, 176, 188, 0, 189, 137,
+ 190, 0, 189, 192, 0, 0, 23, 0, 72, 186,
+ 0, 72, 8, 0, 73, 21, 185, 0, 73, 9,
+ 185, 114, 21, 185, 114, 21, 185, 0, 74, 135,
+ 185, 114, 21, 185, 118, 191, 120, 0, 74, 135,
+ 185, 114, 21, 185, 118, 120, 0, 75, 139, 146,
+ 185, 116, 195, 117, 36, 21, 185, 76, 21, 185,
+ 0, 76, 0, 77, 0, 191, 135, 183, 114, 21,
+ 185, 0, 135, 183, 114, 21, 185, 0, 137, 197,
+ 0, 148, 118, 185, 114, 185, 120, 0, 193, 114,
+ 118, 185, 114, 185, 120, 0, 186, 0, 194, 114,
+ 186, 0, 194, 0, 0, 60, 59, 0, 59, 0,
+ 129, 148, 185, 114, 185, 0, 130, 148, 185, 114,
+ 185, 0, 131, 148, 185, 114, 185, 0, 49, 186,
+ 0, 132, 186, 114, 186, 0, 103, 186, 36, 148,
+ 0, 104, 186, 114, 186, 114, 186, 0, 107, 186,
+ 114, 148, 0, 111, 186, 114, 148, 0, 112, 186,
+ 114, 148, 0, 108, 186, 114, 186, 0, 109, 186,
+ 114, 186, 114, 186, 0, 110, 186, 114, 186, 114,
+ 186, 0, 102, 193, 0, 196, 139, 146, 185, 116,
+ 195, 117, 0, 200, 0, 114, 194, 0, 0, 35,
+ 0, 0, 96, 148, 141, 0, 96, 148, 114, 15,
+ 185, 141, 0, 97, 148, 141, 0, 97, 148, 114,
+ 15, 185, 141, 0, 98, 186, 0, 199, 99, 148,
+ 185, 0, 199, 100, 186, 114, 148, 185, 0, 101,
+ 148, 185, 198, 0
+};
#endif
-#if defined (__STDC__) || defined (__cplusplus)
- typedef signed char yysigned_char;
-#else
- typedef short int yysigned_char;
+#if YYDEBUG != 0
+static const short yyrline[] = { 0,
+ 1139, 1140, 1148, 1149, 1159, 1159, 1159, 1159, 1159, 1159,
+ 1159, 1159, 1159, 1160, 1160, 1160, 1161, 1161, 1161, 1161,
+ 1161, 1161, 1163, 1163, 1167, 1167, 1167, 1167, 1168, 1168,
+ 1168, 1168, 1169, 1169, 1170, 1170, 1173, 1177, 1182, 1182,
+ 1183, 1184, 1185, 1186, 1187, 1188, 1191, 1191, 1192, 1193,
+ 1194, 1195, 1196, 1197, 1207, 1207, 1214, 1214, 1223, 1231,
+ 1231, 1237, 1237, 1239, 1244, 1258, 1258, 1259, 1259, 1261,
+ 1271, 1271, 1271, 1271, 1271, 1271, 1271, 1272, 1272, 1272,
+ 1272, 1272, 1272, 1273, 1277, 1281, 1289, 1297, 1310, 1315,
+ 1327, 1337, 1341, 1352, 1357, 1363, 1364, 1368, 1372, 1383,
+ 1409, 1423, 1453, 1479, 1500, 1513, 1523, 1528, 1589, 1596,
+ 1605, 1611, 1617, 1621, 1625, 1633, 1644, 1676, 1684, 1711,
+ 1722, 1728, 1736, 1742, 1748, 1757, 1761, 1769, 1769, 1779,
+ 1787, 1792, 1796, 1800, 1804, 1819, 1841, 1844, 1847, 1852,
+ 1855, 1859, 1863, 1867, 1871, 1876, 1880, 1883, 1886, 1890,
+ 1903, 1904, 1906, 1910, 1919, 1923, 1928, 1930, 1935, 1940,
+ 1949, 1949, 1950, 1950, 1952, 1959, 1965, 1972, 1976, 1982,
+ 1987, 1992, 2087, 2087, 2089, 2097, 2097, 2099, 2104, 2104,
+ 2105, 2108, 2108, 2118, 2122, 2127, 2131, 2135, 2139, 2143,
+ 2147, 2151, 2155, 2159, 2184, 2188, 2202, 2206, 2212, 2212,
+ 2218, 2223, 2227, 2236, 2247, 2252, 2264, 2277, 2281, 2285,
+ 2290, 2299, 2318, 2327, 2383, 2387, 2394, 2405, 2418, 2427,
+ 2436, 2446, 2450, 2457, 2457, 2459, 2463, 2468, 2490, 2505,
+ 2519, 2532, 2540, 2548, 2556, 2562, 2582, 2605, 2611, 2617,
+ 2623, 2638, 2697, 2704, 2707, 2712, 2716, 2723, 2728, 2734,
+ 2739, 2745, 2753, 2765, 2780
+};
#endif
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 4
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1357
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 127
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 75
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 256
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 521
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 367
-
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
-static const unsigned 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,
- 116, 117, 125, 2, 114, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 121, 113, 122, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 118, 115, 120, 2, 2, 2, 2, 2, 126,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 119, 2, 2, 123, 2, 124, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 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, 2, 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
-};
-#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const unsigned short int yyprhs[] =
-{
- 0, 0, 3, 5, 7, 9, 11, 13, 15, 17,
- 19, 21, 23, 25, 27, 29, 31, 33, 35, 37,
- 39, 41, 43, 45, 47, 49, 51, 53, 55, 57,
- 59, 61, 63, 65, 67, 69, 71, 73, 75, 78,
- 79, 81, 83, 85, 87, 89, 91, 93, 94, 95,
- 97, 99, 101, 103, 105, 107, 110, 111, 114, 115,
- 119, 122, 123, 125, 126, 130, 132, 135, 137, 139,
- 141, 143, 145, 147, 149, 151, 153, 155, 157, 159,
- 161, 163, 165, 167, 169, 171, 173, 175, 177, 180,
- 185, 191, 197, 201, 204, 207, 209, 213, 215, 219,
- 221, 222, 227, 231, 235, 240, 245, 249, 252, 255,
- 258, 261, 264, 267, 270, 273, 276, 279, 286, 292,
- 301, 308, 315, 322, 329, 336, 345, 354, 358, 360,
- 362, 364, 366, 369, 372, 377, 380, 382, 387, 390,
- 395, 396, 404, 405, 413, 414, 422, 423, 431, 435,
- 440, 441, 443, 445, 447, 451, 455, 459, 463, 467,
- 471, 473, 474, 476, 478, 480, 481, 484, 488, 490,
- 492, 496, 498, 499, 508, 510, 512, 516, 518, 520,
- 523, 524, 526, 528, 529, 534, 535, 537, 539, 541,
- 543, 545, 547, 549, 551, 553, 557, 559, 565, 567,
- 569, 571, 573, 576, 579, 582, 586, 589, 590, 592,
- 595, 598, 602, 612, 622, 631, 645, 647, 649, 656,
- 662, 665, 672, 680, 682, 686, 688, 689, 692, 694,
- 700, 706, 712, 715, 720, 725, 732, 737, 742, 747,
- 752, 759, 766, 769, 777, 779, 782, 783, 785, 786,
- 790, 797, 801, 808, 811, 816, 823
+#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",
+"DLLIMPORT","DLLEXPORT","EXTERN_WEAK","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",
+"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","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","@3","@4","AsmBlock","BigOrLittle","TargetDefinition","LibrariesDefinition",
+"LibList","Name","OptName","ArgVal","ArgListH","ArgList","FunctionHeaderH","BEGIN",
+"FunctionHeader","END","Function","FnDeclareLinkage","FunctionProto","@5","OptSideEffect",
+"ConstValueRef","SymbolicValueRef","ValueRef","ResolvedVal","BasicBlockList",
+"BasicBlock","InstructionList","BBTerminatorInst","JumpTable","Inst","PHIList",
+"ValueRefList","ValueRefListE","OptTailCall","InstVal","IndexList","OptVolatile",
+"MemoryInst", NULL
};
+#endif
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const short int yyrhs[] =
-{
- 158, 0, -1, 5, -1, 6, -1, 3, -1, 4,
- -1, 78, -1, 79, -1, 80, -1, 81, -1, 82,
- -1, 83, -1, 84, -1, 85, -1, 86, -1, 87,
- -1, 88, -1, 89, -1, 90, -1, 91, -1, 92,
- -1, 93, -1, 94, -1, 95, -1, 105, -1, 106,
- -1, 16, -1, 14, -1, 12, -1, 10, -1, 17,
- -1, 15, -1, 13, -1, 11, -1, 134, -1, 135,
- -1, 18, -1, 19, -1, 170, 113, -1, -1, 41,
- -1, 42, -1, 43, -1, 44, -1, 45, -1, 46,
- -1, 47, -1, -1, -1, 65, -1, 66, -1, 67,
- -1, 68, -1, 69, -1, 70, -1, 64, 4, -1,
- -1, 57, 4, -1, -1, 114, 57, 4, -1, 34,
- 24, -1, -1, 143, -1, -1, 114, 146, 145, -1,
- 143, -1, 57, 4, -1, 149, -1, 8, -1, 151,
- -1, 8, -1, 151, -1, 9, -1, 10, -1, 11,
- -1, 12, -1, 13, -1, 14, -1, 15, -1, 16,
- -1, 17, -1, 18, -1, 19, -1, 20, -1,