aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/llvmAsmParser.cpp.cvs
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-05 23:29:42 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-05 23:29:42 +0000
commitcd42c5854817cfc3e7604bc48b2c7a806f7391c3 (patch)
tree52b22ecae98f82f8b0fe39d35650bc3467144f51 /lib/AsmParser/llvmAsmParser.cpp.cvs
parentb775bbc12156448e12f15762c29ba68bc5d37f1c (diff)
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.cpp.cvs')
-rw-r--r--lib/AsmParser/llvmAsmParser.cpp.cvs1897
1 files changed, 858 insertions, 1039 deletions
diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs
index 7b017bc26b..0336d9ec2f 100644
--- a/lib/AsmParser/llvmAsmParser.cpp.cvs
+++ b/lib/AsmParser/llvmAsmParser.cpp.cvs
@@ -205,9 +205,7 @@
VAARG = 396,
EXTRACTELEMENT = 397,
INSERTELEMENT = 398,
- SHUFFLEVECTOR = 399,
- VAARG_old = 400,
- VANEXT_old = 401
+ SHUFFLEVECTOR = 399
};
#endif
/* Tokens. */
@@ -353,8 +351,6 @@
#define EXTRACTELEMENT 397
#define INSERTELEMENT 398
#define SHUFFLEVECTOR 399
-#define VAARG_old 400
-#define VANEXT_old 401
@@ -414,9 +410,7 @@ static Module *ParserResult;
#define YYERROR_VERBOSE 1
-static bool ObsoleteVarArgs;
static bool NewVarArgs;
-static BasicBlock *CurBB;
static GlobalVariable *CurGV;
@@ -1161,7 +1155,6 @@ static PATypeHolder HandleUpRefs(const Type *ty) {
static Module* RunParser(Module * M) {
llvmAsmlineno = 1; // Reset the current line number...
- ObsoleteVarArgs = false;
NewVarArgs = false;
CurModule.CurrentModule = M;
@@ -1180,113 +1173,6 @@ static Module* RunParser(Module * M) {
Module *Result = ParserResult;
ParserResult = 0;
- //Not all functions use vaarg, so make a second check for ObsoleteVarArgs
- {
- Function* F;
- if ((F = Result->getNamedFunction("llvm.va_start"))
- && F->getFunctionType()->getNumParams() == 0)
- ObsoleteVarArgs = true;
- if((F = Result->getNamedFunction("llvm.va_copy"))
- && F->getFunctionType()->getNumParams() == 1)
- ObsoleteVarArgs = true;
- }
-
- if (ObsoleteVarArgs && NewVarArgs) {
- GenerateError(
- "This file is corrupt: it uses both new and old style varargs");
- return 0;
- }
-
- if(ObsoleteVarArgs) {
- if(Function* F = Result->getNamedFunction("llvm.va_start")) {
- if (F->arg_size() != 0) {
- GenerateError("Obsolete va_start takes 0 argument!");
- return 0;
- }
-
- //foo = va_start()
- // ->
- //bar = alloca typeof(foo)
- //va_start(bar)
- //foo = load bar
-
- const Type* RetTy = Type::getPrimitiveType(Type::VoidTyID);
- const Type* ArgTy = F->getFunctionType()->getReturnType();
- const Type* ArgTyPtr = PointerType::get(ArgTy);
- Function* NF = Result->getOrInsertFunction("llvm.va_start",
- RetTy, ArgTyPtr, (Type *)0);
-
- while (!F->use_empty()) {
- CallInst* CI = cast<CallInst>(F->use_back());
- AllocaInst* bar = new AllocaInst(ArgTy, 0, "vastart.fix.1", CI);
- new CallInst(NF, bar, "", CI);
- Value* foo = new LoadInst(bar, "vastart.fix.2", CI);
- CI->replaceAllUsesWith(foo);
- CI->getParent()->getInstList().erase(CI);
- }
- Result->getFunctionList().erase(F);
- }
-
- if(Function* F = Result->getNamedFunction("llvm.va_end")) {
- if(F->arg_size() != 1) {
- GenerateError("Obsolete va_end takes 1 argument!");
- return 0;
- }
-
- //vaend foo
- // ->
- //bar = alloca 1 of typeof(foo)
- //vaend bar
- const Type* RetTy = Type::getPrimitiveType(Type::VoidTyID);
- const Type* ArgTy = F->getFunctionType()->getParamType(0);
- const Type* ArgTyPtr = PointerType::get(ArgTy);
- Function* NF = Result->getOrInsertFunction("llvm.va_end",
- RetTy, ArgTyPtr, (Type *)0);
-
- while (!F->use_empty()) {
- CallInst* CI = cast<CallInst>(F->use_back());
- AllocaInst* bar = new AllocaInst(ArgTy, 0, "vaend.fix.1", CI);
- new StoreInst(CI->getOperand(1), bar, CI);
- new CallInst(NF, bar, "", CI);
- CI->getParent()->getInstList().erase(CI);
- }
- Result->getFunctionList().erase(F);
- }
-
- if(Function* F = Result->getNamedFunction("llvm.va_copy")) {
- if(F->arg_size() != 1) {
- GenerateError("Obsolete va_copy takes 1 argument!");
- return 0;
- }
- //foo = vacopy(bar)
- // ->
- //a = alloca 1 of typeof(foo)
- //b = alloca 1 of typeof(foo)
- //store bar -> b
- //vacopy(a, b)
- //foo = load a
-
- const Type* RetTy = Type::getPrimitiveType(Type::VoidTyID);
- const Type* ArgTy = F->getFunctionType()->getReturnType();
- const Type* ArgTyPtr = PointerType::get(ArgTy);
- Function* NF = Result->getOrInsertFunction("llvm.va_copy",
- RetTy, ArgTyPtr, ArgTyPtr,
- (Type *)0);
-
- while (!F->use_empty()) {
- CallInst* CI = cast<CallInst>(F->use_back());
- AllocaInst* a = new AllocaInst(ArgTy, 0, "vacopy.fix.1", CI);
- AllocaInst* b = new AllocaInst(ArgTy, 0, "vacopy.fix.2", CI);
- new StoreInst(CI->getOperand(1), b, CI);
- new CallInst(NF, a, b, "", CI);
- Value* foo = new LoadInst(a, "vacopy.fix.3", CI);
- CI->replaceAllUsesWith(foo);
- CI->getParent()->getInstList().erase(CI);
- }
- Result->getFunctionList().erase(F);
- }
- }
-
return Result;
}
@@ -1333,7 +1219,7 @@ Module *llvm::RunVMAsmParser(const char * AsmString, Module * M) {
#endif
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
-#line 967 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
+#line 857 "/proj/llvm/llvm-1/lib/AsmParser/llvmAsmParser.y"
typedef union YYSTYPE {
llvm::Module *ModuleVal;
llvm::Function *FunctionVal;
@@ -1377,7 +1263,7 @@ typedef union YYSTYPE {
llvm::FCmpInst::Predicate FPredicate;
} YYSTYPE;
/* Line 196 of yacc.c. */
-#line 1381 "llvmAsmParser.tab.c"
+#line 1267 "llvmAsmParser.tab.c"
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
# define YYSTYPE_IS_TRIVIAL 1
@@ -1389,7 +1275,7 @@ typedef union YYSTYPE {
/* Line 219 of yacc.c. */
-#line 1393 "llvmAsmParser.tab.c"
+#line 1279 "llvmAsmParser.tab.c"
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
# define YYSIZE_T __SIZE_TYPE__
@@ -1540,20 +1426,20 @@ union yyalloc
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 4
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1556
+#define YYLAST 1509
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 161
+#define YYNTOKENS 159
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 78
/* YYNRULES -- Number of rules. */
-#define YYNRULES 299
+#define YYNRULES 297
/* YYNRULES -- Number of states. */
-#define YYNSTATES 586
+#define YYNSTATES 578
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 401
+#define YYMAXUTOK 399
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
@@ -1565,15 +1451,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,
- 150, 151, 159, 2, 148, 2, 2, 2, 2, 2,
+ 148, 149, 157, 2, 146, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 155, 147, 156, 2, 2, 2, 2, 2, 2, 2,
+ 153, 145, 154, 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, 152, 149, 154, 2, 2, 2, 2, 2, 160,
+ 2, 150, 147, 152, 2, 2, 2, 2, 2, 158,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 153, 2, 2, 157, 2, 158, 2, 2, 2, 2,
+ 151, 2, 2, 155, 2, 156, 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,
@@ -1600,8 +1486,7 @@ static const unsigned char yytranslate[] =
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
- 135, 136, 137, 138, 139, 140, 141, 142, 143, 144,
- 145, 146
+ 135, 136, 137, 138, 139, 140, 141, 142, 143, 144
};
#if YYDEBUG
@@ -1637,14 +1522,14 @@ static const unsigned short int yyprhs[] =
686, 689, 692, 696, 706, 716, 725, 739, 741, 743,
750, 756, 759, 766, 774, 776, 780, 782, 783, 786,
788, 794, 800, 806, 813, 820, 823, 828, 833, 840,
- 845, 850, 855, 860, 867, 874, 877, 885, 887, 890,
- 891, 893, 894, 898, 905, 909, 916, 919, 924, 931
+ 845, 850, 857, 864, 867, 875, 877, 880, 881, 883,
+ 884, 888, 895, 899, 906, 909, 914, 921
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const short int yyrhs[] =
{
- 195, 0, -1, 5, -1, 6, -1, 3, -1, 4,
+ 193, 0, -1, 5, -1, 6, -1, 3, -1, 4,
-1, 78, -1, 79, -1, 80, -1, 81, -1, 82,
-1, 83, -1, 84, -1, 85, -1, 86, -1, 87,
-1, 88, -1, 89, -1, 90, -1, 91, -1, 92,
@@ -1658,121 +1543,120 @@ static const short int yyrhs[] =
-1, 115, -1, 116, -1, 117, -1, 104, -1, 105,
-1, 106, -1, 107, -1, 27, -1, 28, -1, 16,
-1, 14, -1, 12, -1, 10, -1, 17, -1, 15,
- -1, 13, -1, 11, -1, 171, -1, 172, -1, 18,
- -1, 19, -1, 207, 147, -1, -1, 41, -1, 42,
+ -1, 13, -1, 11, -1, 169, -1, 170, -1, 18,
+ -1, 19, -1, 205, 145, -1, -1, 41, -1, 42,
-1, 43, -1, 44, -1, 45, -1, 46, -1, 47,
-1, -1, -1, 65, -1, 66, -1, 67, -1, 68,
-1, 69, -1, 70, -1, 64, 4, -1, -1, 57,
- 4, -1, -1, 148, 57, 4, -1, 34, 24, -1,
- -1, 180, -1, -1, 148, 183, 182, -1, 180, -1,
- 57, 4, -1, 186, -1, 8, -1, 188, -1, 8,
- -1, 188, -1, 9, -1, 10, -1, 11, -1, 12,
+ 4, -1, -1, 146, 57, 4, -1, 34, 24, -1,
+ -1, 178, -1, -1, 146, 181, 180, -1, 178, -1,
+ 57, 4, -1, 184, -1, 8, -1, 186, -1, 8,
+ -1, 186, -1, 9, -1, 10, -1, 11, -1, 12,
-1, 13, -1, 14, -1, 15, -1, 16, -1, 17,
-1, 18, -1, 19, -1, 20, -1, 21, -1, 48,
- -1, 187, -1, 222, -1, 149, 4, -1, 185, 150,
- 190, 151, -1, 152, 4, 153, 188, 154, -1, 155,
- 4, 153, 188, 156, -1, 157, 189, 158, -1, 157,
- 158, -1, 188, 159, -1, 188, -1, 189, 148, 188,
- -1, 189, -1, 189, 148, 37, -1, 37, -1, -1,
- 186, 152, 193, 154, -1, 186, 152, 154, -1, 186,
- 160, 24, -1, 186, 155, 193, 156, -1, 186, 157,
- 193, 158, -1, 186, 157, 158, -1, 186, 38, -1,
- 186, 39, -1, 186, 222, -1, 186, 192, -1, 186,
- 26, -1, 171, 163, -1, 172, 4, -1, 9, 27,
- -1, 9, 28, -1, 174, 7, -1, 167, 150, 191,
- 36, 186, 151, -1, 123, 150, 191, 236, 151, -1,
- 137, 150, 191, 148, 191, 148, 191, 151, -1, 164,
- 150, 191, 148, 191, 151, -1, 165, 150, 191, 148,
- 191, 151, -1, 166, 150, 191, 148, 191, 151, -1,
- 96, 169, 150, 191, 148, 191, 151, -1, 97, 170,
- 150, 191, 148, 191, 151, -1, 168, 150, 191, 148,
- 191, 151, -1, 142, 150, 191, 148, 191, 151, -1,
- 143, 150, 191, 148, 191, 148, 191, 151, -1, 144,
- 150, 191, 148, 191, 148, 191, 151, -1, 193, 148,
- 191, -1, 191, -1, 32, -1, 33, -1, 196, -1,
- 196, 216, -1, 196, 218, -1, 196, 62, 61, 202,
- -1, 196, 25, -1, 197, -1, 197, 175, 20, 184,
- -1, 197, 218, -1, 197, 62, 61, 202, -1, -1,
- 197, 175, 176, 194, 191, 198, 182, -1, -1, 197,
- 175, 50, 194, 186, 199, 182, -1, -1, 197, 175,
- 45, 194, 186, 200, 182, -1, -1, 197, 175, 47,
- 194, 186, 201, 182, -1, 197, 51, 204, -1, 197,
- 58, 147, 205, -1, -1, 24, -1, 56, -1, 55,
- -1, 53, 147, 203, -1, 54, 147, 4, -1, 52,
- 147, 24, -1, 71, 147, 24, -1, 152, 206, 154,
- -1, 206, 148, 24, -1, 24, -1, -1, 22, -1,
- 24, -1, 207, -1, -1, 186, 208, -1, 210, 148,
- 209, -1, 209, -1, 210, -1, 210, 148, 37, -1,
- 37, -1, -1, 177, 184, 207, 150, 211, 151, 181,
- 178, -1, 29, -1, 157, -1, 176, 212, 213, -1,
- 30, -1, 158, -1, 225, 215, -1, -1, 45, -1,
- 47, -1, -1, 31, 219, 217, 212, -1, -1, 63,
+ -1, 185, -1, 220, -1, 147, 4, -1, 183, 148,
+ 188, 149, -1, 150, 4, 151, 186, 152, -1, 153,
+ 4, 151, 186, 154, -1, 155, 187, 156, -1, 155,
+ 156, -1, 186, 157, -1, 186, -1, 187, 146, 186,
+ -1, 187, -1, 187, 146, 37, -1, 37, -1, -1,
+ 184, 150, 191, 152, -1, 184, 150, 152, -1, 184,
+ 158, 24, -1, 184, 153, 191, 154, -1, 184, 155,
+ 191, 156, -1, 184, 155, 156, -1, 184, 38, -1,
+ 184, 39, -1, 184, 220, -1, 184, 190, -1, 184,
+ 26, -1, 169, 161, -1, 170, 4, -1, 9, 27,
+ -1, 9, 28, -1, 172, 7, -1, 165, 148, 189,
+ 36, 184, 149, -1, 123, 148, 189, 234, 149, -1,
+ 137, 148, 189, 146, 189, 146, 189, 149, -1, 162,
+ 148, 189, 146, 189, 149, -1, 163, 148, 189, 146,
+ 189, 149, -1, 164, 148, 189, 146, 189, 149, -1,
+ 96, 167, 148, 189, 146, 189, 149, -1, 97, 168,
+ 148, 189, 146, 189, 149, -1, 166, 148, 189, 146,
+ 189, 149, -1, 142, 148, 189, 146, 189, 149, -1,
+ 143, 148, 189, 146, 189, 146, 189, 149, -1, 144,
+ 148, 189, 146, 189, 146, 189, 149, -1, 191, 146,
+ 189, -1, 189, -1, 32, -1, 33, -1, 194, -1,
+ 194, 214, -1, 194, 216, -1, 194, 62, 61, 200,
+ -1, 194, 25, -1, 195, -1, 195, 173, 20, 182,
+ -1, 195, 216, -1, 195, 62, 61, 200, -1, -1,
+ 195, 173, 174, 192, 189, 196, 180, -1, -1, 195,
+ 173, 50, 192, 184, 197, 180, -1, -1, 195, 173,
+ 45, 192, 184, 198, 180, -1, -1, 195, 173, 47,
+ 192, 184, 199, 180, -1, 195, 51, 202, -1, 195,
+ 58, 145, 203, -1, -1, 24, -1, 56, -1, 55,
+ -1, 53, 145, 201, -1, 54, 145, 4, -1, 52,
+ 145, 24, -1, 71, 145, 24, -1, 150, 204, 152,
+ -1, 204, 146, 24, -1, 24, -1, -1, 22, -1,
+ 24, -1, 205, -1, -1, 184, 206, -1, 208, 146,
+ 207, -1, 207, -1, 208, -1, 208, 146, 37, -1,
+ 37, -1, -1, 175, 182, 205, 148, 209, 149, 179,
+ 176, -1, 29, -1, 155, -1, 174, 210, 211, -1,
+ 30, -1, 156, -1, 223, 213, -1, -1, 45, -1,
+ 47, -1, -1, 31, 217, 215, 210, -1, -1, 63,
-1, 3, -1, 4, -1, 7, -1, 27, -1, 28,
- -1, 38, -1, 39, -1, 26, -1, 155, 193, 156,
- -1, 192, -1, 61, 220, 24, 148, 24, -1, 162,
- -1, 207, -1, 222, -1, 221, -1, 186, 223, -1,
- 225, 226, -1, 214, 226, -1, 227, 175, 228, -1,
- 227, 230, -1, -1, 23, -1, 72, 224, -1, 72,
- 8, -1, 73, 21, 223, -1, 73, 9, 223, 148,
- 21, 223, 148, 21, 223, -1, 74, 173, 223, 148,
- 21, 223, 152, 229, 154, -1, 74, 173, 223, 148,
- 21, 223, 152, 154, -1, 75, 177, 184, 223, 150,
- 233, 151, 36, 21, 223, 76, 21, 223, -1, 76,
- -1, 77, -1, 229, 173, 221, 148, 21, 223, -1,
- 173, 221, 148, 21, 223, -1, 175, 235, -1, 186,
- 152, 223, 148, 223, 154, -1, 231, 148, 152, 223,
- 148, 223, 154, -1, 224, -1, 232, 148, 224, -1,
- 232, -1, -1, 60, 59, -1, 59, -1, 164, 186,
- 223, 148, 223, -1, 165, 186, 223, 148, 223, -1,
- 166, 186, 223, 148, 223, -1, 96, 169, 186, 223,
- 148, 223, -1, 97, 170, 186, 223, 148, 223, -1,
- 49, 224, -1, 168, 224, 148, 224, -1, 167, 224,
- 36, 186, -1, 137, 224, 148, 224, 148, 224, -1,
- 141, 224, 148, 186, -1, 145, 224, 148, 186, -1,
- 146, 224, 148, 186, -1, 142, 224, 148, 224, -1,
- 143, 224, 148, 224, 148, 224, -1, 144, 224, 148,
- 224, 148, 224, -1, 136, 231, -1, 234, 177, 184,
- 223, 150, 233, 151, -1, 238, -1, 148, 232, -1,
- -1, 35, -1, -1, 118, 186, 179, -1, 118, 186,
- 148, 15, 223, 179, -1, 119, 186, 179, -1, 119,
- 186, 148, 15, 223, 179, -1, 120, 224, -1, 237,
- 121, 186, 223, -1, 237, 122, 224, 148, 186, 223,
- -1, 123, 186, 223, 236, -1
+ -1, 38, -1, 39, -1, 26, -1, 153, 191, 154,
+ -1, 190, -1, 61, 218, 24, 146, 24, -1, 160,
+ -1, 205, -1, 220, -1, 219, -1, 184, 221, -1,
+ 223, 224, -1, 212, 224, -1, 225, 173, 226, -1,
+ 225, 228, -1, -1, 23, -1, 72, 222, -1, 72,
+ 8, -1, 73, 21, 221, -1, 73, 9, 221, 146,
+ 21, 221, 146, 21, 221, -1, 74, 171, 221, 146,
+ 21, 221, 150, 227, 152, -1, 74, 171, 221, 146,
+ 21, 221, 150, 152, -1, 75, 175, 182, 221, 148,
+ 231, 149, 36, 21, 221, 76, 21, 221, -1, 76,
+ -1, 77, -1, 227, 171, 219, 146, 21, 221, -1,
+ 171, 219, 146, 21, 221, -1, 173, 233, -1, 184,
+ 150, 221, 146, 221, 152, -1, 229, 146, 150, 221,
+ 146, 221, 152, -1, 222, -1, 230, 146, 222, -1,
+ 230, -1, -1, 60, 59, -1, 59, -1, 162, 184,
+ 221, 146, 221, -1, 163, 184, 221, 146, 221, -1,
+ 164, 184, 221, 146, 221, -1, 96, 167, 184, 221,
+ 146, 221, -1, 97, 168, 184, 221, 146, 221, -1,
+ 49, 222, -1, 166, 222, 146, 222, -1, 165, 222,
+ 36, 184, -1, 137, 222, 146, 222, 146, 222, -1,
+ 141, 222, 146, 184, -1, 142, 222, 146, 222, -1,
+ 143, 222, 146, 222, 146, 222, -1, 144, 222, 146,
+ 222, 146, 222, -1, 136, 229, -1, 232, 175, 182,
+ 221, 148, 231, 149, -1, 236, -1, 146, 230, -1,
+ -1, 35, -1, -1, 118, 184, 177, -1, 118, 184,
+ 146, 15, 221, 177, -1, 119, 184, 177, -1, 119,
+ 184, 146, 15, 221, 177, -1, 120, 222, -1, 235,
+ 121, 184, 221, -1, 235, 122, 222, 146, 184, 221,
+ -1, 123, 184, 221, 234, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const unsigned short int yyrline[] =
{
- 0, 1103, 1103, 1104, 1112, 1113, 1123, 1123, 1123, 1123,
- 1123, 1123, 1123, 1123, 1123, 1124, 1124, 1124, 1125, 1125,
- 1125, 1125, 1125, 1125, 1126, 1126, 1126, 1126, 1126, 1126,
- 1127, 1127, 1127, 1127, 1127, 1127, 1128, 1128, 1128, 1130,
- 1130, 1131, 1131, 1132, 1132, 1133, 1133, 1134, 1134, 1138,
- 1138, 1139, 1139, 1140, 1140, 1141, 1141, 1142, 1142, 1143,
- 1143, 1144, 1144, 1145, 1146, 1151, 1151, 1151, 1151, 1152,
- 1152, 1152, 1152, 1153, 1153, 1154, 1154, 1157, 1161, 1166,
- 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1175, 1176, 1177,
- 1178, 1179, 1180, 1181, 1182, 1191, 1192, 1198, 1199, 1207,
- 1215, 1216, 1221, 1222, 1223, 1228, 1242, 1242, 1243, 1243,
- 1245, 1255, 1255, 1255, 1255, 1255, 1255, 1255, 1256, 1256,
- 1256, 1256, 1256, 1256, 1257, 1261, 1265, 1273, 1281, 1294,
- 1299, 1311, 1321, 1325, 1336, 1341, 1347, 1348, 1352, 1356,
- 1367, 1393, 1407, 1437, 1463, 1484, 1497, 1507, 1512, 1573,
- 1580, 1588, 1594, 1600, 1604, 1608, 1616, 1628, 1649, 1657,
- 1663, 1674, 1680, 1685, 1690, 1699, 1705, 1711, 1720, 1724,
- 1732, 1732, 1742, 1750, 1755, 1759, 1763, 1767, 1782, 1804,
- 1807, 1810, 1810, 1818, 1818, 1826, 1826, 1834, 1834, 1843,
- 1846, 1849, 1853, 1866, 1867, 1869, 1873, 1882, 1886, 1891,
- 1893, 1898, 1903, 1912, 1912, 1913, 1913, 1915, 1922, 1928,
- 1935, 1939, 1945, 1950, 1955, 2050, 2050, 2052, 2060, 2060,
- 2062, 2067, 2068, 2069, 2071, 2071, 2081, 2085, 2090, 2094,
- 2098, 2102, 2106, 2110, 2114, 2118, 2122, 2147, 2151, 2165,
- 2169, 2175, 2175, 2181, 2186, 2190, 2199, 2210, 2219, 2231,
- 2244, 2248, 2252, 2257, 2266, 2285, 2294, 2350, 2354, 2361,
- 2372, 2385, 2394, 2403, 2413, 2417, 2424, 2424, 2426, 2430,
- 2435, 2454, 2469, 2483, 2494, 2505, 2518, 2527, 2538, 2546,
- 2552, 2572, 2595, 2601, 2607, 2613, 2628, 2687, 2694, 2697,
- 2702, 2706, 2713, 2718, 2724, 2729, 2735, 2743, 2755, 2770
+ 0, 992, 992, 993, 1001, 1002, 1012, 1012, 1012, 1012,
+ 1012, 1012, 1012, 1012, 1012, 1013, 1013, 1013, 1014, 1014,
+ 1014, 1014, 1014, 1014, 1015, 1015, 1015, 1015, 1015, 1015,
+ 1016, 1016, 1016, 1016, 1016, 1016, 1017, 1017, 1017, 1019,
+ 1019, 1020, 1020, 1021, 1021, 1022, 1022, 1023, 1023, 1027,
+ 1027, 1028, 1028, 1029, 1029, 1030, 1030, 1031, 1031, 1032,
+ 1032, 1033, 1033, 1034, 1035, 1040, 1040, 1040, 1040, 1041,
+ 1041, 1041, 1041, 1042, 1042, 1043, 1043, 1046, 1050, 1055,
+ 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1064, 1065, 1066,
+ 1067, 1068, 1069, 1070, 1071, 1080, 1081, 1087, 1088, 1096,
+ 1104, 1105, 1110, 1111, 1112, 1117, 1131, 1131, 1132, 1132,
+ 1134, 1144, 1144, 1144, 1144, 1144, 1144, 1144, 1145, 1145,
+ 1145, 1145, 1145, 1145, 1146, 1150, 1154, 1162, 1170, 1183,
+ 1188, 1200, 1210, 1214, 1225, 1230, 1236, 1237, 1241, 1245,
+ 1256, 1282, 1296, 1326, 1352, 1373, 1386, 1396, 1401, 1462,
+ 1469, 1477, 1483, 1489, 1493, 1497, 1505, 1517, 1538, 1546,
+ 1552, 1563, 1569, 1574, 1579, 1588, 1594, 1600, 1609, 1613,
+ 1621, 1621, 1631, 1639, 1644, 1648, 1652, 1656, 1671, 1693,
+ 1696, 1699, 1699, 1707, 1707, 1715, 1715, 1723, 1723, 1732,
+ 1735, 1738, 1742, 1755, 1756, 1758, 1762, 1771, 1775, 1780,
+ 1782, 1787, 1792, 1801, 1801, 1802, 1802, 1804, 1811, 1817,
+ 1824, 1828, 1834, 1839, 1844, 1939, 1939, 1941, 1949, 1949,
+ 1951, 1956, 1957, 1958, 1960, 1960, 1970, 1974, 1979, 1983,
+ 1987, 1991, 1995, 1999, 2003, 2007, 2011, 2036, 2040, 2054,
+ 2058, 2064, 2064, 2070, 2075, 2079, 2088, 2099, 2108, 2120,
+ 2133, 2137, 2141, 2146, 2155, 2174, 2183, 2239, 2243, 2250,
+ 2261, 2274, 2283, 2292, 2302, 2306, 2313, 2313, 2315, 2319,
+ 2324, 2343, 2358, 2372, 2383, 2394, 2407, 2416, 2427, 2435,
+ 2441, 2447, 2453, 2459, 2474, 2533, 2540, 2543, 2548, 2552,
+ 2559, 2564, 2570, 2575, 2581, 2589, 2601, 2616
};
#endif
@@ -1802,24 +1686,24 @@ static const char *const yytname[] =
"TRUNC", "ZEXT", "SEXT", "FPTRUNC", "FPEXT", "BITCAST", "UITOFP",
"SITOFP", "FPTOUI", "FPTOSI", "INTTOPTR", "PTRTOINT", "PHI_TOK",
"SELECT", "SHL", "LSHR", "ASHR", "VAARG", "EXTRACTELEMENT",
- "INSERTELEMENT", "SHUFFLEVECTOR", "VAARG_old", "VANEXT_old", "'='",
- "','", "'\\\\'", "'('", "')'", "'['", "'x'", "']'", "'<'", "'>'", "'{'",
- "'}'", "'*'", "'c'", "$accept", "INTVAL", "EINT64VAL", "ArithmeticOps",
- "LogicalOps", "SetCondOps", "CastOps", "ShiftOps", "IPredicates",
- "FPredicates", "SIntType", "UIntType", "IntType", "FPType", "OptAssign",
- "OptLinkage", "OptCallingConv", "OptAlign", "OptCAlign", "SectionString",
- "OptSection", "GlobalVarAttributes", "GlobalVarAttribute", "TypesV",
- "UpRTypesV", "Types", "PrimType", "UpRTypes", "TypeListI",
- "ArgTypeListI", "ConstVal", "ConstExpr", "ConstVector", "GlobalType",
- "Module", "FunctionList", "ConstPool", "@1", "@2", "@3", "@4",
- "AsmBlock", "BigOrLittle", "TargetDefinition", "LibrariesDefinition",
- "LibList", "Name", "OptName", "ArgVal", "ArgListH", "ArgList",
- "FunctionHeaderH", "BEGIN", "FunctionHeader", "END", "Function",
- "FnDeclareLinkage", "FunctionProto", "@5", "OptSideEffect",
- "ConstValueRef", "SymbolicValueRef", "ValueRef", "ResolvedVal",
- "BasicBlockList", "BasicBlock", "InstructionList", "BBTerminatorInst",
- "JumpTable", "Inst", "PHIList", "ValueRefList", "ValueRefListE",
- "OptTailCall", "InstVal", "IndexList", "OptVolatile", "MemoryInst", 0
+ "INSERTELEMENT", "SHUFFLEVECTOR", "'='", "','", "'\\\\'", "'('", "')'",
+ "'['", "'x'", "']'", "'<'", "'>'", "'{'", "'}'", "'*'", "'c'", "$accept",
+ "INTVAL", "EINT64VAL", "ArithmeticOps", "LogicalOps", "SetCondOps",
+ "CastOps", "ShiftOps", "IPredicates", "FPredicates", "SIntType",
+ "UIntType", "IntType", "FPType", "OptAssign", "OptLinkage",
+ "OptCallingConv", "OptAlign", "OptCAlign", "SectionString", "OptSection",
+ "GlobalVarAttributes", "GlobalVarAttribute", "TypesV", "UpRTypesV",
+ "Types", "PrimType", "UpRTypes", "TypeListI", "ArgTypeListI", "ConstVal",
+ "ConstExpr", "ConstVector", "GlobalType", "Module", "FunctionList",
+ "ConstPool", "@1", "@2", "@3", "@4", "AsmBlock", "BigOrLittle",
+ "TargetDefinition", "LibrariesDefinition", "LibList", "Name", "OptName",
+ "ArgVal", "ArgListH", "ArgList", "FunctionHeaderH", "BEGIN",
+ "FunctionHeader", "END", "Function", "FnDeclareLinkage", "FunctionProto",
+ "@5", "OptSideEffect", "ConstValueRef", "SymbolicValueRef", "ValueRef",
+ "ResolvedVal", "BasicBlockList", "BasicBlock", "InstructionList",
+ "BBTerminatorInst", "JumpTable", "Inst", "PHIList", "ValueRefList",
+ "ValueRefListE", "OptTailCall", "InstVal", "IndexList", "OptVolatile",
+ "MemoryInst", 0
};
#endif
@@ -1842,45 +1726,44 @@ static const unsigned short int yytoknum[] =
365, 366, 367, 368, 369, 370, 371, 372, 373, 374,
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, 61, 44, 92,
- 40, 41, 91, 120, 93, 60, 62, 123, 125, 42,
- 99
+ 395, 396, 397, 398, 399, 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, 161, 162, 162, 163, 163, 164, 164, 164, 164,
- 164, 164, 164, 164, 164, 165, 165, 165, 166, 166,
- 166, 166, 166, 166, 167, 167, 167, 167, 167, 167,
- 167, 167, 167, 167, 167, 167, 168, 168, 168, 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, 171, 171, 171, 172,
- 172, 172, 172, 173, 173, 174, 174, 175, 175, 176,
- 176, 176, 176, 176, 176, 176, 176, 177, 177, 177,
- 177, 177, 177, 177, 177, 178, 178, 179, 179, 180,
- 181, 181, 182, 182, 183, 183, 184, 184, 185, 185,
- 186, 187, 187, 187, 187, 187, 187, 187, 187, 187,
- 187, 187, 187, 187, 188, 188, 188, 188, 188, 188,
- 188, 188, 188, 188, 189, 189, 190, 190, 190, 190,
- 191, 191, 191, 191, 191, 191, 191, 191, 191, 191,
- 191, 191, 191, 191, 191, 191, 192, 192, 192, 192,
- 192, 192, 192, 192, 192, 192, 192, 192, 193, 193,
- 194, 194, 195, 196, 196, 196, 196, 196, 197, 197,
- 197, 198, 197, 199, 197, 200, 197, 201, 197, 197,
- 197, 197, 202, 203, 203, 204, 204, 204, 204, 205,
- 206, 206, 206, 207, 207, 208, 208, 209, 210, 210,
- 211, 211, 211, 211, 212, 213, 213, 214, 215, 215,
- 216, 217, 217, 217, 219, 218, 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, 228, 228, 228, 228, 228, 228, 228, 229,
- 229, 230, 231, 231, 232, 232, 233, 233, 234, 234,
- 235, 235, 235, 235, 235, 235, 235, 235, 235, 235,
- 235, 235, 235, 235, 235, 235, 235, 235, 236, 236,
- 237, 237, 238, 238, 238, 238, 238, 238, 238, 238
+ 0, 159, 160, 160, 161, 161, 162, 162, 162, 162,
+ 162, 162, 162, 162, 162, 163, 163, 163, 164, 164,
+ 164, 164, 164, 164, 165, 165, 165, 165, 165, 165,
+ 165, 165, 165, 165, 165, 165, 166, 166, 166, 167,
+ 167, 167, 167, 167, 167, 167, 167, 167, 167, 168,
+ 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
+ 168, 168, 168, 168, 168, 169, 169, 169, 169, 170,
+ 170, 170, 170, 171, 171, 172, 172, 173, 173, 174,
+ 174, 174, 174, 174, 174, 174, 174, 175, 175, 175,
+ 175, 175, 175, 175, 175, 176, 176, 177, 177, 178,
+ 179, 179, 180, 180, 181, 181, 182, 182, 183, 183,
+ 184, 185, 185, 185, 185, 185, 185, 185, 185, 185,
+ 185, 185, 185, 185, 186, 186, 186, 186, 186, 186,
+ 186, 186, 186, 186, 187, 187, 188, 188, 188, 188,
+ 189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
+ 189, 189, 189, 189, 189, 189, 190, 190, 190, 190,
+ 190, 190, 190, 190, 190, 190, 190, 190, 191, 191,
+ 192, 192, 193, 194, 194, 194, 194, 194, 195, 195,
+ 195, 196, 195, 197, 195, 198, 195, 199, 195, 195,
+ 195, 195, 200, 201, 201, 202, 202, 202, 202, 203,
+ 204, 204, 204, 205, 205, 206, 206, 207, 208, 208,
+ 209, 209, 209, 209, 210, 211, 211, 212, 213, 213,
+ 214, 215, 215, 215, 217, 216, 218, 218, 219, 219,
+ 219, 219, 219, 219, 219, 219, 219, 219, 219, 220,
+ 220, 221, 221, 222, 223, 223, 224, 225, 225, 225,
+ 226, 226, 226, 226, 226, 226, 226, 226, 226, 227,
+ 227, 228, 229, 229, 230, 230, 231, 231, 232, 232,
+ 233, 233, 233, 233, 233, 233, 233, 233, 233, 233,
+ 233, 233, 233, 233, 233, 233, 234, 234, 235, 235,
+ 236, 236, 236, 236, 236, 236, 236, 236
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
@@ -1914,8 +1797,8 @@ static const unsigned char yyr2[] =
2, 2, 3, 9, 9, 8, 13, 1, 1, 6,
5, 2, 6, 7, 1, 3, 1, 0, 2, 1,
5, 5, 5, 6, 6, 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
+ 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
@@ -1932,148 +1815,146 @@ static const unsigned short int yydefact[] =
223, 87, 192, 175, 94, 2, 3, 107, 111, 112,
113, 114, 115, 116, 117, 118, 119, 120, 121, 122,
123, 124, 0, 0, 0, 0, 239, 0, 0, 106,
- 125, 110, 240, 126, 215, 216, 217, 291, 247, 0,
+ 125, 110, 240, 126, 215, 216, 217, 289, 247, 0,
0, 0, 0, 202, 190, 180, 178, 170, 171, 0,
0, 0, 0, 225, 127, 0, 0, 109, 132, 134,
- 0, 0, 139, 133, 290, 0, 269, 0, 0, 0,
+ 0, 0, 139, 133, 288, 0, 269, 0, 0, 0,
0, 87, 257, 258, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 0, 0, 0, 0, 0, 0, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
0, 0, 36, 37, 38, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 246, 87, 261, 0,
- 287, 197, 194, 193, 195, 196, 198, 201, 0, 185,
- 187, 183, 111, 112, 113, 114, 115, 116, 117, 118,
- 119, 120, 121, 0, 0, 0, 0, 181, 0, 0,
- 0, 131, 213, 138, 136, 0, 0, 275, 268, 251,
- 250, 0, 0, 68, 72, 67, 71, 66, 70, 65,
- 69, 73, 74, 0, 0, 39, 40, 41, 42, 43,
- 44, 45, 46, 47, 48, 0, 63, 64, 59, 60,
- 61, 62, 49, 50, 51, 52, 53, 54, 55, 56,
- 57, 58, 0, 97, 97, 296, 0, 0, 285, 0,
+ 0, 0, 0, 0, 246, 87, 261, 0, 285, 197,
+ 194, 193, 195, 196, 198, 201, 0, 185, 187, 183,
+ 111, 112, 113, 114, 115, 116, 117, 118, 119, 120,
+ 121, 0, 0, 0, 0, 181, 0, 0, 0, 131,
+ 213, 138, 136, 0, 0, 275, 268, 251, 250, 0,
+ 0, 68, 72, 67, 71, 66, 70, 65, 69, 73,
+ 74, 0, 0, 39, 40, 41, 42, 43, 44, 45,
+ 46, 47, 48, 0, 63, 64, 59, 60, 61, 62,
+ 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
+ 0, 97, 97, 294, 0, 0, 283, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 199, 102, 102, 102, 153,
- 154, 4, 5, 151, 152, 155, 150, 146, 147, 0,
+ 0, 199, 102, 102, 102, 153, 154, 4, 5, 151,
+ 152, 155, 150, 146, 147, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 149, 148, 102, 108, 108,
- 135, 212, 206, 209, 210, 0, 0, 128, 228, 229,
- 230, 235, 231, 232, 233, 234, 226, 0, 237, 242,
- 241, 243, 0, 252, 0, 0, 0, 0, 0, 292,
- 0, 294, 289, 0, 0, 0, 0, 0, 0, 0,
+ 0, 149, 148, 102, 108, 108, 135, 212, 206, 209,
+ 210, 0, 0, 128, 228, 229, 230, 235, 231, 232,
+ 233, 234, 226, 0, 237, 242, 241, 243, 0, 252,
+ 0, 0, 0, 0, 0, 290, 0, 292, 287, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 200, 0, 186, 188, 184, 0, 0, 0, 0, 0,
- 0, 0, 141, 169, 0, 0, 145, 0, 142, 0,
- 0, 0, 0, 0, 182, 129, 130, 205, 207, 0,
- 100, 137, 227, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 299, 0, 0, 0, 279, 282,
- 0, 0, 280, 281, 0, 0, 0, 277, 276, 0,
- 297, 0, 0, 0, 104, 102, 0, 0, 289, 0,
- 0, 0, 0, 0, 140, 143, 144, 0, 0, 0,
- 0, 0, 211, 208, 101, 95, 0, 236, 0, 0,
- 267, 0, 0, 97, 98, 97, 264, 288, 0, 0,
- 0, 0, 0, 270, 271, 272, 267, 0, 99, 105,
- 103, 0, 0, 0, 0, 0, 0, 0, 168, 0,
- 0, 0, 0, 0, 0, 214, 0, 0, 0, 266,
- 0, 273, 274, 0, 293, 295, 0, 0, 0, 278,
- 283, 284, 0, 298, 0, 0, 157, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 96, 238, 0, 0,
- 0, 265, 262, 0, 286, 0, 0, 0, 165, 0,
- 0, 159, 160, 161, 156, 164, 0, 255, 0, 0,
- 0, 263, 162, 163, 0, 0, 0, 253, 0, 254,
- 0, 0, 158, 166, 167, 0, 0, 0, 0, 0,
- 0, 260, 0, 0, 259, 256
+ 0, 0, 0, 0, 200, 0, 186, 188, 184, 0,
+ 0, 0, 0, 0, 0, 0, 141, 169, 0, 0,
+ 145, 0, 142, 0, 0, 0, 0, 0, 182, 129,
+ 130, 205, 207, 0, 100, 137, 227, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 297, 0,
+ 0, 0, 279, 280, 0, 0, 0, 0, 0, 277,
+ 276, 0, 295, 0, 0, 0, 104, 102, 0, 0,
+ 287, 0, 0, 0, 0, 0, 140, 143, 144, 0,
+ 0, 0, 0, 0, 211, 208, 101, 95, 0, 236,
+ 0, 0, 267, 0, 0, 97, 98, 97, 264, 286,
+ 0, 0, 0, 0, 0, 270, 271, 272, 267, 0,
+ 99, 105, 103, 0, 0, 0, 0, 0, 0, 0,
+ 168, 0, 0, 0, 0, 0, 0, 214, 0, 0,
+ 0, 266, 0, 273, 274, 0, 291, 293, 0, 0,
+ 0, 278, 281, 282, 0, 296, 0, 0, 157, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 96, 238,
+ 0, 0, 0, 265, 262, 0, 284, 0, 0, 0,
+ 165, 0, 0, 159, 160, 161, 156, 164, 0, 255,
+ 0, 0, 0, 263, 162, 163, 0, 0, 0, 253,
+ 0, 254, 0, 0, 158, 166, 167, 0, 0, 0,
+ 0, 0, 0, 260, 0, 0, 259, 256
};
/* YYDEFGOTO[NTERM-NUM]. */
static const short int yydefgoto[] =
{
- -1, 86, 303, 320, 321, 322, 323, 324, 255, 272,
- 213, 214, 243, 215, 25, 15, 37, 505, 359, 444,
- 465, 382, 445, 87, 88, 216, 90, 91, 120, 225,
- 393, 348, 394, 109, 1, 2, 3, 327, 298, 296,
- 297, 63, 194, 50, 104, 198, 92, 408, 333, 334,
- 335, 38, 96, 16, 44, 17, 61, 18, 28, 413,
- 349, 93, 351, 476, 19, 40, 41, 186, 559, 98,
- 278, 509, 510, 187, 188, 424, 189, 190
+ -1, 86, 299, 316, 317, 318, 319, 320, 253, 270,
+ 211, 212, 241, 213, 25, 15, 37, 497, 355, 436,
+ 457, 376, 437, 87, 88, 214, 90, 91, 120, 223,
+ 387, 344, 388, 109,