aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-03-03 18:58:47 +0000
committerDevang Patel <dpatel@apple.com>2008-03-03 18:58:47 +0000
commit67909435402300f4ef9923cd24d53b44be17c97f (patch)
tree0017812d95870b948295cd720ba12a475d99e2cc /lib/AsmParser/llvmAsmParser.cpp.cvs
parentd15d5e3bbe94702101f747326f3035e7409d2a7f (diff)
regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs2547
1 files changed, 1290 insertions, 1257 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index d1b74f725b..dc99bdf076 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -139,89 +139,90 @@
X86_STDCALLCC_TOK = 320,
X86_FASTCALLCC_TOK = 321,
DATALAYOUT = 322,
- RET = 323,
- BR = 324,
- SWITCH = 325,
- INVOKE = 326,
- UNWIND = 327,
- UNREACHABLE = 328,
- ADD = 329,
- SUB = 330,
- MUL = 331,
- UDIV = 332,
- SDIV = 333,
- FDIV = 334,
- UREM = 335,
- SREM = 336,
- FREM = 337,
- AND = 338,
- OR = 339,
- XOR = 340,
- SHL = 341,
- LSHR = 342,
- ASHR = 343,
- ICMP = 344,
- FCMP = 345,
- EQ = 346,
- NE = 347,
- SLT = 348,
- SGT = 349,
- SLE = 350,
- SGE = 351,
- ULT = 352,
- UGT = 353,
- ULE = 354,
- UGE = 355,
- OEQ = 356,
- ONE = 357,
- OLT = 358,
- OGT = 359,
- OLE = 360,
- OGE = 361,
- ORD = 362,
- UNO = 363,
- UEQ = 364,
- UNE = 365,
- MALLOC = 366,
- ALLOCA = 367,
- FREE = 368,
- LOAD = 369,
- STORE = 370,
- GETELEMENTPTR = 371,
- TRUNC = 372,
- ZEXT = 373,
- SEXT = 374,
- FPTRUNC = 375,
- FPEXT = 376,
- BITCAST = 377,
- UITOFP = 378,
- SITOFP = 379,
- FPTOUI = 380,
- FPTOSI = 381,
- INTTOPTR = 382,
- PTRTOINT = 383,
- PHI_TOK = 384,
- SELECT = 385,
- VAARG = 386,
- EXTRACTELEMENT = 387,
- INSERTELEMENT = 388,
- SHUFFLEVECTOR = 389,
- GETRESULT = 390,
- SIGNEXT = 391,
- ZEROEXT = 392,
- NORETURN = 393,
- INREG = 394,
- SRET = 395,
- NOUNWIND = 396,
- NOALIAS = 397,
- BYVAL = 398,
- NEST = 399,
- READNONE = 400,
- READONLY = 401,
- GC = 402,
- DEFAULT = 403,
- HIDDEN = 404,
- PROTECTED = 405
+ UNWIND_TO = 323,
+ RET = 324,
+ BR = 325,
+ SWITCH = 326,
+ INVOKE = 327,
+ UNWIND = 328,
+ UNREACHABLE = 329,
+ ADD = 330,
+ SUB = 331,
+ MUL = 332,
+ UDIV = 333,
+ SDIV = 334,
+ FDIV = 335,
+ UREM = 336,
+ SREM = 337,
+ FREM = 338,
+ AND = 339,
+ OR = 340,
+ XOR = 341,
+ SHL = 342,
+ LSHR = 343,
+ ASHR = 344,
+ 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,
+ VAARG = 387,
+ EXTRACTELEMENT = 388,
+ INSERTELEMENT = 389,
+ SHUFFLEVECTOR = 390,
+ GETRESULT = 391,
+ SIGNEXT = 392,
+ ZEROEXT = 393,
+ NORETURN = 394,
+ INREG = 395,
+ SRET = 396,
+ NOUNWIND = 397,
+ NOALIAS = 398,
+ BYVAL = 399,
+ NEST = 400,
+ READNONE = 401,
+ READONLY = 402,
+ GC = 403,
+ DEFAULT = 404,
+ HIDDEN = 405,
+ PROTECTED = 406
};
#endif
/* Tokens. */
@@ -290,89 +291,90 @@
#define X86_STDCALLCC_TOK 320
#define X86_FASTCALLCC_TOK 321
#define DATALAYOUT 322
-#define RET 323
-#define BR 324
-#define SWITCH 325
-#define INVOKE 326
-#define UNWIND 327
-#define UNREACHABLE 328
-#define ADD 329
-#define SUB 330
-#define MUL 331
-#define UDIV 332
-#define SDIV 333
-#define FDIV 334
-#define UREM 335
-#define SREM 336
-#define FREM 337
-#define AND 338
-#define OR 339
-#define XOR 340
-#define SHL 341
-#define LSHR 342
-#define ASHR 343
-#define ICMP 344
-#define FCMP 345
-#define EQ 346
-#define NE 347
-#define SLT 348
-#define SGT 349
-#define SLE 350
-#define SGE 351
-#define ULT 352
-#define UGT 353
-#define ULE 354
-#define UGE 355
-#define OEQ 356
-#define ONE 357
-#define OLT 358
-#define OGT 359
-#define OLE 360
-#define OGE 361
-#define ORD 362
-#define UNO 363
-#define UEQ 364
-#define UNE 365
-#define MALLOC 366
-#define ALLOCA 367
-#define FREE 368
-#define LOAD 369
-#define STORE 370
-#define GETELEMENTPTR 371
-#define TRUNC 372
-#define ZEXT 373
-#define SEXT 374
-#define FPTRUNC 375
-#define FPEXT 376
-#define BITCAST 377
-#define UITOFP 378
-#define SITOFP 379
-#define FPTOUI 380
-#define FPTOSI 381
-#define INTTOPTR 382
-#define PTRTOINT 383
-#define PHI_TOK 384
-#define SELECT 385
-#define VAARG 386
-#define EXTRACTELEMENT 387
-#define INSERTELEMENT 388
-#define SHUFFLEVECTOR 389
-#define GETRESULT 390
-#define SIGNEXT 391
-#define ZEROEXT 392
-#define NORETURN 393
-#define INREG 394
-#define SRET 395
-#define NOUNWIND 396
-#define NOALIAS 397
-#define BYVAL 398
-#define NEST 399
-#define READNONE 400
-#define READONLY 401
-#define GC 402
-#define DEFAULT 403
-#define HIDDEN 404
-#define PROTECTED 405
+#define UNWIND_TO 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 UDIV 333
+#define SDIV 334
+#define FDIV 335
+#define UREM 336
+#define SREM 337
+#define FREM 338
+#define AND 339
+#define OR 340
+#define XOR 341
+#define SHL 342
+#define LSHR 343
+#define ASHR 344
+#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 VAARG 387
+#define EXTRACTELEMENT 388
+#define INSERTELEMENT 389
+#define SHUFFLEVECTOR 390
+#define GETRESULT 391
+#define SIGNEXT 392
+#define ZEROEXT 393
+#define NORETURN 394
+#define INREG 395
+#define SRET 396
+#define NOUNWIND 397
+#define NOALIAS 398
+#define BYVAL 399
+#define NEST 400
+#define READNONE 401
+#define READONLY 402
+#define GC 403
+#define DEFAULT 404
+#define HIDDEN 405
+#define PROTECTED 406
@@ -886,7 +888,7 @@ static Value *getVal(const Type *Ty, const ValID &ID) {
/// defineBBVal - This is a definition of a new basic block with the specified
/// identifier which must be the same as CurFun.NextValNum, if its numeric.
-static BasicBlock *defineBBVal(const ValID &ID) {
+static BasicBlock *defineBBVal(const ValID &ID, BasicBlock *unwindDest) {
assert(inFunctionScope() && "Can't get basic block at global scope!");
BasicBlock *BB = 0;
@@ -916,21 +918,19 @@ static BasicBlock *defineBBVal(const ValID &ID) {
assert(ID.Num == CurFun.NextValNum && "Invalid new block number");
InsertValue(BB);
}
-
- ID.destroy();
- return BB;
- }
-
- // We haven't seen this BB before and its first mention is a definition.
- // Just create it and return it.
- std::string Name (ID.Type == ValID::LocalName ? ID.getName() : "");
- BB = new BasicBlock(Name, CurFun.CurrentFunction);
- if (ID.Type == ValID::LocalID) {
- assert(ID.Num == CurFun.NextValNum && "Invalid new block number");
- InsertValue(BB);
+ } else {
+ // We haven't seen this BB before and its first mention is a definition.
+ // Just create it and return it.
+ std::string Name (ID.Type == ValID::LocalName ? ID.getName() : "");
+ BB = new BasicBlock(Name, CurFun.CurrentFunction);
+ if (ID.Type == ValID::LocalID) {
+ assert(ID.Num == CurFun.NextValNum && "Invalid new block number");
+ InsertValue(BB);
+ }
}
- ID.destroy(); // Free strdup'd memory
+ ID.destroy();
+ BB->setUnwindDest(unwindDest);
return BB;
}
@@ -1338,7 +1338,7 @@ Module *llvm::RunVMAsmParser(llvm::MemoryBuffer *MB) {
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
-#line 953 "/Volumes/Nanpura/mrv/llvm/lib/AsmParser/llvmAsmParser.y"
+#line 951 "/Volumes/Nanpura/mrv/llvm/lib/AsmParser/llvmAsmParser.y"
{
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
@@ -1614,20 +1614,20 @@ union yyalloc
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 43
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1978
+#define YYLAST 2038
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 165
+#define YYNTOKENS 166
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 85
/* YYNRULES -- Number of rules. */
-#define YYNRULES 322
+#define YYNRULES 324
/* YYNRULES -- Number of states. */
-#define YYNSTATES 629
+#define YYNSTATES 633
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 405
+#define YYMAXUTOK 406
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
@@ -1639,15 +1639,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,
- 151, 152, 155, 2, 154, 2, 2, 2, 2, 2,
+ 152, 153, 156, 2, 155, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 160, 153, 161, 2, 2, 2, 2, 2, 2, 2,
+ 161, 154, 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, 157, 156, 159, 2, 2, 2, 2, 2, 164,
+ 2, 158, 157, 160, 2, 2, 2, 2, 2, 165,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 158, 2, 2, 162, 2, 163, 2, 2, 2, 2,
+ 159, 2, 2, 163, 2, 164, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -1675,7 +1675,7 @@ static const yytype_uint8 yytranslate[] =
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,
- 145, 146, 147, 148, 149, 150
+ 145, 146, 147, 148, 149, 150, 151
};
#if YYDEBUG
@@ -1710,157 +1710,158 @@ static const yytype_uint16 yyprhs[] =
664, 675, 677, 679, 684, 686, 688, 691, 695, 696,
698, 700, 702, 704, 706, 708, 710, 712, 714, 718,
720, 726, 728, 730, 732, 734, 736, 738, 741, 743,
- 747, 750, 753, 757, 760, 761, 763, 766, 769, 773,
- 783, 793, 802, 817, 819, 821, 828, 834, 837, 844,
- 852, 857, 862, 869, 876, 877, 878, 882, 885, 887,
- 893, 899, 906, 913, 918, 925, 930, 935, 942, 949,
- 952, 961, 963, 965, 966, 970, 977, 981, 988, 991,
- 997, 1005, 1011
+ 747, 750, 753, 757, 760, 761, 764, 766, 770, 773,
+ 776, 780, 790, 800, 809, 824, 826, 828, 835, 841,
+ 844, 851, 859, 864, 869, 876, 883, 884, 885, 889,
+ 892, 894, 900, 906, 913, 920, 925, 932, 937, 942,
+ 949, 956, 959, 968, 970, 972, 973, 977, 984, 988,
+ 995, 998, 1004, 1012, 1018
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int16 yyrhs[] =
{
- 211, 0, -1, 74, -1, 75, -1, 76, -1, 77,
- -1, 78, -1, 79, -1, 80, -1, 81, -1, 82,
- -1, 86, -1, 87, -1, 88, -1, 83, -1, 84,
- -1, 85, -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, 91, -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, 97, -1, 98,
- -1, 99, -1, 100, -1, 26, -1, 27, -1, 11,
+ 212, 0, -1, 75, -1, 76, -1, 77, -1, 78,
+ -1, 79, -1, 80, -1, 81, -1, 82, -1, 83,
+ -1, 87, -1, 88, -1, 89, -1, 84, -1, 85,
+ -1, 86, -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, 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, 26, -1, 27, -1, 11,
-1, 12, -1, 13, -1, 16, -1, 15, -1, 14,
- -1, 19, -1, 22, -1, 24, -1, 173, -1, -1,
- 54, 151, 4, 152, -1, -1, 173, 153, -1, -1,
- 20, -1, 23, -1, 179, -1, -1, 177, 153, -1,
+ -1, 19, -1, 22, -1, 24, -1, 174, -1, -1,
+ 54, 152, 4, 153, -1, -1, 174, 154, -1, -1,
+ 20, -1, 23, -1, 180, -1, -1, 178, 154, -1,
42, -1, 44, -1, 43, -1, 45, -1, 47, -1,
- 46, -1, 48, -1, 50, -1, -1, 148, -1, 149,
- -1, 150, -1, -1, 46, -1, 48, -1, -1, 42,
+ 46, -1, 48, -1, 50, -1, -1, 149, -1, 150,
+ -1, 151, -1, -1, 46, -1, 48, -1, -1, 42,
-1, 43, -1, 44, -1, 47, -1, -1, 44, -1,
42, -1, -1, 62, -1, 63, -1, 64, -1, 65,
- -1, 66, -1, 61, 4, -1, 137, -1, 118, -1,
- 136, -1, 119, -1, 139, -1, 140, -1, 142, -1,
- 143, -1, 144, -1, 53, 4, -1, -1, 188, 187,
- -1, 138, -1, 141, -1, 137, -1, 136, -1, 145,
- -1, 146, -1, -1, 190, 189, -1, -1, 147, 22,
- -1, -1, 53, 4, -1, -1, 154, 53, 4, -1,
- 34, 22, -1, -1, 194, -1, -1, 154, 197, 196,
- -1, 194, -1, 53, 4, -1, 11, -1, 12, -1,
+ -1, 66, -1, 61, 4, -1, 138, -1, 119, -1,
+ 137, -1, 120, -1, 140, -1, 141, -1, 143, -1,
+ 144, -1, 145, -1, 53, 4, -1, -1, 189, 188,
+ -1, 139, -1, 142, -1, 138, -1, 137, -1, 146,
+ -1, 147, -1, -1, 191, 190, -1, -1, 148, 22,
+ -1, -1, 53, 4, -1, -1, 155, 53, 4, -1,
+ 34, 22, -1, -1, 195, -1, -1, 155, 198, 197,
+ -1, 195, -1, 53, 4, -1, 11, -1, 12, -1,
13, -1, 16, -1, 15, -1, 14, -1, 17, -1,
- 49, -1, 198, -1, 199, 175, 155, -1, 233, -1,
- 156, 4, -1, 199, 151, 203, 152, 190, -1, 10,
- 151, 203, 152, 190, -1, 157, 4, 158, 199, 159,
- -1, 160, 4, 158, 199, 161, -1, 162, 204, 163,
- -1, 162, 163, -1, 160, 162, 204, 163, 161, -1,
- 160, 162, 163, 161, -1, 199, 188, -1, 199, -1,
- 10, -1, 200, -1, 202, 154, 200, -1, 202, -1,
- 202, 154, 39, -1, 39, -1, -1, 199, -1, 204,
- 154, 199, -1, 199, 157, 207, 159, -1, 199, 157,
- 159, -1, 199, 164, 22, -1, 199, 160, 207, 161,
- -1, 199, 162, 207, 163, -1, 199, 162, 163, -1,
- 199, 160, 162, 207, 163, 161, -1, 199, 160, 162,
- 163, 161, -1, 199, 40, -1, 199, 41, -1, 199,
- 233, -1, 199, 206, -1, 199, 25, -1, 171, 3,
- -1, 171, 5, -1, 171, 4, -1, 171, 6, -1,
- 11, 26, -1, 11, 27, -1, 172, 9, -1, 168,
- 151, 205, 38, 199, 152, -1, 116, 151, 205, 245,
- 152, -1, 130, 151, 205, 154, 205, 154, 205, 152,
- -1, 166, 151, 205, 154, 205, 152, -1, 167, 151,
- 205, 154, 205, 152, -1, 89, 169, 151, 205, 154,
- 205, 152, -1, 90, 170, 151, 205, 154, 205, 152,
- -1, 132, 151, 205, 154, 205, 152, -1, 133, 151,
- 205, 154, 205, 154, 205, 152, -1, 134, 151, 205,
- 154, 205, 154, 205, 152, -1, 207, 154, 205, -1,
- 205, -1, 32, -1, 33, -1, 37, -1, -1, 201,
- 233, -1, 122, 151, 210, 38, 199, 152, -1, 212,
- -1, -1, 213, -1, 212, 213, -1, -1, 31, 214,
- 229, -1, -1, 30, 215, 230, -1, 59, 58, 219,
- -1, 176, 18, 199, -1, 176, 18, 10, -1, -1,
- 178, 182, 209, 208, 205, 175, 216, 196, -1, -1,
- 178, 180, 182, 209, 208, 205, 175, 217, 196, -1,
- -1, 178, 181, 182, 209, 208, 199, 175, 218, 196,
- -1, 178, 182, 35, 185, 210, -1, 51, 220, -1,
- 55, 153, 221, -1, 22, -1, 52, 153, 22, -1,
- 67, 153, 22, -1, 157, 222, 159, -1, 222, 154,
- 22, -1, 22, -1, -1, 223, 154, 199, 188, 174,
- -1, 199, 188, 174, -1, 223, -1, 223, 154, 39,
- -1, 39, -1, -1, 186, 201, 177, 151, 224, 152,
- 190, 195, 192, 191, -1, 28, -1, 162, -1, 184,
- 182, 225, 226, -1, 29, -1, 163, -1, 237, 228,
- -1, 183, 182, 225, -1, -1, 60, -1, 3, -1,
+ 49, -1, 199, -1, 200, 176, 156, -1, 234, -1,
+ 157, 4, -1, 200, 152, 204, 153, 191, -1, 10,
+ 152, 204, 153, 191, -1, 158, 4, 159, 200, 160,
+ -1, 161, 4, 159, 200, 162, -1, 163, 205, 164,
+ -1, 163, 164, -1, 161, 163, 205, 164, 162, -1,
+ 161, 163, 164, 162, -1, 200, 189, -1, 200, -1,
+ 10, -1, 201, -1, 203, 155, 201, -1, 203, -1,
+ 203, 155, 39, -1, 39, -1, -1, 200, -1, 205,
+ 155, 200, -1, 200, 158, 208, 160, -1, 200, 158,
+ 160, -1, 200, 165, 22, -1, 200, 161, 208, 162,
+ -1, 200, 163, 208, 164, -1, 200, 163, 164, -1,
+ 200, 161, 163, 208, 164, 162, -1, 200, 161, 163,
+ 164, 162, -1, 200, 40, -1, 200, 41, -1, 200,
+ 234, -1, 200, 207, -1, 200, 25, -1, 172, 3,
+ -1, 172, 5, -1, 172, 4, -1, 172, 6, -1,
+ 11, 26, -1, 11, 27, -1, 173, 9, -1, 169,
+ 152, 206, 38, 200, 153, -1, 117, 152, 206, 246,
+ 153, -1, 131, 152, 206, 155, 206, 155, 206, 153,
+ -1, 167, 152, 206, 155, 206, 153, -1, 168, 152,
+ 206, 155, 206, 153, -1, 90, 170, 152, 206, 155,
+ 206, 153, -1, 91, 171, 152, 206, 155, 206, 153,
+ -1, 133, 152, 206, 155, 206, 153, -1, 134, 152,
+ 206, 155, 206, 155, 206, 153, -1, 135, 152, 206,
+ 155, 206, 155, 206, 153, -1, 208, 155, 206, -1,
+ 206, -1, 32, -1, 33, -1, 37, -1, -1, 202,
+ 234, -1, 123, 152, 211, 38, 200, 153, -1, 213,
+ -1, -1, 214, -1, 213, 214, -1, -1, 31, 215,
+ 230, -1, -1, 30, 216, 231, -1, 59, 58, 220,
+ -1, 177, 18, 200, -1, 177, 18, 10, -1, -1,
+ 179, 183, 210, 209, 206, 176, 217, 197, -1, -1,
+ 179, 181, 183, 210, 209, 206, 176, 218, 197, -1,
+ -1, 179, 182, 183, 210, 209, 200, 176, 219, 197,
+ -1, 179, 183, 35, 186, 211, -1, 51, 221, -1,
+ 55, 154, 222, -1, 22, -1, 52, 154, 22, -1,
+ 67, 154, 22, -1, 158, 223, 160, -1, 223, 155,
+ 22, -1, 22, -1, -1, 224, 155, 200, 189, 175,
+ -1, 200, 189, 175, -1, 224, -1, 224, 155, 39,
+ -1, 39, -1, -1, 187, 202, 178, 152, 225, 153,
+ 191, 196, 193, 192, -1, 28, -1, 163, -1, 185,
+ 183, 226, 227, -1, 29, -1, 164, -1, 238, 229,
+ -1, 184, 183, 226, -1, -1, 60, -1, 3, -1,
4, -1, 9, -1, 26, -1, 27, -1, 40, -1,
- 41, -1, 25, -1, 160, 207, 161, -1, 206, -1,
- 58, 231, 22, 154, 22, -1, 7, -1, 8, -1,
- 173, -1, 177, -1, 233, -1, 232, -1, 199, 234,
- -1, 235, -1, 236, 154, 235, -1, 237, 238, -1,
- 227, 238, -1, 239, 176, 240, -1, 239, 242, -1,
- -1, 21, -1, 68, 236, -1, 68, 10, -1, 69,
- 17, 234, -1, 69, 11, 234, 154, 17, 234, 154,
- 17, 234, -1, 70, 171, 234, 154, 17, 234, 157,
- 241, 159, -1, 70, 171, 234, 154, 17, 234, 157,
- 159, -1, 71, 186, 201, 234, 151, 244, 152, 190,
- 38, 17, 234, 72, 17, 234, -1, 72, -1, 73,
- -1, 241, 171, 232, 154, 17, 234, -1, 171, 232,
- 154, 17, 234, -1, 176, 247, -1, 199, 157, 234,
- 154, 234, 159, -1, 243, 154, 157, 234, 154, 234,
- 159, -1, 199, 188, 234, 188, -1, 17, 188, 234,
- 188, -1, 244, 154, 199, 188, 234, 188, -1, 244,
- 154, 17, 188, 234, 188, -1, -1, -1, 245, 154,
- 235, -1, 57, 56, -1, 56, -1, 166, 199, 234,
- 154, 234, -1, 167, 199, 234, 154, 234, -1, 89,
- 169, 199, 234, 154, 234, -1, 90, 170, 199, 234,
- 154, 234, -1, 168, 235, 38, 199, -1, 130, 235,
- 154, 235, 154, 235, -1, 131, 235, 154, 199, -1,
- 132, 235, 154, 235, -1, 133, 235, 154, 235, 154,
- 235, -1, 134, 235, 154, 235, 154, 235, -1, 129,
- 243, -1, 246, 186, 201, 234, 151, 244, 152, 190,
- -1, 249, -1, 36, -1, -1, 111, 199, 193, -1,
- 111, 199, 154, 11, 234, 193, -1, 112, 199, 193,
- -1, 112, 199, 154, 11, 234, 193, -1, 113, 235,
- -1, 248, 114, 199, 234, 193, -1, 248, 115, 235,
- 154, 199, 234, 193, -1, 135, 199, 233, 154, 4,
- -1, 116, 199, 234, 245, -1
+ 41, -1, 25, -1, 161, 208, 162, -1, 207, -1,
+ 58, 232, 22, 155, 22, -1, 7, -1, 8, -1,
+ 174, -1, 178, -1, 234, -1, 233, -1, 200, 235,
+ -1, 236, -1, 237, 155, 236, -1, 238, 239, -1,
+ 228, 239, -1, 240, 177, 241, -1, 240, 243, -1,
+ -1, 68, 235, -1, 21, -1, 21, 68, 235, -1,
+ 69, 237, -1, 69, 10, -1, 70, 17, 235, -1,
+ 70, 11, 235, 155, 17, 235, 155, 17, 235, -1,
+ 71, 172, 235, 155, 17, 235, 158, 242, 160, -1,
+ 71, 172, 235, 155, 17, 235, 158, 160, -1, 72,
+ 187, 202, 235, 152, 245, 153, 191, 38, 17, 235,
+ 73, 17, 235, -1, 73, -1, 74, -1, 242, 172,
+ 233, 155, 17, 235, -1, 172, 233, 155, 17, 235,
+ -1, 177, 248, -1, 200, 158, 235, 155, 235, 160,
+ -1, 244, 155, 158, 235, 155, 235, 160, -1, 200,
+ 189, 235, 189, -1, 17, 189, 235, 189, -1, 245,
+ 155, 200, 189, 235, 189, -1, 245, 155, 17, 189,
+ 235, 189, -1, -1, -1, 246, 155, 236, -1, 57,
+ 56, -1, 56, -1, 167, 200, 235, 155, 235, -1,
+ 168, 200, 235, 155, 235, -1, 90, 170, 200, 235,
+ 155, 235, -1, 91, 171, 200, 235, 155, 235, -1,
+ 169, 236, 38, 200, -1, 131, 236, 155, 236, 155,
+ 236, -1, 132, 236, 155, 200, -1, 133, 236, 155,
+ 236, -1, 134, 236, 155, 236, 155, 236, -1, 135,
+ 236, 155, 236, 155, 236, -1, 130, 244, -1, 247,
+ 187, 202, 235, 152, 245, 153, 191, -1, 250, -1,
+ 36, -1, -1, 112, 200, 194, -1, 112, 200, 155,
+ 11, 235, 194, -1, 113, 200, 194, -1, 113, 200,
+ 155, 11, 235, 194, -1, 114, 236, -1, 249, 115,
+ 200, 235, 194, -1, 249, 116, 236, 155, 200, 235,
+ 194, -1, 136, 200, 234, 155, 4, -1, 117, 200,
+ 235, 246, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
- 0, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115, 1115,
- 1115, 1116, 1116, 1116, 1116, 1116, 1116, 1117, 1117, 1117,
- 1117, 1117, 1117, 1118, 1118, 1118, 1118, 1118, 1118, 1121,
- 1121, 1122, 1122, 1123, 1123, 1124, 1124, 1125, 1125, 1129,
- 1129, 1130, 1130, 1131, 1131, 1132, 1132, 1133, 1133, 1134,
- 1134, 1135, 1135, 1136, 1137, 1142, 1143, 1143, 1143, 1143,
- 1143, 1145, 1145, 1145, 1146, 1146, 1148, 1149, 1153, 1157,
- 1162, 1162, 1164, 1165, 1170, 1176, 1177, 1178, 1179, 1180,
- 1184, 1185, 1186, 1190, 1191, 1192, 1193, 1197, 1198, 1199,
- 1203, 1204, 1205, 1206, 1207, 1211, 1212, 1213, 1216, 1217,
- 1218, 1219, 1220, 1221, 1222, 1229, 1230, 1231, 1232, 1233,
- 1234, 1235, 1236, 1237, 1238, 1242, 1243, 1248, 1249, 1250,
- 1251, 1252, 1253, 1256, 1257, 1262, 1263, 1270, 1271, 1277,
- 1278, 1287, 1295, 1296, 1301, 1302, 1303, 1308, 1321, 1321,
- 1321, 1321, 1321, 1321, 1321, 1324, 1328, 1332, 1339, 1344,
- 1352, 1382, 1407, 1412, 1422, 1432, 1436, 1446, 1453, 1462,
- 1469, 1474, 1479, 1486, 1487, 1494, 1501, 1509, 1515, 1527,
- 1555, 1571, 1598, 1626, 1652, 1672, 1698, 1718, 1730, 1737,
- 1803, 1813, 1823, 1829, 1839, 1845, 1855, 1860, 1865, 1878,
- 1890, 1912, 1920, 1926, 1937, 1942, 1947, 1953, 1959, 1968,
- 1972, 1980, 1980, 1983, 1983, 1986, 1998, 2019, 2024, 2032,
- 2033, 2037, 2037, 2041, 2041, 2044, 2047, 2071, 2083, 2082,
- 2094, 2093, 2103, 2102, 2113, 2153, 2156, 2162, 2172, 2176,
- 2181, 2183, 2188, 2193, 2202, 2212, 2223, 2227, 2236, 2245,
- 2250, 2384, 2384, 2386, 2395, 2395, 2397, 2402, 2414, 2418,
- 2423, 2427, 2431, 2435, 2439, 2443, 2447, 2451, 2455, 2480,
- 2484, 2494, 2498, 2502, 2507, 2514, 2514, 2520, 2529, 2534,
- 2539, 2543, 2552, 2561, 2570, 2574, 2582, 2589, 2593, 2598,
- 2608, 2627, 2636, 2727, 2731, 2738, 2749, 2762, 2772, 2783,
- 2793, 2804, 2812, 2822, 2829, 2832, 2833, 2840, 2844, 2849,
- 2865, 2882, 2896, 2910, 2922, 2930, 2937, 2943, 2949, 2955,
- 2970, 3068, 3073, 3077, 3084, 3091, 3099, 3106, 3114, 3122,
- 3136, 3153, 3161
+ 0, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113,
+ 1113, 1114, 1114, 1114, 1114, 1114, 1114, 1115, 1115, 1115,
+ 1115, 1115, 1115, 1116, 1116, 1116, 1116, 1116, 1116, 1119,
+ 1119, 1120, 1120, 1121, 1121, 1122, 1122, 1123, 1123, 1127,
+ 1127, 1128, 1128, 1129, 1129, 1130, 1130, 1131, 1131, 1132,
+ 1132, 1133, 1133, 1134, 1135, 1140, 1141, 1141, 1141, 1141,
+ 1141, 1143, 1143, 1143, 1144, 1144, 1146, 1147, 1151, 1155,
+ 1160, 1160, 1162, 1163, 1168, 1174, 1175, 1176, 1177, 1178,
+ 1182, 1183, 1184, 1188, 1189, 1190, 1191, 1195, 1196, 1197,
+ 1201, 1202, 1203, 1204, 1205, 1209, 1210, 1211, 1214, 1215,
+ 1216, 1217, 1218, 1219, 1220, 1227, 1228, 1229, 1230, 1231,
+ 1232, 1233, 1234, 1235, 1236, 1240, 1241, 1246, 1247, 1248,
+ 1249, 1250, 1251, 1254, 1255, 1260, 1261, 1268, 1269, 1275,
+ 1276, 1285, 1293, 1294, 1299, 1300, 1301, 1306, 1319, 1319,
+ 1319, 1319, 1319, 1319, 1319, 1322, 1326, 1330, 1337, 1342,
+ 1350, 1380, 1405, 1410, 1420, 1430, 1434, 1444, 1451, 1460,
+ 1467, 1472, 1477, 1484, 1485, 1492, 1499, 1507, 1513, 1525,
+ 1553, 1569, 1596, 1624, 1650, 1670, 1696, 1716, 1728, 1735,
+ 1801, 1811, 1821, 1827, 1837, 1843, 1853, 1858, 1863, 1876,
+ 1888, 1910, 1918, 1924, 1935, 1940, 1945, 1951, 1957, 1966,
+ 1970, 1978, 1978, 1981, 1981, 1984, 1996, 2017, 2022, 2030,
+ 2031, 2035, 2035, 2039, 2039, 2042, 2045, 2069, 2081, 2080,
+ 2092, 2091, 2101, 2100, 2111, 2151, 2154, 2160, 2170, 2174,
+ 2179, 2181, 2186, 2191, 2200, 2210, 2221, 2225, 2234, 2243,
+ 2248, 2382, 2382, 2384, 2393, 2393, 2395, 2400, 2412, 2416,
+ 2421, 2425, 2429, 2433, 2437, 2441, 2445, 2449, 2453, 2478,
+ 2482, 2492, 2496, 2500, 2505, 2512, 2512, 2518, 2527, 2532,
+ 2537, 2541, 2550, 2559, 2568, 2572, 2576, 2581, 2588, 2595,
+ 2599, 2604, 2614, 2633, 2642, 2733, 2737, 2744, 2755, 2768,
+ 2778, 2789, 2799, 2810, 2818, 2828, 2835, 2838, 2839, 2846,
+ 2850, 2855, 2871, 2888, 2902, 2916, 2928, 2936, 2943, 2949,
+ 2955, 2961, 2976, 3074, 3079, 3083, 3090, 3097, 3105, 3112,
+ 3120, 3128, 3142, 3159, 3167
};
#endif
@@ -1881,26 +1882,27 @@ static const char *const yytname[] =
"EXTERNAL", "TARGET", "TRIPLE", "ALIGN", "ADDRSPACE", "DEPLIBS", "CALL",
"TAIL", "ASM_TOK", "MODULE", "SIDEEFFECT", "CC_TOK", "CCC_TOK",
"FASTCC_TOK", "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", "SHL", "LSHR", "ASHR", "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", "VAARG",
- "EXTRACTELEMENT", "INSERTELEMENT", "SHUFFLEVECTOR", "GETRESULT",
- "SIGNEXT", "ZEROEXT", "NORETURN", "INREG", "SRET", "NOUNWIND", "NOALIAS",
- "BYVAL", "NEST", "READNONE", "READONLY", "GC", "DEFAULT", "HIDDEN",
- "PROTECTED", "'('", "')'", "'='", "','", "'*'", "'\\\\'", "'['", "'x'",
- "']'", "'<'", "'>'", "'{'", "'}'", "'c'", "$accept", "ArithmeticOps",
- "LogicalOps", "CastOps", "IPredicates", "FPredicates", "IntType",
- "FPType", "LocalName", "OptLocalName", "OptAddrSpace", "OptLocalAssign",
- "GlobalName", "OptGlobalAssign", "GlobalAssign", "GVInternalLinkage",
- "GVExternalLinkage", "GVVisibilityStyle", "FunctionDeclareLinkage",
- "FunctionDefineLinkage", "AliasLinkage", "OptCallingConv", "ParamAttr",
- "OptParamAttrs", "FuncAttr", "OptFuncAttrs", "OptGC", "OptAlign",
- "OptCAlign", "SectionString", "OptSection", "GlobalVarAttributes",
+ "DATALAYOUT", "UNWIND_TO", "RET", "BR", "SWITCH", "INVOKE", "UNWIND",
+ "UNREACHABLE", "ADD", "SUB", "MUL", "UDIV", "SDIV", "FDIV", "UREM",
+ "SREM", "FREM", "AND", "OR", "XOR", "SHL", "LSHR", "ASHR", "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", "VAARG", "EXTRACTELEMENT", "INSERTELEMENT", "SHUFFLEVECTOR",
+ "GETRESULT", "SIGNEXT", "ZEROEXT", "NORETURN", "INREG", "SRET",
+ "NOUNWIND", "NOALIAS", "BYVAL", "NEST", "READNONE", "READONLY", "GC",
+ "DEFAULT", "HIDDEN", "PROTECTED", "'('", "')'", "'='", "','", "'*'",
+ "'\\\\'", "'['", "'x'", "']'", "'<'", "'>'", "'{'", "'}'", "'c'",
+ "$accept", "ArithmeticOps", "LogicalOps", "CastOps", "IPredicates",
+ "FPredicates", "IntType", "FPType", "LocalName", "OptLocalName",
+ "OptAddrSpace", "OptLocalAssign", "GlobalName", "OptGlobalAssign",
+ "GlobalAssign", "GVInternalLinkage", "GVExternalLinkage",
+ "GVVisibilityStyle", "FunctionDeclareLinkage", "FunctionDefineLinkage",
+ "AliasLinkage", "OptCallingConv", "ParamAttr", "OptParamAttrs",
+ "FuncAttr", "OptFuncAttrs", "OptGC", "OptAlign", "OptCAlign",
+ "SectionString", "OptSection", "GlobalVarAttributes",
"GlobalVarAttribute", "PrimType", "Types", "ArgType", "ResultTypes",
"ArgTypeList", "ArgTypeListI", "TypeListI", "ConstVal", "ConstExpr",
"ConstVector", "GlobalType", "ThreadLocal", "AliaseeRef", "Module",
@@ -1935,47 +1937,47 @@ static const yytype_uint16 yytoknum[] =
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, 40, 41, 61, 44, 42, 92, 91, 120, 93,
- 60, 62, 123, 125, 99
+ 405, 406, 40, 41, 61, 44, 42, 92, 91, 120,
+ 93, 60, 62, 123, 125, 99
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] =
{
- 0, 165, 166, 166, 166, 166, 166, 166, 166, 166,
- 166, 167, 167, 167, 167, 167, 167, 168, 168, 168,
- 168, 168, 168, 168, 168, 168, 168, 168, 168, 169,
+ 0, 166, 167, 167, 167, 167, 167, 167, 167, 167,
+ 167, 168, 168, 168, 168, 168, 168, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169, 169, 170,
- 170, 170, 170, 170, 170, 170, 170, 170, 170, 170,
- 170, 170, 170, 170, 170, 171, 172, 172, 172, 172,
- 172, 173, 173, 173, 174, 174, 175, 175, 176, 176,
- 177, 177, 178, 178, 179, 180, 180, 180, 180, 180,
- 181, 181, 181, 182, 182, 182, 182, 183, 183, 183,
- 184, 184, 184, 184, 184, 185, 185, 185, 186, 186,
- 186, 186, 186, 186, 186, 187, 187, 187, 187, 187,
- 187, 187, 187, 187, 187, 188, 188, 189, 189, 189,
- 189, 189, 189, 190, 190, 191, 191, 192, 192, 193,
- 193, 194, 195, 195, 196, 196, 197, 197, 198, 198,
- 198, 198, 198, 198, 198, 199, 199, 199, 199, 199,
- 199, 199, 199, 199, 199, 199, 199, 199, 200, 201,
- 201, 202, 202, 203, 203, 203, 203, 204, 204, 205,
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 205,
- 205, 205, 205, 205, 205, 205, 205, 205, 205, 206,
+ 170, 170, 170, 170, 170, 170, 170, 170, 170, 171,
+ 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
+ 171, 171, 171, 171, 171, 172, 173, 173, 173, 173,
+ 173, 174, 174, 174, 175, 175, 176, 176, 177, 177,
+ 178, 178, 179, 179, 180, 181, 181, 181, 181, 181,
+ 182, 182, 182, 183, 183, 183, 183, 184, 184, 184,