aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2006-09-17 20:25:45 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2006-09-17 20:25:45 +0000
commitbcb9770efe409f3291ce21269904744e7bf3397b (patch)
tree88414cb50a458549c4b76bc1f5c7b33cad02f991 /lib/AsmParser/llvmAsmParser.cpp.cvs
parent2f463865c2f03b8835e35d3499fcd95eed922bc6 (diff)
Added some eye-candy for Subtarget type checking
Added X86 StdCall & FastCall calling conventions. Codegen will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs2088
1 files changed, 1055 insertions, 1033 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index 8c264eacf5..7e1eb7b1ee 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -140,43 +140,45 @@
CSRETCC_TOK = 321,
FASTCC_TOK = 322,
COLDCC_TOK = 323,
- RET = 324,
- BR = 325,
- SWITCH = 326,
- INVOKE = 327,
- UNWIND = 328,
- UNREACHABLE = 329,
- ADD = 330,
- SUB = 331,
- MUL = 332,
- DIV = 333,
- REM = 334,
- AND = 335,
- OR = 336,
- XOR = 337,
- SETLE = 338,
- SETGE = 339,
- SETLT = 340,
- SETGT = 341,
- SETEQ = 342,
- SETNE = 343,
- MALLOC = 344,
- ALLOCA = 345,
- FREE = 346,
- LOAD = 347,
- STORE = 348,
- GETELEMENTPTR = 349,
- PHI_TOK = 350,
- CAST = 351,
- SELECT = 352,
- SHL = 353,
- SHR = 354,
- VAARG = 355,
- EXTRACTELEMENT = 356,
- INSERTELEMENT = 357,
- SHUFFLEVECTOR = 358,
- VAARG_old = 359,
- VANEXT_old = 360
+ X86_STDCALLCC_TOK = 324,
+ X86_FASTCALLCC_TOK = 325,
+ RET = 326,
+ BR = 327,
+ SWITCH = 328,
+ INVOKE = 329,
+ UNWIND = 330,
+ UNREACHABLE = 331,
+ ADD = 332,
+ SUB = 333,
+ MUL = 334,
+ DIV = 335,
+ REM = 336,
+ AND = 337,
+ OR = 338,
+ XOR = 339,
+ SETLE = 340,
+ SETGE = 341,
+ SETLT = 342,
+ SETGT = 343,
+ SETEQ = 344,
+ SETNE = 345,
+ MALLOC = 346,
+ ALLOCA = 347,
+ FREE = 348,
+ LOAD = 349,
+ STORE = 350,
+ GETELEMENTPTR = 351,
+ PHI_TOK = 352,
+ CAST = 353,
+ SELECT = 354,
+ SHL = 355,
+ SHR = 356,
+ VAARG = 357,
+ EXTRACTELEMENT = 358,
+ INSERTELEMENT = 359,
+ SHUFFLEVECTOR = 360,
+ VAARG_old = 361,
+ VANEXT_old = 362
};
#endif
/* Tokens. */
@@ -246,43 +248,45 @@
#define CSRETCC_TOK 321
#define FASTCC_TOK 322
#define COLDCC_TOK 323
-#define RET 324
-#define BR 325
-#define SWITCH 326
-#define INVOKE 327
-#define UNWIND 328
-#define UNREACHABLE 329
-#define ADD 330
-#define SUB 331
-#define MUL 332
-#define DIV 333
-#define REM 334
-#define AND 335
-#define OR 336
-#define XOR 337
-#define SETLE 338
-#define SETGE 339
-#define SETLT 340
-#define SETGT 341
-#define SETEQ 342
-#define SETNE 343
-#define MALLOC 344
-#define ALLOCA 345
-#define FREE 346
-#define LOAD 347
-#define STORE 348
-#define GETELEMENTPTR 349
-#define PHI_TOK 350
-#define CAST 351
-#define SELECT 352
-#define SHL 353
-#define SHR 354
-#define VAARG 355
-#define EXTRACTELEMENT 356
-#define INSERTELEMENT 357
-#define SHUFFLEVECTOR 358
-#define VAARG_old 359
-#define VANEXT_old 360
+#define X86_STDCALLCC_TOK 324
+#define X86_FASTCALLCC_TOK 325
+#define RET 326
+#define BR 327
+#define SWITCH 328
+#define INVOKE 329
+#define UNWIND 330
+#define UNREACHABLE 331
+#define ADD 332
+#define SUB 333
+#define MUL 334
+#define DIV 335
+#define REM 336
+#define AND 337
+#define OR 338
+#define XOR 339
+#define SETLE 340
+#define SETGE 341
+#define SETLT 342
+#define SETGT 343
+#define SETEQ 344
+#define SETNE 345
+#define MALLOC 346
+#define ALLOCA 347
+#define FREE 348
+#define LOAD 349
+#define STORE 350
+#define GETELEMENTPTR 351
+#define PHI_TOK 352
+#define CAST 353
+#define SELECT 354
+#define SHL 355
+#define SHR 356
+#define VAARG 357
+#define EXTRACTELEMENT 358
+#define INSERTELEMENT 359
+#define SHUFFLEVECTOR 360
+#define VAARG_old 361
+#define VANEXT_old 362
@@ -1249,7 +1253,7 @@ typedef union YYSTYPE
llvm::Module::Endianness Endianness;
}
/* Line 193 of yacc.c. */
-#line 1253 "llvmAsmParser.tab.c"
+#line 1257 "llvmAsmParser.tab.c"
YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
@@ -1262,7 +1266,7 @@ typedef union YYSTYPE
/* Line 216 of yacc.c. */
-#line 1266 "llvmAsmParser.tab.c"
+#line 1270 "llvmAsmParser.tab.c"
#ifdef short
# undef short
@@ -1477,20 +1481,20 @@ union yyalloc
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 4
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1326
+#define YYLAST 1330
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 120
+#define YYNTOKENS 122
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 75
/* YYNRULES -- Number of rules. */
-#define YYNRULES 249
+#define YYNRULES 251
/* YYNRULES -- Number of states. */
-#define YYNSTATES 512
+#define YYNSTATES 514
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 360
+#define YYMAXUTOK 362
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
@@ -1502,15 +1506,15 @@ static const yytype_uint8 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,
- 109, 110, 118, 2, 107, 2, 2, 2, 2, 2,
+ 111, 112, 120, 2, 109, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 114, 106, 115, 2, 2, 2, 2, 2, 2, 2,
+ 116, 108, 117, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 111, 108, 113, 2, 2, 2, 2, 2, 119,
+ 2, 113, 110, 115, 2, 2, 2, 2, 2, 121,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 112, 2, 2, 116, 2, 117, 2, 2, 2, 2,
+ 114, 2, 2, 118, 2, 119, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -1534,7 +1538,7 @@ static const yytype_uint8 yytranslate[] =
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
+ 105, 106, 107
};
#if YYDEBUG
@@ -1547,143 +1551,145 @@ static const yytype_uint16 yyprhs[] =
39, 41, 43, 45, 47, 49, 51, 53, 55, 57,
59, 61, 63, 65, 67, 70, 71, 73, 75, 77,
79, 81, 83, 85, 86, 87, 89, 91, 93, 95,
- 98, 99, 102, 103, 107, 110, 111, 113, 114, 118,
- 120, 123, 125, 127, 129, 131, 133, 135, 137, 139,
+ 97, 99, 102, 103, 106, 107, 111, 114, 115, 117,
+ 118, 122, 124, 127, 129, 131, 133, 135, 137, 139,
141, 143, 145, 147, 149, 151, 153, 155, 157, 159,
- 161, 163, 165, 168, 173, 179, 185, 189, 192, 195,
- 197, 201, 203, 207, 209, 210, 215, 219, 223, 228,
- 233, 237, 240, 243, 246, 249, 252, 255, 258, 261,
- 264, 267, 274, 280, 289, 296, 303, 310, 317, 324,
- 333, 342, 346, 348, 350, 352, 354, 357, 360, 365,
- 368, 370, 375, 378, 383, 384, 392, 393, 401, 402,
- 410, 411, 419, 423, 428, 429, 431, 433, 435, 439,
- 443, 447, 451, 455, 457, 458, 460, 462, 464, 465,
- 468, 472, 474, 476, 480, 482, 483, 492, 494, 496,
- 500, 502, 504, 507, 508, 510, 512, 513, 518, 519,
- 521, 523, 525, 527, 529, 531, 533, 535, 537, 541,
- 543, 549, 551, 553, 555, 557, 560, 563, 566, 570,
- 573, 574, 576, 579, 582, 586, 596, 606, 615, 629,
- 631, 633, 640, 646, 649, 656, 664, 666, 670, 672,
- 673, 676, 678, 684, 690, 696, 699, 704, 709, 716,
- 721, 726, 731, 736, 743, 750, 753, 761, 763, 766,
- 767, 769, 770, 774, 781, 785, 792, 795, 800, 807
+ 161, 163, 165, 167, 169, 172, 177, 183, 189, 193,
+ 196, 199, 201, 205, 207, 211, 213, 214, 219, 223,
+ 227, 232, 237, 241, 244, 247, 250, 253, 256, 259,
+ 262, 265, 268, 271, 278, 284, 293, 300, 307, 314,
+ 321, 328, 337, 346, 350, 352, 354, 356, 358, 361,
+ 364, 369, 372, 374, 379, 382, 387, 388, 396, 397,
+ 405, 406, 414, 415, 423, 427, 432, 433, 435, 437,
+ 439, 443, 447, 451, 455, 459, 461, 462, 464, 466,
+ 468, 469, 472, 476, 478, 480, 484, 486, 487, 496,
+ 498, 500, 504, 506, 508, 511, 512, 514, 516, 517,
+ 522, 523, 525, 527, 529, 531, 533, 535, 537, 539,
+ 541, 545, 547, 553, 555, 557, 559, 561, 564, 567,
+ 570, 574, 577, 578, 580, 583, 586, 590, 600, 610,
+ 619, 633, 635, 637, 644, 650, 653, 660, 668, 670,
+ 674, 676, 677, 680, 682, 688, 694, 700, 703, 708,
+ 713, 720, 725, 730, 735, 740, 747, 754, 757, 765,
+ 767, 770, 771, 773, 774, 778, 785, 789, 796, 799,
+ 804, 811
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int16 yyrhs[] =
{
- 151, 0, -1, 5, -1, 6, -1, 3, -1, 4,
- -1, 75, -1, 76, -1, 77, -1, 78, -1, 79,
- -1, 80, -1, 81, -1, 82, -1, 83, -1, 84,
- -1, 85, -1, 86, -1, 87, -1, 88, -1, 98,
- -1, 99, -1, 16, -1, 14, -1, 12, -1, 10,
- -1, 17, -1, 15, -1, 13, -1, 11, -1, 127,
- -1, 128, -1, 18, -1, 19, -1, 163, 106, -1,
+ 153, 0, -1, 5, -1, 6, -1, 3, -1, 4,
+ -1, 77, -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, 100,
+ -1, 101, -1, 16, -1, 14, -1, 12, -1, 10,
+ -1, 17, -1, 15, -1, 13, -1, 11, -1, 129,
+ -1, 130, -1, 18, -1, 19, -1, 165, 108, -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, 64, 4, -1, -1, 57,
- 4, -1, -1, 107, 57, 4, -1, 34, 24, -1,
- -1, 136, -1, -1, 107, 139, 138, -1, 136, -1,
- 57, 4, -1, 142, -1, 8, -1, 144, -1, 8,
- -1, 144, -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, 143, -1, 178, -1, 108, 4, -1, 141, 109,
- 146, 110, -1, 111, 4, 112, 144, 113, -1, 114,
- 4, 112, 144, 115, -1, 116, 145, 117, -1, 116,
- 117, -1, 144, 118, -1, 144, -1, 145, 107, 144,
- -1, 145, -1, 145, 107, 37, -1, 37, -1, -1,
- 142, 111, 149, 113, -1, 142, 111, 113, -1, 142,
- 119, 24, -1, 142, 114, 149, 115, -1, 142, 116,
- 149, 117, -1, 142, 116, 117, -1, 142, 38, -1,
- 142, 39, -1, 142, 178, -1, 142, 148, -1, 142,
- 26, -1, 127, 122, -1, 128, 4, -1, 9, 27,
- -1, 9, 28, -1, 130, 7, -1, 96, 109, 147,
- 36, 142, 110, -1, 94, 109, 147, 192, 110, -1,
- 97, 109, 147, 107, 147, 107, 147, 110, -1, 123,
- 109, 147, 107, 147, 110, -1, 124, 109, 147, 107,
- 147, 110, -1, 125, 109, 147, 107, 147, 110, -1,
- 126, 109, 147, 107, 147, 110, -1, 101, 109, 147,
- 107, 147, 110, -1, 102, 109, 147, 107, 147, 107,
- 147, 110, -1, 103, 109, 147, 107, 147, 107, 147,
- 110, -1, 149, 107, 147, -1, 147, -1, 32, -1,
- 33, -1, 152, -1, 152, 172, -1, 152, 174, -1,
- 152, 62, 61, 158, -1, 152, 25, -1, 153, -1,
- 153, 131, 20, 140, -1, 153, 174, -1, 153, 62,
- 61, 158, -1, -1, 153, 131, 132, 150, 147, 154,
- 138, -1, -1, 153, 131, 50, 150, 142, 155, 138,
- -1, -1, 153, 131, 45, 150, 142, 156, 138, -1,
- -1, 153, 131, 47, 150, 142, 157, 138, -1, 153,
- 51, 160, -1, 153, 58, 106, 161, -1, -1, 24,
- -1, 56, -1, 55, -1, 53, 106, 159, -1, 54,
- 106, 4, -1, 52, 106, 24, -1, 111, 162, 113,
- -1, 162, 107, 24, -1, 24, -1, -1, 22, -1,
- 24, -1, 163, -1, -1, 142, 164, -1, 166, 107,
- 165, -1, 165, -1, 166, -1, 166, 107, 37, -1,
- 37, -1, -1, 133, 140, 163, 109, 167, 110, 137,
- 134, -1, 29, -1, 116, -1, 132, 168, 169, -1,
- 30, -1, 117, -1, 181, 171, -1, -1, 45, -1,
- 47, -1, -1, 31, 175, 173, 168, -1, -1, 63,
- -1, 3, -1, 4, -1, 7, -1, 27, -1, 28,
- -1, 38, -1, 39, -1, 26, -1, 114, 149, 115,
- -1, 148, -1, 61, 176, 24, 107, 24, -1, 121,
- -1, 163, -1, 178, -1, 177, -1, 142, 179, -1,
- 181, 182, -1, 170, 182, -1, 183, 131, 184, -1,
- 183, 186, -1, -1, 23, -1, 69, 180, -1, 69,
- 8, -1, 70, 21, 179, -1, 70, 9, 179, 107,
- 21, 179, 107, 21, 179, -1, 71, 129, 179, 107,
- 21, 179, 111, 185, 113, -1, 71, 129, 179, 107,
- 21, 179, 111, 113, -1, 72, 133, 140, 179, 109,
- 189, 110, 36, 21, 179, 73, 21, 179, -1, 73,
- -1, 74, -1, 185, 129, 177, 107, 21, 179, -1,
- 129, 177, 107, 21, 179, -1, 131, 191, -1, 142,
- 111, 179, 107, 179, 113, -1, 187, 107, 111, 179,
- 107, 179, 113, -1, 180, -1, 188, 107, 180, -1,
- 188, -1, -1, 60, 59, -1, 59, -1, 123, 142,
- 179, 107, 179, -1, 124, 142, 179, 107, 179, -1,
- 125, 142, 179, 107, 179, -1, 49, 180, -1, 126,
- 180, 107, 180, -1, 96, 180, 36, 142, -1, 97,
- 180, 107, 180, 107, 180, -1, 100, 180, 107, 142,
- -1, 104, 180, 107, 142, -1, 105, 180, 107, 142,
- -1, 101, 180, 107, 180, -1, 102, 180, 107, 180,
- 107, 180, -1, 103, 180, 107, 180, 107, 180, -1,
- 95, 187, -1, 190, 133, 140, 179, 109, 189, 110,
- -1, 194, -1, 107, 188, -1, -1, 35, -1, -1,
- 89, 142, 135, -1, 89, 142, 107, 15, 179, 135,
- -1, 90, 142, 135, -1, 90, 142, 107, 15, 179,
- 135, -1, 91, 180, -1, 193, 92, 142, 179, -1,
- 193, 93, 180, 107, 142, 179, -1, 94, 142, 179,
- 192, -1
+ -1, 67, -1, 68, -1, 69, -1, 70, -1, 64,
+ 4, -1, -1, 57, 4, -1, -1, 109, 57, 4,
+ -1, 34, 24, -1, -1, 138, -1, -1, 109, 141,
+ 140, -1, 138, -1, 57, 4, -1, 144, -1, 8,
+ -1, 146, -1, 8, -1, 146, -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, 145, -1, 180, -1, 110,
+ 4, -1, 143, 111, 148, 112, -1, 113, 4, 114,
+ 146, 115, -1, 116, 4, 114, 146, 117, -1, 118,
+ 147, 119, -1, 118, 119, -1, 146, 120, -1, 146,
+ -1, 147, 109, 146, -1, 147, -1, 147, 109, 37,
+ -1, 37, -1, -1, 144, 113, 151, 115, -1, 144,
+ 113, 115, -1, 144, 121, 24, -1, 144, 116, 151,
+ 117, -1, 144, 118, 151, 119, -1, 144, 118, 119,
+ -1, 144, 38, -1, 144, 39, -1, 144, 180, -1,
+ 144, 150, -1, 144, 26, -1, 129, 124, -1, 130,
+ 4, -1, 9, 27, -1, 9, 28, -1, 132, 7,
+ -1, 98, 111, 149, 36, 144, 112, -1, 96, 111,
+ 149, 194, 112, -1, 99, 111, 149, 109, 149, 109,
+ 149, 112, -1, 125, 111, 149, 109, 149, 112, -1,
+ 126, 111, 149, 109, 149, 112, -1, 127, 111, 149,
+ 109, 149, 112, -1, 128, 111, 149, 109, 149, 112,
+ -1, 103, 111, 149, 109, 149, 112, -1, 104, 111,
+ 149, 109, 149, 109, 149, 112, -1, 105, 111, 149,
+ 109, 149, 109, 149, 112, -1, 151, 109, 149, -1,
+ 149, -1, 32, -1, 33, -1, 154, -1, 154, 174,
+ -1, 154, 176, -1, 154, 62, 61, 160, -1, 154,
+ 25, -1, 155, -1, 155, 133, 20, 142, -1, 155,
+ 176, -1, 155, 62, 61, 160, -1, -1, 155, 133,
+ 134, 152, 149, 156, 140, -1, -1, 155, 133, 50,
+ 152, 144, 157, 140, -1, -1, 155, 133, 45, 152,
+ 144, 158, 140, -1, -1, 155, 133, 47, 152, 144,
+ 159, 140, -1, 155, 51, 162, -1, 155, 58, 108,
+ 163, -1, -1, 24, -1, 56, -1, 55, -1, 53,
+ 108, 161, -1, 54, 108, 4, -1, 52, 108, 24,
+ -1, 113, 164, 115, -1, 164, 109, 24, -1, 24,
+ -1, -1, 22, -1, 24, -1, 165, -1, -1, 144,
+ 166, -1, 168, 109, 167, -1, 167, -1, 168, -1,
+ 168, 109, 37, -1, 37, -1, -1, 135, 142, 165,
+ 111, 169, 112, 139, 136, -1, 29, -1, 118, -1,
+ 134, 170, 171, -1, 30, -1, 119, -1, 183, 173,
+ -1, -1, 45, -1, 47, -1, -1, 31, 177, 175,
+ 170, -1, -1, 63, -1, 3, -1, 4, -1, 7,
+ -1, 27, -1, 28, -1, 38, -1, 39, -1, 26,
+ -1, 116, 151, 117, -1, 150, -1, 61, 178, 24,
+ 109, 24, -1, 123, -1, 165, -1, 180, -1, 179,
+ -1, 144, 181, -1, 183, 184, -1, 172, 184, -1,
+ 185, 133, 186, -1, 185, 188, -1, -1, 23, -1,
+ 71, 182, -1, 71, 8, -1, 72, 21, 181, -1,
+ 72, 9, 181, 109, 21, 181, 109, 21, 181, -1,
+ 73, 131, 181, 109, 21, 181, 113, 187, 115, -1,
+ 73, 131, 181, 109, 21, 181, 113, 115, -1, 74,
+ 135, 142, 181, 111, 191, 112, 36, 21, 181, 75,
+ 21, 181, -1, 75, -1, 76, -1, 187, 131, 179,
+ 109, 21, 181, -1, 131, 179, 109, 21, 181, -1,
+ 133, 193, -1, 144, 113, 181, 109, 181, 115, -1,
+ 189, 109, 113, 181, 109, 181, 115, -1, 182, -1,
+ 190, 109, 182, -1, 190, -1, -1, 60, 59, -1,
+ 59, -1, 125, 144, 181, 109, 181, -1, 126, 144,
+ 181, 109, 181, -1, 127, 144, 181, 109, 181, -1,
+ 49, 182, -1, 128, 182, 109, 182, -1, 98, 182,
+ 36, 144, -1, 99, 182, 109, 182, 109, 182, -1,
+ 102, 182, 109, 144, -1, 106, 182, 109, 144, -1,
+ 107, 182, 109, 144, -1, 103, 182, 109, 182, -1,
+ 104, 182, 109, 182, 109, 182, -1, 105, 182, 109,
+ 182, 109, 182, -1, 97, 189, -1, 192, 135, 142,
+ 181, 111, 191, 112, -1, 196, -1, 109, 190, -1,
+ -1, 35, -1, -1, 91, 144, 137, -1, 91, 144,
+ 109, 15, 181, 137, -1, 92, 144, 137, -1, 92,
+ 144, 109, 15, 181, 137, -1, 93, 182, -1, 195,
+ 94, 144, 181, -1, 195, 95, 182, 109, 144, 181,
+ -1, 96, 144, 181, 194, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
- 0, 1034, 1034, 1035, 1043, 1044, 1054, 1054, 1054, 1054,
- 1054, 1055, 1055, 1055, 1056, 1056, 1056, 1056, 1056, 1056,
- 1058, 1058, 1062, 1062, 1062, 1062, 1063, 1063, 1063, 1063,
- 1064, 1064, 1065, 1065, 1068, 1072, 1077, 1078, 1079, 1080,
- 1081, 1082, 1083, 1084, 1086, 1087, 1088, 1089, 1090, 1091,
- 1100, 1101, 1107, 1108, 1116, 1124, 1125, 1130, 1131, 1132,
- 1137, 1151, 1151, 1152, 1152, 1154, 1164, 1164, 1164, 1164,
- 1164, 1164, 1164, 1165, 1165, 1165, 1165, 1165, 1165, 1166,
- 1170, 1174, 1181, 1189, 1202, 1207, 1219, 1229, 1233, 1242,
- 1247, 1253, 1254, 1258, 1262, 1273, 1299, 1313, 1343, 1369,
- 1390, 1403, 1413, 1418, 1478, 1485, 1494, 1500, 1506, 1510,
- 1514, 1522, 1533, 1565, 1573, 1595, 1606, 1612, 1620, 1626,
- 1632, 1641, 1645, 1653, 1653, 1663, 1671, 1676, 1680, 1684,
- 1688, 1703, 1724, 1727, 1730, 1730, 1737, 1737, 1745, 1745,
- 1753, 1753, 1761, 1764, 1767, 1771, 1784, 1785, 1787, 1791,
- 1800, 1806, 1808, 1813, 1818, 1827, 1827, 1828, 1828, 1830,
- 1837, 1843, 1850, 1854, 1860, 1865, 1870, 1964, 1964, 1966,
- 1974, 1974, 1976, 1981, 1982, 1983, 1985, 1985, 1995, 1999,
- 2004, 2008, 2012, 2016, 2020, 2024, 2028, 2032, 2036, 2061,
- 2065, 2079, 2083, 2089, 2089, 2095, 2100, 2104, 2113, 2123,
- 2128, 2139, 2151, 2155, 2159, 2163, 2167, 2182, 2187, 2241,
- 2245, 2252, 2261, 2272, 2280, 2286, 2294, 2299, 2306, 2306,
- 2308, 2312, 2319, 2332, 2344, 2355, 2368, 2376, 2384, 2392,
- 2398, 2418, 2441, 2447, 2453, 2459, 2474, 2532, 2539, 2542,
- 2547, 2551, 2558, 2563, 2568, 2573, 2578, 2586, 2597, 2611
+ 0, 1035, 1035, 1036, 1044, 1045, 1055, 1055, 1055, 1055,
+ 1055, 1056, 1056, 1056, 1057, 1057, 1057, 1057, 1057, 1057,
+ 1059, 1059, 1063, 1063, 1063, 1063, 1064, 1064, 1064, 1064,
+ 1065, 1065, 1066, 1066, 1069, 1073, 1078, 1079, 1080, 1081,
+ 1082, 1083, 1084, 1085, 1087, 1088, 1089, 1090, 1091, 1092,
+ 1093, 1094, 1103, 1104, 1110, 1111, 1119, 1127, 1128, 1133,
+ 1134, 1135, 1140, 1154, 1154, 1155, 1155, 1157, 1167, 1167,
+ 1167, 1167, 1167, 1167, 1167, 1168, 1168, 1168, 1168, 1168,
+ 1168, 1169, 1173, 1177, 1184, 1192, 1205, 1210, 1222, 1232,
+ 1236, 1245, 1250, 1256, 1257, 1261, 1265, 1276, 1302, 1316,
+ 1346, 1372, 1393, 1406, 1416, 1421, 1481, 1488, 1497, 1503,
+ 1509, 1513, 1517, 1525, 1536, 1568, 1576, 1598, 1609, 1615,
+ 1623, 1629, 1635, 1644, 1648, 1656, 1656, 1666, 1674, 1679,
+ 1683, 1687, 1691, 1706, 1727, 1730, 1733, 1733, 1740, 1740,
+ 1748, 1748, 1756, 1756, 1764, 1767, 1770, 1774, 1787, 1788,
+ 1790, 1794, 1803, 1809, 1811, 1816, 1821, 1830, 1830, 1831,
+ 1831, 1833, 1840, 1846, 1853, 1857, 1863, 1868, 1873, 1967,
+ 1967, 1969, 1977, 1977, 1979, 1984, 1985, 1986, 1988, 1988,
+ 1998, 2002, 2007, 2011, 2015, 2019, 2023, 2027, 2031, 2035,
+ 2039, 2064, 2068, 2082, 2086, 2092, 2092, 2098, 2103, 2107,
+ 2116, 2126, 2131, 2142, 2154, 2158, 2162, 2166, 2170, 2185,
+ 2190, 2244, 2248, 2255, 2264, 2275, 2283, 2289, 2297, 2302,
+ 2309, 2309, 2311, 2315, 2322, 2335, 2347, 2358, 2371, 2379,
+ 2387, 2395, 2401, 2421, 2444, 2450, 2456, 2462, 2477, 2535,
+ 2542, 2545, 2550, 2554, 2561, 2566, 2571, 2576, 2581, 2589,
+ 2600, 2614
};
#endif
@@ -1703,16 +1709,17 @@ static const char *const yytname[] =
"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'", "$accept", "INTVAL",
- "EINT64VAL", "ArithmeticOps", "LogicalOps", "SetCondOps", "ShiftOps",
- "SIntType", "UIntType", "IntType", "FPType", "OptAssign", "OptLinkage",
- "OptCallingConv", "OptAlign", "OptCAlign", "SectionString", "OptSection",
+ "COLDCC_TOK", "X86_STDCALLCC_TOK", "X86_FASTCALLCC_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'", "$accept", "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",
@@ -1743,39 +1750,41 @@ static const yytype_uint16 yytoknum[] =
325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
- 355, 356, 357, 358, 359, 360, 61, 44, 92, 40,
- 41, 91, 120, 93, 60, 62, 123, 125, 42, 99
+ 355, 356, 357, 358, 359, 360, 361, 362, 61, 44,
+ 92, 40, 41, 91, 120, 93, 60, 62, 123, 125,
+ 42, 99
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] =
{
- 0, 120, 121, 121, 122, 122, 123, 123, 123, 123,
- 123, 124, 124, 124, 125, 125, 125, 125, 125, 125,
- 126, 126, 127, 127, 127, 127, 128, 128, 128, 128,
- 129, 129, 130, 130, 131, 131, 132, 132, 132, 132,
- 132, 132, 132, 132, 133, 133, 133, 133, 133, 133,
- 134, 134, 135, 135, 136, 137, 137, 138, 138, 139,
- 139, 140, 140, 141, 141, 142, 143, 143, 143, 143,
- 143, 143, 143, 143, 143, 143, 143, 143, 143, 144,
- 144, 144, 144, 144, 144, 144, 144, 144, 144, 145,
- 145, 146, 146, 146, 146, 147, 147, 147, 147, 147,
- 147, 147, 147, 147, 147, 147, 147, 147, 147, 147,
- 147, 148, 148, 148, 148, 148, 148, 148, 148, 148,
- 148, 149, 149, 150, 150, 151, 152, 152, 152, 152,
- 152, 153, 153, 153, 154, 153, 155, 153, 156, 153,
- 157, 153, 153, 153, 153, 158, 159, 159, 160, 160,
- 160, 161, 162, 162, 162, 163, 163, 164, 164, 165,
- 166, 166, 167, 167, 167, 167, 168, 169, 169, 170,
- 171, 171, 172, 173, 173, 173, 175, 174, 176, 176,
- 177, 177, 177, 177, 177, 177, 177, 177, 177, 177,
- 177, 178, 178, 179, 179, 180, 181, 181, 182, 183,
- 183, 183, 184, 184, 184, 184, 184, 184, 184, 184,
- 184, 185, 185, 186, 187, 187, 188, 188, 189, 189,
- 190, 190, 191, 191, 191, 191, 191, 191, 191, 191,
- 191, 191, 191, 191, 191, 191, 191, 191, 192, 192,
- 193, 193, 194, 194, 194, 194, 194, 194, 194, 194
+ 0, 122, 123, 123, 124, 124, 125, 125, 125, 125,
+ 125, 126, 126, 126, 127, 127, 127, 127, 127, 127,
+ 128, 128, 129, 129, 129, 129, 130, 130, 130, 130,
+ 131, 131, 132, 132, 133, 133, 134, 134, 134, 134,
+ 134, 134, 134, 134, 135, 135, 135, 135, 135, 135,
+ 135, 135, 136, 136, 137, 137, 138, 139, 139, 140,
+ 140, 141, 141, 142, 142, 143, 143, 144, 145, 145,
+ 145, 145, 145, 145, 145, 145, 145, 145, 145, 145,
+ 145, 146, 146, 146, 146, 146, 146, 146, 146, 146,
+ 146, 147, 147, 148, 148, 148, 148, 149, 149, 149,
+ 149, 149, 149, 149, 149, 149, 149, 149, 149, 149,
+ 149, 149, 149, 150, 150, 150, 150, 150, 150, 150,
+ 150, 150, 150, 151, 151, 152, 152, 153, 154, 154,
+ 154, 154, 154, 155, 155, 155, 156, 155, 157, 155,
+ 158, 155, 159, 155, 155, 155, 155, 160, 161, 161,
+ 162, 162, 162, 163, 164, 164, 164, 165, 165, 166,
+ 166, 167, 168, 168, 169, 169, 169, 169, 170, 171,
+ 171, 172, 173, 173, 174, 175, 175, 175, 177, 176,
+ 178, 178, 179, 179, 179, 179, 179, 179, 179, 179,
+ 179, 179, 179, 180, 180, 181, 181, 182, 183, 183,
+ 184, 185, 185, 185, 186, 186, 186, 186, 186, 186,
+ 186, 186, 186, 187, 187, 188, 189, 189, 190, 190,
+ 191, 191, 192, 192, 193, 193, 193, 193, 193, 193,
+ 193, 193, 193, 193, 193, 193, 193, 193, 193, 193,
+ 194, 194, 195, 195, 196, 196, 196, 196, 196, 196,
+ 196, 196
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
@@ -1785,27 +1794,28 @@ static const yytype_uint8 yyr2[] =
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,
- 1, 1, 1, 0, 0, 1, 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, 0, 0, 1, 1, 1, 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, 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, 8,
- 8, 3, 1, 1, 1, 1, 2, 2, 4, 2,
- 1, 4, 2, 4, 0, 7, 0, 7, 0, 7,
- 0, 7, 3, 4, 0, 1, 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, 1, 1, 0, 4, 0, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 3, 1,
- 5, 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, 6, 2, 7, 1, 2, 0,
- 1, 0, 3, 6, 3, 6, 2, 4, 6, 4
+ 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, 8, 8, 3, 1, 1, 1, 1, 2, 2,
+ 4, 2, 1, 4, 2, 4, 0, 7, 0, 7,
+ 0, 7, 0, 7, 3, 4, 0, 1, 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, 1, 1, 0, 4,
+ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 3, 1, 5, 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, 6, 2, 7, 1,
+ 2, 0, 1, 0, 3, 6, 3, 6, 2, 4,
+ 6, 4
};
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
@@ -1813,347 +1823,348 @@ static const yytype_uint8 yyr2[] =
means the default is an error. */
static const yytype_uint8 yydefact[] =
{
- 144, 0, 43, 130, 1, 129, 176, 36, 37, 38,
- 39, 40, 41, 42, 0, 44, 200, 126, 127, 200,
- 155, 156, 0, 0, 0, 43, 0, 132, 173, 0,
- 0, 45, 46, 47, 48, 0, 0, 201, 197, 35,
- 170, 171, 172, 196, 0, 0, 0, 142, 0, 0,
- 0, 0, 0, 0, 0, 34, 174, 175, 44, 145,
- 128, 49, 2, 3, 62, 66, 67, 68, 69, 70,
- 71, 72, 73, 74, 75, 76, 77, 78, 79, 0,
- 0, 0, 0, 191, 0, 0, 61, 80, 65, 192,
- 81, 167, 168, 169, 241, 199, 0, 0, 0, 154,
- 143, 133, 131, 123, 124, 0, 0, 0, 0, 177,
- 82, 0, 0, 64, 87, 89, 0, 0, 94, 88,
- 240, 0, 221, 0, 0, 0, 0, 44, 209, 210,
- 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
- 16, 17, 18, 19, 0, 0, 0, 0, 0, 0,
- 0, 20, 21, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 198, 44, 213, 0, 237, 150, 147,
- 146, 148, 149, 153, 0, 138, 140, 136, 66, 67,
- 68, 69, 70, 71, 72, 73, 74, 75, 76, 0,
- 0, 0, 0, 134, 0, 0, 0, 86, 165, 93,
- 91, 0, 0, 225, 220, 203, 202, 0, 0, 25,
- 29, 24, 28, 23, 27, 22, 26, 30, 31, 0,
- 0, 52, 52, 246, 0, 0, 235, 0, 0, 0,
+ 146, 0, 43, 132, 1, 131, 178, 36, 37, 38,
+ 39, 40, 41, 42, 0, 44, 202, 128, 129, 202,
+ 157, 158, 0, 0, 0, 43, 0, 134, 175, 0,
+ 0, 45, 46, 47, 48, 49, 50, 0, 0, 203,
+ 199, 35, 172, 173, 174, 198, 0, 0, 0, 144,
+ 0, 0, 0, 0, 0, 0, 0, 34, 176, 177,
+ 44, 147, 130, 51, 2, 3, 64, 68, 69, 70,
+ 71, 72, 73, 74, 75, 76, 77, 78, 79, 80,
+ 81, 0, 0, 0, 0, 193, 0, 0, 63, 82,
+ 67, 194, 83, 169, 170, 171, 243, 201, 0, 0,
+ 0, 156, 145, 135, 133, 125, 126, 0, 0, 0,
+ 0, 179, 84, 0, 0, 66, 89, 91, 0, 0,
+ 96, 90, 242, 0, 223, 0, 0, 0, 0, 44,
+ 211, 212, 6, 7, 8, 9, 10, 11, 12, 13,
+ 14, 15, 16, 17, 18, 19, 0, 0, 0, 0,
+ 0, 0, 0, 20, 21, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 200, 44, 215, 0, 239,
+ 152, 149, 148, 150, 151, 155, 0, 140, 142, 138,
+ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
+ 78, 0, 0, 0, 0, 136, 0, 0, 0, 88,
+ 167, 95, 93, 0, 0, 227, 222, 205, 204, 0,
+ 0, 25, 29, 24, 28, 23, 27, 22, 26, 30,
+ 31, 0, 0, 54, 54, 248, 0, 0, 237, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 151, 57, 57, 57, 108, 109, 4,
- 5, 106, 107, 110, 105, 101, 102, 0, 0, 0,
+ 0, 0, 0, 0, 0, 153, 59, 59, 59, 110,
+ 111, 4, 5, 108, 109, 112, 107, 103, 104, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 104, 103, 57, 63, 63, 90, 164, 158, 161,
- 162, 0, 0, 83, 180, 181, 182, 187, 183, 184,
- 185, 186, 178, 0, 189, 194, 193, 195, 0, 204,
- 0, 0, 0, 242, 0, 244, 239, 0, 0, 0,
+ 0, 0, 0, 106, 105, 59, 65, 65, 92, 166,
+ 160, 163, 164, 0, 0, 85, 182, 183, 184, 189,
+ 185, 186, 187, 188, 180, 0, 191, 196, 195, 197,
+ 0, 206, 0, 0, 0, 244, 0, 246, 241, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 152, 0, 139, 141, 137, 0,
- 0, 0, 0, 0, 0, 96, 122, 0, 0, 100,
- 0, 97, 0, 0, 0, 0, 135, 84, 85, 157,
- 159, 0, 55, 92, 179, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 249, 0, 0, 227, 0, 229,
- 232, 0, 0, 230, 231, 0, 0, 0, 226, 0,
- 247, 0, 0, 0, 59, 57, 239, 0, 0, 0,
- 0, 0, 0, 95, 98, 99, 0, 0, 0, 0,
- 163, 160, 56, 50, 0, 188, 0, 0, 219, 52,
- 53, 52, 216, 238, 0, 0, 0, 0, 0, 222,
- 223, 224, 219, 0, 54, 60, 58, 0, 0, 0,
- 0, 0, 0, 121, 0, 0, 0, 0, 0, 166,
- 0, 0, 0, 218, 0, 0, 243, 245, 0, 0,
- 0, 228, 233, 234, 0, 248, 112, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 51, 190, 0, 0,
- 0, 217, 214, 0, 236, 111, 0, 118, 0, 0,
- 114, 115, 116, 117, 0, 207, 0, 0, 0, 215,
- 0, 0, 0, 205, 0, 206, 0, 0, 113, 119,
- 120, 0, 0, 0, 0, 0, 0, 212, 0, 0,
- 211, 208
+ 0, 0, 0, 0, 0, 0, 154, 0, 141, 143,
+ 139, 0, 0, 0, 0, 0, 0, 98, 124, 0,
+ 0, 102, 0, 99, 0, 0, 0, 0, 137, 86,
+ 87, 159, 161, 0, 57, 94, 181, 0,