aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-23 06:05:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-23 06:05:41 +0000
commite4d87aa2de6e52952dca73716386db09aad5a8fd (patch)
treece8c6e6ddc845de3585020c856118892f4206593 /lib/AsmParser/llvmAsmParser.cpp.cvs
parentadd2bd7f5941537a97a41e037ae2277fbeed0b4f (diff)
For PR950:
This patch removes the SetCC instructions and replaces them with the ICmp and FCmp instructions. The SetCondInst instruction has been removed and been replaced with ICmpInst and FCmpInst. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs4045
1 files changed, 2073 insertions, 1972 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index 955fb871f5..50f7a82126 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -1,7 +1,7 @@
-/* A Bison parser, made by GNU Bison 1.875c. */
+/* 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 Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -15,8 +15,8 @@
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. */
+ 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.
@@ -36,6 +36,9 @@
/* Identify Bison output. */
#define YYBISON 1
+/* Bison version. */
+#define YYBISON_VERSION "2.1"
+
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -45,8 +48,7 @@
/* Using locations. */
#define YYLSP_NEEDED 0
-/* If NAME_PREFIX is specified substitute the variables and functions
- names. */
+/* Substitute the variable and function names. */
#define yyparse llvmAsmparse
#define yylex llvmAsmlex
#define yyerror llvmAsmerror
@@ -149,63 +151,58 @@
AND = 342,
OR = 343,
XOR = 344,
- SETLE = 345,
- SETGE = 346,
- SETLT = 347,
- SETGT = 348,
- SETEQ = 349,
- SETNE = 350,
- ICMP = 351,
- FCMP = 352,
- EQ = 353,
- NE = 354,
- SLT = 355,
- SGT = 356,
- SLE = 357,
- SGE = 358,
- ULT = 359,
- UGT = 360,
- ULE = 361,
- UGE = 362,
- OEQ = 363,
- ONE = 364,
- OLT = 365,
- OGT = 366,
- OLE = 367,
- OGE = 368,
- ORD = 369,
- UNO = 370,
- UEQ = 371,
- UNE = 372,
- MALLOC = 373,
- ALLOCA = 374,
- FREE = 375,
- LOAD = 376,
- STORE = 377,
- GETELEMENTPTR = 378,
- TRUNC = 379,
- ZEXT = 380,
- SEXT = 381,
- FPTRUNC = 382,
- FPEXT = 383,
- BITCAST = 384,
- UITOFP = 385,
- SITOFP = 386,
- FPTOUI = 387,
- FPTOSI = 388,
- INTTOPTR = 389,
- PTRTOINT = 390,
- PHI_TOK = 391,
- SELECT = 392,
- SHL = 393,
- LSHR = 394,
- ASHR = 395,
- VAARG = 396,
- EXTRACTELEMENT = 397,
- INSERTELEMENT = 398,
- SHUFFLEVECTOR = 399
+ ICMP = 345,
+ FCMP = 346,
+ EQ = 347,
+ NE = 348,
+ SLT = 349,
+ SGT = 350,
+ SLE = 351,
+ SGE = 352,
+ ULT = 353,
+ UGT = 354,
+ ULE = 355,
+ UGE = 356,
+ OEQ = 357,
+ ONE = 358,
+ OLT = 359,
+ OGT = 360,
+ OLE = 361,
+ OGE = 362,
+ ORD = 363,
+ UNO = 364,
+ UEQ = 365,
+ UNE = 366,
+ MALLOC = 367,
+ ALLOCA = 368,
+ FREE = 369,
+ LOAD = 370,
+ STORE = 371,
+ GETELEMENTPTR = 372,
+ TRUNC = 373,
+ ZEXT = 374,
+ SEXT = 375,
+ FPTRUNC = 376,
+ FPEXT = 377,
+ BITCAST = 378,
+ UITOFP = 379,
+ SITOFP = 380,
+ FPTOUI = 381,
+ FPTOSI = 382,
+ INTTOPTR = 383,
+ PTRTOINT = 384,
+ PHI_TOK = 385,
+ SELECT = 386,
+ SHL = 387,
+ LSHR = 388,
+ ASHR = 389,
+ VAARG = 390,
+ EXTRACTELEMENT = 391,
+ INSERTELEMENT = 392,
+ SHUFFLEVECTOR = 393
};
#endif
+/* Tokens. */
#define ESINT64VAL 258
#define EUINT64VAL 259
#define SINTVAL 260
@@ -293,67 +290,61 @@
#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 ICMP 351
-#define FCMP 352
-#define EQ 353
-#define NE 354
-#define SLT 355
-#define SGT 356
-#define SLE 357
-#define SGE 358
-#define ULT 359
-#define UGT 360
-#define ULE 361
-#define UGE 362
-#define OEQ 363
-#define ONE 364
-#define OLT 365
-#define OGT 366
-#define OLE 367
-#define OGE 368
-#define ORD 369
-#define UNO 370
-#define UEQ 371
-#define UNE 372
-#define MALLOC 373
-#define ALLOCA 374
-#define FREE 375
-#define LOAD 376
-#define STORE 377
-#define GETELEMENTPTR 378
-#define TRUNC 379
-#define ZEXT 380
-#define SEXT 381
-#define FPTRUNC 382
-#define FPEXT 383
-#define BITCAST 384
-#define UITOFP 385
-#define SITOFP 386
-#define FPTOUI 387
-#define FPTOSI 388
-#define INTTOPTR 389
-#define PTRTOINT 390
-#define PHI_TOK 391
-#define SELECT 392
-#define SHL 393
-#define LSHR 394
-#define ASHR 395
-#define VAARG 396
-#define EXTRACTELEMENT 397
-#define INSERTELEMENT 398
-#define SHUFFLEVECTOR 399
+#define ICMP 345
+#define FCMP 346
+#define EQ 347
+#define NE 348
+#define SLT 349
+#define SGT 350
+#define SLE 351
+#define SGE 352
+#define ULT 353
+#define UGT 354
+#define ULE 355
+#define UGE 356
+#define OEQ 357
+#define ONE 358
+#define OLT 359
+#define OGT 360
+#define OLE 361
+#define OGE 362
+#define ORD 363
+#define UNO 364
+#define UEQ 365
+#define UNE 366
+#define MALLOC 367
+#define ALLOCA 368
+#define FREE 369
+#define LOAD 370
+#define STORE 371
+#define GETELEMENTPTR 372
+#define TRUNC 373
+#define ZEXT 374
+#define SEXT 375
+#define FPTRUNC 376
+#define FPEXT 377
+#define BITCAST 378
+#define UITOFP 379
+#define SITOFP 380
+#define FPTOUI 381
+#define FPTOSI 382
+#define INTTOPTR 383
+#define PTRTOINT 384
+#define PHI_TOK 385
+#define SELECT 386
+#define SHL 387
+#define LSHR 388
+#define ASHR 389
+#define VAARG 390
+#define EXTRACTELEMENT 391
+#define INSERTELEMENT 392
+#define SHUFFLEVECTOR 393
/* Copy the first part of user declarations. */
-#line 14 "/home/vadve/alenhar2/llvm.old/lib/AsmParser/llvmAsmParser.y"
+#line 14 "/proj/llvm/llvm-3/lib/AsmParser/llvmAsmParser.y"
#include "ParserInternals.h"
#include "llvm/CallingConv.h"
@@ -1208,8 +1199,13 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
# 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 855 "/home/vadve/alenhar2/llvm.old/lib/AsmParser/llvmAsmParser.y"
+#line 855 "/proj/llvm/llvm-3/lib/AsmParser/llvmAsmParser.y"
typedef union YYSTYPE {
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
@@ -1252,8 +1248,8 @@ typedef union YYSTYPE {
llvm::ICmpInst::Predicate IPredicate;
llvm::FCmpInst::Predicate FPredicate;
} YYSTYPE;
-/* Line 191 of yacc.c. */
-#line 1257 "llvmAsmParser.tab.c"
+/* Line 196 of yacc.c. */
+#line 1253 "llvmAsmParser.tab.c"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
@@ -1264,30 +1260,49 @@ typedef union YYSTYPE {
/* Copy the second part of user declarations. */
-/* Line 214 of yacc.c. */
-#line 1269 "llvmAsmParser.tab.c"
+/* Line 219 of yacc.c. */
+#line 1265 "llvmAsmParser.tab.c"
-#if ! defined (yyoverflow) || YYERROR_VERBOSE
+#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
+#endif
-# ifndef YYFREE
-# define YYFREE free
+#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 YYMALLOC
-# define YYMALLOC malloc
+# 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
-# define YYSTACK_ALLOC alloca
-# endif
-# else
-# if defined (alloca) || defined (_ALLOCA_H)
-# define YYSTACK_ALLOC alloca
-# else
# 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
@@ -1295,13 +1310,39 @@ typedef union YYSTYPE {
# 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
+# 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 */
@@ -1313,7 +1354,7 @@ typedef union YYSTYPE {
/* A type that is properly aligned for any stack member. */
union yyalloc
{
- short yyss;
+ short int yyss;
YYSTYPE yyvs;
};
@@ -1323,7 +1364,7 @@ union yyalloc
/* 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)) \
+ ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
/* Copy COUNT objects from FROM to TO. The source and destination do
@@ -1336,7 +1377,7 @@ union yyalloc
# define YYCOPY(To, From, Count) \
do \
{ \
- register YYSIZE_T yyi; \
+ YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
@@ -1365,28 +1406,28 @@ union yyalloc
#if defined (__STDC__) || defined (__cplusplus)
typedef signed char yysigned_char;
#else
- typedef short yysigned_char;
+ typedef short int yysigned_char;
#endif
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 4
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1476
+#define YYLAST 1390
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 159
+#define YYNTOKENS 153
/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 78
+#define YYNNTS 76
/* YYNRULES -- Number of rules. */
-#define YYNRULES 299
+#define YYNRULES 291
/* YYNRULES -- Number of states. */
-#define YYNSTATES 584
+#define YYNSTATES 567
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 399
+#define YYMAXUTOK 393
-#define YYTRANSLATE(YYX) \
+#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
@@ -1396,15 +1437,15 @@ static const unsigned char yytranslate[] =
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 148, 149, 157, 2, 146, 2, 2, 2, 2, 2,
+ 142, 143, 151, 2, 140, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 153, 145, 154, 2, 2, 2, 2, 2, 2, 2,
+ 147, 139, 148, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 150, 147, 152, 2, 2, 2, 2, 2, 158,
+ 2, 144, 141, 146, 2, 2, 2, 2, 2, 152,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 151, 2, 2, 155, 2, 156, 2, 2, 2, 2,
+ 145, 2, 2, 149, 2, 150, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -1431,13 +1472,13 @@ static const unsigned char yytranslate[] =
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, 132, 133, 134,
- 135, 136, 137, 138, 139, 140, 141, 142, 143, 144
+ 135, 136, 137, 138
};
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
-static const unsigned short yyprhs[] =
+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,
@@ -1446,168 +1487,166 @@ static const unsigned short yyprhs[] =
79, 81, 83, 85, 87, 89, 91, 93, 95, 97,
99, 101, 103, 105, 107, 109, 111, 113, 115, 117,
119, 121, 123, 125, 127, 129, 131, 133, 135, 137,
- 139, 141, 143, 145, 147, 149, 151, 153, 156, 157,
- 159, 161, 163, 165, 167, 169, 171, 172, 173, 175,
- 177, 179, 181, 183, 185, 188, 189, 192, 193, 197,
- 200, 201, 203, 204, 208, 210, 213, 215, 217, 219,
+ 140, 141, 143, 145, 147, 149, 151, 153, 155, 156,
+ 157, 159, 161, 163, 165, 167, 169, 172, 173, 176,
+ 177, 181, 184, 185, 187, 188, 192, 194, 197, 199,
+ 201, 203, 205, 207, 209, 211, 213, 215, 217, 219,
221, 223, 225, 227, 229, 231, 233, 235, 237, 239,
- 241, 243, 245, 247, 249, 251, 253, 255, 258, 263,
- 269, 275, 279, 282, 288, 293, 296, 298, 302, 304,
- 308, 310, 311, 316, 320, 324, 329, 334, 338, 341,
- 344, 347, 350, 353, 356, 359, 362, 365, 368, 375,
- 381, 390, 397, 404, 411, 419, 427, 434, 441, 450,
- 459, 463, 465, 467, 469, 471, 474, 477, 482, 485,
- 487, 492, 495, 500, 501, 509, 510, 518, 519, 527,
- 528, 536, 540, 545, 546, 548, 550, 552, 556, 560,
- 564, 568, 572, 576, 578, 579, 581, 583, 585, 586,
- 589, 593, 595, 597, 601, 603, 604, 613, 615, 617,
- 621, 623, 625, 628, 629, 631, 633, 634, 639, 640,
- 642, 644, 646, 648, 650, 652, 654, 656, 658, 662,
- 664, 670, 672, 674, 676, 678, 681, 684, 687, 691,
- 694, 695, 697, 700, 703, 707, 717, 727, 736, 750,
- 752, 754, 761, 767, 770, 777, 785, 787, 791, 793,
- 794, 797, 799, 805, 811, 817, 824, 831, 834, 839,
- 844, 851, 856, 861, 868, 875, 878, 886, 888, 891,
- 892, 894, 895, 899, 906, 910, 917, 920, 925, 932
+ 242, 247, 253, 259, 263, 266, 272, 277, 280, 282,
+ 286, 288, 292, 294, 295, 300, 304, 308, 313, 318,
+ 322, 325, 328, 331, 334, 337, 340, 343, 346, 349,
+ 352, 355, 358, 365, 371, 380, 387, 394, 402, 410,
+ 417, 424, 433, 442, 446, 448, 450, 452, 454, 457,
+ 460, 465, 468, 470, 475, 478, 483, 484, 492, 493,
+ 501, 502, 510, 511, 519, 523, 528, 529, 531, 533,
+ 535, 539, 543, 547, 551, 555, 559, 561, 562, 564,
+ 566, 568, 569, 572, 576, 578, 580, 584, 586, 587,
+ 596, 598, 600, 604, 606, 608, 611, 612, 614, 616,
+ 617, 622, 623, 625, 627, 629, 631, 633, 635, 637,
+ 639, 641, 645, 647, 653, 655, 657, 659, 661, 664,
+ 667, 670, 674, 677, 678, 680, 683, 686, 690, 700,
+ 710, 719, 733, 735, 737, 744, 750, 753, 760, 768,
+ 770, 774, 776, 777, 780, 782, 788, 794, 801, 808,
+ 811, 816, 821, 828, 833, 838, 845, 852, 855, 863,
+ 865, 868, 869, 871, 872, 876, 883, 887, 894, 897,
+ 902, 909
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const short yyrhs[] =
+static const short int yyrhs[] =
{
- 193, 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, 124, -1, 125,
- -1, 126, -1, 127, -1, 128, -1, 129, -1, 130,
- -1, 131, -1, 132, -1, 133, -1, 134, -1, 135,
- -1, 138, -1, 139, -1, 140, -1, 98, -1, 99,
- -1, 100, -1, 101, -1, 102, -1, 103, -1, 104,
- -1, 105, -1, 106, -1, 107, -1, 108, -1, 109,
- -1, 110, -1, 111, -1, 112, -1, 113, -1, 114,
- -1, 115, -1, 116, -1, 117, -1, 104, -1, 105,
- -1, 106, -1, 107, -1, 27, -1, 28, -1, 16,
- -1, 14, -1, 12, -1, 10, -1, 17, -1, 15,
- -1, 13, -1, 11, -1, 169, -1, 170, -1, 18,
- -1, 19, -1, 205, 145, -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, 146, 57, 4, -1, 34, 24, -1,
- -1, 178, -1, -1, 146, 181, 180, -1, 178, -1,
- 57, 4, -1, 184, -1, 8, -1, 186, -1, 8,
- -1, 186, -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, 48,
- -1, 185, -1, 220, -1, 147, 4, -1, 183, 148,
- 188, 149, -1, 150, 4, 151, 186, 152, -1, 153,
- 4, 151, 186, 154, -1, 155, 187, 156, -1, 155,
- 156, -1, 153, 155, 187, 156, 154, -1, 153, 155,
- 156, 154, -1, 186, 157, -1, 186, -1, 187, 146,
- 186, -1, 187, -1, 187, 146, 37, -1, 37, -1,
- -1, 184, 150, 191, 152, -1, 184, 150, 152, -1,
- 184, 158, 24, -1, 184, 153, 191, 154, -1, 184,
- 155, 191, 156, -1, 184, 155, 156, -1, 184, 38,
- -1, 184, 39, -1, 184, 220, -1, 184, 190, -1,
- 184, 26, -1, 169, 161, -1, 170, 4, -1, 9,
- 27, -1, 9, 28, -1, 172, 7, -1, 165, 148,
- 189, 36, 184, 149, -1, 123, 148, 189, 234, 149,
- -1, 137, 148, 189, 146, 189, 146, 189, 149, -1,
- 162, 148, 189, 146, 189, 149, -1, 163, 148, 189,
- 146, 189, 149, -1, 164, 148, 189, 146, 189, 149,
- -1, 96, 167, 148, 189, 146, 189, 149, -1, 97,
- 168, 148, 189, 146, 189, 149, -1, 166, 148, 189,
- 146, 189, 149, -1, 142, 148, 189, 146, 189, 149,
- -1, 143, 148, 189, 146, 189, 146, 189, 149, -1,
- 144, 148, 189, 146, 189, 146, 189, 149, -1, 191,
- 146, 189, -1, 189, -1, 32, -1, 33, -1, 194,
- -1, 194, 214, -1, 194, 216, -1, 194, 62, 61,
- 200, -1, 194, 25, -1, 195, -1, 195, 173, 20,
- 182, -1, 195, 216, -1, 195, 62, 61, 200, -1,
- -1, 195, 173, 174, 192, 189, 196, 180, -1, -1,
- 195, 173, 50, 192, 184, 197, 180, -1, -1, 195,
- 173, 45, 192, 184, 198, 180, -1, -1, 195, 173,
- 47, 192, 184, 199, 180, -1, 195, 51, 202, -1,
- 195, 58, 145, 203, -1, -1, 24, -1, 56, -1,
- 55, -1, 53, 145, 201, -1, 54, 145, 4, -1,
- 52, 145, 24, -1, 71, 145, 24, -1, 150, 204,
- 152, -1, 204, 146, 24, -1, 24, -1, -1, 22,
- -1, 24, -1, 205, -1, -1, 184, 206, -1, 208,
- 146, 207, -1, 207, -1, 208, -1, 208, 146, 37,
- -1, 37, -1, -1, 175, 182, 205, 148, 209, 149,
- 179, 176, -1, 29, -1, 155, -1, 174, 210, 211,
- -1, 30, -1, 156, -1, 223, 213, -1, -1, 45,
- -1, 47, -1, -1, 31, 217, 215, 210, -1, -1,
- 63, -1, 3, -1, 4, -1, 7, -1, 27, -1,
- 28, -1, 38, -1, 39, -1, 26, -1, 153, 191,
- 154, -1, 190, -1, 61, 218, 24, 146, 24, -1,
- 160, -1, 205, -1, 220, -1, 219, -1, 184, 221,
- -1, 223, 224, -1, 212, 224, -1, 225, 173, 226,
- -1, 225, 228, -1, -1, 23, -1, 72, 222, -1,
- 72, 8, -1, 73, 21, 221, -1, 73, 9, 221,
- 146, 21, 221, 146, 21, 221, -1, 74, 171, 221,
- 146, 21, 221, 150, 227, 152, -1, 74, 171, 221,
- 146, 21, 221, 150, 152, -1, 75, 175, 182, 221,
- 148, 231, 149, 36, 21, 221, 76, 21, 221, -1,
- 76, -1, 77, -1, 227, 171, 219, 146, 21, 221,
- -1, 171, 219, 146, 21, 221, -1, 173, 233, -1,
- 184, 150, 221, 146, 221, 152, -1, 229, 146, 150,
- 221, 146, 221, 152, -1, 222, -1, 230, 146, 222,
- -1, 230, -1, -1, 60, 59, -1, 59, -1, 162,
- 184, 221, 146, 221, -1, 163, 184, 221, 146, 221,
- -1, 164, 184, 221, 146, 221, -1, 96, 167, 184,
- 221, 146, 221, -1, 97, 168, 184, 221, 146, 221,
- -1, 49, 222, -1, 166, 222, 146, 222, -1, 165,
- 222, 36, 184, -1, 137, 222, 146, 222, 146, 222,
- -1, 141, 222, 146, 184, -1, 142, 222, 146, 222,
- -1, 143, 222, 146, 222, 146, 222, -1, 144, 222,
- 146, 222, 146, 222, -1, 136, 229, -1, 232, 175,
- 182, 221, 148, 231, 149, -1, 236, -1, 146, 230,
- -1, -1, 35, -1, -1, 118, 184, 177, -1, 118,
- 184, 146, 15, 221, 177, -1, 119, 184, 177, -1,
- 119, 184, 146, 15, 221, 177, -1, 120, 222, -1,
- 235, 121, 184, 221, -1, 235, 122, 222, 146, 184,
- 221, -1, 123, 184, 221, 234, -1
+ 185, 0, -1, 5, -1, 6, -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, 118, -1, 119, -1, 120, -1, 121, -1, 122,
+ -1, 123, -1, 124, -1, 125, -1, 126, -1, 127,
+ -1, 128, -1, 129, -1, 132, -1, 133, -1, 134,
+ -1, 92, -1, 93, -1, 94, -1, 95, -1, 96,
+ -1, 97, -1, 98, -1, 99, -1, 100, -1, 101,
+ -1, 102, -1, 103, -1, 104, -1, 105, -1, 106,
+ -1, 107, -1, 108, -1, 109, -1, 110, -1, 111,
+ -1, 98, -1, 99, -1, 100, -1, 101, -1, 27,
+ -1, 28, -1, 16, -1, 14, -1, 12, -1, 10,
+ -1, 17, -1, 15, -1, 13, -1, 11, -1, 161,
+ -1, 162, -1, 18, -1, 19, -1, 197, 139, -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, 140, 57, 4,
+ -1, 34, 24, -1, -1, 170, -1, -1, 140, 173,
+ 172, -1, 170, -1, 57, 4, -1, 176, -1, 8,
+ -1, 178, -1, 8, -1, 178, -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, 48, -1, 177, -1, 212, -1, 141,
+ 4, -1, 175, 142, 180, 143, -1, 144, 4, 145,
+ 178, 146, -1, 147, 4, 145, 178, 148, -1, 149,
+ 179, 150, -1, 149, 150, -1, 147, 149, 179, 150,
+ 148, -1, 147, 149, 150, 148, -1, 178, 151, -1,
+ 178, -1, 179, 140, 178, -1, 179, -1, 179, 140,
+ 37, -1, 37, -1, -1, 176, 144, 183, 146, -1,
+ 176, 144, 146, -1, 176, 152, 24, -1, 176, 147,
+ 183, 148, -1, 176, 149, 183, 150, -1, 176, 149,
+ 150, -1, 176, 38, -1, 176, 39, -1, 176, 212,
+ -1, 176, 182, -1, 176, 26, -1, 161, 3, -1,
+ 161, 4, -1, 162, 4, -1, 162, 3, -1, 9,
+ 27, -1, 9, 28, -1, 164, 7, -1, 157, 142,
+ 181, 36, 176, 143, -1, 117, 142, 181, 226, 143,
+ -1, 131, 142, 181, 140, 181, 140, 181, 143, -1,
+ 155, 142, 181, 140, 181, 143, -1, 156, 142, 181,
+ 140, 181, 143, -1, 90, 159, 142, 181, 140, 181,
+ 143, -1, 91, 160, 142, 181, 140, 181, 143, -1,
+ 158, 142, 181, 140, 181, 143, -1, 136, 142, 181,
+ 140, 181, 143, -1, 137, 142, 181, 140, 181, 140,
+ 181, 143, -1, 138, 142, 181, 140, 181, 140, 181,
+ 143, -1, 183, 140, 181, -1, 181, -1, 32, -1,
+ 33, -1, 186, -1, 186, 206, -1, 186, 208, -1,
+ 186, 62, 61, 192, -1, 186, 25, -1, 187, -1,
+ 187, 165, 20, 174, -1, 187, 208, -1, 187, 62,
+ 61, 192, -1, -1, 187, 165, 166, 184, 181, 188,
+ 172, -1, -1, 187, 165, 50, 184, 176, 189, 172,
+ -1, -1, 187, 165, 45, 184, 176, 190, 172, -1,
+ -1, 187, 165, 47, 184, 176, 191, 172, -1, 187,
+ 51, 194, -1, 187, 58, 139, 195, -1, -1, 24,
+ -1, 56, -1, 55, -1, 53, 139, 193, -1, 54,
+ 139, 4, -1, 52, 139, 24, -1, 71, 139, 24,
+ -1, 144, 196, 146, -1, 196, 140, 24, -1, 24,
+ -1, -1, 22, -1, 24, -1, 197, -1, -1, 176,
+ 198, -1, 200, 140, 199, -1, 199, -1, 200, -1,
+ 200, 140, 37, -1, 37, -1, -1, 167, 174, 197,
+ 142, 201, 143, 171, 168, -1, 29, -1, 149, -1,
+ 166, 202, 203, -1, 30, -1, 150, -1, 215, 205,
+ -1, -1, 45, -1, 47, -1, -1, 31, 209, 207,
+ 202, -1, -1, 63, -1, 3, -1, 4, -1, 7,
+ -1, 27, -1, 28, -1, 38, -1, 39, -1, 26,
+ -1, 147, 183, 148, -1, 182, -1, 61, 210, 24,
+ 140, 24, -1, 154, -1, 197, -1, 212, -1, 211,
+ -1, 176, 213, -1, 215, 216, -1, 204, 216, -1,
+ 217, 165, 218, -1, 217, 220, -1, -1, 23, -1,
+ 72, 214, -1, 72, 8, -1, 73, 21, 213, -1,
+ 73, 9, 213, 140, 21, 213, 140, 21, 213, -1,
+ 74, 163, 213, 140, 21, 213, 144, 219, 146, -1,
+ 74, 163, 213, 140, 21, 213, 144, 146, -1, 75,
+ 167, 174, 213, 142, 223, 143, 36, 21, 213, 76,
+ 21, 213, -1, 76, -1, 77, -1, 219, 163, 211,
+ 140, 21, 213, -1, 163, 211, 140, 21, 213, -1,
+ 165, 225, -1, 176, 144, 213, 140, 213, 146, -1,
+ 221, 140, 144, 213, 140, 213, 146, -1, 214, -1,
+ 222, 140, 214, -1, 222, -1, -1, 60, 59, -1,
+ 59, -1, 155, 176, 213, 140, 213, -1, 156, 176,
+ 213, 140, 213, -1, 90, 159, 176, 213, 140, 213,
+ -1, 91, 160, 176, 213, 140, 213, -1, 49, 214,
+ -1, 158, 214, 140, 214, -1, 157, 214, 36, 176,
+ -1, 131, 214, 140, 214, 140, 214, -1, 135, 214,
+ 140, 176, -1, 136, 214, 140, 214, -1, 137, 214,
+ 140, 214, 140, 214, -1, 138, 214, 140, 214, 140,
+ 214, -1, 130, 221, -1, 224, 167, 174, 213, 142,
+ 223, 143, -1, 228, -1, 140, 222, -1, -1, 35,
+ -1, -1, 112, 176, 169, -1, 112, 176, 140, 15,
+ 213, 169, -1, 113, 176, 169, -1, 113, 176, 140,
+ 15, 213, 169, -1, 114, 214, -1, 227, 115, 176,
+ 213, -1, 227, 116, 214, 140, 176, 213, -1, 117,
+ 176, 213, 226, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
-static const unsigned short yyrline[] =
+static const unsigned short int yyrline[] =
{
- 0, 990, 990, 991, 999, 1000, 1010, 1010, 1010, 1010,
- 1010, 1010, 1010, 1010, 1010, 1011, 1011, 1011, 1012, 1012,
- 1012, 1012, 1012, 1012, 1013, 1013, 1013, 1013, 1013, 1013,
- 1014, 1014, 1014, 1014, 1014, 1014, 1015, 1015, 1015, 1017,
- 1017, 1018, 1018, 1019, 1019, 1020, 1020, 1021, 1021, 1025,
- 1025, 1026, 1026, 1027, 1027, 1028, 1028, 1029, 1029, 1030,
- 1030, 1031, 1031, 1032, 1033, 1038, 1038, 1038, 1038, 1039,
- 1039, 1039, 1039, 1040, 1040, 1041, 1041, 1044, 1048, 1053,
- 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1062, 1063, 1064,
- 1065, 1066, 1067, 1068, 1069, 1078, 1079, 1085, 1086, 1094,
- 1102, 1103, 1108, 1109, 1110, 1115, 1129, 1129, 1130, 1130,
- 1132, 1142, 1142, 1142, 1142, 1142, 1142, 1142, 1143, 1143,
- 1143, 1143, 1143, 1143, 1144, 1148, 1152, 1160, 1168, 1181,
- 1186, 1198, 1208, 1212, 1222, 1226, 1237, 1242, 1248, 1249,
- 1253, 1257, 1268, 1294, 1308, 1338, 1364, 1385, 1398, 1408,
- 1413, 1474, 1481, 1489, 1495, 1501, 1505, 1509, 1517, 1529,
- 1550, 1558, 1564, 1575, 1581, 1586, 1591, 1600, 1606, 1612,
- 1621, 1625, 1633, 1633, 1643, 1651, 1656, 1660, 1664, 1668,
- 1683, 1705, 1708, 1711, 1711, 1719, 1719, 1727, 1727, 1735,
- 1735, 1744, 1747, 1750, 1754, 1767, 1768, 1770, 1774, 1783,
- 1787, 1792, 1794, 1799, 1804, 1813, 1813, 1814, 1814, 1816,
- 1823, 1829, 1836, 1840, 1846, 1851, 1856, 1951, 1951, 1953,
- 1961, 1961, 1963, 1968, 1969, 1970, 1972, 1972, 1982, 1986,
- 1991, 1995, 1999, 2003, 2007, 2011, 2015, 2019, 2023, 2048,
- 2052, 2066, 2070, 2076, 2076, 2082, 2087, 2091, 2100, 2111,
- 2120, 2132, 2145, 2149, 2153, 2158, 2167, 2186, 2195, 2251,
- 2255, 2262, 2273, 2286, 2295, 2304, 2314, 2318, 2325, 2325,
- 2327, 2331, 2336, 2355, 2370, 2384, 2395, 2406, 2419, 2428,
- 2439, 2447, 2452, 2458, 2464, 2470, 2485, 2544, 2551, 2554,
- 2559, 2563, 2570, 2575, 2581, 2586, 2592, 2600, 2612, 2627
+ 0, 988, 988, 989, 999, 999, 999, 999, 999, 999,
+ 999, 999, 999, 1000, 1000, 1000, 1001, 1001, 1001, 1001,
+ 1001, 1001, 1002, 1002, 1002, 1002, 1002, 1002, 1003, 1003,
+ 1003, 1005, 1005, 1006, 1006, 1007, 1007, 1008, 1008, 1009,
+ 1009, 1013, 1013, 1014, 1014, 1015, 1015, 1016, 1016, 1017,
+ 1017, 1018, 1018, 1019, 1019, 1020, 1021, 1026, 1026, 1026,
+ 1026, 1027, 1027, 1027, 1027, 1028, 1028, 1029, 1029, 1032,
+ 1036, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1050,
+ 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1066, 1067, 1073,
+ 1074, 1082, 1090, 1091, 1096, 1097, 1098, 1103, 1117, 1117,
+ 1118, 1118, 1120, 1130, 1130, 1130, 1130, 1130, 1130, 1130,
+ 1131, 1131, 1131, 1131, 1131, 1131, 1132, 1136, 1140, 1148,
+ 1156, 1169, 1174, 1186, 1196, 1200, 1210, 1214, 1225, 1230,
+ 1236, 1237, 1241, 1245, 1256, 1282, 1296, 1326, 1352, 1373,
+ 1386, 1396, 1401, 1462, 1469, 1477, 1483, 1489, 1495, 1501,
+ 1505, 1509, 1517, 1529, 1550, 1558, 1564, 1575, 1580, 1585,
+ 1594, 1600, 1606, 1615, 1619, 1627, 1627, 1637, 1645, 1650,
+ 1654, 1658, 1662, 1677, 1699, 1702, 1705, 1705, 1713, 1713,
+ 1721, 1721, 1729, 1729, 1738, 1741, 1744, 1748, 1761, 1762,
+ 1764, 1768, 1777, 1781, 1786, 1788, 1793, 1798, 1807, 1807,
+ 1808, 1808, 1810, 1817, 1823, 1830, 1834, 1840, 1845, 1850,
+ 1945, 1945, 1947, 1955, 1955, 1957, 1962, 1963, 1964, 1966,
+ 1966, 1976, 1980, 1985, 1989, 1993, 1997, 2001, 2005, 2009,
+ 2013, 2017, 2042, 2046, 2060, 2064, 2070, 2070, 2076, 2081,
+ 2085, 2094, 2105, 2114, 2126, 2139, 2143, 2147, 2152, 2161,
+ 2180, 2189, 2245, 2249, 2256, 2267, 2280, 2289, 2298, 2308,
+ 2312, 2319, 2319, 2321, 2325, 2330, 2349, 2364, 2375, 2386,
+ 2399, 2408, 2419, 2427, 2432, 2438, 2444, 2450, 2465, 2524,
+ 2531, 2534, 2539, 2543, 2550, 2555, 2561, 2566, 2572, 2580,
+ 2592, 2607
};
#endif
-#if YYDEBUG || YYERROR_VERBOSE
-/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
+#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
+/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
@@ -1625,27 +1664,26 @@ static const char *const yytname[] =
"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", "ICMP",
- "FCMP", "EQ", "NE", "SLT", "SGT", "SLE", "SGE", "ULT", "UGT", "ULE",
- "UGE", "OEQ", "ONE", "OLT", "OGT", "OLE", "OGE", "ORD", "UNO", "UEQ",
- "UNE", "MALLOC", "ALLOCA", "FREE", "LOAD", "STORE", "GETELEMENTPTR",
- "TRUNC", "ZEXT", "SEXT", "FPTRUNC", "FPEXT", "BITCAST", "UITOFP",
- "SITOFP", "FPTOUI", "FPTOSI", "INTTOPTR", "PTRTOINT", "PHI_TOK",
- "SELECT", "SHL", "LSHR", "ASHR", "VAARG", "EXTRACTELEMENT",
+ "XOR", "ICMP", "FCMP", "EQ", "NE", "SLT", "SGT", "SLE", "SGE", "ULT",
+ "UGT", "ULE", "UGE", "OEQ", "ONE", "OLT", "OGT", "OLE", "OGE", "ORD",
+ "UNO", "UEQ", "UNE", "MALLOC", "ALLOCA", "FREE", "LOAD", "STORE",
+ "GETELEMENTPTR", "TRUNC", "ZEXT", "SEXT", "FPTRUNC", "FPEXT", "BITCAST",
+ "UITOFP", "SITOFP", "FPTOUI", "FPTOSI", "INTTOPTR", "PTRTOINT",
+ "PHI_TOK", "SELECT", "SHL", "LSHR", "ASHR", "VAARG", "EXTRACTELEMENT",
"INSERTELEMENT", "SHUFFLEVECTOR", "'='", "','", "'\\\\'", "'('", "')'",
"'['", "'x'", "']'", "'<'", "'>'", "'{'", "'}'", "'*'", "'c'", "$accept",
- "INTVAL", "EINT64VAL", "ArithmeticOps", "LogicalOps", "SetCondOps",
- "CastOps", "ShiftOps", "IPredicates", "FPredicates", "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",
+ "INTVAL", "ArithmeticOps", "LogicalOps", "CastOps", "ShiftOps",
+ "IPredicates", "FPredicates", "SIntType", "UIntType", "IntType",
+ "FPType", "OptAssign", "OptLinkage", "OptCallingConv", "OptAlign",
+ "OptCAlign", "SectionString", "OptSection", "GlobalVarAttributes",
+ "GlobalVarAttribute", "TypesV", "UpRTypesV", "Types", "PrimType",
+ "UpRTypes", "TypeListI