aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-12 07:05:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-12 07:05:14 +0000
commita54b7cbd452b3adb2f51346140d996b29c2cdb30 (patch)
tree00514e24a3fab3804f1a99557ebd343382d0dc27 /lib/AsmParser/llvmAsmParser.cpp.cvs
parented3098989580ecaee7fc89de548afb4c811bea31 (diff)
For PR1064:
Implement the arbitrary bit-width integer feature. The feature allows integers of any bitwidth (up to 64) to be defined instead of just 1, 8, 16, 32, and 64 bit integers. This change does several things: 1. Introduces a new Derived Type, IntegerType, to represent the number of bits in an integer. The Type classes SubclassData field is used to store the number of bits. This allows 2^23 bits in an integer type. 2. Removes the five integer Type::TypeID values for the 1, 8, 16, 32 and 64-bit integers. These are replaced with just IntegerType which is not a primitive any more. 3. Adjust the rest of LLVM to account for this change. Note that while this incremental change lays the foundation for arbitrary bit-width integers, LLVM has not yet been converted to actually deal with them in any significant way. Most optimization passes, for example, will still only deal with the byte-width integer types. Future increments will rectify this situation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs2861
1 files changed, 1416 insertions, 1445 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index 7091018442..2e540c350c 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -71,132 +71,129 @@
FPVAL = 262,
VOID = 263,
BOOL = 264,
- INT8 = 265,
- INT16 = 266,
- INT32 = 267,
- INT64 = 268,
- FLOAT = 269,
- DOUBLE = 270,
- LABEL = 271,
- TYPE = 272,
- VAR_ID = 273,
- LABELSTR = 274,
- STRINGCONSTANT = 275,
- IMPLEMENTATION = 276,
- ZEROINITIALIZER = 277,
- TRUETOK = 278,
- FALSETOK = 279,
- BEGINTOK = 280,
- ENDTOK = 281,
- DECLARE = 282,
- DEFINE = 283,
- GLOBAL = 284,
- CONSTANT = 285,
- SECTION = 286,
- VOLATILE = 287,
- TO = 288,
- DOTDOTDOT = 289,
- NULL_TOK = 290,
- UNDEF = 291,
- INTERNAL = 292,
- LINKONCE = 293,
- WEAK = 294,
- APPENDING = 295,
- DLLIMPORT = 296,
- DLLEXPORT = 297,
- EXTERN_WEAK = 298,
- OPAQUE = 299,
- NOT = 300,
- EXTERNAL = 301,
- TARGET = 302,
- TRIPLE = 303,
- ENDIAN = 304,
- POINTERSIZE = 305,
- LITTLE = 306,
- BIG = 307,
- ALIGN = 308,
- DEPLIBS = 309,
- CALL = 310,
- TAIL = 311,
- ASM_TOK = 312,
- MODULE = 313,
- SIDEEFFECT = 314,
- CC_TOK = 315,
- CCC_TOK = 316,
- CSRETCC_TOK = 317,
- FASTCC_TOK = 318,
- COLDCC_TOK = 319,
- 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,
- ICMP = 341,
- FCMP = 342,
- EQ = 343,
- NE = 344,
- SLT = 345,
- SGT = 346,
- SLE = 347,
- SGE = 348,
- ULT = 349,
- UGT = 350,
- ULE = 351,
- UGE = 352,
- OEQ = 353,
- ONE = 354,
- OLT = 355,
- OGT = 356,
- OLE = 357,
- OGE = 358,
- ORD = 359,
- UNO = 360,
- UEQ = 361,
- UNE = 362,
- MALLOC = 363,
- ALLOCA = 364,
- FREE = 365,
- LOAD = 366,
- STORE = 367,
- GETELEMENTPTR = 368,
- TRUNC = 369,
- ZEXT = 370,
- SEXT = 371,
- FPTRUNC = 372,
- FPEXT = 373,
- BITCAST = 374,
- UITOFP = 375,
- SITOFP = 376,
- FPTOUI = 377,
- FPTOSI = 378,
- INTTOPTR = 379,
- PTRTOINT = 380,
- PHI_TOK = 381,
- SELECT = 382,
- SHL = 383,
- LSHR = 384,
- ASHR = 385,
- VAARG = 386,
- EXTRACTELEMENT = 387,
- INSERTELEMENT = 388,
- SHUFFLEVECTOR = 389,
- NORETURN = 390
+ INTTYPE = 265,
+ FLOAT = 266,
+ DOUBLE = 267,
+ LABEL = 268,
+ TYPE = 269,
+ VAR_ID = 270,
+ LABELSTR = 271,
+ STRINGCONSTANT = 272,
+ IMPLEMENTATION = 273,
+ ZEROINITIALIZER = 274,
+ TRUETOK = 275,
+ FALSETOK = 276,
+ BEGINTOK = 277,
+ ENDTOK = 278,
+ DECLARE = 279,
+ DEFINE = 280,
+ GLOBAL = 281,
+ CONSTANT = 282,
+ SECTION = 283,
+ VOLATILE = 284,
+ TO = 285,
+ DOTDOTDOT = 286,
+ NULL_TOK = 287,
+ UNDEF = 288,
+ INTERNAL = 289,
+ LINKONCE = 290,
+ WEAK = 291,
+ APPENDING = 292,
+ DLLIMPORT = 293,
+ DLLEXPORT = 294,
+ EXTERN_WEAK = 295,
+ OPAQUE = 296,
+ NOT = 297,
+ EXTERNAL = 298,
+ TARGET = 299,
+ TRIPLE = 300,
+ ENDIAN = 301,
+ POINTERSIZE = 302,
+ LITTLE = 303,
+ BIG = 304,
+ ALIGN = 305,
+ DEPLIBS = 306,
+ CALL = 307,
+ TAIL = 308,
+ ASM_TOK = 309,
+ MODULE = 310,
+ SIDEEFFECT = 311,
+ CC_TOK = 312,
+ CCC_TOK = 313,
+ CSRETCC_TOK = 314,
+ FASTCC_TOK = 315,
+ COLDCC_TOK = 316,
+ X86_STDCALLCC_TOK = 317,
+ X86_FASTCALLCC_TOK = 318,
+ DATALAYOUT = 319,
+ RET = 320,
+ BR = 321,
+ SWITCH = 322,
+ INVOKE = 323,
+ UNWIND = 324,
+ UNREACHABLE = 325,
+ ADD = 326,
+ SUB = 327,
+ MUL = 328,
+ UDIV = 329,
+ SDIV = 330,
+ FDIV = 331,
+ UREM = 332,
+ SREM = 333,
+ FREM = 334,
+ AND = 335,
+ OR = 336,
+ XOR = 337,
+ ICMP = 338,
+ FCMP = 339,
+ EQ = 340,
+ NE = 341,
+ SLT = 342,
+ SGT = 343,
+ SLE = 344,
+ SGE = 345,
+ ULT = 346,
+ UGT = 347,
+ ULE = 348,
+ UGE = 349,
+ OEQ = 350,
+ ONE = 351,
+ OLT = 352,
+ OGT = 353,
+ OLE = 354,
+ OGE = 355,
+ ORD = 356,
+ UNO = 357,
+ UEQ = 358,
+ UNE = 359,
+ MALLOC = 360,
+ ALLOCA = 361,
+ FREE = 362,
+ LOAD = 363,
+ STORE = 364,
+ GETELEMENTPTR = 365,
+ TRUNC = 366,
+ ZEXT = 367,
+ SEXT = 368,
+ FPTRUNC = 369,
+ FPEXT = 370,
+ BITCAST = 371,
+ UITOFP = 372,
+ SITOFP = 373,
+ FPTOUI = 374,
+ FPTOSI = 375,
+ INTTOPTR = 376,
+ PTRTOINT = 377,
+ PHI_TOK = 378,
+ SELECT = 379,
+ SHL = 380,
+ LSHR = 381,
+ ASHR = 382,
+ VAARG = 383,
+ EXTRACTELEMENT = 384,
+ INSERTELEMENT = 385,
+ SHUFFLEVECTOR = 386,
+ NORETURN = 387
};
#endif
/* Tokens. */
@@ -207,138 +204,135 @@
#define FPVAL 262
#define VOID 263
#define BOOL 264
-#define INT8 265
-#define INT16 266
-#define INT32 267
-#define INT64 268
-#define FLOAT 269
-#define DOUBLE 270
-#define LABEL 271
-#define TYPE 272
-#define VAR_ID 273
-#define LABELSTR 274
-#define STRINGCONSTANT 275
-#define IMPLEMENTATION 276
-#define ZEROINITIALIZER 277
-#define TRUETOK 278
-#define FALSETOK 279
-#define BEGINTOK 280
-#define ENDTOK 281
-#define DECLARE 282
-#define DEFINE 283
-#define GLOBAL 284
-#define CONSTANT 285
-#define SECTION 286
-#define VOLATILE 287
-#define TO 288
-#define DOTDOTDOT 289
-#define NULL_TOK 290
-#define UNDEF 291
-#define INTERNAL 292
-#define LINKONCE 293
-#define WEAK 294
-#define APPENDING 295
-#define DLLIMPORT 296
-#define DLLEXPORT 297
-#define EXTERN_WEAK 298
-#define OPAQUE 299
-#define NOT 300
-#define EXTERNAL 301
-#define TARGET 302
-#define TRIPLE 303
-#define ENDIAN 304
-#define POINTERSIZE 305
-#define LITTLE 306
-#define BIG 307
-#define ALIGN 308
-#define DEPLIBS 309
-#define CALL 310
-#define TAIL 311
-#define ASM_TOK 312
-#define MODULE 313
-#define SIDEEFFECT 314
-#define CC_TOK 315
-#define CCC_TOK 316
-#define CSRETCC_TOK 317
-#define FASTCC_TOK 318
-#define COLDCC_TOK 319
-#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 ICMP 341
-#define FCMP 342
-#define EQ 343
-#define NE 344
-#define SLT 345
-#define SGT 346
-#define SLE 347
-#define SGE 348
-#define ULT 349
-#define UGT 350
-#define ULE 351
-#define UGE 352
-#define OEQ 353
-#define ONE 354
-#define OLT 355
-#define OGT 356
-#define OLE 357
-#define OGE 358
-#define ORD 359
-#define UNO 360
-#define UEQ 361
-#define UNE 362
-#define MALLOC 363
-#define ALLOCA 364
-#define FREE 365
-#define LOAD 366
-#define STORE 367
-#define GETELEMENTPTR 368
-#define TRUNC 369
-#define ZEXT 370
-#define SEXT 371
-#define FPTRUNC 372
-#define FPEXT 373
-#define BITCAST 374
-#define UITOFP 375
-#define SITOFP 376
-#define FPTOUI 377
-#define FPTOSI 378
-#define INTTOPTR 379
-#define PTRTOINT 380
-#define PHI_TOK 381
-#define SELECT 382
-#define SHL 383
-#define LSHR 384
-#define ASHR 385
-#define VAARG 386
-#define EXTRACTELEMENT 387
-#define INSERTELEMENT 388
-#define SHUFFLEVECTOR 389
-#define NORETURN 390
+#define INTTYPE 265
+#define FLOAT 266
+#define DOUBLE 267
+#define LABEL 268
+#define TYPE 269
+#define VAR_ID 270
+#define LABELSTR 271
+#define STRINGCONSTANT 272
+#define IMPLEMENTATION 273
+#define ZEROINITIALIZER 274
+#define TRUETOK 275
+#define FALSETOK 276
+#define BEGINTOK 277
+#define ENDTOK 278
+#define DECLARE 279
+#define DEFINE 280
+#define GLOBAL 281
+#define CONSTANT 282
+#define SECTION 283
+#define VOLATILE 284
+#define TO 285
+#define DOTDOTDOT 286
+#define NULL_TOK 287
+#define UNDEF 288
+#define INTERNAL 289
+#define LINKONCE 290
+#define WEAK 291
+#define APPENDING 292
+#define DLLIMPORT 293
+#define DLLEXPORT 294
+#define EXTERN_WEAK 295
+#define OPAQUE 296
+#define NOT 297
+#define EXTERNAL 298
+#define TARGET 299
+#define TRIPLE 300
+#define ENDIAN 301
+#define POINTERSIZE 302
+#define LITTLE 303
+#define BIG 304
+#define ALIGN 305
+#define DEPLIBS 306
+#define CALL 307
+#define TAIL 308
+#define ASM_TOK 309
+#define MODULE 310
+#define SIDEEFFECT 311
+#define CC_TOK 312
+#define CCC_TOK 313
+#define CSRETCC_TOK 314
+#define FASTCC_TOK 315
+#define COLDCC_TOK 316
+#define X86_STDCALLCC_TOK 317
+#define X86_FASTCALLCC_TOK 318
+#define DATALAYOUT 319
+#define RET 320
+#define BR 321
+#define SWITCH 322
+#define INVOKE 323
+#define UNWIND 324
+#define UNREACHABLE 325
+#define ADD 326
+#define SUB 327
+#define MUL 328
+#define UDIV 329
+#define SDIV 330
+#define FDIV 331
+#define UREM 332
+#define SREM 333
+#define FREM 334
+#define AND 335
+#define OR 336
+#define XOR 337
+#define ICMP 338
+#define FCMP 339
+#define EQ 340
+#define NE 341
+#define SLT 342
+#define SGT 343
+#define SLE 344
+#define SGE 345
+#define ULT 346
+#define UGT 347
+#define ULE 348
+#define UGE 349
+#define OEQ 350
+#define ONE 351
+#define OLT 352
+#define OGT 353
+#define OLE 354
+#define OGE 355
+#define ORD 356
+#define UNO 357
+#define UEQ 358
+#define UNE 359
+#define MALLOC 360
+#define ALLOCA 361
+#define FREE 362
+#define LOAD 363
+#define STORE 364
+#define GETELEMENTPTR 365
+#define TRUNC 366
+#define ZEXT 367
+#define SEXT 368
+#define FPTRUNC 369
+#define FPEXT 370
+#define BITCAST 371
+#define UITOFP 372
+#define SITOFP 373
+#define FPTOUI 374
+#define FPTOSI 375
+#define INTTOPTR 376
+#define PTRTOINT 377
+#define PHI_TOK 378
+#define SELECT 379
+#define SHL 380
+#define LSHR 381
+#define ASHR 382
+#define VAARG 383
+#define EXTRACTELEMENT 384
+#define INSERTELEMENT 385
+#define SHUFFLEVECTOR 386
+#define NORETURN 387
/* Copy the first part of user declarations. */
-#line 14 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y"
+#line 14 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
#include "ParserInternals.h"
#include "llvm/CallingConv.h"
@@ -1220,7 +1214,7 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
#endif
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
-#line 876 "/proj/llvm/llvm-4/lib/AsmParser/llvmAsmParser.y"
+#line 876 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
typedef union YYSTYPE {
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
@@ -1267,7 +1261,7 @@ typedef union YYSTYPE {
llvm::FCmpInst::Predicate FPredicate;
} YYSTYPE;
/* Line 196 of yacc.c. */
-#line 1271 "llvmAsmParser.tab.c"
+#line 1265 "llvmAsmParser.tab.c"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
@@ -1279,7 +1273,7 @@ typedef union YYSTYPE {
/* Line 219 of yacc.c. */
-#line 1283 "llvmAsmParser.tab.c"
+#line 1277 "llvmAsmParser.tab.c"
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
@@ -1430,20 +1424,20 @@ union yyalloc
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 37
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1584
+#define YYLAST 1512
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 150
+#define YYNTOKENS 147
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 78
/* YYNRULES -- Number of rules. */
-#define YYNRULES 291
+#define YYNRULES 285
/* YYNRULES -- Number of states. */
-#define YYNSTATES 576
+#define YYNSTATES 567
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 390
+#define YYMAXUTOK 387
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
@@ -1455,15 +1449,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,
- 140, 141, 138, 2, 137, 2, 2, 2, 2, 2,
+ 137, 138, 135, 2, 134, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 145, 136, 146, 2, 2, 2, 2, 2, 2, 2,
+ 142, 133, 143, 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, 142, 139, 144, 2, 2, 2, 2, 2, 149,
+ 2, 139, 136, 141, 2, 2, 2, 2, 2, 146,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 143, 2, 2, 147, 2, 148, 2, 2, 2, 2,
+ 140, 2, 2, 144, 2, 145, 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,
@@ -1489,8 +1483,7 @@ 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, 129, 130, 131, 132, 133, 134,
- 135
+ 125, 126, 127, 128, 129, 130, 131, 132
};
#if YYDEBUG
@@ -1504,128 +1497,126 @@ static const unsigned short int yyprhs[] =
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, 111, 113, 115, 117,
- 119, 121, 123, 125, 128, 129, 131, 133, 135, 137,
- 139, 141, 143, 145, 146, 148, 150, 151, 153, 155,
- 157, 159, 160, 162, 164, 166, 168, 170, 172, 175,
- 177, 179, 180, 183, 185, 187, 188, 191, 192, 195,
- 196, 200, 203, 204, 206, 207, 211, 213, 216, 218,
- 220, 222, 224, 226, 228, 230, 232, 234, 236, 239,
- 241, 244, 250, 256, 262, 268, 272, 275, 281, 286,
- 289, 291, 293, 295, 299, 301, 305, 307, 308, 310,
- 314, 319, 323, 327, 332, 337, 341, 348, 354, 357,
- 360, 363, 366, 369, 372, 375, 378, 381, 384, 391,
- 397, 406, 413, 420, 428, 436, 443, 450, 459, 468,
- 472, 474, 476, 478, 480, 481, 483, 486, 487, 491,
- 492, 496, 500, 502, 506, 510, 511, 517, 518, 525,
- 526, 533, 536, 540, 542, 544, 546, 550, 554, 558,
- 562, 566, 570, 572, 573, 575, 577, 579, 580, 586,
- 590, 592, 596, 598, 599, 609, 611, 613, 617, 619,
- 621, 624, 627, 628, 630, 632, 634, 636, 638, 640,
- 642, 644, 646, 650, 652, 658, 660, 662, 664, 666,
- 669, 672, 675, 679, 682, 683, 685, 688, 691, 695,
- 705, 715, 724, 739, 741, 743, 750, 756, 759, 766,
- 774, 778, 784, 785, 786, 790, 793, 795, 801, 807,
- 814, 821, 824, 829, 834, 841, 846, 851, 858, 865,
- 868, 877, 879, 881, 882, 886, 893, 897, 904, 907,
- 912, 919
+ 119, 122, 123, 125, 127, 129, 131, 133, 135, 137,
+ 139, 140, 142, 144, 145, 147, 149, 151, 153, 154,
+ 156, 158, 160, 162, 164, 166, 169, 171, 173, 174,
+ 177, 179, 181, 182, 185, 186, 189, 190, 194, 197,
+ 198, 200, 201, 205, 207, 210, 212, 214, 216, 218,
+ 220, 222, 224, 227, 229, 232, 238, 244, 250, 256,
+ 260, 263, 269, 274, 277, 279, 281, 283, 287, 289,
+ 293, 295, 296, 298, 302, 307, 311, 315, 320, 325,
+ 329, 336, 342, 345, 348, 351, 354, 357, 360, 363,
+ 366, 369, 372, 379, 385, 394, 401, 408, 416, 424,
+ 431, 438, 447, 456, 460, 462, 464, 466, 468, 469,
+ 471, 474, 475, 479, 480, 484, 488, 490, 494, 498,
+ 499, 505, 506, 513, 514, 521, 524, 528, 530, 532,
+ 534, 538, 542, 546, 550, 554, 558, 560, 561, 563,
+ 565, 567, 568, 574, 578, 580, 584, 586, 587, 597,
+ 599, 601, 605, 607, 609, 612, 615, 616, 618, 620,
+ 622, 624, 626, 628, 630, 632, 634, 638, 640, 646,
+ 648, 650, 652, 654, 657, 660, 663, 667, 670, 671,
+ 673, 676, 679, 683, 693, 703, 712, 727, 729, 731,
+ 738, 744, 747, 754, 762, 766, 772, 773, 774, 778,
+ 781, 783, 789, 795, 802, 809, 812, 817, 822, 829,
+ 834, 839, 846, 853, 856, 865, 867, 869, 870, 874,
+ 881, 885, 892, 895, 900, 907
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const short int yyrhs[] =
{
- 187, 0, -1, 5, -1, 6, -1, 74, -1, 75,
- -1, 76, -1, 77, -1, 78, -1, 79, -1, 80,
- -1, 81, -1, 82, -1, 83, -1, 84, -1, 85,
- -1, 114, -1, 115, -1, 116, -1, 117, -1, 118,
- -1, 119, -1, 120, -1, 121, -1, 122, -1, 123,
- -1, 124, -1, 125, -1, 128, -1, 129, -1, 130,
- -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, 100, -1, 101, -1, 102,
- -1, 103, -1, 104, -1, 105, -1, 106, -1, 107,
- -1, 94, -1, 95, -1, 96, -1, 97, -1, 23,
- -1, 24, -1, 13, -1, 12, -1, 11, -1, 10,
- -1, 14, -1, 15, -1, 200, 136, -1, -1, 37,
- -1, 39, -1, 38, -1, 40, -1, 42, -1, 41,
- -1, 43, -1, 46, -1, -1, 41, -1, 43, -1,
- -1, 37, -1, 38, -1, 39, -1, 42, -1, -1,
- 61, -1, 62, -1, 63, -1, 64, -1, 65, -1,
- 66, -1, 60, 4, -1, 115, -1, 116, -1, -1,
- 167, 166, -1, 135, -1, 166, -1, -1, 169, 168,
- -1, -1, 53, 4, -1, -1, 137, 53, 4, -1,
- 31, 20, -1, -1, 172, -1, -1, 137, 175, 174,
- -1, 172, -1, 53, 4, -1, 9, -1, 10, -1,
- 11, -1, 12, -1, 13, -1, 14, -1, 15, -1,
- 16, -1, 44, -1, 176, -1, 177, 138, -1, 212,
- -1, 139, 4, -1, 177, 140, 181, 141, 169, -1,
- 8, 140, 181, 141, 169, -1, 142, 4, 143, 177,
- 144, -1, 145, 4, 143, 177, 146, -1, 147, 182,
- 148, -1, 147, 148, -1, 145, 147, 182, 148, 146,
- -1, 145, 147, 148, 146, -1, 177, 167, -1, 177,
- -1, 8, -1, 178, -1, 180, 137, 178, -1, 180,
- -1, 180, 137, 34, -1, 34, -1, -1, 177, -1,
- 182, 137, 177, -1, 177, 142, 185, 144, -1, 177,
- 142, 144, -1, 177, 149, 20, -1, 177, 145, 185,
- 146, -1, 177, 147, 185, 148, -1, 177, 147, 148,
- -1, 177, 145, 147, 185, 148, 146, -1, 177, 145,
- 147, 148, 146, -1, 177, 35, -1, 177, 36, -1,
- 177, 212, -1, 177, 184, -1, 177, 22, -1, 158,
- 3, -1, 158, 4, -1, 9, 23, -1, 9, 24,
- -1, 159, 7, -1, 154, 140, 183, 33, 177, 141,
- -1, 113, 140, 183, 223, 141, -1, 127, 140, 183,
- 137, 183, 137, 183, 141, -1, 152, 140, 183, 137,
- 183, 141, -1, 153, 140, 183, 137, 183, 141, -1,
- 86, 156, 140, 183, 137, 183, 141, -1, 87, 157,
- 140, 183, 137, 183, 141, -1, 155, 140, 183, 137,
- 183, 141, -1, 132, 140, 183, 137, 183, 141, -1,
- 133, 140, 183, 137, 183, 137, 183, 141, -1, 134,
- 140, 183, 137, 183, 137, 183, 141, -1, 185, 137,
- 183, -1, 183, -1, 29, -1, 30, -1, 188, -1,
- -1, 189, -1, 188, 189, -1, -1, 28, 190, 208,
- -1, -1, 27, 191, 209, -1, 58, 57, 195, -1,
- 21, -1, 160, 17, 177, -1, 160, 17, 8, -1,
- -1, 160, 186, 183, 192, 174, -1, -1, 160, 161,
- 186, 183, 193, 174, -1, -1, 160, 162, 186, 177,
- 194, 174, -1, 47, 197, -1, 54, 136, 198, -1,
- 20, -1, 52, -1, 51, -1, 49, 136, 196, -1,
- 50, 136, 4, -1, 48, 136, 20, -1, 67, 136,
- 20, -1, 142, 199, 144, -1, 199, 137, 20, -1,
- 20, -1, -1, 18, -1, 20, -1, 200, -1, -1,
- 202, 137, 177, 167, 201, -1, 177, 167, 201, -1,
- 202, -1, 202, 137, 34, -1, 34, -1, -1, 165,
- 179, 200, 140, 203, 141, 169, 173, 170, -1, 25,
- -1, 147, -1, 164, 204, 205, -1, 26, -1, 148,
- -1, 215, 207, -1, 163, 204, -1, -1, 59, -1,
- 3, -1, 4, -1, 7, -1, 23, -1, 24, -1,
- 35, -1, 36, -1, 22, -1, 145, 185, 146, -1,
- 184, -1, 57, 210, 20, 137, 20, -1, 151, -1,
- 200, -1, 212, -1, 211, -1, 177, 213, -1, 215,
- 216, -1, 206, 216, -1, 217, 160, 218, -1, 217,
- 220, -1, -1, 19, -1, 68, 214, -1, 68, 8,
- -1, 69, 16, 213, -1, 69, 9, 213, 137, 16,
- 213, 137, 16, 213, -1, 70, 158, 213, 137, 16,
- 213, 142, 219, 144, -1, 70, 158, 213, 137, 16,
- 213, 142, 144, -1, 71, 165, 179, 213, 140, 222,
- 141, 169, 33, 16, 213, 72, 16, 213, -1, 72,
- -1, 73, -1, 219, 158, 211, 137, 16, 213, -1,
- 158, 211, 137, 16, 213, -1, 160, 225, -1, 177,
- 142, 213, 137, 213, 144, -1, 221, 137, 142, 213,
- 137, 213, 144, -1, 177, 213, 167, -1, 222, 137,
- 177, 213, 167, -1, -1, -1, 223, 137, 214, -1,
- 56, 55, -1, 55, -1, 152, 177, 213, 137, 213,
- -1, 153, 177, 213, 137, 213, -1, 86, 156, 177,
- 213, 137, 213, -1, 87, 157, 177, 213, 137, 213,
- -1, 45, 214, -1, 155, 214, 137, 214, -1, 154,
- 214, 33, 177, -1, 127, 214, 137, 214, 137, 214,
- -1, 131, 214, 137, 177, -1, 132, 214, 137, 214,
- -1, 133, 214, 137, 214, 137, 214, -1, 134, 214,
- 137, 214, 137, 214, -1, 126, 221, -1, 224, 165,
- 179, 213, 140, 222, 141, 169, -1, 227, -1, 32,
- -1, -1, 108, 177, 171, -1, 108, 177, 137, 12,
- 213, 171, -1, 109, 177, 171, -1, 109, 177, 137,
- 12, 213, 171, -1, 110, 214, -1, 226, 111, 177,
- 213, -1, 226, 112, 214, 137, 177, 213, -1, 113,
- 177, 213, 223, -1
+ 184, 0, -1, 5, -1, 6, -1, 71, -1, 72,
+ -1, 73, -1, 74, -1, 75, -1, 76, -1, 77,
+ -1, 78, -1, 79, -1, 80, -1, 81, -1, 82,
+ -1, 111, -1, 112, -1, 113, -1, 114, -1, 115,
+ -1, 116, -1, 117, -1, 118, -1, 119, -1, 120,
+ -1, 121, -1, 122, -1, 125, -1, 126, -1, 127,
+ -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, 100, -1, 101, -1, 102, -1, 103, -1, 104,
+ -1, 91, -1, 92, -1, 93, -1, 94, -1, 20,
+ -1, 21, -1, 10, -1, 11, -1, 12, -1, 197,
+ 133, -1, -1, 34, -1, 36, -1, 35, -1, 37,
+ -1, 39, -1, 38, -1, 40, -1, 43, -1, -1,
+ 38, -1, 40, -1, -1, 34, -1, 35, -1, 36,
+ -1, 39, -1, -1, 58, -1, 59, -1, 60, -1,
+ 61, -1, 62, -1, 63, -1, 57, 4, -1, 112,
+ -1, 113, -1, -1, 164, 163, -1, 132, -1, 163,
+ -1, -1, 166, 165, -1, -1, 50, 4, -1, -1,
+ 134, 50, 4, -1, 28, 17, -1, -1, 169, -1,
+ -1, 134, 172, 171, -1, 169, -1, 50, 4, -1,
+ 9, -1, 10, -1, 11, -1, 12, -1, 13, -1,
+ 41, -1, 173, -1, 174, 135, -1, 209, -1, 136,
+ 4, -1, 174, 137, 178, 138, 166, -1, 8, 137,
+ 178, 138, 166, -1, 139, 4, 140, 174, 141, -1,
+ 142, 4, 140, 174, 143, -1, 144, 179, 145, -1,
+ 144, 145, -1, 142, 144, 179, 145, 143, -1, 142,
+ 144, 145, 143, -1, 174, 164, -1, 174, -1, 8,
+ -1, 175, -1, 177, 134, 175, -1, 177, -1, 177,
+ 134, 31, -1, 31, -1, -1, 174, -1, 179, 134,
+ 174, -1, 174, 139, 182, 141, -1, 174, 139, 141,
+ -1, 174, 146, 17, -1, 174, 142, 182, 143, -1,
+ 174, 144, 182, 145, -1, 174, 144, 145, -1, 174,
+ 142, 144, 182, 145, 143, -1, 174, 142, 144, 145,
+ 143, -1, 174, 32, -1, 174, 33, -1, 174, 209,
+ -1, 174, 181, -1, 174, 19, -1, 155, 3, -1,
+ 155, 4, -1, 9, 20, -1, 9, 21, -1, 156,
+ 7, -1, 151, 137, 180, 30, 174, 138, -1, 110,
+ 137, 180, 220, 138, -1, 124, 137, 180, 134, 180,
+ 134, 180, 138, -1, 149, 137, 180, 134, 180, 138,
+ -1, 150, 137, 180, 134, 180, 138, -1, 83, 153,
+ 137, 180, 134, 180, 138, -1, 84, 154, 137, 180,
+ 134, 180, 138, -1, 152, 137, 180, 134, 180, 138,
+ -1, 129, 137, 180, 134, 180, 138, -1, 130, 137,
+ 180, 134, 180, 134, 180, 138, -1, 131, 137, 180,
+ 134, 180, 134, 180, 138, -1, 182, 134, 180, -1,
+ 180, -1, 26, -1, 27, -1, 185, -1, -1, 186,
+ -1, 185, 186, -1, -1, 25, 187, 205, -1, -1,
+ 24, 188, 206, -1, 55, 54, 192, -1, 18, -1,
+ 157, 14, 174, -1, 157, 14, 8, -1, -1, 157,
+ 183, 180, 189, 171, -1, -1, 157, 158, 183, 180,
+ 190, 171, -1, -1, 157, 159, 183, 174, 191, 171,
+ -1, 44, 194, -1, 51, 133, 195, -1, 17, -1,
+ 49, -1, 48, -1, 46, 133, 193, -1, 47, 133,
+ 4, -1, 45, 133, 17, -1, 64, 133, 17, -1,
+ 139, 196, 141, -1, 196, 134, 17, -1, 17, -1,
+ -1, 15, -1, 17, -1, 197, -1, -1, 199, 134,
+ 174, 164, 198, -1, 174, 164, 198, -1, 199, -1,
+ 199, 134, 31, -1, 31, -1, -1, 162, 176, 197,
+ 137, 200, 138, 166, 170, 167, -1, 22, -1, 144,
+ -1, 161, 201, 202, -1, 23, -1, 145, -1, 212,
+ 204, -1, 160, 201, -1, -1, 56, -1, 3, -1,
+ 4, -1, 7, -1, 20, -1, 21, -1, 32, -1,
+ 33, -1, 19, -1, 142, 182, 143, -1, 181, -1,
+ 54, 207, 17, 134, 17, -1, 148, -1, 197, -1,
+ 209, -1, 208, -1, 174, 210, -1, 212, 213, -1,
+ 203, 213, -1, 214, 157, 215, -1, 214, 217, -1,
+ -1, 16, -1, 65, 211, -1, 65, 8, -1, 66,
+ 13, 210, -1, 66, 9, 210, 134, 13, 210, 134,
+ 13, 210, -1, 67, 155, 210, 134, 13, 210, 139,
+ 216, 141, -1, 67, 155, 210, 134, 13, 210, 139,
+ 141, -1, 68, 162, 176, 210, 137, 219, 138, 166,
+ 30, 13, 210, 69, 13, 210, -1, 69, -1, 70,
+ -1, 216, 155, 208, 134, 13, 210, -1, 155, 208,
+ 134, 13, 210, -1, 157, 222, -1, 174, 139, 210,
+ 134, 210, 141, -1, 218, 134, 139, 210, 134, 210,
+ 141, -1, 174, 210, 164, -1, 219, 134, 174, 210,
+ 164, -1, -1, -1, 220, 134, 211, -1, 53, 52,
+ -1, 52, -1, 149, 174, 210, 134, 210, -1, 150,
+ 174, 210, 134, 210, -1, 83, 153, 174, 210, 134,
+ 210, -1, 84, 154, 174, 210, 134, 210, -1, 42,
+ 211, -1, 152, 211, 134, 211, -1, 151, 211, 30,
+ 174, -1, 124, 211, 134, 211, 134, 211, -1, 128,
+ 211, 134, 174, -1, 129, 211, 134, 211, -1, 130,
+ 211, 134, 211, 134, 211, -1, 131, 211, 134, 211,
+ 134, 211, -1, 123, 218, -1, 221, 162, 176, 210,
+ 137, 219, 138, 166, -1, 224, -1, 29, -1, -1,
+ 105, 174, 168, -1, 105, 174, 134, 10, 210, 168,
+ -1, 106, 174, 168, -1, 106, 174, 134, 10, 210,
+ 168, -1, 107, 211, -1, 223, 108, 174, 210, -1,
+ 223, 109, 211, 134, 174, 210, -1, 110, 174, 210,
+ 220, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
@@ -1636,31 +1627,30 @@ static const unsigned short int yyrline[] =
1032, 1032, 1033, 1033, 1033, 1033, 1033, 1033, 1034, 1034,
1034, 1036, 1036, 1037, 1037, 1038, 1038, 1039, 1039, 1040,
1040, 1044, 1044, 1045, 1045, 1046, 1046, 1047, 1047, 1048,
- 1048, 1049, 1049, 1050, 1050, 1051, 1052, 1057, 1057, 1057,
- 1057, 1058, 1058, 1061, 1065, 1071, 1072, 1073, 1074, 1075,
- 1079, 1080, 1081, 1085, 1086, 1087, 1091, 1092, 1093, 1094,
- 1095, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1112,
- 1113, 1116, 1117, 1122, 1123, 1126, 1127, 1134, 1135, 1141,
- 1142, 1150, 1158, 1159, 1164, 1165, 1166, 1171, 1184, 1184,
- 1184, 1184, 1184, 1184, 1184, 1184, 1187, 1191, 1195, 1202,
- 1207, 1215, 1233, 1251, 1256, 1268, 1278, 1282, 1292, 1299,
- 1306, 1313, 1318, 1323, 1330, 1331, 1338, 1345, 1353, 1358,
- 1369, 1397, 1413, 1442, 1470, 1495, 1514, 1539, 1558, 1570,
- 1577, 1640, 1650, 1660, 1666, 1672, 1676, 1680, 1688, 1702,
- 1723, 1731, 1737, 1748, 1753, 1758, 1767, 1773, 1779, 1788,
- 1792, 1800, 1800, 1811, 1816, 1824, 1825, 1829, 1829, 1833,
- 1833, 1836, 1839, 1851, 1875, 1886, 1886, 1895, 1895, 1903,
- 1903, 1913, 1916, 1922, 1935, 1936, 1938, 1942, 1951, 1955,
- 1960, 1962, 1967, 1972, 1981, 1981, 1982, 1982, 1984, 1994,
- 2005, 2009, 2018, 2027, 2032, 2137, 2137, 2139, 2147, 2147,
- 2149, 2154, 2165, 2169, 2174, 2178, 2182, 2186, 2190, 2194,
- 2198, 2202, 2206, 2231, 2235, 2249, 2253, 2259, 2259, 2265,
- 2274, 2278, 2287, 2298, 2307, 2319, 2332, 2336, 2340, 2345,
- 2354, 2373, 2382, 2449, 2453, 2460, 2471, 2484, 2493, 2504,
- 2514, 2522, 2530, 2533, 2534, 2541, 2545, 2550, 2571, 2588,
- 2601, 2614, 2627, 2636, 2649, 2657, 2664, 2670, 2676, 2682,
- 2697, 2760, 2765, 2769, 2776, 2783, 2791, 2798, 2806, 2814,
- 2828, 2845
+ 1048, 1049, 1049, 1050, 1050, 1051, 1052, 1057, 1058, 1058,
+ 1061, 1065, 1071, 1072, 1073, 1074, 1075, 1079, 1080, 1081,
+ 1085, 1086, 1087, 1091, 1092, 1093, 1094, 1095, 1098, 1099,
+ 1100, 1101, 1102, 1103, 1104, 1105, 1112, 1113, 1116, 1117,
+ 1122, 1123, 1126, 1127, 1134, 1135, 1141, 1142, 1150, 1158,
+ 1159, 1164, 1165, 1166, 1171, 1184, 1184, 1184, 1184, 1184,
+ 1187, 1191, 1195, 1202, 1207, 1215, 1233, 1251, 1256, 1268,
+ 1278, 1282, 1292, 1299, 1306, 1313, 1318, 1323, 1330, 1331,
+ 1338, 1345, 1353, 1358, 1369, 1397, 1413, 1442, 1470, 1495,
+ 1514, 1539, 1558, 1570, 1577, 1640, 1650, 1660, 1666, 1672,
+ 1676, 1680, 1688, 1702, 1723, 1731, 1737, 1748, 1753, 1758,
+ 1767, 1773, 1779, 1788, 1792, 1800, 1800, 1811, 1816, 1824,
+ 1825, 1829, 1829, 1833, 1833, 1836, 1839, 1851, 1875, 1886,
+ 1886, 1895, 1895, 1903, 1903, 1913, 1916, 1922, 1935, 1936,
+ 1938, 1942, 1951, 1955, 1960, 1962, 1967, 1972, 1981, 1981,
+ 1982, 1982, 1984, 1994, 2005, 2009, 2018, 2027, 2032, 2137,
+ 2137, 2139, 2147, 2147, 2149, 2154, 2165, 2169, 2174, 2178,
+ 2182, 2186, 2190, 2194, 2198, 2202, 2206, 2231, 2235, 2249,
+ 2253, 2259, 2259, 2265, 2274, 2278, 2287, 2298, 2307, 2319,
+ 2332, 2336, 2340, 2345, 2354, 2373, 2382, 2449, 2453, 2460,
+ 2471, 2484, 2493, 2504, 2514, 2522, 2530, 2533, 2534, 2541,
+ 2545, 2550, 2571, 2588, 2601, 2614, 2627, 2636, 2649, 2657,
+ 2664, 2670, 2676, 2682, 2697, 2760, 2765, 2769, 2776, 2783,
+ 2791, 2798, 2806, 2814, 2828, 2845
};
#endif
@@ -1670,43 +1660,43 @@ static const unsigned short int yyrline[] =
static const char *const yytname[] =
{
"$end", "error", "$undefined", "ESINT64VAL", "EUINT64VAL", "SINTVAL",
- "UINTVAL", "FPVAL", "VOID", "BOOL", "INT8", "INT16", "INT32", "INT64",
- "FLOAT", "DOUBLE", "LABEL", "TYPE", "VAR_ID", "LABELSTR",
- "STRINGCONSTANT", "IMPLEMENTATION", "ZEROINITIALIZER", "TRUETOK",
- "FALSETOK", "BEGINTOK", "ENDTOK", "DECLARE", "DEFINE", "GLOBAL",
- "CONSTANT", "SECTION", "VOLATILE", "TO", "DOTDOTDOT", "NULL_TOK",
- "UNDEF", "INTERNAL", "LINKONCE", "WEAK", "APPENDING", "DLLIMPORT",
- "DLLEXPORT", "EXTERN_WEAK", "OPAQUE", "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", "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", "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",