llvm.org GIT mirror llvm / 4292d1c
minor long double related changes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42439 91177308-0d34-0410-b5e6-96231b3b80d8 Dale Johannesen 11 years ago
6 changed file(s) with 210 addition(s) and 190 deletion(s). Raw diff Collapse all Expand all
12701270 }
12711271 break;
12721272 case Type::FloatTyID: case Type::DoubleTyID:
1273 case Type::X86_FP80TyID: case Type::FP128TyID: case Type::PPC_FP128TyID:
12731274 assert (0 && "Should have already output floating point constant.");
12741275 default:
12751276 assert (0 && "Can't handle printing this type of thing");
793793 Type::DoubleTy, sqrtFCache);
794794 break;
795795 }
796 case Intrinsic::sqrt_f80: {
797 static Constant *sqrtF80Cache = 0;
798 ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
799 Type::X86_FP80Ty, sqrtF80Cache);
800 break;
801 }
802 case Intrinsic::sqrt_f128: {
803 static Constant *sqrtF128Cache = 0;
804 ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
805 Type::FP128Ty, sqrtF128Cache);
806 break;
807 }
808 case Intrinsic::sqrt_ppcf128: {
809 static Constant *sqrtppcF128Cache = 0;
810 ReplaceCallWith("sqrtl", CI, CI->op_begin()+1, CI->op_end(),
811 Type::PPC_FP128Ty, sqrtppcF128Cache);
812 break;
813 }
796814 }
797815
798816 assert(CI->use_empty() &&
11141114 /// @brief Perform the pow optimization.
11151115 virtual bool OptimizeCall(CallInst *ci, SimplifyLibCalls &SLC) {
11161116 const Type *Ty = cast(ci->getOperand(0))->getReturnType();
1117 if (Ty!=Type::FloatTy && Ty!=Type::DoubleTy)
1118 return false; // FIXME long double not yet supported
11171119 Value* base = ci->getOperand(1);
11181120 Value* expn = ci->getOperand(2);
11191121 if (ConstantFP *Op1 = dyn_cast(base)) {
1120 if (Ty!=Type::FloatTy && Ty!=Type::DoubleTy)
1121 return false; // FIXME long double not yet supported
11221122 if (Op1->isExactlyValue(1.0)) // pow(1.0,x) -> 1.0
11231123 return ReplaceCallWith(ci, ConstantFP::get(Ty,
11241124 Ty==Type::FloatTy ? APFloat(1.0f) : APFloat(1.0)));
11251125 } else if (ConstantFP* Op2 = dyn_cast(expn)) {
1126 if (Ty!=Type::FloatTy && Ty!=Type::DoubleTy)
1127 return false; // FIXME long double not yet supported
11281126 if (Op2->getValueAPF().isZero()) {
11291127 // pow(x,0.0) -> 1.0
11301128 return ReplaceCallWith(ci, ConstantFP::get(Ty,
936936 //===----------------------------------------------------------------------===//
937937 //
938938 // This file implements the flex scanner for LLVM 1.9 assembly languages files.
939 // This doesn't handle long double constants, since LLVM 1.9 did not have them.
939940 //
940941 //===----------------------------------------------------------------------===*/
941942 #define YY_NEVER_INTERACTIVE 1
942 #line 28 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
943 #line 29 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
943944 #include "UpgradeInternals.h"
944945 #include "llvm/Module.h"
945946 #include
10801081 /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
10811082 * it to deal with 64 bit numbers.
10821083 */
1083 #line 1085 "UpgradeLexer.cpp"
1084 #line 1086 "UpgradeLexer.cpp"
10841085
10851086 /* Macros after this point can all be overridden by user definitions in
10861087 * section 1.
12311232 register char *yy_cp, *yy_bp;
12321233 register int yy_act;
12331234
1234 #line 194 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1235
1236
1237 #line 1239 "UpgradeLexer.cpp"
1235 #line 195 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1236
1237
1238 #line 1240 "UpgradeLexer.cpp"
12381239
12391240 if ( yy_init )
12401241 {
13271328 { /* beginning of action switch */
13281329 case 1:
13291330 YY_RULE_SETUP
1330 #line 196 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1331 #line 197 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13311332 { /* Ignore comments for now */ }
13321333 YY_BREAK
13331334 case 2:
13341335 YY_RULE_SETUP
1335 #line 198 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1336 #line 199 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13361337 { return BEGINTOK; }
13371338 YY_BREAK
13381339 case 3:
13391340 YY_RULE_SETUP
1340 #line 199 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1341 #line 200 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13411342 { return ENDTOK; }
13421343 YY_BREAK
13431344 case 4:
13441345 YY_RULE_SETUP
1345 #line 200 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1346 #line 201 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13461347 { return TRUETOK; }
13471348 YY_BREAK
13481349 case 5:
13491350 YY_RULE_SETUP
1350 #line 201 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1351 #line 202 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13511352 { return FALSETOK; }
13521353 YY_BREAK
13531354 case 6:
13541355 YY_RULE_SETUP
1355 #line 202 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1356 #line 203 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13561357 { return DECLARE; }
13571358 YY_BREAK
13581359 case 7:
13591360 YY_RULE_SETUP
1360 #line 203 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1361 #line 204 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13611362 { return GLOBAL; }
13621363 YY_BREAK
13631364 case 8:
13641365 YY_RULE_SETUP
1365 #line 204 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1366 #line 205 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13661367 { return CONSTANT; }
13671368 YY_BREAK
13681369 case 9:
13691370 YY_RULE_SETUP
1370 #line 205 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1371 #line 206 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13711372 { return INTERNAL; }
13721373 YY_BREAK
13731374 case 10:
13741375 YY_RULE_SETUP
1375 #line 206 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1376 #line 207 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13761377 { return LINKONCE; }
13771378 YY_BREAK
13781379 case 11:
13791380 YY_RULE_SETUP
1380 #line 207 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1381 #line 208 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13811382 { return WEAK; }
13821383 YY_BREAK
13831384 case 12:
13841385 YY_RULE_SETUP
1385 #line 208 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1386 #line 209 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13861387 { return APPENDING; }
13871388 YY_BREAK
13881389 case 13:
13891390 YY_RULE_SETUP
1390 #line 209 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1391 #line 210 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13911392 { return DLLIMPORT; }
13921393 YY_BREAK
13931394 case 14:
13941395 YY_RULE_SETUP
1395 #line 210 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1396 #line 211 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13961397 { return DLLEXPORT; }
13971398 YY_BREAK
13981399 case 15:
13991400 YY_RULE_SETUP
1400 #line 211 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1401 #line 212 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14011402 { return EXTERN_WEAK; }
14021403 YY_BREAK
14031404 case 16:
14041405 YY_RULE_SETUP
1405 #line 212 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1406 #line 213 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14061407 { return EXTERNAL; } /* Deprecated, turn into external */
14071408 YY_BREAK
14081409 case 17:
14091410 YY_RULE_SETUP
1410 #line 213 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1411 #line 214 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14111412 { return EXTERNAL; }
14121413 YY_BREAK
14131414 case 18:
14141415 YY_RULE_SETUP
1415 #line 214 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1416 #line 215 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14161417 { return IMPLEMENTATION; }
14171418 YY_BREAK
14181419 case 19:
14191420 YY_RULE_SETUP
1420 #line 215 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1421 #line 216 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14211422 { return ZEROINITIALIZER; }
14221423 YY_BREAK
14231424 case 20:
14241425 YY_RULE_SETUP
1425 #line 216 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1426 #line 217 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14261427 { return DOTDOTDOT; }
14271428 YY_BREAK
14281429 case 21:
14291430 YY_RULE_SETUP
1430 #line 217 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1431 #line 218 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14311432 { return UNDEF; }
14321433 YY_BREAK
14331434 case 22:
14341435 YY_RULE_SETUP
1435 #line 218 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1436 #line 219 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14361437 { return NULL_TOK; }
14371438 YY_BREAK
14381439 case 23:
14391440 YY_RULE_SETUP
1440 #line 219 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1441 #line 220 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14411442 { return TO; }
14421443 YY_BREAK
14431444 case 24:
14441445 YY_RULE_SETUP
1445 #line 220 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1446 #line 221 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14461447 { return EXCEPT; }
14471448 YY_BREAK
14481449 case 25:
14491450 YY_RULE_SETUP
1450 #line 221 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1451 #line 222 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14511452 { return NOT; } /* Deprecated, turned into XOR */
14521453 YY_BREAK
14531454 case 26:
14541455 YY_RULE_SETUP
1455 #line 222 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1456 #line 223 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14561457 { return TAIL; }
14571458 YY_BREAK
14581459 case 27:
14591460 YY_RULE_SETUP
1460 #line 223 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1461 #line 224 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14611462 { return TARGET; }
14621463 YY_BREAK
14631464 case 28:
14641465 YY_RULE_SETUP
1465 #line 224 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1466 #line 225 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14661467 { return TRIPLE; }
14671468 YY_BREAK
14681469 case 29:
14691470 YY_RULE_SETUP
1470 #line 225 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1471 #line 226 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14711472 { return DEPLIBS; }
14721473 YY_BREAK
14731474 case 30:
14741475 YY_RULE_SETUP
1475 #line 226 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1476 #line 227 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14761477 { return ENDIAN; }
14771478 YY_BREAK
14781479 case 31:
14791480 YY_RULE_SETUP
1480 #line 227 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1481 #line 228 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14811482 { return POINTERSIZE; }
14821483 YY_BREAK
14831484 case 32:
14841485 YY_RULE_SETUP
1485 #line 228 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1486 #line 229 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14861487 { return DATALAYOUT; }
14871488 YY_BREAK
14881489 case 33:
14891490 YY_RULE_SETUP
1490 #line 229 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1491 #line 230 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14911492 { return LITTLE; }
14921493 YY_BREAK
14931494 case 34:
14941495 YY_RULE_SETUP
1495 #line 230 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1496 #line 231 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14961497 { return BIG; }
14971498 YY_BREAK
14981499 case 35:
14991500 YY_RULE_SETUP
1500 #line 231 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1501 #line 232 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15011502 { return VOLATILE; }
15021503 YY_BREAK
15031504 case 36:
15041505 YY_RULE_SETUP
1505 #line 232 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1506 #line 233 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15061507 { return ALIGN; }
15071508 YY_BREAK
15081509 case 37:
15091510 YY_RULE_SETUP
1510 #line 233 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1511 #line 234 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15111512 { return SECTION; }
15121513 YY_BREAK
15131514 case 38:
15141515 YY_RULE_SETUP
1515 #line 234 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1516 #line 235 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15161517 { return MODULE; }
15171518 YY_BREAK
15181519 case 39:
15191520 YY_RULE_SETUP
1520 #line 235 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1521 #line 236 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15211522 { return ASM_TOK; }
15221523 YY_BREAK
15231524 case 40:
15241525 YY_RULE_SETUP
1525 #line 236 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1526 #line 237 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15261527 { return SIDEEFFECT; }
15271528 YY_BREAK
15281529 case 41:
15291530 YY_RULE_SETUP
1530 #line 238 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1531 #line 239 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15311532 { return CC_TOK; }
15321533 YY_BREAK
15331534 case 42:
15341535 YY_RULE_SETUP
1535 #line 239 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1536 #line 240 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15361537 { return CCC_TOK; }
15371538 YY_BREAK
15381539 case 43:
15391540 YY_RULE_SETUP
1540 #line 240 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1541 #line 241 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15411542 { return CSRETCC_TOK; }
15421543 YY_BREAK
15431544 case 44:
15441545 YY_RULE_SETUP
1545 #line 241 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1546 #line 242 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15461547 { return FASTCC_TOK; }
15471548 YY_BREAK
15481549 case 45:
15491550 YY_RULE_SETUP
1550 #line 242 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1551 #line 243 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15511552 { return COLDCC_TOK; }
15521553 YY_BREAK
15531554 case 46:
15541555 YY_RULE_SETUP
1555 #line 243 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1556 #line 244 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15561557 { return X86_STDCALLCC_TOK; }
15571558 YY_BREAK
15581559 case 47:
15591560 YY_RULE_SETUP
1560 #line 244 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1561 #line 245 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15611562 { return X86_FASTCALLCC_TOK; }
15621563 YY_BREAK
15631564 case 48:
15641565 YY_RULE_SETUP
1565 #line 246 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1566 #line 247 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15661567 { RET_TY(SBYTE, Type::Int8Ty, 2); }
15671568 YY_BREAK
15681569 case 49:
1569 YY_RULE_SETUP
1570 #line 247 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1571 { RET_TY(UBYTE, Type::Int8Ty, 1); }
1572 YY_BREAK
1573 case 50:
15741570 YY_RULE_SETUP
15751571 #line 248 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15761572 { RET_TY(UBYTE, Type::Int8Ty, 1); }
15771573 YY_BREAK
1574 case 50:
1575 YY_RULE_SETUP
1576 #line 249 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1577 { RET_TY(UBYTE, Type::Int8Ty, 1); }
1578 YY_BREAK
15781579 case 51:
15791580 YY_RULE_SETUP
1580 #line 249 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1581 #line 250 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15811582 { RET_TY(SHORT, Type::Int16Ty, 2); }
15821583 YY_BREAK
15831584 case 52:
1584 YY_RULE_SETUP
1585 #line 250 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1586 { RET_TY(USHORT, Type::Int16Ty, 1); }
1587 YY_BREAK
1588 case 53:
15891585 YY_RULE_SETUP
15901586 #line 251 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15911587 { RET_TY(USHORT, Type::Int16Ty, 1); }
15921588 YY_BREAK
1589 case 53:
1590 YY_RULE_SETUP
1591 #line 252 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1592 { RET_TY(USHORT, Type::Int16Ty, 1); }
1593 YY_BREAK
15931594 case 54:
15941595 YY_RULE_SETUP
1595 #line 252 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1596 #line 253 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15961597 { RET_TY(INT, Type::Int32Ty, 2); }
15971598 YY_BREAK
15981599 case 55:
1599 YY_RULE_SETUP
1600 #line 253 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1601 { RET_TY(UINT, Type::Int32Ty, 1); }
1602 YY_BREAK
1603 case 56:
16041600 YY_RULE_SETUP
16051601 #line 254 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16061602 { RET_TY(UINT, Type::Int32Ty, 1); }
16071603 YY_BREAK
1604 case 56:
1605 YY_RULE_SETUP
1606 #line 255 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1607 { RET_TY(UINT, Type::Int32Ty, 1); }
1608 YY_BREAK
16081609 case 57:
16091610 YY_RULE_SETUP
1610 #line 255 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1611 #line 256 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16111612 { RET_TY(LONG, Type::Int64Ty, 2); }
16121613 YY_BREAK
16131614 case 58:
1614 YY_RULE_SETUP
1615 #line 256 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1616 { RET_TY(ULONG, Type::Int64Ty, 1); }
1617 YY_BREAK
1618 case 59:
16191615 YY_RULE_SETUP
16201616 #line 257 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16211617 { RET_TY(ULONG, Type::Int64Ty, 1); }
16221618 YY_BREAK
1619 case 59:
1620 YY_RULE_SETUP
1621 #line 258 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1622 { RET_TY(ULONG, Type::Int64Ty, 1); }
1623 YY_BREAK
16231624 case 60:
16241625 YY_RULE_SETUP
1625 #line 258 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1626 #line 259 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16261627 { RET_TY(VOID, Type::VoidTy, 0); }
16271628 YY_BREAK
16281629 case 61:
1629 YY_RULE_SETUP
1630 #line 259 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1631 { RET_TY(BOOL, Type::Int1Ty, 1); }
1632 YY_BREAK
1633 case 62:
16341630 YY_RULE_SETUP
16351631 #line 260 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16361632 { RET_TY(BOOL, Type::Int1Ty, 1); }
16371633 YY_BREAK
1634 case 62:
1635 YY_RULE_SETUP
1636 #line 261 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1637 { RET_TY(BOOL, Type::Int1Ty, 1); }
1638 YY_BREAK
16381639 case 63:
16391640 YY_RULE_SETUP
1640 #line 261 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1641 #line 262 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16411642 { RET_TY(FLOAT, Type::FloatTy, 0); }
16421643 YY_BREAK
16431644 case 64:
16441645 YY_RULE_SETUP
1645 #line 262 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1646 #line 263 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16461647 { RET_TY(DOUBLE, Type::DoubleTy,0); }
16471648 YY_BREAK
16481649 case 65:
16491650 YY_RULE_SETUP
1650 #line 263 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1651 #line 264 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16511652 { RET_TY(LABEL, Type::LabelTy, 0); }
16521653 YY_BREAK
16531654 case 66:
16541655 YY_RULE_SETUP
1655 #line 264 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1656 #line 265 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16561657 { return TYPE; }
16571658 YY_BREAK
16581659 case 67:
16591660 YY_RULE_SETUP
1660 #line 265 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1661 #line 266 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16611662 { return OPAQUE; }
16621663 YY_BREAK
16631664 case 68:
16641665 YY_RULE_SETUP
1665 #line 267 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1666 #line 268 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16661667 { RET_TOK(BinaryOpVal, AddOp, ADD); }
16671668 YY_BREAK
16681669 case 69:
16691670 YY_RULE_SETUP
1670 #line 268 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1671 #line 269 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16711672 { RET_TOK(BinaryOpVal, SubOp, SUB); }
16721673 YY_BREAK
16731674 case 70:
16741675 YY_RULE_SETUP
1675 #line 269 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1676 #line 270 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16761677 { RET_TOK(BinaryOpVal, MulOp, MUL); }
16771678 YY_BREAK
16781679 case 71:
16791680 YY_RULE_SETUP
1680 #line 270 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1681 #line 271 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16811682 { RET_TOK(BinaryOpVal, DivOp, DIV); }
16821683 YY_BREAK
16831684 case 72:
16841685 YY_RULE_SETUP
1685 #line 271 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1686 #line 272 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16861687 { RET_TOK(BinaryOpVal, UDivOp, UDIV); }
16871688 YY_BREAK
16881689 case 73:
16891690 YY_RULE_SETUP
1690 #line 272 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1691 #line 273 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16911692 { RET_TOK(BinaryOpVal, SDivOp, SDIV); }
16921693 YY_BREAK
16931694 case 74:
16941695 YY_RULE_SETUP
1695 #line 273 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1696 #line 274 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16961697 { RET_TOK(BinaryOpVal, FDivOp, FDIV); }
16971698 YY_BREAK
16981699 case 75:
16991700 YY_RULE_SETUP
1700 #line 274 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1701 #line 275 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17011702 { RET_TOK(BinaryOpVal, RemOp, REM); }
17021703 YY_BREAK
17031704 case 76:
17041705 YY_RULE_SETUP
1705 #line 275 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1706 #line 276 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17061707 { RET_TOK(BinaryOpVal, URemOp, UREM); }
17071708 YY_BREAK
17081709 case 77:
17091710 YY_RULE_SETUP
1710 #line 276 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1711 #line 277 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17111712 { RET_TOK(BinaryOpVal, SRemOp, SREM); }
17121713 YY_BREAK
17131714 case 78:
17141715 YY_RULE_SETUP
1715 #line 277 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1716 #line 278 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17161717 { RET_TOK(BinaryOpVal, FRemOp, FREM); }
17171718 YY_BREAK
17181719 case 79:
17191720 YY_RULE_SETUP
1720 #line 278 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1721 #line 279 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17211722 { RET_TOK(BinaryOpVal, AndOp, AND); }
17221723 YY_BREAK
17231724 case 80:
17241725 YY_RULE_SETUP
1725 #line 279 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1726 #line 280 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17261727 { RET_TOK(BinaryOpVal, OrOp , OR ); }
17271728 YY_BREAK
17281729 case 81:
17291730 YY_RULE_SETUP
1730 #line 280 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1731 #line 281 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17311732 { RET_TOK(BinaryOpVal, XorOp, XOR); }
17321733 YY_BREAK
17331734 case 82:
17341735 YY_RULE_SETUP
1735 #line 281 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1736 #line 282 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17361737 { RET_TOK(BinaryOpVal, SetNE, SETNE); }
17371738 YY_BREAK
17381739 case 83:
17391740 YY_RULE_SETUP
1740 #line 282 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1741 #line 283 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17411742 { RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
17421743 YY_BREAK
17431744 case 84:
17441745 YY_RULE_SETUP
1745 #line 283 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1746 #line 284 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17461747 { RET_TOK(BinaryOpVal, SetLT, SETLT); }
17471748 YY_BREAK
17481749 case 85:
17491750 YY_RULE_SETUP
1750 #line 284 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1751 #line 285 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17511752 { RET_TOK(BinaryOpVal, SetGT, SETGT); }
17521753 YY_BREAK
17531754 case 86:
17541755 YY_RULE_SETUP
1755 #line 285 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1756 #line 286 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17561757 { RET_TOK(BinaryOpVal, SetLE, SETLE); }
17571758 YY_BREAK
17581759 case 87:
17591760 YY_RULE_SETUP
1760 #line 286 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1761 #line 287 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17611762 { RET_TOK(BinaryOpVal, SetGE, SETGE); }
17621763 YY_BREAK
17631764 case 88:
17641765 YY_RULE_SETUP
1765 #line 287 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1766 #line 288 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17661767 { RET_TOK(BinaryOpVal, ShlOp, SHL); }
17671768 YY_BREAK
17681769 case 89:
17691770 YY_RULE_SETUP
1770 #line 288 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1771 #line 289 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17711772 { RET_TOK(BinaryOpVal, ShrOp, SHR); }
17721773 YY_BREAK
17731774 case 90:
17741775 YY_RULE_SETUP
1775 #line 289 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1776 #line 290 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17761777 { RET_TOK(BinaryOpVal, LShrOp, LSHR); }
17771778 YY_BREAK
17781779 case 91:
17791780 YY_RULE_SETUP
1780 #line 290 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1781 #line 291 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17811782 { RET_TOK(BinaryOpVal, AShrOp, ASHR); }
17821783 YY_BREAK
17831784 case 92:
17841785 YY_RULE_SETUP
1785 #line 292 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1786 #line 293 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17861787 { RET_TOK(OtherOpVal, ICmpOp, ICMP); }
17871788 YY_BREAK
17881789 case 93:
17891790 YY_RULE_SETUP
1790 #line 293 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1791 #line 294 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17911792 { RET_TOK(OtherOpVal, FCmpOp, FCMP); }
17921793 YY_BREAK
17931794 case 94:
17941795 YY_RULE_SETUP
1795 #line 295 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1796 #line 296 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17961797 { return EQ; }
17971798 YY_BREAK
17981799 case 95:
17991800 YY_RULE_SETUP
1800 #line 296 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1801 #line 297 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18011802 { return NE; }
18021803 YY_BREAK
18031804 case 96:
18041805 YY_RULE_SETUP
1805 #line 297 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1806 #line 298 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18061807 { return SLT; }
18071808 YY_BREAK
18081809 case 97:
18091810 YY_RULE_SETUP
1810 #line 298 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1811 #line 299 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18111812 { return SGT; }
18121813 YY_BREAK
18131814 case 98:
18141815 YY_RULE_SETUP
1815 #line 299 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1816 #line 300 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18161817 { return SLE; }
18171818 YY_BREAK
18181819 case 99:
18191820 YY_RULE_SETUP
1820 #line 300 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1821 #line 301 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18211822 { return SGE; }
18221823 YY_BREAK
18231824 case 100:
18241825 YY_RULE_SETUP
1825 #line 301 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1826 #line 302 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18261827 { return ULT; }
18271828 YY_BREAK
18281829 case 101:
18291830 YY_RULE_SETUP
1830 #line 302 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1831 #line 303 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18311832 { return UGT; }
18321833 YY_BREAK
18331834 case 102:
18341835 YY_RULE_SETUP
1835 #line 303 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1836 #line 304 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18361837 { return ULE; }
18371838 YY_BREAK
18381839 case 103:
18391840 YY_RULE_SETUP
1840 #line 304 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1841 #line 305 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18411842 { return UGE; }
18421843 YY_BREAK
18431844 case 104:
18441845 YY_RULE_SETUP
1845 #line 305 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1846 #line 306 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18461847 { return OEQ; }
18471848 YY_BREAK
18481849 case 105:
18491850 YY_RULE_SETUP
1850 #line 306 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1851 #line 307 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18511852 { return ONE; }
18521853 YY_BREAK
18531854 case 106:
18541855 YY_RULE_SETUP
1855 #line 307 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1856 #line 308 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18561857 { return OLT; }
18571858 YY_BREAK
18581859 case 107:
18591860 YY_RULE_SETUP
1860 #line 308 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1861 #line 309 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18611862 { return OGT; }
18621863 YY_BREAK
18631864 case 108:
18641865 YY_RULE_SETUP
1865 #line 309 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1866 #line 310 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18661867 { return OLE; }
18671868 YY_BREAK
18681869 case 109:
18691870 YY_RULE_SETUP
1870 #line 310 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1871 #line 311 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18711872 { return OGE; }
18721873 YY_BREAK
18731874 case 110:
18741875 YY_RULE_SETUP
1875 #line 311 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1876 #line 312 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18761877 { return ORD; }
18771878 YY_BREAK
18781879 case 111:
18791880 YY_RULE_SETUP
1880 #line 312 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1881 #line 313 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18811882 { return UNO; }
18821883 YY_BREAK
18831884 case 112:
18841885 YY_RULE_SETUP
1885 #line 313 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1886 #line 314 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18861887 { return UEQ; }
18871888 YY_BREAK
18881889 case 113:
18891890 YY_RULE_SETUP
1890 #line 314 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1891 #line 315 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18911892 { return UNE; }
18921893 YY_BREAK
18931894 case 114:
18941895 YY_RULE_SETUP
1895 #line 316 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1896 #line 317 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18961897 { RET_TOK(OtherOpVal, PHIOp, PHI_TOK); }
18971898 YY_BREAK
18981899 case 115:
18991900 YY_RULE_SETUP
1900 #line 317 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1901 #line 318 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19011902 { RET_TOK(OtherOpVal, CallOp, CALL); }
19021903 YY_BREAK
19031904 case 116:
19041905 YY_RULE_SETUP
1905 #line 318 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1906 #line 319 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19061907 { RET_TOK(CastOpVal, CastOp, CAST); }
19071908 YY_BREAK
19081909 case 117:
19091910 YY_RULE_SETUP
1910 #line 319 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1911 #line 320 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19111912 { RET_TOK(CastOpVal, TruncOp, TRUNC); }
19121913 YY_BREAK
19131914 case 118:
19141915 YY_RULE_SETUP
1915 #line 320 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1916 #line 321 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19161917 { RET_TOK(CastOpVal, ZExtOp , ZEXT); }
19171918 YY_BREAK
19181919 case 119:
19191920 YY_RULE_SETUP
1920 #line 321 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1921 #line 322 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19211922 { RET_TOK(CastOpVal, SExtOp, SEXT); }
19221923 YY_BREAK
19231924 case 120:
19241925 YY_RULE_SETUP
1925 #line 322 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1926 #line 323 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19261927 { RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); }
19271928 YY_BREAK
19281929 case 121:
19291930 YY_RULE_SETUP
1930 #line 323 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1931 #line 324 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19311932 { RET_TOK(CastOpVal, FPExtOp, FPEXT); }
19321933 YY_BREAK
19331934 case 122:
19341935 YY_RULE_SETUP
1935 #line 324 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1936 #line 325 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19361937 { RET_TOK(CastOpVal, FPToUIOp, FPTOUI); }
19371938 YY_BREAK
19381939 case 123:
19391940 YY_RULE_SETUP
1940 #line 325 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1941 #line 326 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19411942 { RET_TOK(CastOpVal, FPToSIOp, FPTOSI); }
19421943 YY_BREAK
19431944 case 124:
19441945 YY_RULE_SETUP
1945 #line 326 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1946 #line 327 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19461947 { RET_TOK(CastOpVal, UIToFPOp, UITOFP); }
19471948 YY_BREAK
19481949 case 125:
19491950 YY_RULE_SETUP
1950 #line 327 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1951 #line 328 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19511952 { RET_TOK(CastOpVal, SIToFPOp, SITOFP); }
19521953 YY_BREAK
19531954 case 126:
19541955 YY_RULE_SETUP
1955 #line 328 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1956 #line 329 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19561957 { RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); }
19571958 YY_BREAK
19581959 case 127:
19591960 YY_RULE_SETUP
1960 #line 329 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1961 #line 330 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19611962 { RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); }
19621963 YY_BREAK
19631964 case 128:
19641965 YY_RULE_SETUP
1965 #line 330 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1966 #line 331 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19661967 { RET_TOK(CastOpVal, BitCastOp, BITCAST); }
19671968 YY_BREAK
19681969 case 129:
19691970 YY_RULE_SETUP
1970 #line 331 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1971 #line 332 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19711972 { RET_TOK(OtherOpVal, SelectOp, SELECT); }
19721973 YY_BREAK
19731974 case 130:
19741975 YY_RULE_SETUP
1975 #line 332 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1976 #line 333 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19761977 { return VANEXT_old; }
19771978 YY_BREAK
19781979 case 131:
19791980 YY_RULE_SETUP
1980 #line 333 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1981 #line 334 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19811982 { return VAARG_old; }
19821983 YY_BREAK
19831984 case 132:
19841985 YY_RULE_SETUP
1985 #line 334 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1986 #line 335 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19861987 { RET_TOK(OtherOpVal, VAArg , VAARG); }
19871988 YY_BREAK
19881989 case 133:
19891990 YY_RULE_SETUP
1990 #line 335 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1991 #line 336 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19911992 { RET_TOK(TermOpVal, RetOp, RET); }
19921993 YY_BREAK
19931994 case 134:
19941995 YY_RULE_SETUP
1995 #line 336 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1996 #line 337 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19961997 { RET_TOK(TermOpVal, BrOp, BR); }
19971998 YY_BREAK
19981999 case 135:
19992000 YY_RULE_SETUP
2000 #line 337 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2001 #line 338 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20012002 { RET_TOK(TermOpVal, SwitchOp, SWITCH); }
20022003 YY_BREAK
20032004 case 136:
20042005 YY_RULE_SETUP
2005 #line 338 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2006 #line 339 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20062007 { RET_TOK(TermOpVal, InvokeOp, INVOKE); }
20072008 YY_BREAK
20082009 case 137:
20092010 YY_RULE_SETUP
2010 #line 339 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2011 #line 340 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20112012 { return UNWIND; }
20122013 YY_BREAK
20132014 case 138:
20142015 YY_RULE_SETUP
2015 #line 340 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2016 #line 341 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20162017 { RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); }
20172018 YY_BREAK
20182019 case 139:
20192020 YY_RULE_SETUP
2020 #line 342 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2021 #line 343 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20212022 { RET_TOK(MemOpVal, MallocOp, MALLOC); }
20222023 YY_BREAK
20232024 case 140:
20242025 YY_RULE_SETUP
2025 #line 343 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2026 #line 344 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20262027 { RET_TOK(MemOpVal, AllocaOp, ALLOCA); }
20272028 YY_BREAK
20282029 case 141:
20292030 YY_RULE_SETUP
2030 #line 344 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2031 #line 345 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20312032 { RET_TOK(MemOpVal, FreeOp, FREE); }
20322033 YY_BREAK
20332034 case 142:
20342035 YY_RULE_SETUP
2035 #line 345 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2036 #line 346 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20362037 { RET_TOK(MemOpVal, LoadOp, LOAD); }
20372038 YY_BREAK
20382039 case 143:
20392040 YY_RULE_SETUP
2040 #line 346 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2041 #line 347 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20412042 { RET_TOK(MemOpVal, StoreOp, STORE); }
20422043 YY_BREAK
20432044 case 144:
20442045 YY_RULE_SETUP
2045 #line 347 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2046 #line 348 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20462047 { RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); }
20472048 YY_BREAK
20482049 case 145:
20492050 YY_RULE_SETUP
2050 #line 349 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2051 #line 350 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20512052 { RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); }
20522053 YY_BREAK
20532054 case 146:
20542055 YY_RULE_SETUP
2055 #line 350 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2056 #line 351 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20562057 { RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); }
20572058 YY_BREAK
20582059 case 147:
20592060 YY_RULE_SETUP
2060 #line 351 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2061 #line 352 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20612062 { RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); }
20622063 YY_BREAK
20632064 case 148:
20642065 YY_RULE_SETUP
2065 #line 354 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2066 #line 355 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20662067 {
20672068 UnEscapeLexed(yytext+1);
20682069 Upgradelval.StrVal = strdup(yytext+1); // Skip %
20712072 YY_BREAK
20722073 case 149:
20732074 YY_RULE_SETUP
2074 #line 359 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2075 #line 360 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20752076 {
20762077 yytext[strlen(yytext)-1] = 0; // nuke colon
20772078 UnEscapeLexed(yytext);
20812082 YY_BREAK
20822083 case 150:
20832084 YY_RULE_SETUP
2084 #line 365 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2085 #line 366 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20852086 {
20862087 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
20872088 UnEscapeLexed(yytext+1);
20912092 YY_BREAK
20922093 case 151:
20932094 YY_RULE_SETUP
2094 #line 372 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2095 #line 373 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20952096 { // Note that we cannot unescape a string constant here! The
20962097 // string constant might contain a \00 which would not be
20972098 // understood by the string stuff. It is valid to make a
21042105 YY_BREAK
21052106 case 152:
21062107 YY_RULE_SETUP
2107 #line 383 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2108 #line 384 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21082109 { Upgradelval.UInt64Val = atoull(yytext); return EUINT64VAL; }
21092110 YY_BREAK
21102111 case 153:
21112112 YY_RULE_SETUP
2112 #line 384 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2113 #line 385 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21132114 {
21142115 uint64_t Val = atoull(yytext+1);
21152116 // +1: we have bigger negative range
21212122 YY_BREAK
21222123 case 154:
21232124 YY_RULE_SETUP
2124 #line 392 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2125 #line 393 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21252126 {
21262127 Upgradelval.UInt64Val = HexIntToVal(yytext+3);
21272128 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
21292130 YY_BREAK
21302131 case 155:
21312132 YY_RULE_SETUP
2132 #line 397 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2133 #line 398 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21332134 {
21342135 uint64_t Val = atoull(yytext+1);
21352136 if ((unsigned)Val != Val)
21402141 YY_BREAK
21412142 case 156:
21422143 YY_RULE_SETUP
2143 #line 404 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2144 #line 405 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21442145 {
21452146 uint64_t Val = atoull(yytext+2);
21462147 // +1: we have bigger negative range
21522153 YY_BREAK
21532154 case 157:
21542155 YY_RULE_SETUP
2155 #line 413 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2156 #line 414 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21562157 { Upgradelval.FPVal = new APFloat(atof(yytext)); return FPVAL; }
21572158 YY_BREAK
21582159 case 158:
21592160 YY_RULE_SETUP
2160 #line 414 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2161 #line 415 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21612162 { Upgradelval.FPVal = new APFloat(HexToFP(yytext));
21622163 return FPVAL;
21632164 }
21642165 YY_BREAK
21652166 case YY_STATE_EOF(INITIAL):
2166 #line 418 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2167 #line 419 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21672168 {
21682169 /* Make sure to free the internal buffers for flex when we are
21692170 * done reading our input!
21742175 YY_BREAK
21752176 case 159:
21762177 YY_RULE_SETUP
2177 #line 426 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2178 #line 427 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21782179 { /* Ignore whitespace */ }
21792180 YY_BREAK
21802181 case 160:
21812182 YY_RULE_SETUP
2182 #line 427 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2183 #line 428 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21832184 { return yytext[0]; }
21842185 YY_BREAK
21852186 case 161:
21862187 YY_RULE_SETUP
2187 #line 429 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2188 #line 430 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21882189 YY_FATAL_ERROR( "flex scanner jammed" );
21892190 YY_BREAK
2190 #line 2192 "UpgradeLexer.cpp"
2191 #line 2193 "UpgradeLexer.cpp"
21912192
21922193 case YY_END_OF_BUFFER:
21932194 {
30693070 return 0;
30703071 }
30713072 #endif
3072 #line 429 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
3073
3073 #line 430 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
3074
77 //===----------------------------------------------------------------------===//
88 //
99 // This file implements the flex scanner for LLVM 1.9 assembly languages files.
10 // This doesn't handle long double constants, since LLVM 1.9 did not have them.
1011 //
1112 //===----------------------------------------------------------------------===*/
1213
77 //===----------------------------------------------------------------------===//
88 //
99 // This file implements the flex scanner for LLVM 1.9 assembly languages files.
10 // This doesn't handle long double constants, since LLVM 1.9 did not have them.
1011 //
1112 //===----------------------------------------------------------------------===*/
1213