diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-02 22:14:11 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-02 22:14:11 +0000 |
commit | 229e9369df8f3bfea89b0c7f320a528264a5bb7b (patch) | |
tree | 61ecb81390890aed0f68d9906b38c9e8e0dfb19c /tools/llvm-upgrade/UpgradeParser.cpp.cvs | |
parent | 2b404385975c9070d6a902475591177591313501 (diff) |
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade/UpgradeParser.cpp.cvs')
-rw-r--r-- | tools/llvm-upgrade/UpgradeParser.cpp.cvs | 2143 |
1 files changed, 1152 insertions, 991 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.cpp.cvs b/tools/llvm-upgrade/UpgradeParser.cpp.cvs index 843dd33c4e..addd743b66 100644 --- a/tools/llvm-upgrade/UpgradeParser.cpp.cvs +++ b/tools/llvm-upgrade/UpgradeParser.cpp.cvs @@ -161,35 +161,57 @@ SETGT = 352, SETEQ = 353, SETNE = 354, - MALLOC = 355, - ALLOCA = 356, - FREE = 357, - LOAD = 358, - STORE = 359, - GETELEMENTPTR = 360, - PHI_TOK = 361, - SELECT = 362, - SHL = 363, - SHR = 364, - ASHR = 365, - LSHR = 366, - VAARG = 367, - EXTRACTELEMENT = 368, - INSERTELEMENT = 369, - SHUFFLEVECTOR = 370, - CAST = 371, - TRUNC = 372, - ZEXT = 373, - SEXT = 374, - FPTRUNC = 375, - FPEXT = 376, - FPTOUI = 377, - FPTOSI = 378, - UITOFP = 379, - SITOFP = 380, - PTRTOINT = 381, - INTTOPTR = 382, - BITCAST = 383 + ICMP = 355, + FCMP = 356, + EQ = 357, + NE = 358, + SLT = 359, + SGT = 360, + SLE = 361, + SGE = 362, + OEQ = 363, + ONE = 364, + OLT = 365, + OGT = 366, + OLE = 367, + OGE = 368, + ORD = 369, + UNO = 370, + UEQ = 371, + UNE = 372, + ULT = 373, + UGT = 374, + ULE = 375, + UGE = 376, + MALLOC = 377, + ALLOCA = 378, + FREE = 379, + LOAD = 380, + STORE = 381, + GETELEMENTPTR = 382, + PHI_TOK = 383, + SELECT = 384, + SHL = 385, + SHR = 386, + ASHR = 387, + LSHR = 388, + VAARG = 389, + EXTRACTELEMENT = 390, + INSERTELEMENT = 391, + SHUFFLEVECTOR = 392, + CAST = 393, + TRUNC = 394, + ZEXT = 395, + SEXT = 396, + FPTRUNC = 397, + FPEXT = 398, + FPTOUI = 399, + FPTOSI = 400, + UITOFP = 401, + SITOFP = 402, + PTRTOINT = 403, + INTTOPTR = 404, + BITCAST = 405 }; #endif /* Tokens. */ @@ -290,35 +312,57 @@ #define SETGT 352 #define SETEQ 353 #define SETNE 354 -#define MALLOC 355 -#define ALLOCA 356 -#define FREE 357 -#define LOAD 358 -#define STORE 359 -#define GETELEMENTPTR 360 -#define PHI_TOK 361 -#define SELECT 362 -#define SHL 363 -#define SHR 364 -#define ASHR 365 -#define LSHR 366 -#define VAARG 367 -#define EXTRACTELEMENT 368 -#define INSERTELEMENT 369 -#define SHUFFLEVECTOR 370 -#define CAST 371 -#define TRUNC 372 -#define ZEXT 373 -#define SEXT 374 -#define FPTRUNC 375 -#define FPEXT 376 -#define FPTOUI 377 -#define FPTOSI 378 -#define UITOFP 379 -#define SITOFP 380 -#define PTRTOINT 381 -#define INTTOPTR 382 -#define BITCAST 383 +#define ICMP 355 +#define FCMP 356 +#define EQ 357 +#define NE 358 +#define SLT 359 +#define SGT 360 +#define SLE 361 +#define SGE 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 ULT 373 +#define UGT 374 +#define ULE 375 +#define UGE 376 +#define MALLOC 377 +#define ALLOCA 378 +#define FREE 379 +#define LOAD 380 +#define STORE 381 +#define GETELEMENTPTR 382 +#define PHI_TOK 383 +#define SELECT 384 +#define SHL 385 +#define SHR 386 +#define ASHR 387 +#define LSHR 388 +#define VAARG 389 +#define EXTRACTELEMENT 390 +#define INSERTELEMENT 391 +#define SHUFFLEVECTOR 392 +#define CAST 393 +#define TRUNC 394 +#define ZEXT 395 +#define SEXT 396 +#define FPTRUNC 397 +#define FPEXT 398 +#define FPTOUI 399 +#define FPTOSI 400 +#define UITOFP 401 +#define SITOFP 402 +#define PTRTOINT 403 +#define INTTOPTR 404 +#define BITCAST 405 @@ -336,6 +380,7 @@ #define YYERROR_VERBOSE 1 #define YYINCLUDED_STDLIB_H #define YYDEBUG 1 +#define UPGRADE_SETCOND_OPS 1 int yylex(); // declaration" of xxx warnings. int yyparse(); @@ -547,6 +592,34 @@ const char* getDivRemOpcode(const std::string& opcode, const TypeInfo& TI) { return op; } +std::string +getCompareOp(const std::string& setcc, const TypeInfo& TI) { + assert(setcc.length() == 5); + char cc1 = setcc[3]; + char cc2 = setcc[4]; + assert(cc1 == 'e' || cc1 == 'n' || cc1 == 'l' || cc1 == 'g'); + assert(cc2 == 'q' || cc2 == 'e' || cc2 == 'e' || cc2 == 't'); + std::string result("xcmp xxx"); + result[6] = cc1; + result[7] = cc2; + if (TI.isFloatingPoint()) { + result[0] = 'f'; + result[5] = 'o'; // FIXME: Always map to ordered comparison ? + } else if (TI.isIntegral() || TI.isPointer()) { + result[0] = 'i'; + if ((cc1 == 'e' && cc2 == 'q') || (cc1 == 'n' && cc2 == 'e')) + result.erase(5,1); + else if (TI.isSigned()) + result[5] = 's'; + else if (TI.isUnsigned() || TI.isPointer()) + result[5] = 'u'; + else + yyerror("Invalid integral type for setcc"); + } + return result; +} + + /* Enabling traces. */ #ifndef YYDEBUG @@ -567,7 +640,7 @@ const char* getDivRemOpcode(const std::string& opcode, const TypeInfo& TI) { #endif #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) -#line 239 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y" +#line 268 "/proj/llvm/llvm-4/tools/llvm-upgrade/UpgradeParser.y" typedef union YYSTYPE { std::string* String; TypeInfo Type; @@ -576,7 +649,7 @@ typedef union YYSTYPE { ValueList* ValList; } YYSTYPE; /* Line 196 of yacc.c. */ -#line 580 "UpgradeParser.tab.c" +#line 653 "UpgradeParser.tab.c" # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 @@ -588,7 +661,7 @@ typedef union YYSTYPE { /* Line 219 of yacc.c. */ -#line 592 "UpgradeParser.tab.c" +#line 665 "UpgradeParser.tab.c" #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) # define YYSIZE_T __SIZE_TYPE__ @@ -739,20 +812,20 @@ union yyalloc /* YYFINAL -- State number of the termination state. */ #define YYFINAL 4 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 1324 +#define YYLAST 1464 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 143 +#define YYNTOKENS 165 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 73 +#define YYNNTS 75 /* YYNRULES -- Number of rules. */ -#define YYNRULES 269 +#define YYNRULES 293 /* YYNRULES -- Number of states. */ -#define YYNSTATES 528 +#define YYNSTATES 564 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 -#define YYMAXUTOK 383 +#define YYMAXUTOK 405 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) @@ -764,15 +837,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, - 132, 133, 141, 2, 130, 2, 2, 2, 2, 2, + 154, 155, 163, 2, 152, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 137, 129, 138, 2, 2, 2, 2, 2, 2, 2, + 159, 151, 160, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 134, 131, 136, 2, 2, 2, 2, 2, 142, + 2, 156, 153, 158, 2, 2, 2, 2, 2, 164, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 135, 2, 2, 139, 2, 140, 2, 2, 2, 2, + 157, 2, 2, 161, 2, 162, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -798,7 +871,9 @@ static const unsigned char yytranslate[] = 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 + 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, + 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, + 145, 146, 147, 148, 149, 150 }; #if YYDEBUG @@ -811,150 +886,162 @@ static const unsigned short int yyprhs[] = 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, 112, 113, 115, 117, - 119, 121, 123, 125, 127, 128, 130, 132, 134, 136, - 138, 140, 143, 144, 145, 148, 149, 153, 156, 157, - 159, 160, 164, 166, 169, 171, 173, 175, 177, 179, - 181, 183, 185, 187, 189, 191, 193, 195, 197, 199, - 201, 203, 205, 207, 209, 212, 217, 223, 229, 233, - 236, 239, 241, 245, 247, 251, 253, 254, 259, 263, - 267, 272, 277, 281, 284, 287, 290, 293, 296, 299, - 302, 305, 308, 311, 318, 324, 333, 340, 347, 354, - 361, 368, 377, 386, 390, 392, 394, 396, 398, 401, - 404, 409, 412, 414, 416, 418, 423, 426, 431, 438, - 445, 452, 459, 463, 468, 469, 471, 473, 475, 479, - 483, 487, 491, 495, 499, 501, 502, 504, 506, 508, - 509, 512, 516, 518, 520, 524, 526, 527, 536, 538, - 540, 544, 546, 548, 552, 553, 555, 557, 561, 562, - 564, 566, 568, 570, 572, 574, 576, 578, 580, 584, - 586, 592, 594, 596, 598, 600, 603, 606, 608, 611, - 614, 615, 617, 619, 621, 624, 627, 631, 641, 651, - 660, 675, 677, 679, 686, 692, 695, 702, 710, 712, - 716, 718, 719, 722, 724, 730, 736, 742, 745, 750, - 755, 762, 767, 772, 779, 786, 789, 797, 799, 802, - 803, 805, 806, 810, 817, 821, 828, 831, 836, 843 + 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, 174, 176, + 178, 180, 182, 184, 187, 188, 189, 192, 193, 197, + 200, 201, 203, 204, 208, 210, 213, 215, 217, 219, + 221, 223, 225, 227, 229, 231, 233, 235, 237, 239, + 241, 243, 245, 247, 249, 251, 253, 256, 261, 267, + 273, 277, 280, 283, 285, 289, 291, 295, 297, 298, + 303, 307, 311, 316, 321, 325, 328, 331, 334, 337, + 340, 343, 346, 349, 352, 355, 362, 368, 377, 384, + 391, 398, 406, 413, 420, 429, 438, 442, 444, 446, + 448, 450, 453, 456, 461, 464, 466, 468, 470, 475, + 478, 483, 490, 497, 504, 511, 515, 520, 521, 523, + 525, 527, 531, 535, 539, 543, 547, 551, 553, 554, + 556, 558, 560, 561, 564, 568, 570, 572, 576, 578, + 579, 588, 590, 592, 596, 598, 600, 604, 605, 607, + 609, 613, 614, 616, 618, 620, 622, 624, 626, 628, + 630, 632, 636, 638, 644, 646, 648, 650, 652, 655, + 658, 660, 663, 666, 667, 669, 671, 673, 676, 679, + 683, 693, 703, 712, 727, 729, 731, 738, 744, 747, + 754, 762, 764, 768, 770, 771, 774, 776, 782, 788, + 794, 802, 805, 810, 815, 822, 827, 832, 839, 846, + 849, 857, 859, 862, 863, 865, 866, 870, 877, 881, + 888, 891, 896, 903 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const short int yyrhs[] = { - 175, 0, -1, 19, -1, 20, -1, 17, -1, 18, + 199, 0, -1, 19, -1, 20, -1, 17, -1, 18, -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, 96, -1, 97, -1, 98, -1, 99, - -1, 108, -1, 109, -1, 110, -1, 111, -1, 117, - -1, 118, -1, 119, -1, 120, -1, 121, -1, 122, - -1, 123, -1, 124, -1, 125, -1, 126, -1, 127, - -1, 128, -1, 116, -1, 11, -1, 9, -1, 7, - -1, 5, -1, 12, -1, 10, -1, 8, -1, 6, - -1, 151, -1, 152, -1, 13, -1, 14, -1, 184, - 129, -1, -1, 42, -1, 43, -1, 44, -1, 48, - -1, 45, -1, 46, -1, 47, -1, -1, 66, -1, - 67, -1, 68, -1, 69, -1, 70, -1, 71, -1, - 65, 18, -1, -1, -1, 57, 18, -1, -1, 130, - 57, 18, -1, 37, 30, -1, -1, 160, -1, -1, - 130, 163, 162, -1, 160, -1, 57, 18, -1, 166, - -1, 3, -1, 168, -1, 3, -1, 168, -1, 4, - -1, 5, -1, 6, -1, 7, -1, 8, -1, 9, - -1, 10, -1, 11, -1, 12, -1, 13, -1, 14, - -1, 15, -1, 16, -1, 198, -1, 167, -1, 131, - 18, -1, 165, 132, 170, 133, -1, 134, 18, 135, - 168, 136, -1, 137, 18, 135, 168, 138, -1, 139, - 169, 140, -1, 139, 140, -1, 168, 141, -1, 168, - -1, 169, 130, 168, -1, 169, -1, 169, 130, 40, - -1, 40, -1, -1, 166, 134, 173, 136, -1, 166, - 134, 136, -1, 166, 142, 30, -1, 166, 137, 173, - 138, -1, 166, 139, 173, 140, -1, 166, 139, 140, - -1, 166, 22, -1, 166, 23, -1, 166, 198, -1, - 166, 172, -1, 166, 24, -1, 151, 145, -1, 152, - 18, -1, 4, 25, -1, 4, 26, -1, 154, 21, - -1, 150, 132, 171, 39, 166, 133, -1, 105, 132, - 171, 213, 133, -1, 107, 132, 171, 130, 171, 130, - 171, 133, -1, 146, 132, 171, 130, 171, 133, -1, - 147, 132, 171, 130, 171, 133, -1, 148, 132, 171, - 130, 171, 133, -1, 149, 132, 171, 130, 171, 133, - -1, 113, 132, 171, 130, 171, 133, -1, 114, 132, - 171, 130, 171, 130, 171, 133, -1, 115, 132, 171, - 130, 171, 130, 171, 133, -1, 173, 130, 171, -1, - 171, -1, 35, -1, 36, -1, 176, -1, 176, 193, - -1, 176, 195, -1, 176, 63, 62, 179, -1, 176, - 31, -1, 178, -1, 50, -1, 58, -1, 178, 155, - 27, 164, -1, 178, 195, -1, 178, 63, 62, 179, - -1, 178, 155, 156, 174, 171, 162, -1, 178, 155, - 177, 174, 166, 162, -1, 178, 155, 45, 174, 166, - 162, -1, 178, 155, 47, 174, 166, 162, -1, 178, - 51, 181, -1, 178, 59, 129, 182, -1, -1, 30, - -1, 56, -1, 55, -1, 53, 129, 180, -1, 54, - 129, 18, -1, 52, 129, 30, -1, 72, 129, 30, - -1, 134, 183, 136, -1, 183, 130, 30, -1, 30, - -1, -1, 28, -1, 30, -1, 184, -1, -1, 166, - 185, -1, 187, 130, 186, -1, 186, -1, 187, -1, - 187, 130, 40, -1, 40, -1, -1, 157, 164, 184, - 132, 188, 133, 161, 158, -1, 32, -1, 139, -1, - 156, 189, 190, -1, 33, -1, 140, -1, 191, 201, - 192, -1, -1, 45, -1, 47, -1, 34, 194, 189, - -1, -1, 64, -1, 17, -1, 18, -1, 21, -1, - 25, -1, 26, -1, 22, -1, 23, -1, 24, -1, - 137, 173, 138, -1, 172, -1, 62, 196, 30, 130, - 30, -1, 144, -1, 184, -1, 198, -1, 197, -1, - 166, 199, -1, 201, 202, -1, 202, -1, 203, 205, - -1, 203, 207, -1, -1, 29, -1, 78, -1, 77, - -1, 73, 200, -1, 73, 3, -1, 74, 15, 199, - -1, 74, 4, 199, 130, 15, 199, 130, 15, 199, - -1, 75, 153, 199, 130, 15, 199, 134, 206, 136, - -1, 75, 153, 199, 130, 15, 199, 134, 136, -1, - 155, 76, 157, 164, 199, 132, 210, 133, 39, 15, - 199, 204, 15, 199, -1, 204, -1, 79, -1, 206, - 153, 197, 130, 15, 199, -1, 153, 197, 130, 15, - 199, -1, 155, 212, -1, 166, 134, 199, 130, 199, - 136, -1, 208, 130, 134, 199, 130, 199, 136, -1, - 200, -1, 209, 130, 200, -1, 209, -1, -1, 61, - 60, -1, 60, -1, 146, 166, 199, 130, 199, -1, - 147, 166, 199, 130, 199, -1, 148, 166, 199, 130, - 199, -1, 49, 200, -1, 149, 200, 130, 200, -1, - 150, 200, 39, 166, -1, 107, 200, 130, 200, 130, - 200, -1, 112, 200, 130, 166, -1, 113, 200, 130, - 200, -1, 114, 200, 130, 200, 130, 200, -1, 115, - 200, 130, 200, 130, 200, -1, 106, 208, -1, 211, - 157, 164, 199, 132, 210, 133, -1, 215, -1, 130, - 209, -1, -1, 38, -1, -1, 100, 166, 159, -1, - 100, 166, 130, 10, 199, 159, -1, 101, 166, 159, - -1, 101, 166, 130, 10, 199, 159, -1, 102, 200, - -1, 214, 103, 166, 199, -1, 214, 104, 200, 130, - 166, 199, -1, 105, 166, 199, 213, -1 + -1, 100, -1, 101, -1, 102, -1, 103, -1, 104, + -1, 105, -1, 106, -1, 107, -1, 118, -1, 119, + -1, 120, -1, 121, -1, 108, -1, 109, -1, 110, + -1, 111, -1, 112, -1, 113, -1, 114, -1, 115, + -1, 116, -1, 117, -1, 130, -1, 131, -1, 132, + -1, 133, -1, 139, -1, 140, -1, 141, -1, 142, + -1, 143, -1, 144, -1, 145, -1, 146, -1, 147, + -1, 148, -1, 149, -1, 150, -1, 138, -1, 11, + -1, 9, -1, 7, -1, 5, -1, 12, -1, 10, + -1, 8, -1, 6, -1, 175, -1, 176, -1, 13, + -1, 14, -1, 208, 151, -1, -1, 42, -1, 43, + -1, 44, -1, 48, -1, 45, -1, 46, -1, 47, + -1, -1, 66, -1, 67, -1, 68, -1, 69, -1, + 70, -1, 71, -1, 65, 18, -1, -1, -1, 57, + 18, -1, -1, 152, 57, 18, -1, 37, 30, -1, + -1, 184, -1, -1, 152, 187, 186, -1, 184, -1, + 57, 18, -1, 190, -1, 3, -1, 192, -1, 3, + -1, 192, -1, 4, -1, 5, -1, 6, -1, 7, + -1, 8, -1, 9, -1, 10, -1, 11, -1, 12, + -1, 13, -1, 14, -1, 15, -1, 16, -1, 222, + -1, 191, -1, 153, 18, -1, 189, 154, 194, 155, + -1, 156, 18, 157, 192, 158, -1, 159, 18, 157, + 192, 160, -1, 161, 193, 162, -1, 161, 162, -1, + 192, 163, -1, 192, -1, 193, 152, 192, -1, 193, + -1, 193, 152, 40, -1, 40, -1, -1, 190, 156, + 197, 158, -1, 190, 156, 158, -1, 190, 164, 30, + -1, 190, 159, 197, 160, -1, 190, 161, 197, 162, + -1, 190, 161, 162, -1, 190, 22, -1, 190, 23, + -1, 190, 222, -1, 190, 196, -1, 190, 24, -1, + 175, 167, -1, 176, 18, -1, 4, 25, -1, 4, + 26, -1, 178, 21, -1, 174, 154, 195, 39, 190, + 155, -1, 127, 154, 195, 237, 155, -1, 129, 154, + 195, 152, 195, 152, 195, 155, -1, 168, 154, 195, + 152, 195, 155, -1, 169, 154, 195, 152, 195, 155, + -1, 170, 154, 195, 152, 195, 155, -1, 171, 172, + 154, 195, 152, 195, 155, -1, 173, 154, 195, 152, + 195, 155, -1, 135, 154, 195, 152, 195, 155, -1, + 136, 154, 195, 152, 195, 152, 195, 155, -1, 137, + 154, 195, 152, 195, 152, 195, 155, -1, 197, 152, + 195, -1, 195, -1, 35, -1, 36, -1, 200, -1, + 200, 217, -1, 200, 219, -1, 200, 63, 62, 203, + -1, 200, 31, -1, 202, -1, 50, -1, 58, -1, + 202, 179, 27, 188, -1, 202, 219, -1, 202, 63, + 62, 203, -1, 202, 179, 180, 198, 195, 186, -1, + 202, 179, 201, 198, 190, 186, -1, 202, 179, 45, + 198, 190, 186, -1, 202, 179, 47, 198, 190, 186, + -1, 202, 51, 205, -1, 202, 59, 151, 206, -1, + -1, 30, -1, 56, -1, 55, -1, 53, 151, 204, + -1, 54, 151, 18, -1, 52, 151, 30, -1, 72, + 151, 30, -1, 156, 207, 158, -1, 207, 152, 30, + -1, 30, -1, -1, 28, -1, 30, -1, 208, -1, + -1, 190, 209, -1, 211, 152, 210, -1, 210, -1, + 211, -1, 211, 152, 40, -1, 40, -1, -1, 181, + 188, 208, 154, 212, 155, 185, 182, -1, 32, -1, + 161, -1, 180, 213, 214, -1, 33, -1, 162, -1, + 215, 225, 216, -1, -1, 45, -1, 47, -1, 34, + 218, 213, -1, -1, 64, -1, 17, -1, 18, -1, + 21, -1, 25, -1, 26, -1, 22, -1, 23, -1, + 24, -1, 159, 197, 160, -1, 196, -1, 62, 220, + 30, 152, 30, -1, 166, -1, 208, -1, 222, -1, + 221, -1, 190, 223, -1, 225, 226, -1, 226, -1, + 227, 229, -1, 227, 231, -1, -1, 29, -1, 78, + -1, 77, -1, 73, 224, -1, 73, 3, -1, 74, + 15, 223, -1, 74, 4, 223, 152, 15, 223, 152, + 15, 223, -1, 75, 177, 223, 152, 15, 223, 156, + 230, 158, -1, 75, 177, 223, 152, 15, 223, 156, + 158, -1, 179, 76, 181, 188, 223, 154, 234, 155, + 39, 15, 223, 228, 15, 223, -1, 228, -1, 79, + -1, 230, 177, 221, 152, 15, 223, -1, 177, 221, + 152, 15, 223, -1, 179, 236, -1, 190, 156, 223, + 152, 223, 158, -1, 232, 152, 156, 223, 152, 223, + 158, -1, 224, -1, 233, 152, 224, -1, 233, -1, + -1, 61, 60, -1, 60, -1, 168, 190, 223, 152, + 223, -1, 169, 190, 223, 152, 223, -1, 170, 190, + 223, 152, 223, -1, 171, 172, 190, 223, 152, 223, + 155, -1, 49, 224, -1, 173, 224, 152, 224, -1, + 174, 224, 39, 190, -1, 129, 224, 152, 224, 152, + 224, -1, 134, 224, 152, 190, -1, 135, 224, 152, + 224, -1, 136, 224, 152, 224, 152, 224, -1, 137, + 224, 152, 224, 152, 224, -1, 128, 232, -1, 235, + 181, 188, 223, 154, 234, 155, -1, 239, -1, 152, + 233, -1, -1, 38, -1, -1, 122, 190, 183, -1, + 122, 190, 152, 10, 223, 183, -1, 123, 190, 183, + -1, 123, 190, 152, 10, 223, 183, -1, 124, 224, + -1, 238, 125, 190, 223, -1, 238, 126, 224, 152, + 190, 223, -1, 127, 190, 223, 237, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const unsigned short int yyrline[] = { - 0, 299, 299, 299, 300, 300, 304, 304, 304, 304, - 304, 304, 304, 305, 305, 305, 305, 306, 306, 306, - 307, 307, 307, 307, 307, 307, 308, 308, 308, 308, - 309, 309, 309, 309, 309, 309, 309, 310, 310, 310, - 310, 310, 310, 315, 315, 315, 315, 316, 316, 316, - 316, 317, 317, 318, 318, 321, 324, 329, 329, 329, - 329, 329, 329, 330, 331, 334, 334, 334, 334, 334, - 335, 336, 341, 346, 347, 350, 351, 359, 365, 366, - 369, 370, 379, 380, 393, 393, 394, 394, 395, 399, - 399, 399, 399, 399, 399, 399, 400, 400, 400, 400, - 400, 402, 406, 410, 413, 418, 424, 432, 440, 446, - 450, 461, 464, 472, 473, 478, 481, 491, 497, 502, - 508, 514, 520, 525, 531, 537, 543, 549, 555, 561, - 567, 573, 579, 587, 601, 613, 618, 624, 629, 634, - 642, 647, 652, 662, 667, 672, 672, 682, 687, 690, - 695, 699, 703, 705, 705, 708, 720, 725, 730, 737, - 744, 751, 758, 763, 768, 773, 775, 775, 778, 783, - 790, 795, 802, 809, 814, 815, 823, 823, 824, 824, - 826, 833, 837, 841, 844, 849, 852, 854, 874, 875, - 877, 886, 887, 889, 897, 898, 899, 903, 916, 917, - 920, 920, 920, 920, 920, 920, 920, 921, 922, 927, - 928, 937, 937, 941, 947, 958, 964, 967, 975, 979, - 984, 987, 993, 993, 995, 1000, 1005, 1010, 1018, 1025, - 1031, 1051, 1056, 1062, 1067, 1075, 1084, 1091, 1099, 1103, - 1110, 1111, 1115, 1120, 1123, 1129, 1134, 1139, 1144, 1152, - 1166, 1171, 1176, 1181, 1186, 1191, 1196, 1213, 1218, 1219, - 1223, 1224, 1227, 1234, 1241, 1248, 1255, 1260, 1267, 1274 + 0, 331, 331, 331, 332, 332, 336, 336, 336, 336, + 336, 336, 336, 337, 337, 337, 337, 338, 338, 338, + 339, 339, 339, 339, 339, 339, 340, 340, 341, 341, + 341, 341, 341, 341, 341, 341, 341, 341, 342, 342, + 342, 342, 342, 342, 342, 342, 342, 342, 343, 343, + 343, 343, 344, 344, 344, 344, 344, 344, 344, 345, + 345, 345, 345, 345, 345, 350, 350, 350, 350, 351, + 351, 351, 351, 352, 352, 353, 353, 356, 359, 364, + 364, 364, 364, 364, 364, 365, 366, 369, 369, 369, + 369, 369, 370, 371, 376, 381, 382, 385, 386, 394, + 400, 401, 404, 405, 414, 415, 428, 428, 429, 429, + 430, 434, 434, 434, 434, 434, 434, 434, 435, 435, + 435, 435, 435, 437, 441, 445, 448, 453, 459, 467, + 475, 481, 485, 496, 499, 507, 508, 513, 516, 526, + 532, 537, 543, 549, 555, 560, 566, 572, 578, 584, + 590, 596, 602, 608, 614, 622, 636, 648, 653, 659, + 664, 672, 677, 685, 690, 695, 705, 710, 715, 715, + 725, 730, 733, 738, 742, 746, 748, 748, 751, 763, + 768, 773, 780, 787, 794, 801, 806, 811, 816, 818, + 818, 821, 826, 833, 838, 845, 852, 857, 858, 866, + 866, 867, 867, 869, 876, 880, 884, 887, 892, 895, + 897, 917, 918, 920, 929, 930, 932, 940, 941, 942, + 946, 959, 960, 963, 963, 963, 963, 963, 963, 963, + 964, 965, 970, 971, 980, 980, 984, 990, 1001, 1007, + 1010, 1018, 1022, 1027, 1030, 1036, 1036, 1038, 1043, 1048, + 1053, 1061, 1068, 1074, 1094, 1099, 1105, 1110, 1118, 1127, + 1134, 1142, 1146, 1153, 1154, 1158, 1163, 1166, 1172, 1177, + 1185, 1190, 1195, 1203, 1217, 1222, 1227, 1232, 1237, 1242, + 1247, 1264, 1269, 1270, 1274, 1275, 1278, 1285, 1292, 1299, + 1306, 1311, 1318, 1325 }; #endif @@ -978,28 +1065,30 @@ static const char *const yytname[] = "RET", "BR", "SWITCH", "INVOKE", "EXCEPT", "UNWIND", "UNREACHABLE", "ADD", "SUB", "MUL", "DIV", "UDIV", "SDIV", "FDIV", "REM", "UREM", "SREM", "FREM", "AND", "OR", "XOR", "SETLE", "SETGE", "SETLT", "SETGT", - "SETEQ", "SETNE", "MALLOC", "ALLOCA", "FREE", "LOAD", "STORE", + "SETEQ", "SETNE", "ICMP", "FCMP", "EQ", "NE", "SLT", "SGT", "SLE", "SGE", + "OEQ", "ONE", "OLT", "OGT", "OLE", "OGE", "ORD", "UNO", "UEQ", "UNE", + "ULT", "UGT", "ULE", "UGE", "MALLOC", "ALLOCA", "FREE", "LOAD", "STORE", "GETELEMENTPTR", "PHI_TOK", "SELECT", "SHL", "SHR", "ASHR", "LSHR", "VAARG", "EXTRACTELEMENT", "INSERTELEMENT", "SHUFFLEVECTOR", "CAST", "TRUNC", "ZEXT", "SEXT", "FPTRUNC", "FPEXT", "FPTOUI", "FPTOSI", "UITOFP", "SITOFP", "PTRTOINT", "INTTOPTR", "BITCAST", "'='", "','", "'\\\\'", "'('", "')'", "'['", "'x'", "']'", "'<'", "'>'", "'{'", "'}'", "'*'", "'c'", "$accept", "IntVal", "EInt64Val", "ArithmeticOps", - "LogicalOps", "SetCondOps", "ShiftOps", "CastOps", "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", "DefinitionList", - "External", "ConstPool", "AsmBlock", "BigOrLittle", "TargetDefinition", - "LibrariesDefinition", "LibList", "Name", "OptName", "ArgVal", - "ArgListH", "ArgList", "FunctionHeaderH", "BEGIN", "FunctionHeader", - "END", "Function", "FnDeclareLinkage", "FunctionProto", "OptSideEffect", - "ConstValueRef", "SymbolicValueRef", "ValueRef", "ResolvedVal", - "BasicBlockList", "BasicBlock", "InstructionList", "Unwind", - "BBTerminatorInst", "JumpTable", "Inst", "PHIList", "ValueRefList", - "ValueRefListE", "OptTailCall", "InstVal", "IndexList", "OptVolatile", - "MemoryInst", 0 + "LogicalOps", "SetCondOps", "CompareOps", "Predicates", "ShiftOps", + "CastOps", "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", "DefinitionList", "External", "ConstPool", "AsmBlock", + "BigOrLittle", "TargetDefinition", "LibrariesDefinition", "LibList", + "Name", "OptName", "ArgVal", "ArgListH", "ArgList", "FunctionHeaderH", + "BEGIN", "FunctionHeader", "END", "Function", "FnDeclareLinkage", + "FunctionProto", "OptSideEffect", "ConstValueRef", "SymbolicValueRef", + "ValueRef", "ResolvedVal", "BasicBlockList", "BasicBlock", + "InstructionList", "Unwind", "BBTerminatorInst", "JumpTable", "Inst", + "PHIList", "ValueRefList", "ValueRefListE", "OptTailCall", "InstVal", + "IndexList", "OptVolatile", "MemoryInst", 0 }; #endif @@ -1020,42 +1109,47 @@ static const unsigned short int yytoknum[] = 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, - 375, 376, 377, 378, 379, 380, 381, 382, 383, 61, - 44, 92, 40, 41, 91, 120, 93, 60, 62, 123, - 125, 42, 99 + 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, + 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, + 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, + 405, 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 unsigned char yyr1[] = { - 0, 143, 144, 144, 145, 145, 146, 146, 146, 146, - 146, 146, 146, 146, 146, 146, 146, 147, 147, 147, - 148, 148, 148, 148, 148, 148, 149, 149, 149, 149, - 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, - 150, 150, 150, 151, 151, 151, 151, 152, 152, 152, - 152, 153, 153, 154, 154, 155, 155, 156, 156, 156, - 156, 156, 156, 156, 156, 157, 157, 157, 157, 157, - 157, 157, 157, 158, 158, 159, 159, 160, 161, 161, - 162, 162, 163, 163, 164, 164, 165, 165, 166, 167, - 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, - 167, 168, 168, 168, 168, 168, 168, 168, 168, 168, - 168, 169, 169, 170, 170, 170, 170, 171, 171, 171, - 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, - 171, 171, 171, 172, 172, 172, 172, 172, 172, 172, - 172, 172, 172, 173, 173, 174, 174, 175, 176, 176, - 176, 176, 176, 177, 177, 178, 178, 178, 178, 178, - 178, 178, 178, 178, 178, 179, 180, 180, 181, 181, - 181, 181, 182, 183, 183, 183, 184, 184, 185, 185, - 186, 187, 187, 188, 188, 188, 188, 189, 190, 190, - 191, 192, 192, 193, 194, 194, 194, 195, 196, 196, - 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, - 197, 198, 198, 199, 199, 200, 201, 201, 202, 203, - 203, 203, 204, 204, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 206, 206, 207, 208, 208, 209, 209, - 210, 210, 211, 211, 212, 212, 212, 212, 212, 212, - 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, - 214, 214, 215, 215, 215, 215, 215, 215, 215, 215 + 0, 165, 166, 166, 167, 167, 168, 168, 168, 168, + 168, 168, 168, 168, 168, 168, 168, 169, 169, 169, + 170, 170, 170, 170, 170, 170, 171, 171, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 173, 173, + 173, 173, 174, 174, 174, 174, 174, 174, 174, 174, + 174, 174, 174, 174, 174, 175, 175, 175, 175, 176, + 176, 176, 176, 177, 177, 178, 178, 179, 179, 180, + 180, 180, 180, 180, 180, 180, 180, 181, 181, 181, + 181, 181, 181, 181, 181, 182, 182, 183, 183, 184, + 185, 185, 186, 186, 187, 187, 188, 188, 189, 189, + 190, 191, 191, 191, 191, 191, 191, 191, 191, 191, + 191, 191, 191, 192, 192, 192, 192, 192, 192, 192, + 192, 192, 192, 193, 193, 194, 194, 194, 194, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 195, 195, 195, 195, 195, 196, 196, 196, 196, 196, + 196, 196, 196, 196, 196, 196, 197, 197, 198, 198, + 199, 200, 200, 200, 200, 200, 201, 201, 202, 202, + 202, 202, 202, 202, 202, 202, 202, 202, 203, 204, + 204, 205, 205, 205, 205, 206, 207, 207, 207, 208, + 208, 209, 209, 210, 211, 211, 212, 212, 212, 212, + 213, 214, 214, 215, 216, 216, 217, 218, 218, 218, + 219, 220, 220, 221, 221, 221, 221, 221, 221, 221, + 221, 221, 221, 221, 222, 222, 223, 223, 224, 225, + 225, 226, 227, 227, 227, 228, 228, 229, 229, 229, + 229, 229, 229, 229, 229, 229, 230, 230, 231, 232, + 232, 233, 233, 234, 234, 235, 235, 236, 236, 236, + 236, 236, 236, 236, 236, 236, 236, 236, 236, 236, + 236, 236, 237, 237, 238, 238, 239, 239, 239, 239, + 239, 239, 239, 239 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ @@ -1066,28 +1160,31 @@ static const unsigned char 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, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 2, 0, 1, 1, 1, - 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, - 1, 2, 0, 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, 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, 1, 1, 4, 2, 4, 6, 6, - 6, 6, 3, 4, 0, 1, 1, 1, 3, 3, - 3, 3, 3, 3, 1, 0, 1, 1, 1, 0, - 2, 3, 1, 1, 3, 1, 0, 8, 1, 1, - 3, 1, 1, 3, 0, 1, 1, 3, 0, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, - 5, 1, 1, 1, 1, 2, 2, 1, 2, 2, - 0, 1, 1, 1, 2, 2, 3, 9, 9, 8, - 14, 1, 1, 6, 5, 2, 6, 7, 1, 3, - 1, 0, 2, 1, 5, 5, 5, 2, 4, 4, - 6, 4, 4, 6, 6, 2, 7, 1, 2, 0, - 1, 0, 3, 6, 3, 6, 2, 4, 6, 4 + 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, 1, 1, 1, + 1, 1, 1, 2, 0, 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, 2, 4, |