From fcab7d3d0c91c43f05bc7b141f3c007e588cb77f Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 15 Oct 2008 12:05:02 +0000 Subject: [PATCH] regenerate llvm-svn: 57577 --- lib/AsmParser/llvmAsmParser.cpp.cvs | 699 ++++++++++++++-------------- lib/AsmParser/llvmAsmParser.h.cvs | 2 +- lib/AsmParser/llvmAsmParser.y.cvs | 1 + 3 files changed, 352 insertions(+), 350 deletions(-) diff --git a/lib/AsmParser/llvmAsmParser.cpp.cvs b/lib/AsmParser/llvmAsmParser.cpp.cvs index eb6f6d7885a..d7d5cda6b35 100644 --- a/lib/AsmParser/llvmAsmParser.cpp.cvs +++ b/lib/AsmParser/llvmAsmParser.cpp.cvs @@ -524,6 +524,7 @@ static struct PerModuleInfo { GlobalValue *Ret = 0; if (I != GlobalRefs.end()) { Ret = I->second; + I->first.second.destroy(); GlobalRefs.erase(I); } return Ret; @@ -1381,7 +1382,7 @@ Module *llvm::RunVMAsmParser(llvm::MemoryBuffer *MB) { #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE -#line 980 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 981 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { llvm::Module *ModuleVal; llvm::Function *FunctionVal; @@ -1430,7 +1431,7 @@ typedef union YYSTYPE llvm::FCmpInst::Predicate FPredicate; } /* Line 187 of yacc.c. */ -#line 1434 "llvmAsmParser.tab.c" +#line 1435 "llvmAsmParser.tab.c" YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 @@ -1443,7 +1444,7 @@ typedef union YYSTYPE /* Line 216 of yacc.c. */ -#line 1447 "llvmAsmParser.tab.c" +#line 1448 "llvmAsmParser.tab.c" #ifdef short # undef short @@ -1887,41 +1888,41 @@ static const yytype_int16 yyrhs[] = /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, 1146, - 1146, 1147, 1147, 1147, 1147, 1147, 1147, 1148, 1148, 1148, - 1148, 1148, 1148, 1149, 1149, 1149, 1149, 1149, 1149, 1152, - 1152, 1153, 1153, 1154, 1154, 1155, 1155, 1156, 1156, 1160, - 1160, 1161, 1161, 1162, 1162, 1163, 1163, 1164, 1164, 1165, - 1165, 1166, 1166, 1167, 1168, 1171, 1171, 1171, 1172, 1172, - 1174, 1175, 1179, 1183, 1188, 1194, 1194, 1196, 1197, 1202, - 1208, 1209, 1210, 1211, 1212, 1213, 1217, 1218, 1219, 1223, - 1224, 1225, 1226, 1230, 1231, 1232, 1236, 1237, 1238, 1239, - 1240, 1244, 1245, 1246, 1249, 1250, 1251, 1252, 1253, 1254, - 1255, 1262, 1263, 1264, 1265, 1266, 1267, 1268, 1269, 1270, - 1271, 1275, 1276, 1281, 1282, 1283, 1286, 1287, 1293, 1294, - 1295, 1296, 1297, 1298, 1299, 1300, 1301, 1302, 1305, 1306, - 1312, 1313, 1320, 1321, 1327, 1328, 1337, 1345, 1346, 1351, - 1352, 1353, 1358, 1371, 1371, 1371, 1371, 1371, 1371, 1371, - 1374, 1378, 1382, 1389, 1394, 1402, 1437, 1468, 1473, 1483, - 1493, 1497, 1507, 1514, 1523, 1530, 1535, 1540, 1547, 1548, - 1555, 1562, 1570, 1576, 1588, 1616, 1632, 1659, 1687, 1713, - 1733, 1759, 1779, 1791, 1798, 1864, 1874, 1884, 1895, 1908, - 1919, 1933, 1940, 1947, 1965, 1977, 1998, 2006, 2012, 2023, - 2028, 2033, 2038, 2043, 2049, 2055, 2061, 2069, 2080, 2084, - 2092, 2092, 2095, 2095, 2098, 2110, 2131, 2136, 2144, 2145, - 2149, 2149, 2153, 2153, 2156, 2159, 2183, 2195, 2194, 2206, - 2205, 2215, 2214, 2225, 2265, 2268, 2274, 2284, 2288, 2293, - 2295, 2300, 2305, 2314, 2324, 2335, 2339, 2348, 2357, 2362, - 2511, 2511, 2513, 2522, 2522, 2524, 2529, 2541, 2545, 2550, - 2554, 2558, 2563, 2568, 2572, 2576, 2580, 2584, 2588, 2592, - 2614, 2636, 2642, 2655, 2667, 2672, 2684, 2690, 2694, 2704, - 2708, 2712, 2717, 2724, 2724, 2730, 2739, 2744, 2749, 2753, - 2762, 2771, 2784, 2793, 2797, 2805, 2825, 2829, 2834, 2845, - 2864, 2873, 2977, 2981, 2988, 2999, 3012, 3021, 3034, 3045, - 3055, 3066, 3074, 3084, 3091, 3094, 3095, 3103, 3109, 3118, - 3122, 3127, 3143, 3160, 3172, 3184, 3198, 3212, 3224, 3245, - 3252, 3258, 3264, 3270, 3285, 3395, 3400, 3404, 3411, 3418, - 3428, 3435, 3445, 3453, 3467, 3484, 3498, 3513, 3528 + 0, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, 1147, + 1147, 1148, 1148, 1148, 1148, 1148, 1148, 1149, 1149, 1149, + 1149, 1149, 1149, 1150, 1150, 1150, 1150, 1150, 1150, 1153, + 1153, 1154, 1154, 1155, 1155, 1156, 1156, 1157, 1157, 1161, + 1161, 1162, 1162, 1163, 1163, 1164, 1164, 1165, 1165, 1166, + 1166, 1167, 1167, 1168, 1169, 1172, 1172, 1172, 1173, 1173, + 1175, 1176, 1180, 1184, 1189, 1195, 1195, 1197, 1198, 1203, + 1209, 1210, 1211, 1212, 1213, 1214, 1218, 1219, 1220, 1224, + 1225, 1226, 1227, 1231, 1232, 1233, 1237, 1238, 1239, 1240, + 1241, 1245, 1246, 1247, 1250, 1251, 1252, 1253, 1254, 1255, + 1256, 1263, 1264, 1265, 1266, 1267, 1268, 1269, 1270, 1271, + 1272, 1276, 1277, 1282, 1283, 1284, 1287, 1288, 1294, 1295, + 1296, 1297, 1298, 1299, 1300, 1301, 1302, 1303, 1306, 1307, + 1313, 1314, 1321, 1322, 1328, 1329, 1338, 1346, 1347, 1352, + 1353, 1354, 1359, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + 1375, 1379, 1383, 1390, 1395, 1403, 1438, 1469, 1474, 1484, + 1494, 1498, 1508, 1515, 1524, 1531, 1536, 1541, 1548, 1549, + 1556, 1563, 1571, 1577, 1589, 1617, 1633, 1660, 1688, 1714, + 1734, 1760, 1780, 1792, 1799, 1865, 1875, 1885, 1896, 1909, + 1920, 1934, 1941, 1948, 1966, 1978, 1999, 2007, 2013, 2024, + 2029, 2034, 2039, 2044, 2050, 2056, 2062, 2070, 2081, 2085, + 2093, 2093, 2096, 2096, 2099, 2111, 2132, 2137, 2145, 2146, + 2150, 2150, 2154, 2154, 2157, 2160, 2184, 2196, 2195, 2207, + 2206, 2216, 2215, 2226, 2266, 2269, 2275, 2285, 2289, 2294, + 2296, 2301, 2306, 2315, 2325, 2336, 2340, 2349, 2358, 2363, + 2512, 2512, 2514, 2523, 2523, 2525, 2530, 2542, 2546, 2551, + 2555, 2559, 2564, 2569, 2573, 2577, 2581, 2585, 2589, 2593, + 2615, 2637, 2643, 2656, 2668, 2673, 2685, 2691, 2695, 2705, + 2709, 2713, 2718, 2725, 2725, 2731, 2740, 2745, 2750, 2754, + 2763, 2772, 2785, 2794, 2798, 2806, 2826, 2830, 2835, 2846, + 2865, 2874, 2978, 2982, 2989, 3000, 3013, 3022, 3035, 3046, + 3056, 3067, 3075, 3085, 3092, 3095, 3096, 3104, 3110, 3119, + 3123, 3128, 3144, 3161, 3173, 3185, 3199, 3213, 3225, 3246, + 3253, 3259, 3265, 3271, 3286, 3396, 3401, 3405, 3412, 3419, + 3429, 3436, 3446, 3454, 3468, 3485, 3499, 3514, 3529 }; #endif @@ -3647,152 +3648,152 @@ yyreduce: switch (yyn) { case 29: -#line 1152 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1153 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_EQ; ;} break; case 30: -#line 1152 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1153 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_NE; ;} break; case 31: -#line 1153 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1154 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_SLT; ;} break; case 32: -#line 1153 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1154 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_SGT; ;} break; case 33: -#line 1154 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1155 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_SLE; ;} break; case 34: -#line 1154 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1155 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_SGE; ;} break; case 35: -#line 1155 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1156 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_ULT; ;} break; case 36: -#line 1155 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1156 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_UGT; ;} break; case 37: -#line 1156 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1157 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_ULE; ;} break; case 38: -#line 1156 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1157 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.IPredicate) = ICmpInst::ICMP_UGE; ;} break; case 39: -#line 1160 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1161 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_OEQ; ;} break; case 40: -#line 1160 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1161 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_ONE; ;} break; case 41: -#line 1161 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1162 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_OLT; ;} break; case 42: -#line 1161 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1162 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_OGT; ;} break; case 43: -#line 1162 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1163 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_OLE; ;} break; case 44: -#line 1162 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1163 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_OGE; ;} break; case 45: -#line 1163 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1164 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_ORD; ;} break; case 46: -#line 1163 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1164 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_UNO; ;} break; case 47: -#line 1164 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1165 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_UEQ; ;} break; case 48: -#line 1164 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1165 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_UNE; ;} break; case 49: -#line 1165 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1166 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_ULT; ;} break; case 50: -#line 1165 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1166 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_UGT; ;} break; case 51: -#line 1166 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1167 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_ULE; ;} break; case 52: -#line 1166 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1167 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_UGE; ;} break; case 53: -#line 1167 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1168 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_TRUE; ;} break; case 54: -#line 1168 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1169 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FPredicate) = FCmpInst::FCMP_FALSE; ;} break; case 59: -#line 1172 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1173 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = 0; ;} break; case 60: -#line 1174 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1175 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal)=(yyvsp[(3) - (4)].UInt64Val); ;} break; case 61: -#line 1175 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1176 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal)=0; ;} break; case 62: -#line 1179 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1180 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = (yyvsp[(1) - (2)].StrVal); CHECK_FOR_ERROR @@ -3800,7 +3801,7 @@ yyreduce: break; case 63: -#line 1183 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1184 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = 0; CHECK_FOR_ERROR @@ -3808,7 +3809,7 @@ yyreduce: break; case 64: -#line 1188 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1189 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = (yyvsp[(1) - (2)].UIntVal); CHECK_FOR_ERROR @@ -3816,7 +3817,7 @@ yyreduce: break; case 68: -#line 1197 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1198 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = 0; CHECK_FOR_ERROR @@ -3824,7 +3825,7 @@ yyreduce: break; case 69: -#line 1202 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1203 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = (yyvsp[(1) - (2)].StrVal); CHECK_FOR_ERROR @@ -3832,157 +3833,157 @@ yyreduce: break; case 70: -#line 1208 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1209 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::InternalLinkage; ;} break; case 71: -#line 1209 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1210 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::WeakLinkage; ;} break; case 72: -#line 1210 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1211 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::LinkOnceLinkage; ;} break; case 73: -#line 1211 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1212 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::AppendingLinkage; ;} break; case 74: -#line 1212 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1213 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::DLLExportLinkage; ;} break; case 75: -#line 1213 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1214 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::CommonLinkage; ;} break; case 76: -#line 1217 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1218 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::DLLImportLinkage; ;} break; case 77: -#line 1218 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1219 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::ExternalWeakLinkage; ;} break; case 78: -#line 1219 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1220 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;} break; case 79: -#line 1223 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" - { (yyval.Visibility) = GlobalValue::DefaultVisibility; ;} - break; - - case 80: #line 1224 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Visibility) = GlobalValue::DefaultVisibility; ;} break; - case 81: + case 80: #line 1225 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" + { (yyval.Visibility) = GlobalValue::DefaultVisibility; ;} + break; + + case 81: +#line 1226 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Visibility) = GlobalValue::HiddenVisibility; ;} break; case 82: -#line 1226 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1227 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Visibility) = GlobalValue::ProtectedVisibility; ;} break; case 83: -#line 1230 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1231 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;} break; case 84: -#line 1231 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1232 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::DLLImportLinkage; ;} break; case 85: -#line 1232 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1233 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::ExternalWeakLinkage; ;} break; case 86: -#line 1236 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1237 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;} break; case 87: -#line 1237 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1238 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::InternalLinkage; ;} break; case 88: -#line 1238 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1239 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::LinkOnceLinkage; ;} break; case 89: -#line 1239 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1240 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::WeakLinkage; ;} break; case 90: -#line 1240 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1241 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::DLLExportLinkage; ;} break; case 91: -#line 1244 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1245 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;} break; case 92: -#line 1245 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1246 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::WeakLinkage; ;} break; case 93: -#line 1246 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1247 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Linkage) = GlobalValue::InternalLinkage; ;} break; case 94: -#line 1249 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" - { (yyval.UIntVal) = CallingConv::C; ;} - break; - - case 95: #line 1250 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = CallingConv::C; ;} break; - case 96: + case 95: #line 1251 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" + { (yyval.UIntVal) = CallingConv::C; ;} + break; + + case 96: +#line 1252 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = CallingConv::Fast; ;} break; case 97: -#line 1252 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1253 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = CallingConv::Cold; ;} break; case 98: -#line 1253 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1254 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = CallingConv::X86_StdCall; ;} break; case 99: -#line 1254 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1255 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = CallingConv::X86_FastCall; ;} break; case 100: -#line 1255 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1256 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((unsigned)(yyvsp[(2) - (2)].UInt64Val) != (yyvsp[(2) - (2)].UInt64Val)) GEN_ERROR("Calling conv too large"); @@ -3992,176 +3993,176 @@ yyreduce: break; case 101: -#line 1262 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" - { (yyval.Attributes) = Attribute::ZExt; ;} - break; - - case 102: #line 1263 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::ZExt; ;} break; - case 103: + case 102: #line 1264 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" - { (yyval.Attributes) = Attribute::SExt; ;} + { (yyval.Attributes) = Attribute::ZExt; ;} break; - case 104: + case 103: #line 1265 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::SExt; ;} break; - case 105: + case 104: #line 1266 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" + { (yyval.Attributes) = Attribute::SExt; ;} + break; + + case 105: +#line 1267 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::InReg; ;} break; case 106: -#line 1267 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1268 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::StructRet; ;} break; case 107: -#line 1268 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1269 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::NoAlias; ;} break; case 108: -#line 1269 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1270 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::ByVal; ;} break; case 109: -#line 1270 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1271 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::Nest; ;} break; case 110: -#line 1271 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1272 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::constructAlignmentFromInt((yyvsp[(2) - (2)].UInt64Val)); ;} break; case 111: -#line 1275 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1276 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::None; ;} break; case 112: -#line 1276 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1277 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = (yyvsp[(1) - (2)].Attributes) | (yyvsp[(2) - (2)].Attributes); ;} break; case 113: -#line 1281 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1282 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::InReg; ;} break; case 114: -#line 1282 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1283 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::ZExt; ;} break; case 115: -#line 1283 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1284 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::SExt; ;} break; case 116: -#line 1286 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1287 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::None; ;} break; case 117: -#line 1287 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1288 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = (yyvsp[(1) - (2)].Attributes) | (yyvsp[(2) - (2)].Attributes); ;} break; case 118: -#line 1293 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1294 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::NoReturn; ;} break; case 119: -#line 1294 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1295 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::NoUnwind; ;} break; case 120: -#line 1295 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1296 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::InReg; ;} break; case 121: -#line 1296 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1297 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::ZExt; ;} break; case 122: -#line 1297 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1298 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::SExt; ;} break; case 123: -#line 1298 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1299 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::ReadNone; ;} break; case 124: -#line 1299 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1300 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::ReadOnly; ;} break; case 125: -#line 1300 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1301 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::NoInline; ;} break; case 126: -#line 1301 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1302 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::AlwaysInline; ;} break; case 127: -#line 1302 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1303 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::OptimizeForSize; ;} break; case 128: -#line 1305 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1306 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = Attribute::None; ;} break; case 129: -#line 1306 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1307 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.Attributes) = (yyvsp[(1) - (2)].Attributes) | (yyvsp[(2) - (2)].Attributes); ;} break; case 130: -#line 1312 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1313 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = 0; ;} break; case 131: -#line 1313 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1314 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = (yyvsp[(2) - (2)].StrVal); ;} break; case 132: -#line 1320 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1321 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = 0; ;} break; case 133: -#line 1321 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1322 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = (yyvsp[(2) - (2)].UInt64Val); if ((yyval.UIntVal) != 0 && !isPowerOf2_32((yyval.UIntVal))) @@ -4171,12 +4172,12 @@ yyreduce: break; case 134: -#line 1327 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1328 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = 0; ;} break; case 135: -#line 1328 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1329 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.UIntVal) = (yyvsp[(3) - (3)].UInt64Val); if ((yyval.UIntVal) != 0 && !isPowerOf2_32((yyval.UIntVal))) @@ -4186,7 +4187,7 @@ yyreduce: break; case 136: -#line 1337 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1338 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { for (unsigned i = 0, e = (yyvsp[(2) - (2)].StrVal)->length(); i != e; ++i) if ((*(yyvsp[(2) - (2)].StrVal))[i] == '"' || (*(yyvsp[(2) - (2)].StrVal))[i] == '\\') @@ -4197,27 +4198,27 @@ yyreduce: break; case 137: -#line 1345 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1346 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = 0; ;} break; case 138: -#line 1346 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1347 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.StrVal) = (yyvsp[(1) - (1)].StrVal); ;} break; case 139: -#line 1351 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" - {;} - break; - - case 140: #line 1352 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" {;} break; - case 141: + case 140: #line 1353 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" + {;} + break; + + case 141: +#line 1354 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurGV->setSection(*(yyvsp[(1) - (1)].StrVal)); delete (yyvsp[(1) - (1)].StrVal); @@ -4226,7 +4227,7 @@ yyreduce: break; case 142: -#line 1358 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1359 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(2) - (2)].UInt64Val) != 0 && !isPowerOf2_32((yyvsp[(2) - (2)].UInt64Val))) GEN_ERROR("Alignment must be a power of two"); @@ -4236,7 +4237,7 @@ yyreduce: break; case 150: -#line 1374 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1375 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TypeVal) = new PATypeHolder(OpaqueType::get()); CHECK_FOR_ERROR @@ -4244,7 +4245,7 @@ yyreduce: break; case 151: -#line 1378 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1379 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TypeVal) = new PATypeHolder((yyvsp[(1) - (1)].PrimType)); CHECK_FOR_ERROR @@ -4252,7 +4253,7 @@ yyreduce: break; case 152: -#line 1382 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1383 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Pointer type? if (*(yyvsp[(1) - (3)].TypeVal) == Type::LabelTy) GEN_ERROR("Cannot form a pointer to a basic block"); @@ -4263,7 +4264,7 @@ yyreduce: break; case 153: -#line 1389 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1390 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Named types are also simple types... const Type* tmp = getTypeVal((yyvsp[(1) - (1)].ValIDVal)); CHECK_FOR_ERROR @@ -4272,7 +4273,7 @@ yyreduce: break; case 154: -#line 1394 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1395 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Type UpReference if ((yyvsp[(2) - (2)].UInt64Val) > (uint64_t)~0U) GEN_ERROR("Value out of range"); OpaqueType *OT = OpaqueType::get(); // Use temporary placeholder @@ -4284,7 +4285,7 @@ yyreduce: break; case 155: -#line 1402 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1403 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Allow but ignore attributes on function types; this permits auto-upgrade. // FIXME: remove in LLVM 3.0. @@ -4323,7 +4324,7 @@ yyreduce: break; case 156: -#line 1437 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1438 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Allow but ignore attributes on function types; this permits auto-upgrade. // FIXME: remove in LLVM 3.0. @@ -4357,7 +4358,7 @@ yyreduce: break; case 157: -#line 1468 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1469 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Sized array type? (yyval.TypeVal) = new PATypeHolder(HandleUpRefs(ArrayType::get(*(yyvsp[(4) - (5)].TypeVal), (yyvsp[(2) - (5)].UInt64Val)))); delete (yyvsp[(4) - (5)].TypeVal); @@ -4366,7 +4367,7 @@ yyreduce: break; case 158: -#line 1473 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1474 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Vector type? const llvm::Type* ElemTy = (yyvsp[(4) - (5)].TypeVal)->get(); if ((unsigned)(yyvsp[(2) - (5)].UInt64Val) != (yyvsp[(2) - (5)].UInt64Val)) @@ -4380,7 +4381,7 @@ yyreduce: break; case 159: -#line 1483 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1484 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Structure type? std::vector Elements; for (std::list::iterator I = (yyvsp[(2) - (3)].TypeList)->begin(), @@ -4394,7 +4395,7 @@ yyreduce: break; case 160: -#line 1493 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1494 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Empty structure type? (yyval.TypeVal) = new PATypeHolder(StructType::get(std::vector())); CHECK_FOR_ERROR @@ -4402,7 +4403,7 @@ yyreduce: break; case 161: -#line 1497 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1498 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { std::vector Elements; for (std::list::iterator I = (yyvsp[(3) - (5)].TypeList)->begin(), @@ -4416,7 +4417,7 @@ yyreduce: break; case 162: -#line 1507 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1508 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Empty structure type? (yyval.TypeVal) = new PATypeHolder(StructType::get(std::vector(), true)); CHECK_FOR_ERROR @@ -4424,7 +4425,7 @@ yyreduce: break; case 163: -#line 1514 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1515 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Allow but ignore attributes on function types; this permits auto-upgrade. // FIXME: remove in LLVM 3.0. @@ -4434,7 +4435,7 @@ yyreduce: break; case 164: -#line 1523 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1524 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (1)].TypeVal))->getDescription()); @@ -4445,14 +4446,14 @@ yyreduce: break; case 165: -#line 1530 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1531 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TypeVal) = new PATypeHolder(Type::VoidTy); ;} break; case 166: -#line 1535 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1536 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TypeWithAttrsList) = new TypeWithAttrsList(); (yyval.TypeWithAttrsList)->push_back((yyvsp[(1) - (1)].TypeWithAttrs)); @@ -4461,7 +4462,7 @@ yyreduce: break; case 167: -#line 1540 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1541 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { ((yyval.TypeWithAttrsList)=(yyvsp[(1) - (3)].TypeWithAttrsList))->push_back((yyvsp[(3) - (3)].TypeWithAttrs)); CHECK_FOR_ERROR @@ -4469,7 +4470,7 @@ yyreduce: break; case 169: -#line 1548 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1549 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TypeWithAttrsList)=(yyvsp[(1) - (3)].TypeWithAttrsList); TypeWithAttrs TWA; TWA.Attrs = Attribute::None; @@ -4480,7 +4481,7 @@ yyreduce: break; case 170: -#line 1555 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1556 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TypeWithAttrsList) = new TypeWithAttrsList; TypeWithAttrs TWA; TWA.Attrs = Attribute::None; @@ -4491,7 +4492,7 @@ yyreduce: break; case 171: -#line 1562 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1563 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TypeWithAttrsList) = new TypeWithAttrsList(); CHECK_FOR_ERROR @@ -4499,7 +4500,7 @@ yyreduce: break; case 172: -#line 1570 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1571 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TypeList) = new std::list(); (yyval.TypeList)->push_back(*(yyvsp[(1) - (1)].TypeVal)); @@ -4509,7 +4510,7 @@ yyreduce: break; case 173: -#line 1576 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1577 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { ((yyval.TypeList)=(yyvsp[(1) - (3)].TypeList))->push_back(*(yyvsp[(3) - (3)].TypeVal)); delete (yyvsp[(3) - (3)].TypeVal); @@ -4518,7 +4519,7 @@ yyreduce: break; case 174: -#line 1588 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1589 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Nonempty unsized arr if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (4)].TypeVal))->getDescription()); @@ -4550,7 +4551,7 @@ yyreduce: break; case 175: -#line 1616 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1617 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (3)].TypeVal))->getDescription()); @@ -4570,7 +4571,7 @@ yyreduce: break; case 176: -#line 1632 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1633 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (3)].TypeVal))->getDescription()); @@ -4601,7 +4602,7 @@ yyreduce: break; case 177: -#line 1659 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1660 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Nonempty unsized arr if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (4)].TypeVal))->getDescription()); @@ -4633,7 +4634,7 @@ yyreduce: break; case 178: -#line 1687 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1688 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { const StructType *STy = dyn_cast((yyvsp[(1) - (4)].TypeVal)->get()); if (STy == 0) @@ -4663,7 +4664,7 @@ yyreduce: break; case 179: -#line 1713 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1714 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (3)].TypeVal))->getDescription()); @@ -4687,7 +4688,7 @@ yyreduce: break; case 180: -#line 1733 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1734 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { const StructType *STy = dyn_cast((yyvsp[(1) - (6)].TypeVal)->get()); if (STy == 0) @@ -4717,7 +4718,7 @@ yyreduce: break; case 181: -#line 1759 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1760 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (5)].TypeVal))->getDescription()); @@ -4741,7 +4742,7 @@ yyreduce: break; case 182: -#line 1779 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1780 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription()); @@ -4757,7 +4758,7 @@ yyreduce: break; case 183: -#line 1791 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1792 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription()); @@ -4768,7 +4769,7 @@ yyreduce: break; case 184: -#line 1798 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1799 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription()); @@ -4838,7 +4839,7 @@ yyreduce: break; case 185: -#line 1864 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1865 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription()); @@ -4852,7 +4853,7 @@ yyreduce: break; case 186: -#line 1874 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1875 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription()); @@ -4866,7 +4867,7 @@ yyreduce: break; case 187: -#line 1884 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1885 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // integral constants if (IntegerType *IT = dyn_cast((yyvsp[(1) - (2)].TypeVal)->get())) { if (!ConstantInt::isValueValidForType(IT, (yyvsp[(2) - (2)].SInt64Val))) @@ -4881,7 +4882,7 @@ yyreduce: break; case 188: -#line 1895 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1896 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // arbitrary precision integer constants if (IntegerType *IT = dyn_cast((yyvsp[(1) - (2)].TypeVal)->get())) { if ((yyvsp[(2) - (2)].APIntVal)->getBitWidth() > IT->getBitWidth()) @@ -4898,7 +4899,7 @@ yyreduce: break; case 189: -#line 1908 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1909 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // integral constants if (IntegerType *IT = dyn_cast((yyvsp[(1) - (2)].TypeVal)->get())) { if (!ConstantInt::isValueValidForType(IT, (yyvsp[(2) - (2)].UInt64Val))) @@ -4913,7 +4914,7 @@ yyreduce: break; case 190: -#line 1919 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1920 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // arbitrary precision integer constants if (IntegerType *IT = dyn_cast((yyvsp[(1) - (2)].TypeVal)->get())) { if ((yyvsp[(2) - (2)].APIntVal)->getBitWidth() > IT->getBitWidth()) @@ -4931,7 +4932,7 @@ yyreduce: break; case 191: -#line 1933 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1934 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Boolean constants if ((yyvsp[(1) - (2)].TypeVal)->get() != Type::Int1Ty) GEN_ERROR("Constant true must have type i1"); @@ -4942,7 +4943,7 @@ yyreduce: break; case 192: -#line 1940 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1941 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Boolean constants if ((yyvsp[(1) - (2)].TypeVal)->get() != Type::Int1Ty) GEN_ERROR("Constant false must have type i1"); @@ -4953,7 +4954,7 @@ yyreduce: break; case 193: -#line 1947 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1948 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Floating point constants if (!ConstantFP::isValueValidForType((yyvsp[(1) - (2)].TypeVal)->get(), *(yyvsp[(2) - (2)].FPVal))) GEN_ERROR("Floating point constant invalid for type"); @@ -4973,7 +4974,7 @@ yyreduce: break; case 194: -#line 1965 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1966 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(5) - (6)].TypeVal))->getDescription()); @@ -4989,7 +4990,7 @@ yyreduce: break; case 195: -#line 1977 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1978 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!isa((yyvsp[(3) - (5)].ConstVal)->getType())) GEN_ERROR("GetElementPtr requires a pointer operand"); @@ -5014,7 +5015,7 @@ yyreduce: break; case 196: -#line 1998 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 1999 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(3) - (8)].ConstVal)->getType() != Type::Int1Ty) GEN_ERROR("Select condition must be of boolean type"); @@ -5026,7 +5027,7 @@ yyreduce: break; case 197: -#line 2006 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2007 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(3) - (6)].ConstVal)->getType() != (yyvsp[(5) - (6)].ConstVal)->getType()) GEN_ERROR("Binary operator types must match"); @@ -5036,7 +5037,7 @@ yyreduce: break; case 198: -#line 2012 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2013 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(3) - (6)].ConstVal)->getType() != (yyvsp[(5) - (6)].ConstVal)->getType()) GEN_ERROR("Logical operator types must match"); @@ -5051,7 +5052,7 @@ yyreduce: break; case 199: -#line 2023 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2024 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(4) - (7)].ConstVal)->getType() != (yyvsp[(6) - (7)].ConstVal)->getType()) GEN_ERROR("icmp operand types must match"); @@ -5060,7 +5061,7 @@ yyreduce: break; case 200: -#line 2028 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2029 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(4) - (7)].ConstVal)->getType() != (yyvsp[(6) - (7)].ConstVal)->getType()) GEN_ERROR("fcmp operand types must match"); @@ -5069,7 +5070,7 @@ yyreduce: break; case 201: -#line 2033 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2034 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(4) - (7)].ConstVal)->getType() != (yyvsp[(6) - (7)].ConstVal)->getType()) GEN_ERROR("vicmp operand types must match"); @@ -5078,7 +5079,7 @@ yyreduce: break; case 202: -#line 2038 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2039 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(4) - (7)].ConstVal)->getType() != (yyvsp[(6) - (7)].ConstVal)->getType()) GEN_ERROR("vfcmp operand types must match"); @@ -5087,7 +5088,7 @@ yyreduce: break; case 203: -#line 2043 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2044 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!ExtractElementInst::isValidOperands((yyvsp[(3) - (6)].ConstVal), (yyvsp[(5) - (6)].ConstVal))) GEN_ERROR("Invalid extractelement operands"); @@ -5097,7 +5098,7 @@ yyreduce: break; case 204: -#line 2049 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2050 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!InsertElementInst::isValidOperands((yyvsp[(3) - (8)].ConstVal), (yyvsp[(5) - (8)].ConstVal), (yyvsp[(7) - (8)].ConstVal))) GEN_ERROR("Invalid insertelement operands"); @@ -5107,7 +5108,7 @@ yyreduce: break; case 205: -#line 2055 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2056 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!ShuffleVectorInst::isValidOperands((yyvsp[(3) - (8)].ConstVal), (yyvsp[(5) - (8)].ConstVal), (yyvsp[(7) - (8)].ConstVal))) GEN_ERROR("Invalid shufflevector operands"); @@ -5117,7 +5118,7 @@ yyreduce: break; case 206: -#line 2061 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2062 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!isa((yyvsp[(3) - (5)].ConstVal)->getType()) && !isa((yyvsp[(3) - (5)].ConstVal)->getType())) GEN_ERROR("ExtractValue requires an aggregate operand"); @@ -5129,7 +5130,7 @@ yyreduce: break; case 207: -#line 2069 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2070 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!isa((yyvsp[(3) - (7)].ConstVal)->getType()) && !isa((yyvsp[(3) - (7)].ConstVal)->getType())) GEN_ERROR("InsertValue requires an aggregate operand"); @@ -5141,7 +5142,7 @@ yyreduce: break; case 208: -#line 2080 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2081 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { ((yyval.ConstVector) = (yyvsp[(1) - (3)].ConstVector))->push_back((yyvsp[(3) - (3)].ConstVal)); CHECK_FOR_ERROR @@ -5149,7 +5150,7 @@ yyreduce: break; case 209: -#line 2084 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2085 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ConstVector) = new std::vector(); (yyval.ConstVector)->push_back((yyvsp[(1) - (1)].ConstVal)); @@ -5158,27 +5159,27 @@ yyreduce: break; case 210: -#line 2092 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2093 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = false; ;} break; case 211: -#line 2092 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2093 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = true; ;} break; case 212: -#line 2095 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2096 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = true; ;} break; case 213: -#line 2095 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2096 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = false; ;} break; case 214: -#line 2098 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2099 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { const Type* VTy = (yyvsp[(1) - (2)].TypeVal)->get(); Value *V = getVal(VTy, (yyvsp[(2) - (2)].ValIDVal)); @@ -5194,7 +5195,7 @@ yyreduce: break; case 215: -#line 2110 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2111 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { Constant *Val = (yyvsp[(3) - (6)].ConstVal); const Type *DestTy = (yyvsp[(5) - (6)].TypeVal)->get(); @@ -5210,7 +5211,7 @@ yyreduce: break; case 216: -#line 2131 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2132 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ModuleVal) = ParserResult = CurModule.CurrentModule; CurModule.ModuleDone(); @@ -5219,7 +5220,7 @@ yyreduce: break; case 217: -#line 2136 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2137 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ModuleVal) = ParserResult = CurModule.CurrentModule; CurModule.ModuleDone(); @@ -5228,12 +5229,12 @@ yyreduce: break; case 220: -#line 2149 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2150 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurFun.isDeclare = false; ;} break; case 221: -#line 2149 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2150 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurFun.FunctionDone(); CHECK_FOR_ERROR @@ -5241,26 +5242,26 @@ yyreduce: break; case 222: -#line 2153 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2154 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurFun.isDeclare = true; ;} break; case 223: -#line 2153 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2154 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CHECK_FOR_ERROR ;} break; case 224: -#line 2156 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2157 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CHECK_FOR_ERROR ;} break; case 225: -#line 2159 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2160 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (3)].TypeVal))->getDescription()); @@ -5288,7 +5289,7 @@ yyreduce: break; case 226: -#line 2183 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2184 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { ResolveTypeTo((yyvsp[(1) - (3)].StrVal), (yyvsp[(3) - (3)].PrimType)); @@ -5303,7 +5304,7 @@ yyreduce: break; case 227: -#line 2195 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2196 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { /* "Externally Visible" Linkage */ if ((yyvsp[(5) - (6)].ConstVal) == 0) @@ -5315,14 +5316,14 @@ yyreduce: break; case 228: -#line 2202 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2203 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurGV = 0; ;} break; case 229: -#line 2206 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2207 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if ((yyvsp[(6) - (7)].ConstVal) == 0) GEN_ERROR("Global value initializer is not a constant"); @@ -5332,14 +5333,14 @@ yyreduce: break; case 230: -#line 2211 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2212 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurGV = 0; ;} break; case 231: -#line 2215 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2216 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(6) - (7)].TypeVal))->getDescription()); @@ -5350,7 +5351,7 @@ yyreduce: break; case 232: -#line 2221 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2222 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurGV = 0; CHECK_FOR_ERROR @@ -5358,7 +5359,7 @@ yyreduce: break; case 233: -#line 2225 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2226 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { std::string Name; if ((yyvsp[(1) - (5)].StrVal)) { @@ -5402,21 +5403,21 @@ yyreduce: break; case 234: -#line 2265 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2266 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CHECK_FOR_ERROR ;} break; case 235: -#line 2268 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2269 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CHECK_FOR_ERROR ;} break; case 236: -#line 2274 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2275 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { const std::string &AsmSoFar = CurModule.CurrentModule->getModuleInlineAsm(); if (AsmSoFar.empty()) @@ -5429,7 +5430,7 @@ yyreduce: break; case 237: -#line 2284 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2285 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurModule.CurrentModule->setTargetTriple(*(yyvsp[(3) - (3)].StrVal)); delete (yyvsp[(3) - (3)].StrVal); @@ -5437,7 +5438,7 @@ yyreduce: break; case 238: -#line 2288 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2289 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurModule.CurrentModule->setDataLayout(*(yyvsp[(3) - (3)].StrVal)); delete (yyvsp[(3) - (3)].StrVal); @@ -5445,7 +5446,7 @@ yyreduce: break; case 240: -#line 2295 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2296 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurModule.CurrentModule->addLibrary(*(yyvsp[(3) - (3)].StrVal)); delete (yyvsp[(3) - (3)].StrVal); @@ -5454,7 +5455,7 @@ yyreduce: break; case 241: -#line 2300 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2301 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurModule.CurrentModule->addLibrary(*(yyvsp[(1) - (1)].StrVal)); delete (yyvsp[(1) - (1)].StrVal); @@ -5463,14 +5464,14 @@ yyreduce: break; case 242: -#line 2305 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2306 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CHECK_FOR_ERROR ;} break; case 243: -#line 2314 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2315 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (5)].TypeVal))->getDescription()); @@ -5484,7 +5485,7 @@ yyreduce: break; case 244: -#line 2324 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2325 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (3)].TypeVal))->getDescription()); @@ -5498,7 +5499,7 @@ yyreduce: break; case 245: -#line 2335 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2336 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ArgList) = (yyvsp[(1) - (1)].ArgList); CHECK_FOR_ERROR @@ -5506,7 +5507,7 @@ yyreduce: break; case 246: -#line 2339 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2340 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ArgList) = (yyvsp[(1) - (3)].ArgList); struct ArgListEntry E; @@ -5519,7 +5520,7 @@ yyreduce: break; case 247: -#line 2348 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2349 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ArgList) = new ArgListType; struct ArgListEntry E; @@ -5532,7 +5533,7 @@ yyreduce: break; case 248: -#line 2357 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2358 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ArgList) = 0; CHECK_FOR_ERROR @@ -5540,7 +5541,7 @@ yyreduce: break; case 249: -#line 2363 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2364 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { std::string FunctionName(*(yyvsp[(4) - (11)].StrVal)); delete (yyvsp[(4) - (11)].StrVal); // Free strdup'd memory! @@ -5691,7 +5692,7 @@ yyreduce: break; case 252: -#line 2513 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2514 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FunctionVal) = CurFun.CurrentFunction; @@ -5703,7 +5704,7 @@ yyreduce: break; case 255: -#line 2524 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2525 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FunctionVal) = (yyvsp[(1) - (2)].FunctionVal); CHECK_FOR_ERROR @@ -5711,7 +5712,7 @@ yyreduce: break; case 256: -#line 2529 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2530 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CurFun.CurrentFunction->setLinkage((yyvsp[(1) - (3)].Linkage)); CurFun.CurrentFunction->setVisibility((yyvsp[(2) - (3)].Visibility)); @@ -5722,7 +5723,7 @@ yyreduce: break; case 257: -#line 2541 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2542 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = false; CHECK_FOR_ERROR @@ -5730,7 +5731,7 @@ yyreduce: break; case 258: -#line 2545 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2546 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = true; CHECK_FOR_ERROR @@ -5738,7 +5739,7 @@ yyreduce: break; case 259: -#line 2550 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2551 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // A reference to a direct constant (yyval.ValIDVal) = ValID::create((yyvsp[(1) - (1)].SInt64Val)); CHECK_FOR_ERROR @@ -5746,7 +5747,7 @@ yyreduce: break; case 260: -#line 2554 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2555 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValIDVal) = ValID::create((yyvsp[(1) - (1)].UInt64Val)); CHECK_FOR_ERROR @@ -5754,7 +5755,7 @@ yyreduce: break; case 261: -#line 2558 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2559 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // arbitrary precision integer constants (yyval.ValIDVal) = ValID::create(*(yyvsp[(1) - (1)].APIntVal), true); delete (yyvsp[(1) - (1)].APIntVal); @@ -5763,7 +5764,7 @@ yyreduce: break; case 262: -#line 2563 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2564 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // arbitrary precision integer constants (yyval.ValIDVal) = ValID::create(*(yyvsp[(1) - (1)].APIntVal), false); delete (yyvsp[(1) - (1)].APIntVal); @@ -5772,7 +5773,7 @@ yyreduce: break; case 263: -#line 2568 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2569 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Perhaps it's an FP constant? (yyval.ValIDVal) = ValID::create((yyvsp[(1) - (1)].FPVal)); CHECK_FOR_ERROR @@ -5780,7 +5781,7 @@ yyreduce: break; case 264: -#line 2572 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2573 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValIDVal) = ValID::create(ConstantInt::getTrue()); CHECK_FOR_ERROR @@ -5788,7 +5789,7 @@ yyreduce: break; case 265: -#line 2576 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2577 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValIDVal) = ValID::create(ConstantInt::getFalse()); CHECK_FOR_ERROR @@ -5796,7 +5797,7 @@ yyreduce: break; case 266: -#line 2580 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2581 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValIDVal) = ValID::createNull(); CHECK_FOR_ERROR @@ -5804,7 +5805,7 @@ yyreduce: break; case 267: -#line 2584 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2585 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValIDVal) = ValID::createUndef(); CHECK_FOR_ERROR @@ -5812,7 +5813,7 @@ yyreduce: break; case 268: -#line 2588 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2589 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // A vector zero constant. (yyval.ValIDVal) = ValID::createZeroInit(); CHECK_FOR_ERROR @@ -5820,7 +5821,7 @@ yyreduce: break; case 269: -#line 2592 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2593 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Nonempty unsized packed vector const Type *ETy = (*(yyvsp[(2) - (3)].ConstVector))[0]->getType(); unsigned NumElements = (yyvsp[(2) - (3)].ConstVector)->size(); @@ -5846,7 +5847,7 @@ yyreduce: break; case 270: -#line 2614 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2615 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Nonempty unsized arr const Type *ETy = (*(yyvsp[(2) - (3)].ConstVector))[0]->getType(); uint64_t NumElements = (yyvsp[(2) - (3)].ConstVector)->size(); @@ -5872,7 +5873,7 @@ yyreduce: break; case 271: -#line 2636 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2637 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Use undef instead of an array because it's inconvenient to determine // the element type at this point, there being no elements to examine. @@ -5882,7 +5883,7 @@ yyreduce: break; case 272: -#line 2642 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2643 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { uint64_t NumElements = (yyvsp[(2) - (2)].StrVal)->length(); const Type *ETy = Type::Int8Ty; @@ -5899,7 +5900,7 @@ yyreduce: break; case 273: -#line 2655 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2656 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { std::vector Elements((yyvsp[(2) - (3)].ConstVector)->size()); for (unsigned i = 0, e = (yyvsp[(2) - (3)].ConstVector)->size(); i != e; ++i) @@ -5915,7 +5916,7 @@ yyreduce: break; case 274: -#line 2667 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2668 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { const StructType *STy = StructType::get(std::vector()); (yyval.ValIDVal) = ValID::create(ConstantStruct::get(STy, std::vector())); @@ -5924,7 +5925,7 @@ yyreduce: break; case 275: -#line 2672 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2673 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { std::vector Elements((yyvsp[(3) - (5)].ConstVector)->size()); for (unsigned i = 0, e = (yyvsp[(3) - (5)].ConstVector)->size(); i != e; ++i) @@ -5940,7 +5941,7 @@ yyreduce: break; case 276: -#line 2684 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2685 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { const StructType *STy = StructType::get(std::vector(), /*isPacked=*/true); @@ -5950,7 +5951,7 @@ yyreduce: break; case 277: -#line 2690 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2691 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValIDVal) = ValID::create((yyvsp[(1) - (1)].ConstVal)); CHECK_FOR_ERROR @@ -5958,7 +5959,7 @@ yyreduce: break; case 278: -#line 2694 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2695 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValIDVal) = ValID::createInlineAsm(*(yyvsp[(3) - (5)].StrVal), *(yyvsp[(5) - (5)].StrVal), (yyvsp[(2) - (5)].BoolVal)); delete (yyvsp[(3) - (5)].StrVal); @@ -5968,7 +5969,7 @@ yyreduce: break; case 279: -#line 2704 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2705 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Is it an integer reference...? (yyval.ValIDVal) = ValID::createLocalID((yyvsp[(1) - (1)].UIntVal)); CHECK_FOR_ERROR @@ -5976,7 +5977,7 @@ yyreduce: break; case 280: -#line 2708 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2709 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValIDVal) = ValID::createGlobalID((yyvsp[(1) - (1)].UIntVal)); CHECK_FOR_ERROR @@ -5984,7 +5985,7 @@ yyreduce: break; case 281: -#line 2712 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2713 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Is it a named reference...? (yyval.ValIDVal) = ValID::createLocalName(*(yyvsp[(1) - (1)].StrVal)); delete (yyvsp[(1) - (1)].StrVal); @@ -5993,7 +5994,7 @@ yyreduce: break; case 282: -#line 2717 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2718 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Is it a named reference...? (yyval.ValIDVal) = ValID::createGlobalName(*(yyvsp[(1) - (1)].StrVal)); delete (yyvsp[(1) - (1)].StrVal); @@ -6002,7 +6003,7 @@ yyreduce: break; case 285: -#line 2730 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2731 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription()); @@ -6013,7 +6014,7 @@ yyreduce: break; case 286: -#line 2739 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2740 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValueList) = new std::vector(); (yyval.ValueList)->push_back((yyvsp[(1) - (1)].ValueVal)); @@ -6022,7 +6023,7 @@ yyreduce: break; case 287: -#line 2744 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2745 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { ((yyval.ValueList)=(yyvsp[(1) - (3)].ValueList))->push_back((yyvsp[(3) - (3)].ValueVal)); CHECK_FOR_ERROR @@ -6030,7 +6031,7 @@ yyreduce: break; case 288: -#line 2749 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2750 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.FunctionVal) = (yyvsp[(1) - (2)].FunctionVal); CHECK_FOR_ERROR @@ -6038,7 +6039,7 @@ yyreduce: break; case 289: -#line 2753 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2754 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Do not allow functions with 0 basic blocks (yyval.FunctionVal) = (yyvsp[(1) - (2)].FunctionVal); CHECK_FOR_ERROR @@ -6046,7 +6047,7 @@ yyreduce: break; case 290: -#line 2762 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2763 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { setValueName((yyvsp[(3) - (3)].TermInstVal), (yyvsp[(2) - (3)].StrVal)); CHECK_FOR_ERROR @@ -6058,7 +6059,7 @@ yyreduce: break; case 291: -#line 2771 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2772 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CHECK_FOR_ERROR int ValNum = InsertValue((yyvsp[(3) - (3)].TermInstVal)); @@ -6073,7 +6074,7 @@ yyreduce: break; case 292: -#line 2784 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2785 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (CastInst *CI1 = dyn_cast((yyvsp[(2) - (2)].InstVal))) if (CastInst *CI2 = dyn_cast(CI1->getOperand(0))) @@ -6086,7 +6087,7 @@ yyreduce: break; case 293: -#line 2793 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2794 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Empty space between instruction lists (yyval.BasicBlockVal) = defineBBVal(ValID::createLocalID(CurFun.NextValNum)); CHECK_FOR_ERROR @@ -6094,7 +6095,7 @@ yyreduce: break; case 294: -#line 2797 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2798 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Labelled (named) basic block (yyval.BasicBlockVal) = defineBBVal(ValID::createLocalName(*(yyvsp[(1) - (1)].StrVal))); delete (yyvsp[(1) - (1)].StrVal); @@ -6104,7 +6105,7 @@ yyreduce: break; case 295: -#line 2805 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2806 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Return with a result... ValueList &VL = *(yyvsp[(2) - (2)].ValueList); assert(!VL.empty() && "Invalid ret operands!"); @@ -6128,7 +6129,7 @@ yyreduce: break; case 296: -#line 2825 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2826 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Return with no result... (yyval.TermInstVal) = ReturnInst::Create(); CHECK_FOR_ERROR @@ -6136,7 +6137,7 @@ yyreduce: break; case 297: -#line 2829 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2830 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Unconditional Branch... BasicBlock* tmpBB = getBBVal((yyvsp[(3) - (3)].ValIDVal)); CHECK_FOR_ERROR @@ -6145,7 +6146,7 @@ yyreduce: break; case 298: -#line 2834 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2835 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (cast((yyvsp[(2) - (9)].PrimType))->getBitWidth() != 1) GEN_ERROR("Branch condition must have type i1"); @@ -6160,7 +6161,7 @@ yyreduce: break; case 299: -#line 2845 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2846 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { Value* tmpVal = getVal((yyvsp[(2) - (9)].PrimType), (yyvsp[(3) - (9)].ValIDVal)); CHECK_FOR_ERROR @@ -6183,7 +6184,7 @@ yyreduce: break; case 300: -#line 2864 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2865 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { Value* tmpVal = getVal((yyvsp[(2) - (8)].PrimType), (yyvsp[(3) - (8)].ValIDVal)); CHECK_FOR_ERROR @@ -6196,7 +6197,7 @@ yyreduce: break; case 301: -#line 2874 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2875 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Handle the short syntax @@ -6303,7 +6304,7 @@ yyreduce: break; case 302: -#line 2977 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2978 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TermInstVal) = new UnwindInst(); CHECK_FOR_ERROR @@ -6311,7 +6312,7 @@ yyreduce: break; case 303: -#line 2981 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2982 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.TermInstVal) = new UnreachableInst(); CHECK_FOR_ERROR @@ -6319,7 +6320,7 @@ yyreduce: break; case 304: -#line 2988 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 2989 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.JumpTable) = (yyvsp[(1) - (6)].JumpTable); Constant *V = cast(getExistingVal((yyvsp[(2) - (6)].PrimType), (yyvsp[(3) - (6)].ValIDVal))); @@ -6334,7 +6335,7 @@ yyreduce: break; case 305: -#line 2999 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3000 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.JumpTable) = new std::vector >(); Constant *V = cast(getExistingVal((yyvsp[(1) - (5)].PrimType), (yyvsp[(2) - (5)].ValIDVal))); @@ -6350,7 +6351,7 @@ yyreduce: break; case 306: -#line 3012 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3013 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Is this definition named?? if so, assign the name... setValueName((yyvsp[(2) - (2)].InstVal), (yyvsp[(1) - (2)].StrVal)); @@ -6362,7 +6363,7 @@ yyreduce: break; case 307: -#line 3021 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3022 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { CHECK_FOR_ERROR int ValNum = InsertValue((yyvsp[(2) - (2)].InstVal)); @@ -6377,7 +6378,7 @@ yyreduce: break; case 308: -#line 3034 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3035 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Used for PHI nodes if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (6)].TypeVal))->getDescription()); @@ -6392,7 +6393,7 @@ yyreduce: break; case 309: -#line 3045 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3046 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.PHIList) = (yyvsp[(1) - (7)].PHIList); Value* tmpVal = getVal((yyvsp[(1) - (7)].PHIList)->front().first->getType(), (yyvsp[(4) - (7)].ValIDVal)); @@ -6404,7 +6405,7 @@ yyreduce: break; case 310: -#line 3055 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3056 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // FIXME: Remove trailing OptAttributes in LLVM 3.0, it was a mistake in 2.0 if (!UpRefs.empty()) @@ -6419,7 +6420,7 @@ yyreduce: break; case 311: -#line 3066 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3067 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // FIXME: Remove trailing OptAttributes in LLVM 3.0, it was a mistake in 2.0 // Labels are only valid in ASMs @@ -6431,7 +6432,7 @@ yyreduce: break; case 312: -#line 3074 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3075 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // FIXME: Remove trailing OptAttributes in LLVM 3.0, it was a mistake in 2.0 if (!UpRefs.empty()) @@ -6445,7 +6446,7 @@ yyreduce: break; case 313: -#line 3084 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3085 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // FIXME: Remove trailing OptAttributes in LLVM 3.0, it was a mistake in 2.0 (yyval.ParamList) = (yyvsp[(1) - (6)].ParamList); @@ -6456,17 +6457,17 @@ yyreduce: break; case 314: -#line 3091 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3092 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ParamList) = new ParamList(); ;} break; case 315: -#line 3094 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3095 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValueList) = new std::vector(); ;} break; case 316: -#line 3095 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3096 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ValueList) = (yyvsp[(1) - (3)].ValueList); (yyval.ValueList)->push_back((yyvsp[(3) - (3)].ValueVal)); @@ -6475,7 +6476,7 @@ yyreduce: break; case 317: -#line 3103 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3104 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ConstantList) = new std::vector(); if ((unsigned)(yyvsp[(2) - (2)].UInt64Val) != (yyvsp[(2) - (2)].UInt64Val)) @@ -6485,7 +6486,7 @@ yyreduce: break; case 318: -#line 3109 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3110 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.ConstantList) = (yyvsp[(1) - (3)].ConstantList); if ((unsigned)(yyvsp[(3) - (3)].UInt64Val) != (yyvsp[(3) - (3)].UInt64Val)) @@ -6496,7 +6497,7 @@ yyreduce: break; case 319: -#line 3118 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3119 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = true; CHECK_FOR_ERROR @@ -6504,7 +6505,7 @@ yyreduce: break; case 320: -#line 3122 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3123 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = false; CHECK_FOR_ERROR @@ -6512,7 +6513,7 @@ yyreduce: break; case 321: -#line 3127 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3128 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (5)].TypeVal))->getDescription()); @@ -6532,7 +6533,7 @@ yyreduce: break; case 322: -#line 3143 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3144 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (5)].TypeVal))->getDescription()); @@ -6553,7 +6554,7 @@ yyreduce: break; case 323: -#line 3160 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3161 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (6)].TypeVal))->getDescription()); @@ -6569,7 +6570,7 @@ yyreduce: break; case 324: -#line 3172 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3173 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (6)].TypeVal))->getDescription()); @@ -6585,7 +6586,7 @@ yyreduce: break; case 325: -#line 3184 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3185 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (6)].TypeVal))->getDescription()); @@ -6603,7 +6604,7 @@ yyreduce: break; case 326: -#line 3198 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3199 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (6)].TypeVal))->getDescription()); @@ -6621,7 +6622,7 @@ yyreduce: break; case 327: -#line 3212 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3213 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(4) - (4)].TypeVal))->getDescription()); @@ -6637,7 +6638,7 @@ yyreduce: break; case 328: -#line 3224 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3225 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (isa((yyvsp[(2) - (6)].ValueVal)->getType())) { // vector select @@ -6662,7 +6663,7 @@ yyreduce: break; case 329: -#line 3245 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3246 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(4) - (4)].TypeVal))->getDescription()); @@ -6673,7 +6674,7 @@ yyreduce: break; case 330: -#line 3252 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3253 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!ExtractElementInst::isValidOperands((yyvsp[(2) - (4)].ValueVal), (yyvsp[(4) - (4)].ValueVal))) GEN_ERROR("Invalid extractelement operands"); @@ -6683,7 +6684,7 @@ yyreduce: break; case 331: -#line 3258 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3259 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!InsertElementInst::isValidOperands((yyvsp[(2) - (6)].ValueVal), (yyvsp[(4) - (6)].ValueVal), (yyvsp[(6) - (6)].ValueVal))) GEN_ERROR("Invalid insertelement operands"); @@ -6693,7 +6694,7 @@ yyreduce: break; case 332: -#line 3264 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3265 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!ShuffleVectorInst::isValidOperands((yyvsp[(2) - (6)].ValueVal), (yyvsp[(4) - (6)].ValueVal), (yyvsp[(6) - (6)].ValueVal))) GEN_ERROR("Invalid shufflevector operands"); @@ -6703,7 +6704,7 @@ yyreduce: break; case 333: -#line 3270 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3271 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { const Type *Ty = (yyvsp[(2) - (2)].PHIList)->front().first->getType(); if (!Ty->isFirstClassType()) @@ -6722,7 +6723,7 @@ yyreduce: break; case 334: -#line 3286 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3287 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { // Handle the short syntax @@ -6835,7 +6836,7 @@ yyreduce: break; case 335: -#line 3395 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3396 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.InstVal) = (yyvsp[(1) - (1)].InstVal); CHECK_FOR_ERROR @@ -6843,7 +6844,7 @@ yyreduce: break; case 336: -#line 3400 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3401 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = true; CHECK_FOR_ERROR @@ -6851,7 +6852,7 @@ yyreduce: break; case 337: -#line 3404 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3405 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { (yyval.BoolVal) = false; CHECK_FOR_ERROR @@ -6859,7 +6860,7 @@ yyreduce: break; case 338: -#line 3411 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3412 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (3)].TypeVal))->getDescription()); @@ -6870,7 +6871,7 @@ yyreduce: break; case 339: -#line 3418 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3419 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (6)].TypeVal))->getDescription()); @@ -6884,7 +6885,7 @@ yyreduce: break; case 340: -#line 3428 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3429 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (3)].TypeVal))->getDescription()); @@ -6895,7 +6896,7 @@ yyreduce: break; case 341: -#line 3435 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3436 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (6)].TypeVal))->getDescription()); @@ -6909,7 +6910,7 @@ yyreduce: break; case 342: -#line 3445 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3446 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!isa((yyvsp[(2) - (2)].ValueVal)->getType())) GEN_ERROR("Trying to free nonpointer type " + @@ -6920,7 +6921,7 @@ yyreduce: break; case 343: -#line 3453 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3454 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (5)].TypeVal))->getDescription()); @@ -6938,7 +6939,7 @@ yyreduce: break; case 344: -#line 3467 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3468 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(5) - (7)].TypeVal))->getDescription()); @@ -6959,7 +6960,7 @@ yyreduce: break; case 345: -#line 3484 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3485 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (5)].TypeVal))->getDescription()); @@ -6977,7 +6978,7 @@ yyreduce: break; case 346: -#line 3498 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3499 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (4)].TypeVal))->getDescription()); @@ -6996,7 +6997,7 @@ yyreduce: break; case 347: -#line 3513 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3514 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (4)].TypeVal))->getDescription()); @@ -7015,7 +7016,7 @@ yyreduce: break; case 348: -#line 3528 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3529 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { if (!UpRefs.empty()) GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (7)].TypeVal))->getDescription()); @@ -7037,7 +7038,7 @@ yyreduce: /* Line 1267 of yacc.c. */ -#line 7041 "llvmAsmParser.tab.c" +#line 7042 "llvmAsmParser.tab.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); @@ -7251,7 +7252,7 @@ yyreturn: } -#line 3547 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 3548 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" // common code from the two 'RunVMAsmParser' functions diff --git a/lib/AsmParser/llvmAsmParser.h.cvs b/lib/AsmParser/llvmAsmParser.h.cvs index eb34cc0e39e..413bff6ca21 100644 --- a/lib/AsmParser/llvmAsmParser.h.cvs +++ b/lib/AsmParser/llvmAsmParser.h.cvs @@ -360,7 +360,7 @@ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE -#line 980 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" +#line 981 "/cvs/llvm/lib/AsmParser/llvmAsmParser.y" { llvm::Module *ModuleVal; llvm::Function *FunctionVal; diff --git a/lib/AsmParser/llvmAsmParser.y.cvs b/lib/AsmParser/llvmAsmParser.y.cvs index 54694d712cb..f2e6404d307 100644 --- a/lib/AsmParser/llvmAsmParser.y.cvs +++ b/lib/AsmParser/llvmAsmParser.y.cvs @@ -140,6 +140,7 @@ static struct PerModuleInfo { GlobalValue *Ret = 0; if (I != GlobalRefs.end()) { Ret = I->second; + I->first.second.destroy(); GlobalRefs.erase(I); } return Ret;