aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-18 17:34:45 +0000
committerChris Lattner <sabre@nondot.org>2006-08-18 17:34:45 +0000
commit224f84f20b1dd85f58620c044b7d24a07ca2a054 (patch)
tree56c62478c12c43ff6eb78c2421ac42f022c07299 /lib/AsmParser/llvmAsmParser.cpp.cvs
parent703e92fa1b17b64c464abf9c63286a973a226274 (diff)
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs6111
1 files changed, 2649 insertions, 3462 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index d54f66a1da..929940f08a 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -1,278 +1,118 @@
-/* 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 /Volumes/ProjectsDisk/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,
- OPAQUE = 300,
- NOT = 301,
- EXTERNAL = 302,
- TARGET = 303,
- TRIPLE = 304,
- ENDIAN = 305,
- POINTERSIZE = 306,
- LITTLE = 307,
- BIG = 308,
- ALIGN = 309,
- DEPLIBS = 310,
- CALL = 311,
- TAIL = 312,
- ASM_TOK = 313,
- MODULE = 314,
- SIDEEFFECT = 315,
- CC_TOK = 316,
- CCC_TOK = 317,
- CSRETCC_TOK = 318,
- FASTCC_TOK = 319,
- COLDCC_TOK = 320,
- RET = 321,
- BR = 322,
- SWITCH = 323,
- INVOKE = 324,
- UNWIND = 325,
- UNREACHABLE = 326,
- ADD = 327,
- SUB = 328,
- MUL = 329,
- DIV = 330,
- REM = 331,
- AND = 332,
- OR = 333,
- XOR = 334,
- SETLE = 335,
- SETGE = 336,
- SETLT = 337,
- SETGT = 338,
- SETEQ = 339,
- SETNE = 340,
- MALLOC = 341,
- ALLOCA = 342,
- FREE = 343,
- LOAD = 344,
- STORE = 345,
- GETELEMENTPTR = 346,
- PHI_TOK = 347,
- CAST = 348,
- SELECT = 349,
- SHL = 350,
- SHR = 351,
- VAARG = 352,
- EXTRACTELEMENT = 353,
- INSERTELEMENT = 354,
- SHUFFLEVECTOR = 355,
- VAARG_old = 356,
- VANEXT_old = 357
- };
-#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 OPAQUE 300
-#define NOT 301
-#define EXTERNAL 302
-#define TARGET 303
-#define TRIPLE 304
-#define ENDIAN 305
-#define POINTERSIZE 306
-#define LITTLE 307
-#define BIG 308
-#define ALIGN 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 CSRETCC_TOK 318
-#define FASTCC_TOK 319
-#define COLDCC_TOK 320
-#define RET 321
-#define BR 322
-#define SWITCH 323
-#define INVOKE 324
-#define UNWIND 325
-#define UNREACHABLE 326
-#define ADD 327
-#define SUB 328
-#define MUL 329
-#define DIV 330
-#define REM 331
-#define AND 332
-#define OR 333
-#define XOR 334
-#define SETLE 335
-#define SETGE 336
-#define SETLT 337
-#define SETGT 338
-#define SETEQ 339
-#define SETNE 340
-#define MALLOC 341
-#define ALLOCA 342
-#define FREE 343
-#define LOAD 344
-#define STORE 345
-#define GETELEMENTPTR 346
-#define PHI_TOK 347
-#define CAST 348
-#define SELECT 349
-#define SHL 350
-#define SHR 351
-#define VAARG 352
-#define EXTRACTELEMENT 353
-#define INSERTELEMENT 354
-#define SHUFFLEVECTOR 355
-#define VAARG_old 356
-#define VANEXT_old 357
-
-
-
-
-/* Copy the first part of user declarations. */
-#line 14 "/proj/llvm/llvm/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 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"
#include "ParserInternals.h"
#include "llvm/CallingConv.h"
@@ -976,7 +816,10 @@ static std::vector<UpRefRecord> UpRefs;
/// thus we can complete the cycle.
///
static PATypeHolder HandleUpRefs(const Type *ty) {
- if (!ty->isAbstract()) return ty;
+ // If Ty isn't abstract, or if there are no up-references in it, then there is
+ // nothing to resolve here.
+ if (!ty->isAbstract() || UpRefs.empty()) return ty;
+
PATypeHolder Ty(ty);
UR_OUT("Type '" << Ty->getDescription() <<
"' newly formed. Resolving upreferences.\n" <<
@@ -1165,28 +1008,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 907 "/proj/llvm/llvm/lib/AsmParser/llvmAsmParser.y"
-typedef union YYSTYPE {
+#line 910 "/Volumes/ProjectsDisk/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
+typedef union {
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
std::pair<llvm::PATypeHolder*, char*> *ArgVal;
@@ -1225,1424 +1048,971 @@ typedef union YYSTYPE {
llvm::Instruction::OtherOps OtherOpVal;
llvm::Module::Endianness Endianness;
} YYSTYPE;
-/* Line 196 of yacc.c. */
-#line 1230 "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 1242 "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
-#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
+#ifndef __cplusplus
+#ifndef __STDC__
+#define const
#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 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
+};
-/* 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, 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
+};
-/* 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, 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
+};
#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,
+ 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
+};
#endif
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 4
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1278
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 117
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 72
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 239
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 496
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 357
-
-#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,
- 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, 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
-};
-#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, 70, 71, 73, 75, 77,
- 79, 80, 81, 83, 85, 87, 89, 92, 93, 96,
- 97, 101, 104, 105, 107, 108, 112, 114, 117, 119,
- 121, 123, 125, 127, 129, 131, 133, 135, 137, 139,
- 141, 143, 145, 147, 149, 151, 153, 155, 157, 159,
- 162, 167, 173, 179, 183, 186, 189, 191, 195, 197,
- 201, 203, 204, 209, 213, 217, 222, 227, 231, 234,
- 237, 240, 243, 246, 249, 252, 255, 258, 261, 268,
- 274, 283, 290, 297, 304, 311, 318, 327, 336, 340,
- 342, 344, 346, 348, 351, 354, 359, 362, 364, 369,
- 372, 377, 378, 386, 387, 395, 399, 404, 405, 407,
- 409, 411, 415, 419, 423, 427, 431, 433, 434, 436,
- 438, 440, 441, 444, 448, 450, 452, 456, 458, 459,
- 468, 470, 472, 476, 478, 480, 483, 484, 488, 489,
- 491, 493, 495, 497, 499, 501, 503, 505, 507, 511,
- 513, 519, 521, 523, 525, 527, 530, 533, 536, 540,
- 543, 544, 546, 549, 552, 556, 566, 576, 585, 599,
- 601, 603, 610, 616, 619, 626, 634, 636, 640, 642,
- 643, 646, 648, 654, 660, 666, 669, 674, 679, 686,
- 691, 696, 701, 706, 713, 720, 723, 731, 733, 736,
- 737, 739, 740, 744, 751, 755, 762, 765, 770, 777
+#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
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const short int yyrhs[] =
-{
- 148, 0, -1, 5, -1, 6, -1, 3, -1, 4,
- -1, 72, -1, 73, -1, 74, -1, 75, -1, 76,
- -1, 77, -1, 78, -1, 79, -1, 80, -1, 81,
- -1, 82, -1, 83, -1, 84, -1, 85, -1, 95,
- -1, 96, -1, 16, -1, 14, -1, 12, -1, 10,
- -1, 17, -1, 15, -1, 13, -1, 11, -1, 124,
- -1, 125, -1, 18, -1, 19, -1, 158, 103, -1,
- -1, 41, -1, 42, -1, 43, -1, 44, -1, -1,
- -1, 62, -1, 63, -1, 64, -1, 65, -1, 61,
- 4, -1, -1, 54, 4, -1, -1, 104, 54, 4,
- -1, 34, 24, -1, -1, 133, -1, -1, 104, 136,
- 135, -1, 133, -1, 54, 4, -1, 139, -1, 8,
- -1, 141, -1, 8, -1, 141, -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, 21, -1, 45, -1, 140, -1, 172, -1, 105,
- 4, -1, 138, 106, 143, 107, -1, 108, 4, 109,
- 141, 110, -1, 111, 4, 109, 141, 112, -1, 113,
- 142, 114, -1, 113, 114, -1, 141, 115, -1, 141,
- -1, 142, 104, 141, -1, 142, -1, 142, 104, 37,
- -1, 37, -1, -1, 139, 108, 146, 110, -1, 139,
- 108, 110, -1, 139, 116, 24, -1, 139, 111, 146,
- 112, -1, 139, 113, 146, 114, -1, 139, 113, 114,
- -1, 139, 38, -1, 139, 39, -1, 139, 172, -1,
- 139, 145, -1, 139, 26, -1, 124, 119, -1, 125,
- 4, -1, 9, 27, -1, 9, 28, -1, 127, 7,
- -1, 93, 106, 144, 36, 139, 107, -1, 91, 106,
- 144, 186, 107, -1, 94, 106, 144, 104, 144, 104,
- 144, 107, -1, 120, 106, 144, 104, 144, 107, -1,
- 121, 106, 144, 104, 144, 107, -1, 122, 106, 144,
- 104, 144, 107, -1, 123, 106, 144, 104, 144, 107,
- -1, 98, 106, 144, 104, 144, 107, -1, 99, 106,
- 144, 104, 144, 104, 144, 107, -1, 100, 106, 144,
- 104, 144, 104, 144, 107, -1, 146, 104, 144, -1,
- 144, -1, 32, -1, 33, -1, 149, -1, 149, 167,
- -1, 149, 168, -1, 149, 59, 58, 153, -1, 149,
- 25, -1,