aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-19 07:44:24 +0000
committerChris Lattner <sabre@nondot.org>2007-02-19 07:44:24 +0000
commit32980699c0dd5cb0564eaaff80985633a5754eb4 (patch)
treeb4c34d86a95e271e8575513fe2030b1b5fc2771e /lib/AsmParser/llvmAsmParser.cpp.cvs
parent00f59da1dfa697982dad9937d1339d7c0e438ad1 (diff)
remove dead methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs7048
1 files changed, 3074 insertions, 3974 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index 6c0011d023..8e84dc1ba2 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -1,336 +1,147 @@
-/* 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. */
-
-/* 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. */
+#define YYBISON 1 /* Identify Bison output. */
-/* 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,
- LOCALVAL_ID = 260,
- GLOBALVAL_ID = 261,
- FPVAL = 262,
- VOID = 263,
- INTTYPE = 264,
- FLOAT = 265,
- DOUBLE = 266,
- LABEL = 267,
- TYPE = 268,
- LOCALVAR = 269,
- GLOBALVAR = 270,
- LABELSTR = 271,
- STRINGCONSTANT = 272,
- ATSTRINGCONSTANT = 273,
- IMPLEMENTATION = 274,
- ZEROINITIALIZER = 275,
- TRUETOK = 276,
- FALSETOK = 277,
- BEGINTOK = 278,
- ENDTOK = 279,
- DECLARE = 280,
- DEFINE = 281,
- GLOBAL = 282,
- CONSTANT = 283,
- SECTION = 284,
- VOLATILE = 285,
- TO = 286,
- DOTDOTDOT = 287,
- NULL_TOK = 288,
- UNDEF = 289,
- INTERNAL = 290,
- LINKONCE = 291,
- WEAK = 292,
- APPENDING = 293,
- DLLIMPORT = 294,
- DLLEXPORT = 295,
- EXTERN_WEAK = 296,
- OPAQUE = 297,
- EXTERNAL = 298,
- TARGET = 299,
- TRIPLE = 300,
- ALIGN = 301,
- DEPLIBS = 302,
- CALL = 303,
- TAIL = 304,
- ASM_TOK = 305,
- MODULE = 306,
- SIDEEFFECT = 307,
- CC_TOK = 308,
- CCC_TOK = 309,
- FASTCC_TOK = 310,
- COLDCC_TOK = 311,
- X86_STDCALLCC_TOK = 312,
- X86_FASTCALLCC_TOK = 313,
- DATALAYOUT = 314,
- RET = 315,
- BR = 316,
- SWITCH = 317,
- INVOKE = 318,
- UNWIND = 319,
- UNREACHABLE = 320,
- ADD = 321,
- SUB = 322,
- MUL = 323,
- UDIV = 324,
- SDIV = 325,
- FDIV = 326,
- UREM = 327,
- SREM = 328,
- FREM = 329,
- AND = 330,
- OR = 331,
- XOR = 332,
- SHL = 333,
- LSHR = 334,
- ASHR = 335,
- ICMP = 336,
- FCMP = 337,
- EQ = 338,
- NE = 339,
- SLT = 340,
- SGT = 341,
- SLE = 342,
- SGE = 343,
- ULT = 344,
- UGT = 345,
- ULE = 346,
- UGE = 347,
- OEQ = 348,
- ONE = 349,
- OLT = 350,
- OGT = 351,
- OLE = 352,
- OGE = 353,
- ORD = 354,
- UNO = 355,
- UEQ = 356,
- UNE = 357,
- MALLOC = 358,
- ALLOCA = 359,
- FREE = 360,
- LOAD = 361,
- STORE = 362,
- GETELEMENTPTR = 363,
- TRUNC = 364,
- ZEXT = 365,
- SEXT = 366,
- FPTRUNC = 367,
- FPEXT = 368,
- BITCAST = 369,
- UITOFP = 370,
- SITOFP = 371,
- FPTOUI = 372,
- FPTOSI = 373,
- INTTOPTR = 374,
- PTRTOINT = 375,
- PHI_TOK = 376,
- SELECT = 377,
- VAARG = 378,
- EXTRACTELEMENT = 379,
- INSERTELEMENT = 380,
- SHUFFLEVECTOR = 381,
- NORETURN = 382,
- INREG = 383,
- SRET = 384,
- DEFAULT = 385,
- HIDDEN = 386
- };
-#endif
-/* Tokens. */
-#define ESINT64VAL 258
-#define EUINT64VAL 259
-#define LOCALVAL_ID 260
-#define GLOBALVAL_ID 261
-#define FPVAL 262
-#define VOID 263
-#define INTTYPE 264
-#define FLOAT 265
-#define DOUBLE 266
-#define LABEL 267
-#define TYPE 268
-#define LOCALVAR 269
-#define GLOBALVAR 270
-#define LABELSTR 271
-#define STRINGCONSTANT 272
-#define ATSTRINGCONSTANT 273
-#define IMPLEMENTATION 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 VOLATILE 285
-#define TO 286
-#define DOTDOTDOT 287
-#define NULL_TOK 288
-#define UNDEF 289
-#define INTERNAL 290
-#define LINKONCE 291
-#define WEAK 292
-#define APPENDING 293
-#define DLLIMPORT 294
-#define DLLEXPORT 295
-#define EXTERN_WEAK 296
-#define OPAQUE 297
-#define EXTERNAL 298
-#define TARGET 299
-#define TRIPLE 300
-#define ALIGN 301
-#define DEPLIBS 302
-#define CALL 303
-#define TAIL 304
-#define ASM_TOK 305
-#define MODULE 306
-#define SIDEEFFECT 307
-#define CC_TOK 308
-#define CCC_TOK 309
-#define FASTCC_TOK 310
-#define COLDCC_TOK 311
-#define X86_STDCALLCC_TOK 312
-#define X86_FASTCALLCC_TOK 313
-#define DATALAYOUT 314
-#define RET 315
-#define BR 316
-#define SWITCH 317
-#define INVOKE 318
-#define UNWIND 319
-#define UNREACHABLE 320
-#define ADD 321
-#define SUB 322
-#define MUL 323
-#define UDIV 324
-#define SDIV 325
-#define FDIV 326
-#define UREM 327
-#define SREM 328
-#define FREM 329
-#define AND 330
-#define OR 331
-#define XOR 332
-#define SHL 333
-#define LSHR 334
-#define ASHR 335
-#define ICMP 336
-#define FCMP 337
-#define EQ 338
-#define NE 339
-#define SLT 340
-#define SGT 341
-#define SLE 342
-#define SGE 343
-#define ULT 344
-#define UGT 345
-#define ULE 346
-#define UGE 347
-#define OEQ 348
-#define ONE 349
-#define OLT 350
-#define OGT 351
-#define OLE 352
-#define OGE 353
-#define ORD 354
-#define UNO 355
-#define UEQ 356
-#define UNE 357
-#define MALLOC 358
-#define ALLOCA 359
-#define FREE 360
-#define LOAD 361
-#define STORE 362
-#define GETELEMENTPTR 363
-#define TRUNC 364
-#define ZEXT 365
-#define SEXT 366
-#define FPTRUNC 367
-#define FPEXT 368
-#define BITCAST 369
-#define UITOFP 370
-#define SITOFP 371
-#define FPTOUI 372
-#define FPTOSI 373
-#define INTTOPTR 374
-#define PTRTOINT 375
-#define PHI_TOK 376
-#define SELECT 377
-#define VAARG 378
-#define EXTRACTELEMENT 379
-#define INSERTELEMENT 380
-#define SHUFFLEVECTOR 381
-#define NORETURN 382
-#define INREG 383
-#define SRET 384
-#define DEFAULT 385
-#define HIDDEN 386
-
-
-
-
-/* Copy the first part of user declarations. */
-#line 14 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
+#define ESINT64VAL 257
+#define EUINT64VAL 258
+#define LOCALVAL_ID 259
+#define GLOBALVAL_ID 260
+#define FPVAL 261
+#define VOID 262
+#define INTTYPE 263
+#define FLOAT 264
+#define DOUBLE 265
+#define LABEL 266
+#define TYPE 267
+#define LOCALVAR 268
+#define GLOBALVAR 269
+#define LABELSTR 270
+#define STRINGCONSTANT 271
+#define ATSTRINGCONSTANT 272
+#define IMPLEMENTATION 273
+#define ZEROINITIALIZER 274
+#define TRUETOK 275
+#define FALSETOK 276
+#define BEGINTOK 277
+#define ENDTOK 278
+#define DECLARE 279
+#define DEFINE 280
+#define GLOBAL 281
+#define CONSTANT 282
+#define SECTION 283
+#define VOLATILE 284
+#define TO 285
+#define DOTDOTDOT 286
+#define NULL_TOK 287
+#define UNDEF 288
+#define INTERNAL 289
+#define LINKONCE 290
+#define WEAK 291
+#define APPENDING 292
+#define DLLIMPORT 293
+#define DLLEXPORT 294
+#define EXTERN_WEAK 295
+#define OPAQUE 296
+#define EXTERNAL 297
+#define TARGET 298
+#define TRIPLE 299
+#define ALIGN 300
+#define DEPLIBS 301
+#define CALL 302
+#define TAIL 303
+#define ASM_TOK 304
+#define MODULE 305
+#define SIDEEFFECT 306
+#define CC_TOK 307
+#define CCC_TOK 308
+#define FASTCC_TOK 309
+#define COLDCC_TOK 310
+#define X86_STDCALLCC_TOK 311
+#define X86_FASTCALLCC_TOK 312
+#define DATALAYOUT 313
+#define RET 314
+#define BR 315
+#define SWITCH 316
+#define INVOKE 317
+#define UNWIND 318
+#define UNREACHABLE 319
+#define ADD 320
+#define SUB 321
+#define MUL 322
+#define UDIV 323
+#define SDIV 324
+#define FDIV 325
+#define UREM 326
+#define SREM 327
+#define FREM 328
+#define AND 329
+#define OR 330
+#define XOR 331
+#define SHL 332
+#define LSHR 333
+#define ASHR 334
+#define ICMP 335
+#define FCMP 336
+#define EQ 337
+#define NE 338
+#define SLT 339
+#define SGT 340
+#define SLE 341
+#define SGE 342
+#define ULT 343
+#define UGT 344
+#define ULE 345
+#define UGE 346
+#define OEQ 347
+#define ONE 348
+#define OLT 349
+#define OGT 350
+#define OLE 351
+#define OGE 352
+#define ORD 353
+#define UNO 354
+#define UEQ 355
+#define UNE 356
+#define MALLOC 357
+#define ALLOCA 358
+#define FREE 359
+#define LOAD 360
+#define STORE 361
+#define GETELEMENTPTR 362
+#define TRUNC 363
+#define ZEXT 364
+#define SEXT 365
+#define FPTRUNC 366
+#define FPEXT 367
+#define BITCAST 368
+#define UITOFP 369
+#define SITOFP 370
+#define FPTOUI 371
+#define FPTOSI 372
+#define INTTOPTR 373
+#define PTRTOINT 374
+#define PHI_TOK 375
+#define SELECT 376
+#define VAARG 377
+#define EXTRACTELEMENT 378
+#define INSERTELEMENT 379
+#define SHUFFLEVECTOR 380
+#define NORETURN 381
+#define INREG 382
+#define SRET 383
+#define DEFAULT 384
+#define HIDDEN 385
+
+#line 14 "/Users/sabre/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
#include "ParserInternals.h"
#include "llvm/CallingConv.h"
@@ -1217,28 +1028,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 901 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
-typedef union YYSTYPE {
+#line 901 "/Users/sabre/cvs/llvm/lib/AsmParser/llvmAsmParser.y"
+typedef union {
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
llvm::BasicBlock *BasicBlockVal;
@@ -1283,1519 +1074,1061 @@ typedef union YYSTYPE {
llvm::ICmpInst::Predicate IPredicate;
llvm::FCmpInst::Predicate FPredicate;
} YYSTYPE;
-/* Line 196 of yacc.c. */
-#line 1288 "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 1300 "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 557
+#define YYFLAG -32768
+#define YYNTBASE 146
+
+#define YYTRANSLATE(x) ((unsigned)(x) <= 385 ? yytranslate[x] : 223)
+
+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, 136,
+ 137, 134, 2, 133, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 141,
+ 132, 142, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 138, 135, 140, 2, 2, 2, 2, 2, 145, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 139,
+ 2, 2, 143, 2, 144, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 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
+};
-/* 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, 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, 130, 131, 133, 135, 137,
+ 139, 141, 143, 145, 147, 148, 150, 151, 153, 155,
+ 156, 158, 160, 162, 164, 165, 167, 169, 171, 173,
+ 175, 178, 180, 182, 184, 186, 187, 190, 192, 194,
+ 195, 198, 199, 202, 203, 207, 210, 211, 213, 214,
+ 218, 220, 223, 225, 227, 229, 231, 233, 235, 238,
+ 240, 243, 249, 255, 261, 267, 271, 274, 280, 285,
+ 288, 290, 292, 294, 298, 300, 304, 306, 307, 309,
+ 313, 318, 322, 326, 331, 336, 340, 347, 353, 356,
+ 359, 362, 365, 368, 371, 374, 377, 380, 383, 390,
+ 396, 405, 412, 419, 427, 435, 442, 451, 460, 464,
+ 466, 468, 470, 472, 473, 475, 478, 479, 483, 484,
+ 488, 492, 494, 498, 502, 503, 510, 511, 519, 520,
+ 528, 531, 535, 537, 541, 545, 549, 553, 555, 556,
+ 562, 566, 568, 572, 574, 575, 585, 587, 589, 594,
+ 596, 598, 601, 605, 606, 608, 610, 612, 614, 616,
+ 618, 620, 622, 624, 628, 630, 636, 638, 640, 642,
+ 644, 646, 648, 651, 654, 657, 661, 664, 665, 667,
+ 670, 673, 677, 687, 697, 706, 721, 723, 725, 732,
+ 738, 741, 748, 756, 760, 766, 767, 768, 772, 775,
+ 777, 783, 789, 796, 803, 808, 815, 820, 825, 832,
+ 839, 842, 851, 853, 855, 856, 860, 867, 871, 878,
+ 881, 886, 893
+};
-/* 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[] = { 66,
+ 0, 67, 0, 68, 0, 69, 0, 70, 0, 71,
+ 0, 72, 0, 73, 0, 74, 0, 78, 0, 79,
+ 0, 80, 0, 75, 0, 76, 0, 77, 0, 109,
+ 0, 110, 0, 111, 0, 112, 0, 113, 0, 114,
+ 0, 115, 0, 116, 0, 117, 0, 118, 0, 119,
+ 0, 120, 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, 96,
+ 0, 97, 0, 98, 0, 99, 0, 100, 0, 101,
+ 0, 102, 0, 89, 0, 90, 0, 91, 0, 92,
+ 0, 21, 0, 22, 0, 9, 0, 10, 0, 11,
+ 0, 14, 0, 17, 0, 153, 0, 0, 153, 132,
+ 0, 0, 15, 0, 18, 0, 156, 132, 0, 0,
+ 35, 0, 37, 0, 36, 0, 38, 0, 40, 0,
+ 39, 0, 41, 0, 43, 0, 0, 131, 0, 0,
+ 39, 0, 41, 0, 0, 35, 0, 36, 0, 37,
+ 0, 40, 0, 0, 54, 0, 55, 0, 56, 0,
+ 57, 0, 58, 0, 53, 4, 0, 110, 0, 111,
+ 0, 128, 0, 129, 0, 0, 165, 164, 0, 127,
+ 0, 164, 0, 0, 167, 166, 0, 0, 46, 4,
+ 0, 0, 133, 46, 4, 0, 29, 17, 0, 0,
+ 170, 0, 0, 133, 173, 172, 0, 170, 0, 46,
+ 4, 0, 9, 0, 10, 0, 11, 0, 12, 0,
+ 42, 0, 174, 0, 175, 134, 0, 207, 0, 135,
+ 4, 0, 175, 136, 179, 137, 167, 0, 8, 136,
+ 179, 137, 167, 0, 138, 4, 139, 175, 140, 0,
+ 141, 4, 139, 175, 142, 0, 143, 180, 144, 0,
+ 143, 144, 0, 141, 143, 180, 144, 142, 0, 141,
+ 143, 144, 142, 0, 175, 165, 0, 175, 0, 8,
+ 0, 176, 0, 178, 133, 176, 0, 178, 0, 178,
+ 133, 32, 0, 32, 0, 0, 175, 0, 180, 133,
+ 175, 0, 175, 138, 183, 140, 0, 175, 138, 140,
+ 0, 175, 145, 17, 0, 175, 141, 183, 142, 0,
+ 175, 143, 183, 144, 0, 175, 143, 144, 0, 175,
+ 141, 143, 183, 144, 142, 0, 175, 141, 143, 144,
+ 142, 0, 175, 33, 0, 175, 34, 0, 175, 207,
+ 0, 175, 182, 0, 175, 20, 0, 151, 3, 0,
+ 151, 4, 0, 9, 21, 0, 9, 22, 0, 152,
+ 7, 0, 148, 136, 181, 31, 175, 137, 0, 108,
+ 136, 181, 218, 137, 0, 122, 136, 181, 133, 181,
+ 133, 181, 137, 0, 146, 136, 181, 133, 181, 137,
+ 0, 147, 136, 181, 133, 181, 137, 0, 81, 149,
+ 136, 181, 133, 181, 137, 0, 82, 150, 136, 181,
+ 133, 181, 137, 0, 124, 136, 181, 133, 181, 137,
+ 0, 125, 136, 181, 133, 181, 133, 181, 137, 0,
+ 126, 136, 181, 133, 181, 133, 181, 137, 0, 183,
+ 133, 181, 0, 181, 0, 27, 0, 28, 0, 186,
+ 0, 0, 187, 0, 186, 187, 0, 0, 26, 188,
+ 203, 0, 0, 25, 189, 204, 0, 51, 50, 193,
+ 0, 19, 0, 155, 13, 175, 0, 155, 13, 8,
+ 0, 0, 157, 160, 184, 181, 190, 172, 0, 0,
+ 157, 158, 160, 184, 181, 191, 172, 0, 0, 157,
+ 159, 160, 184, 175, 192, 172, 0, 44, 194, 0,
+ 47, 132, 195, 0, 17, 0, 45, 132, 17, 0,
+ 59, 132, 17, 0, 138, 196, 140, 0, 196, 133,
+ 17, 0, 17, 0, 0, 197, 133, 175, 165, 154,
+ 0, 175, 165, 154, 0, 197, 0, 197, 133, 32,
+ 0, 32, 0, 0, 163, 177, 156, 136, 198, 137,
+ 167, 171, 168, 0, 23, 0, 143, 0, 162, 160,
+ 199, 200, 0, 24, 0, 144, 0, 210, 202, 0,
+ 161, 160, 199, 0, 0, 52, 0, 3, 0, 4,
+ 0, 7, 0, 21, 0, 22, 0, 33, 0, 34,
+ 0, 20, 0, 141, 183, 142, 0, 182, 0, 50,
+ 205, 17, 133, 17, 0, 5, 0, 6, 0, 153,
+ 0, 156, 0, 207, 0, 206, 0, 175, 208, 0,
+ 210, 211, 0, 201, 211, 0, 212, 155, 213, 0,
+ 212, 215, 0, 0, 16, 0, 60, 209, 0, 60,
+ 8, 0, 61, 12, 208, 0, 61, 9, 208, 133,
+ 12, 208, 133, 12, 208, 0, 62, 151, 208, 133,
+ 12, 208, 138, 214, 140, 0, 62, 151, 208, 133,
+ 12, 208, 138, 140, 0, 63, 163, 177, 208, 136,
+ 217, 137, 167, 31, 12, 208, 64, 12, 208, 0,
+ 64, 0, 65, 0, 214, 151, 206, 133, 12, 208,
+ 0, 151, 206, 133, 12, 208, 0, 155, 220, 0,
+ 175, 138, 208, 133, 208, 140, 0, 216, 133, 138,
+ 208, 133, 208, 140, 0, 175, 208, 165, 0, 217,
+ 133, 175, 208, 165, 0, 0, 0, 218, 133, 209,
+ 0, 49, 48, 0, 48, 0, 146, 175, 208, 133,
+ 208, 0, 147, 175, 208, 133, 208, 0, 81, 149,
+ 175, 208, 133, 208, 0, 82, 150, 175, 208, 133,
+ 208, 0, 148, 209, 31, 175, 0, 122, 209, 133,
+ 209, 133, 209, 0, 123, 209, 133, 175, 0, 124,
+ 209, 133, 209, 0, 125, 209, 133, 209, 133, 209,
+ 0, 126, 209, 133, 209, 133, 209, 0, 121, 216,
+ 0, 219, 163, 177, 208, 136, 217, 137, 167, 0,
+ 222, 0, 30, 0, 0, 103, 175, 169, 0, 103,
+ 175, 133, 9, 208, 169, 0, 104, 175, 169, 0,
+ 104, 175, 133, 9, 208, 169, 0, 105, 209, 0,
+ 221, 106, 175, 208, 0, 221, 107, 209, 133, 175,
+ 208, 0, 108, 175, 208, 218, 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,
+ 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1048, 1049,
+ 1049, 1049, 1049, 1049, 1049, 1050, 1050, 1050, 1050, 1050,
+ 1050, 1050, 1051, 1051, 1051, 1051, 1051, 1054, 1054, 1055,
+ 1055, 1056, 1056, 1057, 1057, 1058, 1058, 1062, 1062, 1063,
+ 1063, 1064, 1064, 1065, 1065, 1066, 1066, 1067, 1067, 1068,
+ 1068, 1069, 1070, 1075, 1076, 1076, 1078, 1078, 1079, 1079,
+ 1083, 1087, 1092, 1092, 1094, 1098, 1104, 1105, 1106, 1107,
+ 1108, 1112, 1113, 1114, 1118, 1119, 1123, 1124, 1125, 1129,
+ 1130, 1131, 1132, 1133, 1136, 1136, 1137, 1138, 1139, 1140,
+ 1141, 1149, 1150, 1151, 1152, 1155, 1156, 1161, 1162, 1165,
+ 1166, 1173, 1173, 1180, 1180, 1189, 1197, 1197, 1203, 1203,
+ 1205, 1210, 1223, 1223, 1223, 1223, 1226, 1230, 1234, 1241,
+ 1246, 1254, 1272, 1290, 1295, 1307, 1317, 1321, 1331, 1338,
+ 1345, 1352, 1357, 1362, 1369, 1370, 1377, 1384, 1392, 1397,
+ 1408, 1436, 1452, 1481, 1509, 1534, 1553, 1579, 1599, 1611,
+ 1618, 1684, 1694, 1704, 1710, 1716, 1721, 1726, 1734, 1746,
+ 1768, 1776, 1782, 1793, 1798, 1803, 1809, 1815, 1824, 1828,
+ 1836, 1836, 1847, 1852, 1860, 1861, 1865, 1865, 1869, 1869,
+ 1872, 1875, 1887, 1911, 1922, 1929, 1932, 1937, 1940, 1946,
+ 1950, 1953, 1959, 1972, 1976, 1981, 1983, 1988, 1993, 2002,
+ 2012, 2023, 2027, 2036, 2045, 2050, 2162, 2162, 2164, 2173,
+ 2173, 2175, 2180, 2192, 2196, 2201, 2205, 2209, 2213, 2217,
+ 2221, 2225, 2229, 2233, 2258, 2262, 2276, 2280, 2284, 2288,
+ 2294, 2294, 2300, 2309, 2313, 2322, 2332, 2341, 2353, 2366,
+ 2370, 2374, 2379, 2389, 2408, 2417, 2484, 2488, 2495, 2506,
+ 2519, 2529, 2540, 2550, 2558, 2566, 2569, 2570, 2577, 2581,
+ 2586, 2607, 2624, 2637, 2650, 2662, 2670, 2677, 2683, 2689,
+ 2695, 2710, 2774, 2779, 2783, 2790, 2797, 2805, 2812, 2820,
+ 2828, 2842, 2859
+};
#endif
-/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 40
-/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1439
-
-/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 146
-/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 78
-/* YYNRULES -- Number of rules. */
-#define YYNRULES 284
-/* YYNRULES -- Number of states. */
-#define YYNSTATES 557
-
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-#define YYUNDEFTOK 2
-#define YYMAXUTOK 386
-
-#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,
- 136, 137, 134, 2, 133, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 141, 132, 142, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 138, 135, 140, 2, 2, 2, 2, 2, 145,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 139, 2, 2, 143, 2, 144, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 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, 113, 114,
- 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
- 125, 126, 127, 128, 129, 130, 131
-};
-#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, 77,
- 79, 81, 83, 85, 87, 89, 91, 93, 95, 97,
- 99, 101, 103, 105, 107, 109, 111, 113, 115, 117,
- 119, 121, 122, 125, 126, 128, 130, 133, 134, 136,
- 138, 140, 142, 144, 146, 148, 150, 151, 153, 154,
- 156, 158, 159, 161, 163, 165, 167, 168, 170, 172,
- 174, 176, 178, 181, 183, 185, 187, 189, 190, 193,
- 195, 197, 198, 201, 202, 205, 206, 210, 213, 214,
- 216, 217, 221, 223, 226, 228, 230, 232, 234, 236,
- 238, 241, 243, 246, 252, 258, 264, 270, 274, 277,
- 283, 288, 291, 293, 295, 297, 301, 303, 307, 309,
- 310, 312, 316, 321, 325, 329, 334, 339, 343, 350,
- 356, 359, 362, 365, 368, 371, 374, 377, 380, 383,
- 386, 393, 399, 408, 415, 422, 430, 438, 445, 454,
- 463, 467, 469, 471, 473, 475, 476, 478, 481, 482,
- 486, 487, 491, 495, 497, 501, 505, 506, 513, 514,
- 522, 523, 531, 534, 538, 540, 544, 548, 552, 556,
- 558, 559, 565, 569, 571, 575, 577, 578, 588, 590,
- 592, 597, 599, 601, 604, 608, 609, 611, 613, 615,
- 617, 619, 621, 623, 625, 627, 631, 633, 639, 641,
- 643, 645, 647, 649, 651, 654, 657, 660, 664, 667,
- 668, 670, 673, 676, 680, 690, 700, 709, 724, 726,
- 728, 735, 741, 744, 751, 759, 763, 769, 770, 771,
- 775, 778, 780, 786, 792, 799, 806, 811, 818, 823,
- 828, 835, 842, 845, 854, 856, 858, 859, 863, 870,
- 874, 881, 884, 889, 896
+#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
+
+static const char * const yytname[] = { "$","error","$undefined.","ESINT64VAL",
+"EUINT64VAL","LOCALVAL_ID","GLOBALVAL_ID","FPVAL","VOID","INTTYPE","FLOAT","DOUBLE",
+"LABEL","TYPE","LOCALVAR","GLOBALVAR","LABELSTR","STRINGCONSTANT","ATSTRINGCONSTANT",
+"IMPLEMENTATION","ZEROINITIALIZER","TRUETOK","FALSETOK","BEGINTOK","ENDTOK",
+"DECLARE","DEFINE","GLOBAL","CONSTANT","SECTION","VOLAT