aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-01-19 01:21:04 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-01-19 01:21:04 +0000
commite812fb230a9f21a43b6ee4947b1e714721a55b63 (patch)
treed6312c0575f34e1fed0dc0caf8d89bea4db1a0c4
parentd615bd9013846fbc7a6c4b8922c0e6988b55a4c0 (diff)
Make sure intrinsic auto-upgrade is invoked correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25434 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp4795
-rw-r--r--lib/AsmParser/llvmAsmParser.h336
-rw-r--r--lib/AsmParser/llvmAsmParser.y8
-rw-r--r--lib/Bytecode/Reader/Reader.cpp5
4 files changed, 2966 insertions, 2178 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp b/lib/AsmParser/llvmAsmParser.cpp
index dfae972537..5cb9fff077 100644
--- a/lib/AsmParser/llvmAsmParser.cpp
+++ b/lib/AsmParser/llvmAsmParser.cpp
@@ -1,113 +1,265 @@
+/* A Bison parser, made by GNU Bison 1.875c. */
-/* A Bison parser, made from /Users/bocchino/llvm-checkin/src/lib/AsmParser/llvmAsmParser.y
- by GNU Bison version 1.28 */
+/* Skeleton parser for Yacc-like parsing with Bison,
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-#define YYBISON 1 /* Identify Bison output. */
+ 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., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, 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. */
+
+/* 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
+
+/* Skeleton name. */
+#define YYSKELETON_NAME "yacc.c"
+
+/* Pure parsers. */
+#define YYPURE 0
+
+/* Using locations. */
+#define YYLSP_NEEDED 0
+
+/* If NAME_PREFIX is specified substitute the variables and functions
+ 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 CC_TOK 312
-#define CCC_TOK 313
-#define FASTCC_TOK 314
-#define COLDCC_TOK 315
-#define RET 316
-#define BR 317
-#define SWITCH 318
-#define INVOKE 319
-#define UNWIND 320
-#define UNREACHABLE 321
-#define ADD 322
-#define SUB 323
-#define MUL 324
-#define DIV 325
-#define REM 326
-#define AND 327
-#define OR 328
-#define XOR 329
-#define SETLE 330
-#define SETGE 331
-#define SETLT 332
-#define SETGT 333
-#define SETEQ 334
-#define SETNE 335
-#define MALLOC 336
-#define ALLOCA 337
-#define FREE 338
-#define LOAD 339
-#define STORE 340
-#define GETELEMENTPTR 341
-#define PHI_TOK 342
-#define CAST 343
-#define SELECT 344
-#define SHL 345
-#define SHR 346
-#define VAARG 347
-#define EXTRACTELEMENT 348
-#define INSERTELEMENT 349
-#define VAARG_old 350
-#define VANEXT_old 351
-
-#line 14 "/Users/bocchino/llvm-checkin/src/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,
+ 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,
+ CC_TOK = 313,
+ CCC_TOK = 314,
+ FASTCC_TOK = 315,
+ COLDCC_TOK = 316,
+ RET = 317,
+ BR = 318,
+ SWITCH = 319,
+ INVOKE = 320,
+ UNWIND = 321,
+ UNREACHABLE = 322,
+ ADD = 323,
+ SUB = 324,
+ MUL = 325,
+ DIV = 326,
+ REM = 327,
+ AND = 328,
+ OR = 329,
+ XOR = 330,
+ SETLE = 331,
+ SETGE = 332,
+ SETLT = 333,
+ SETGT = 334,
+ SETEQ = 335,
+ SETNE = 336,
+ MALLOC = 337,
+ ALLOCA = 338,
+ FREE = 339,
+ LOAD = 340,
+ STORE = 341,
+ GETELEMENTPTR = 342,
+ PHI_TOK = 343,
+ CAST = 344,
+ SELECT = 345,
+ SHL = 346,
+ SHR = 347,
+ VAARG = 348,
+ EXTRACTELEMENT = 349,
+ INSERTELEMENT = 350,
+ VAARG_old = 351,
+ VANEXT_old = 352
+ };
+#endif
+#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 CC_TOK 313
+#define CCC_TOK 314
+#define FASTCC_TOK 315
+#define COLDCC_TOK 316
+#define RET 317
+#define BR 318
+#define SWITCH 319
+#define INVOKE 320
+#define UNWIND 321
+#define UNREACHABLE 322
+#define ADD 323
+#define SUB 324
+#define MUL 325
+#define DIV 326
+#define REM 327
+#define AND 328
+#define OR 329
+#define XOR 330
+#define SETLE 331
+#define SETGE 332
+#define SETLT 333
+#define SETGT 334
+#define SETEQ 335
+#define SETNE 336
+#define MALLOC 337
+#define ALLOCA 338
+#define FREE 339
+#define LOAD 340
+#define STORE 341
+#define GETELEMENTPTR 342
+#define PHI_TOK 343
+#define CAST 344
+#define SELECT 345
+#define SHL 346
+#define SHR 347
+#define VAARG 348
+#define EXTRACTELEMENT 349
+#define INSERTELEMENT 350
+#define VAARG_old 351
+#define VANEXT_old 352
+
+
+
+
+/* Copy the first part of user declarations. */
+#line 14 "/proj/llvm/llvm2/lib/AsmParser/llvmAsmParser.y"
#include "ParserInternals.h"
#include "llvm/CallingConv.h"
@@ -202,10 +354,10 @@ static struct PerModuleInfo {
ThrowException(UndefinedReferences);
}
- // Rename any overloaded intrinsic functions.
- for (Module::iterator FI = CurrentModule->begin(), FE =
- CurrentModule->end(); FI != FE; ++FI)
- UpgradeIntrinsicFunction(&(*FI));
+ // Look for intrinsic functions and CallInst that need to be upgraded
+ for (Module::iterator FI = CurrentModule->begin(),FE = CurrentModule->end();
+ FI != FE; ++FI)
+ UpgradeCallsToIntrinsic(FI);
Values.clear(); // Clear out function local definitions
Types.clear();
@@ -971,8 +1123,23 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
}
-#line 878 "/Users/bocchino/llvm-checkin/src/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
+
+#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
+#line 878 "/proj/llvm/llvm2/lib/AsmParser/llvmAsmParser.y"
+typedef union YYSTYPE {
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
std::pair<llvm::PATypeHolder*, char*> *ArgVal;
@@ -1011,939 +1178,1284 @@ typedef union {
llvm::Instruction::OtherOps OtherOpVal;
llvm::Module::Endianness Endianness;
} YYSTYPE;
-#include <stdio.h>
-
-#ifndef __cplusplus
-#ifndef __STDC__
-#define const
-#endif
+/* Line 191 of yacc.c. */
+#line 1183 "llvmAsmParser.tab.c"
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
+# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
#endif
-#define YYFINAL 460
-#define YYFLAG -32768
-#define YYNTBASE 112
-
-#define YYTRANSLATE(x) ((unsigned)(x) <= 351 ? yytranslate[x] : 181)
-
-static const char yytranslate[] = { 0,
- 2, 2, 2, 2, 2, 2, 2, 2, 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75, 76,
- 77, 78, 79, 80, 81, 82, 83, 84, 85, 86,
- 87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
- 97
-};
+/* Copy the second part of user declarations. */
-#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, 87, 88, 91, 92, 96, 99,
- 100, 102, 103, 107, 109, 112, 114, 116, 118, 120,
- 122, 124, 126, 128, 130, 132, 134, 136, 138, 140,
- 142, 144, 146, 148, 150, 152, 154, 157, 162, 168,
- 174, 178, 181, 184, 186, 190, 192, 196, 198, 199,
- 204, 208, 212, 217, 222, 226, 229, 232, 235, 238,
- 241, 244, 247, 250, 253, 256, 263, 269, 278, 285,
- 292, 299, 306, 313, 317, 319, 321, 323, 325, 328,
- 331, 334, 336, 341, 344, 345, 353, 354, 362, 366,
- 371, 372, 374, 376, 380, 384, 388, 392, 396, 398,
- 399, 401, 403, 405, 406, 409, 413, 415, 417, 421,
- 423, 424, 433, 435, 437, 441, 443, 445, 448, 449,
- 453, 455, 457, 459, 461, 463, 465, 467, 469, 473,
- 475, 477, 479, 481, 483, 486, 489, 492, 496, 499,
- 500, 502, 505, 508, 512, 522, 532, 541, 555, 557,
- 559, 566, 572, 575, 582, 590, 592, 596, 598, 599,
- 602, 604, 610, 616, 622, 625, 630, 635, 642, 647,
- 652, 657, 662, 669, 672, 680, 682, 685, 686, 688,
- 689, 693, 700, 704, 711, 714, 719, 726
-};
-static const short yyrhs[] = { 5,
- 0, 6, 0, 3, 0, 4, 0, 68, 0, 69,
- 0, 70, 0, 71, 0, 72, 0, 73, 0, 74,
- 0, 75, 0, 76, 0, 77, 0, 78, 0, 79,
- 0, 80, 0, 81, 0, 91, 0, 92, 0, 16,
- 0, 14, 0, 12, 0, 10, 0, 17, 0, 15,
- 0, 13, 0, 11, 0, 118, 0, 119, 0, 18,
- 0, 19, 0, 151, 98, 0, 0, 41, 0, 42,
- 0, 43, 0, 44, 0, 0, 0, 59, 0, 60,
- 0, 61, 0, 58, 4, 0, 0, 54, 4, 0,
- 0, 99, 54, 4, 0, 34, 24, 0, 0, 127,
- 0, 0, 99, 130, 129, 0, 127, 0, 54, 4,
- 0, 133, 0, 8, 0, 135, 0, 8, 0, 135,
- 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, 134,
- 0, 164, 0, 100, 4, 0, 132, 101, 137, 102,
- 0, 103, 4, 104, 135, 105, 0, 106, 4, 104,
- 135, 107, 0, 108, 136, 109, 0, 108, 109, 0,
- 135, 110, 0, 135, 0, 136, 99, 135, 0, 136,
- 0, 136, 99, 37, 0, 37, 0, 0, 133, 103,
- 140, 105, 0, 133, 103, 105, 0, 133, 111, 24,
- 0, 133, 106, 140, 107, 0, 133, 108, 140, 109,
- 0, 133, 108, 109, 0, 133, 38, 0, 133, 39,
- 0, 133, 164, 0, 133, 139, 0, 133, 26, 0,
- 118, 113, 0, 119, 4, 0, 9, 27, 0, 9,
- 28, 0, 121, 7, 0, 89, 101, 138, 36, 133,
- 102, 0, 87, 101, 138, 178, 102, 0, 90, 101,
- 138, 99, 138, 99, 138, 102, 0, 114, 101, 138,
- 99, 138, 102, 0, 115, 101, 138, 99, 138, 102,
- 0, 116, 101, 138, 99, 138, 102, 0, 117, 101,
- 138, 99, 138, 102, 0, 94, 101, 138, 99, 138,
- 102, 0, 140, 99, 138, 0, 138, 0, 32, 0,
- 33, 0, 143, 0, 143, 160, 0, 143, 161, 0,
- 143, 25, 0, 144, 0, 144, 122, 20, 131, 0,
- 144, 161, 0, 0, 144, 122, 123, 141, 138, 145,
- 129, 0, 0, 144, 122, 47, 141, 133, 146, 129,
- 0, 144, 48, 148, 0, 144, 55, 98, 149, 0,
- 0, 53, 0, 52, 0, 50, 98, 147, 0, 51,
- 98, 4, 0, 49, 98, 24, 0, 103, 150, 105,
- 0, 150, 99, 24, 0, 24, 0, 0, 22, 0,
- 24, 0, 151, 0, 0, 133, 152, 0, 154, 99,
- 153, 0, 153, 0, 154, 0, 154, 99, 37, 0,
- 37, 0, 0, 124, 131, 151, 101, 155, 102, 128,
- 125, 0, 29, 0, 108, 0, 123, 156, 157, 0,
- 30, 0, 109, 0, 167, 159, 0, 0, 31, 162,
- 156, 0, 3, 0, 4, 0, 7, 0, 27, 0,
- 28, 0, 38, 0, 39, 0, 26, 0, 106, 140,
- 107, 0, 139, 0, 112, 0, 151, 0, 164, 0,
- 163, 0, 133, 165, 0, 167, 168, 0, 158, 168,
- 0, 169, 122, 170, 0, 169, 172, 0, 0, 23,
- 0, 62, 166, 0, 62, 8, 0, 63, 21, 165,
- 0, 63, 9, 165, 99, 21, 165, 99, 21, 165,
- 0, 64, 120, 165, 99, 21, 165, 103, 171, 105,
- 0, 64, 120, 165, 99, 21, 165, 103, 105, 0,
- 65, 124, 131, 165, 101, 175, 102, 36, 21, 165,
- 66, 21, 165, 0, 66, 0, 67, 0, 171, 120,
- 163, 99, 21, 165, 0, 120, 163, 99, 21, 165,
- 0, 122, 177, 0, 133, 103, 165, 99, 165, 105,
- 0, 173, 99, 103, 165, 99, 165, 105, 0, 166,
- 0, 174, 99, 166, 0, 174, 0, 0, 57, 56,
- 0, 56, 0, 114, 133, 165, 99, 165, 0, 115,
- 133, 165, 99, 165, 0, 116, 133, 165, 99, 165,
- 0, 46, 166, 0, 117, 166, 99, 166, 0, 89,
- 166, 36, 133, 0, 90, 166, 99, 166, 99, 166,
- 0, 93, 166, 99, 133, 0, 96, 166, 99, 133,
- 0, 97, 166, 99, 133, 0, 94, 166, 99, 166,
- 0, 95, 166, 99, 166, 99, 166, 0, 88, 173,
- 0, 176, 124, 131, 165, 101, 175, 102, 0, 180,
- 0, 99, 174, 0, 0, 35, 0, 0, 82, 133,
- 126, 0, 82, 133, 99, 15, 165, 126, 0, 83,
- 133, 126, 0, 83, 133, 99, 15, 165, 126, 0,
- 84, 166, 0, 179, 85, 133, 165, 0, 179, 86,
- 166, 99, 133, 165, 0, 87, 133, 165, 178, 0
-};
+/* Line 214 of yacc.c. */
+#line 1195 "llvmAsmParser.tab.c"
-#endif
+#if ! defined (yyoverflow) || YYERROR_VERBOSE
-#if YYDEBUG != 0
-static const short yyrline[] = { 0,
- 997, 998, 1005, 1006, 1015, 1015, 1015, 1015, 1015, 1016,
- 1016, 1016, 1017, 1017, 1017, 1017, 1017, 1017, 1019, 1019,
- 1023, 1023, 1023, 1023, 1024, 1024, 1024, 1024, 1025, 1025,
- 1026, 1026, 1029, 1032, 1036, 1036, 1037, 1038, 1039, 1042,
- 1042, 1043, 1044, 1045, 1054, 1054, 1060, 1060, 1068, 1075,
- 1075, 1081, 1081, 1083, 1087, 1100, 1100, 1101, 1101, 1103,
- 1112, 1112, 1112, 1112, 1112, 1112, 1112, 1113, 1113, 1113,
- 1113, 1113, 1113, 1114, 1117, 1120, 1126, 1133, 1145, 1149,
- 1160, 1169, 1172, 1180, 1184, 1189, 1190, 1193, 1196, 1206,
- 1231, 1244, 1272, 1297, 1317, 1329, 1338, 1342, 1401, 1407,
- 1415, 1420, 1425, 1428, 1431, 1438, 1448, 1479, 1486, 1507,
- 1517, 1522, 1529, 1539, 1542, 1549, 1549, 1559, 1566, 1570,
- 1573, 1576, 1589, 1609, 1611, 1614, 1617, 1621, 1624, 1626,
- 1628, 1633, 1634, 1636, 1639, 1647, 1652, 1654, 1658, 1662,
- 1670, 1670, 1671, 1671, 1673, 1679, 1684, 1690, 1693, 1698,
- 1702, 1706, 1792, 1792, 1794, 1802, 1802, 1804, 1808, 1808,
- 1817, 1820, 1823, 1826, 1829, 1832, 1835, 1838, 1841, 1865,
- 1872, 1875, 1880, 1880, 1886, 1890, 1893, 1901, 1910, 1914,
- 1924, 1935, 1938, 1941, 1944, 1947, 1961, 1965, 2018, 2021,
- 2027, 2035, 2045, 2052, 2057, 2064, 2068, 2074, 2074, 2076,
- 2079, 2085, 2097, 2108, 2118, 2130, 2137, 2144, 2151, 2156,
- 2175, 2197, 2205, 2217, 2231, 2288, 2294, 2296, 2300, 2303,
- 2309, 2313, 2317, 2321, 2325, 2332, 2342, 2355
-};
-#endif
+# ifndef YYFREE
+# define YYFREE free
+# endif
+# ifndef YYMALLOC
+# define YYMALLOC malloc
+# endif
+/* The parser invokes alloca or malloc; define the necessary symbols. */
-#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","CC_TOK","CCC_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","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","BigOrLittle","TargetDefinition","LibrariesDefinition","LibList","Name",
-"OptName","ArgVal","ArgListH","ArgList","FunctionHeaderH","BEGIN","FunctionHeader",
-"END","Function","FunctionProto","@3","ConstValueRef","SymbolicValueRef","ValueRef",
-"ResolvedVal","BasicBlockList","BasicBlock","InstructionList","BBTerminatorInst",
-"JumpTable","Inst","PHIList","ValueRefList","ValueRefListE","OptTailCall","InstVal",
-"IndexList","OptVolatile","MemoryInst", NULL
-};
+# ifdef YYSTACK_USE_ALLOCA
+# if YYSTACK_USE_ALLOCA
+# define YYSTACK_ALLOC alloca
+# endif
+# else
+# if defined (alloca) || defined (_ALLOCA_H)
+# define YYSTACK_ALLOC alloca
+# else
+# ifdef __GNUC__
+# define YYSTACK_ALLOC __builtin_alloca
+# endif
+# endif
+# endif
+
+# ifdef YYSTACK_ALLOC
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
+# else
+# if defined (__STDC__) || defined (__cplusplus)
+# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
+# define YYSIZE_T size_t
+# endif
+# define YYSTACK_ALLOC YYMALLOC
+# define YYSTACK_FREE YYFREE
+# 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
+{
+ short 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 (short) + 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 \
+ { \
+ register 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)
+
+#endif
+
+#if defined (__STDC__) || defined (__cplusplus)
+ typedef signed char yysigned_char;
+#else
+ typedef short yysigned_char;
#endif
-static const short yyr1[] = { 0,
- 112, 112, 113, 113, 114, 114, 114, 114, 114, 115,
- 115, 115, 116, 116, 116, 116, 116, 116, 117, 117,
- 118, 118, 118, 118, 119, 119, 119, 119, 120, 120,
- 121, 121, 122, 122, 123, 123, 123, 123, 123, 124,
- 124, 124, 124, 124, 125, 125, 126, 126, 127, 128,
- 128, 129, 129, 130, 130, 131, 131, 132, 132, 133,
- 134, 134, 134, 134, 134, 134, 134, 134, 134, 134,
- 134, 134, 134, 135, 135, 135, 135, 135, 135, 135,
- 135, 135, 135, 136, 136, 137, 137, 137, 137, 138,
- 138, 138, 138, 138, 138, 138, 138, 138, 138, 138,
- 138, 138, 138, 138, 138, 139, 139, 139, 139, 139,
- 139, 139, 139, 140, 140, 141, 141, 142, 143, 143,
- 143, 143, 144, 144, 145, 144, 146, 144, 144, 144,
- 144, 147, 147, 148, 148, 148, 149, 150, 150, 150,
- 151, 151, 152, 152, 153, 154, 154, 155, 155, 155,
- 155, 156, 157, 157, 158, 159, 159, 160, 162, 161,
- 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
- 164, 164, 165, 165, 166, 167, 167, 168, 169, 169,
- 169, 170, 170, 170, 170, 170, 170, 170, 170, 170,
- 171, 171, 172, 173, 173, 174, 174, 175, 175, 176,
- 176, 177, 177, 177, 177, 177, 177, 177, 177, 177,
- 177, 177, 177, 177, 177, 177, 178, 178, 179, 179,
- 180, 180, 180, 180, 180, 180, 180, 180
+/* YYFINAL -- State number of the termination state. */
+#define YYFINAL 4
+/* YYLAST -- Last index in YYTABLE. */
+#define YYLAST 1210
+
+/* YYNTOKENS -- Number of terminals. */
+#define YYNTOKENS 112
+/* YYNNTS -- Number of nonterminals. */
+#define YYNNTS 70
+/* YYNRULES -- Number of rules. */
+#define YYNRULES 229
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 460
+
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
+#define YYUNDEFTOK 2
+#define YYMAXUTOK 352
+
+#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,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93, 94,
+ 95, 96, 97
};
-static const short yyr2[] = { 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 2, 0, 1, 1, 1, 1, 0, 0,
- 1, 1, 1, 2, 0, 2, 0, 3, 2, 0,
- 1, 0, 3, 1, 2, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 2, 4, 5, 5,
- 3, 2, 2, 1, 3, 1, 3, 1, 0, 4,
- 3, 3, 4, 4, 3, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 6, 5, 8, 6, 6,
- 6, 6, 6, 3, 1, 1, 1, 1, 2, 2,
- 2, 1, 4, 2, 0, 7, 0, 7, 3, 4,
- 0, 1, 1, 3, 3, 3, 3, 3, 1, 0,
- 1, 1, 1, 0, 2, 3, 1, 1, 3, 1,
- 0, 8, 1, 1, 3, 1, 1, 2, 0, 3,
- 1, 1, 1, 1, 1, 1, 1, 1, 3, 1,
- 1, 1, 1, 1, 2, 2, 2, 3, 2, 0,
- 1, 2, 2, 3, 9, 9, 8, 13, 1, 1,
- 6, 5, 2, 6, 7, 1, 3, 1, 0, 2,
- 1, 5, 5, 5, 2, 4, 4, 6, 4, 4,
- 4, 4, 6, 2, 7, 1, 2, 0, 1, 0,
- 3, 6, 3, 6, 2, 4, 6, 4
+#if YYDEBUG
+/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
+ YYRHS. */
+static const unsigned short 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, 90, 91, 94, 95,
+ 99, 102, 103, 105, 106, 110, 112, 115, 117, 119,
+ 121, 123, 125, 127, 129, 131, 133, 135, 137, 139,
+ 141, 143, 145, 147, 149, 151, 153, 155, 157, 160,
+ 165, 171, 177, 181, 184, 187, 189, 193, 195, 199,
+ 201, 202, 207, 211, 215, 220, 225, 229, 232, 235,
+ 238, 241, 244, 247, 250, 253, 256, 259, 266, 272,
+ 281, 288, 295, 302, 309, 316, 320, 322, 324, 326,
+ 328, 331, 334, 337, 339, 344, 347, 348, 356, 357,
+ 365, 369, 374, 375, 377, 379, 383, 387, 391, 395,
+ 399, 401, 402, 404, 406, 408, 409, 412, 416, 418,
+ 420, 424, 426, 427, 436, 438, 440, 444, 446, 448,
+ 451, 452, 456, 458, 460, 462, 464, 466, 468, 470,
+ 472, 476, 478, 480, 482, 484, 486, 489, 492, 495,
+ 499, 502, 503, 505, 508, 511, 515, 525, 535, 544,
+ 558, 560, 562, 569, 575, 578, 585, 593, 595, 599,
+ 601, 602, 605, 607, 613, 619, 625, 628, 633, 638,
+ 645, 650, 655, 660, 665, 672, 675, 683, 685, 688,
+ 689, 691, 692, 696, 703, 707, 714, 717, 722, 729
};
-static const short yydefact[] = { 131,
- 39, 122, 121, 159, 35, 36, 37, 38, 40, 180,
- 119, 120, 180, 141, 142, 0, 0, 39, 0, 124,
- 40, 0, 41, 42, 43, 0, 0, 181, 177, 34,
- 156, 157, 158, 176, 0, 0, 0, 129, 0, 0,
- 0, 0, 33, 160, 44, 1, 2, 57, 61, 62,
- 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
- 73, 74, 0, 0, 0, 0, 171, 0, 0, 56,
- 75, 60, 172, 76, 153, 154, 155, 220, 179, 0,
- 0, 0, 140, 130, 123, 116, 117, 0, 0, 77,
- 0, 0, 59, 82, 84, 0, 0, 89, 83, 219,
- 0, 201, 0, 0, 0, 0, 40, 189, 190, 5,
- 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
- 16, 17, 18, 0, 0, 0, 0, 0, 0, 0,
- 19, 20, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 178, 40, 193, 0, 216, 136, 133, 132, 134,
- 135, 139, 0, 127, 61, 62, 63, 64, 65, 66,
- 67, 68, 69, 70, 71, 0, 0, 0, 0, 125,
- 0, 0, 0, 81, 151, 88, 86, 0, 0, 205,
- 200, 183, 182, 0, 0, 24, 28, 23, 27, 22,
- 26, 21, 25, 29, 30, 0, 0, 47, 47, 225,
- 0, 0, 214, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 137, 52,
- 103, 104, 3, 4, 101, 102, 105, 100, 96, 97,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 99, 98, 52, 58, 58, 85, 150, 144,
- 147, 148, 0, 0, 78, 161, 162, 163, 168, 164,
- 165, 166, 167, 0, 170, 174, 173, 175, 0, 184,
- 0, 0, 0, 221, 0, 223, 218, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 138, 0, 128, 0, 0, 0, 0,
- 91, 115,