llvm.org GIT mirror llvm / 83eaae1
Remove a duplicative binding. Patch by Mahadevan R. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51238 91177308-0d34-0410-b5e6-96231b3b80d8 Gordon Henriksen 12 years ago
6 changed file(s) with 288 addition(s) and 296 deletion(s). Raw diff Collapse all Expand all
328328 }
329329
330330 CAMLprim value llvm_refine_type(LLVMTypeRef AbstractTy, LLVMTypeRef ConcreteTy){
331 LLVMRefineAbstractType(AbstractTy, ConcreteTy);
331 LLVMRefineType(AbstractTy, ConcreteTy);
332332 return Val_unit;
333333 }
334334
222222
223223 /** See llvm::LLVMTypeKind::getTypeID. */
224224 LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty);
225
226 /** See llvm::DerivedType::refineAbstractTypeTo. */
227 void LLVMRefineAbstractType(LLVMTypeRef AbstractType, LLVMTypeRef ConcreteType);
228225
229226 /* Operations on integer types */
230227 LLVMTypeRef LLVMInt1Type(void);
383383
384384
385385 /* Copy the first part of user declarations. */
386 #line 14 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
386 #line 14 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
387387
388388 #include "ParserInternals.h"
389389 #include "llvm/CallingConv.h"
13391339
13401340 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
13411341 typedef union YYSTYPE
1342 #line 949 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
1342 #line 949 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
13431343 {
13441344 llvm::Module *ModuleVal;
13451345 llvm::Function *FunctionVal;
35023502 switch (yyn)
35033503 {
35043504 case 29:
3505 #line 1117 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3505 #line 1117 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35063506 { (yyval.IPredicate) = ICmpInst::ICMP_EQ; ;}
35073507 break;
35083508
35093509 case 30:
3510 #line 1117 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3510 #line 1117 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35113511 { (yyval.IPredicate) = ICmpInst::ICMP_NE; ;}
35123512 break;
35133513
35143514 case 31:
3515 #line 1118 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3515 #line 1118 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35163516 { (yyval.IPredicate) = ICmpInst::ICMP_SLT; ;}
35173517 break;
35183518
35193519 case 32:
3520 #line 1118 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3520 #line 1118 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35213521 { (yyval.IPredicate) = ICmpInst::ICMP_SGT; ;}
35223522 break;
35233523
35243524 case 33:
3525 #line 1119 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3525 #line 1119 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35263526 { (yyval.IPredicate) = ICmpInst::ICMP_SLE; ;}
35273527 break;
35283528
35293529 case 34:
3530 #line 1119 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3530 #line 1119 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35313531 { (yyval.IPredicate) = ICmpInst::ICMP_SGE; ;}
35323532 break;
35333533
35343534 case 35:
3535 #line 1120 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3535 #line 1120 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35363536 { (yyval.IPredicate) = ICmpInst::ICMP_ULT; ;}
35373537 break;
35383538
35393539 case 36:
3540 #line 1120 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3540 #line 1120 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35413541 { (yyval.IPredicate) = ICmpInst::ICMP_UGT; ;}
35423542 break;
35433543
35443544 case 37:
3545 #line 1121 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3545 #line 1121 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35463546 { (yyval.IPredicate) = ICmpInst::ICMP_ULE; ;}
35473547 break;
35483548
35493549 case 38:
3550 #line 1121 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3550 #line 1121 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35513551 { (yyval.IPredicate) = ICmpInst::ICMP_UGE; ;}
35523552 break;
35533553
35543554 case 39:
3555 #line 1125 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3555 #line 1125 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35563556 { (yyval.FPredicate) = FCmpInst::FCMP_OEQ; ;}
35573557 break;
35583558
35593559 case 40:
3560 #line 1125 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3560 #line 1125 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35613561 { (yyval.FPredicate) = FCmpInst::FCMP_ONE; ;}
35623562 break;
35633563
35643564 case 41:
3565 #line 1126 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3565 #line 1126 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35663566 { (yyval.FPredicate) = FCmpInst::FCMP_OLT; ;}
35673567 break;
35683568
35693569 case 42:
3570 #line 1126 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3570 #line 1126 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35713571 { (yyval.FPredicate) = FCmpInst::FCMP_OGT; ;}
35723572 break;
35733573
35743574 case 43:
3575 #line 1127 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3575 #line 1127 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35763576 { (yyval.FPredicate) = FCmpInst::FCMP_OLE; ;}
35773577 break;
35783578
35793579 case 44:
3580 #line 1127 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3580 #line 1127 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35813581 { (yyval.FPredicate) = FCmpInst::FCMP_OGE; ;}
35823582 break;
35833583
35843584 case 45:
3585 #line 1128 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3585 #line 1128 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35863586 { (yyval.FPredicate) = FCmpInst::FCMP_ORD; ;}
35873587 break;
35883588
35893589 case 46:
3590 #line 1128 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3590 #line 1128 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35913591 { (yyval.FPredicate) = FCmpInst::FCMP_UNO; ;}
35923592 break;
35933593
35943594 case 47:
3595 #line 1129 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3595 #line 1129 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
35963596 { (yyval.FPredicate) = FCmpInst::FCMP_UEQ; ;}
35973597 break;
35983598
35993599 case 48:
3600 #line 1129 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3600 #line 1129 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36013601 { (yyval.FPredicate) = FCmpInst::FCMP_UNE; ;}
36023602 break;
36033603
36043604 case 49:
3605 #line 1130 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3605 #line 1130 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36063606 { (yyval.FPredicate) = FCmpInst::FCMP_ULT; ;}
36073607 break;
36083608
36093609 case 50:
3610 #line 1130 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3610 #line 1130 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36113611 { (yyval.FPredicate) = FCmpInst::FCMP_UGT; ;}
36123612 break;
36133613
36143614 case 51:
3615 #line 1131 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3615 #line 1131 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36163616 { (yyval.FPredicate) = FCmpInst::FCMP_ULE; ;}
36173617 break;
36183618
36193619 case 52:
3620 #line 1131 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3620 #line 1131 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36213621 { (yyval.FPredicate) = FCmpInst::FCMP_UGE; ;}
36223622 break;
36233623
36243624 case 53:
3625 #line 1132 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3625 #line 1132 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36263626 { (yyval.FPredicate) = FCmpInst::FCMP_TRUE; ;}
36273627 break;
36283628
36293629 case 54:
3630 #line 1133 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3630 #line 1133 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36313631 { (yyval.FPredicate) = FCmpInst::FCMP_FALSE; ;}
36323632 break;
36333633
36343634 case 65:
3635 #line 1142 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3635 #line 1142 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36363636 { (yyval.StrVal) = 0; ;}
36373637 break;
36383638
36393639 case 66:
3640 #line 1144 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3640 #line 1144 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36413641 { (yyval.UIntVal)=(yyvsp[(3) - (4)].UInt64Val); ;}
36423642 break;
36433643
36443644 case 67:
3645 #line 1145 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3645 #line 1145 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36463646 { (yyval.UIntVal)=0; ;}
36473647 break;
36483648
36493649 case 68:
3650 #line 1149 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3650 #line 1149 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36513651 {
36523652 (yyval.StrVal) = (yyvsp[(1) - (2)].StrVal);
36533653 CHECK_FOR_ERROR
36553655 break;
36563656
36573657 case 69:
3658 #line 1153 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3658 #line 1153 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36593659 {
36603660 (yyval.StrVal) = 0;
36613661 CHECK_FOR_ERROR
36633663 break;
36643664
36653665 case 73:
3666 #line 1161 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3666 #line 1161 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36673667 {
36683668 (yyval.StrVal) = 0;
36693669 CHECK_FOR_ERROR
36713671 break;
36723672
36733673 case 74:
3674 #line 1166 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3674 #line 1166 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36753675 {
36763676 (yyval.StrVal) = (yyvsp[(1) - (2)].StrVal);
36773677 CHECK_FOR_ERROR
36793679 break;
36803680
36813681 case 75:
3682 #line 1172 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3682 #line 1172 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36833683 { (yyval.Linkage) = GlobalValue::InternalLinkage; ;}
36843684 break;
36853685
36863686 case 76:
3687 #line 1173 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3687 #line 1173 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36883688 { (yyval.Linkage) = GlobalValue::WeakLinkage; ;}
36893689 break;
36903690
36913691 case 77:
3692 #line 1174 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3692 #line 1174 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36933693 { (yyval.Linkage) = GlobalValue::LinkOnceLinkage; ;}
36943694 break;
36953695
36963696 case 78:
3697 #line 1175 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3697 #line 1175 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
36983698 { (yyval.Linkage) = GlobalValue::AppendingLinkage; ;}
36993699 break;
37003700
37013701 case 79:
3702 #line 1176 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3702 #line 1176 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37033703 { (yyval.Linkage) = GlobalValue::DLLExportLinkage; ;}
37043704 break;
37053705
37063706 case 80:
3707 #line 1177 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3707 #line 1177 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37083708 { (yyval.Linkage) = GlobalValue::CommonLinkage; ;}
37093709 break;
37103710
37113711 case 81:
3712 #line 1181 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3712 #line 1181 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37133713 { (yyval.Linkage) = GlobalValue::DLLImportLinkage; ;}
37143714 break;
37153715
37163716 case 82:
3717 #line 1182 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3717 #line 1182 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37183718 { (yyval.Linkage) = GlobalValue::ExternalWeakLinkage; ;}
37193719 break;
37203720
37213721 case 83:
3722 #line 1183 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3722 #line 1183 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37233723 { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;}
37243724 break;
37253725
37263726 case 84:
3727 #line 1187 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3727 #line 1187 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37283728 { (yyval.Visibility) = GlobalValue::DefaultVisibility; ;}
37293729 break;
37303730
37313731 case 85:
3732 #line 1188 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3732 #line 1188 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37333733 { (yyval.Visibility) = GlobalValue::DefaultVisibility; ;}
37343734 break;
37353735
37363736 case 86:
3737 #line 1189 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3737 #line 1189 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37383738 { (yyval.Visibility) = GlobalValue::HiddenVisibility; ;}
37393739 break;
37403740
37413741 case 87:
3742 #line 1190 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3742 #line 1190 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37433743 { (yyval.Visibility) = GlobalValue::ProtectedVisibility; ;}
37443744 break;
37453745
37463746 case 88:
3747 #line 1194 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3747 #line 1194 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37483748 { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;}
37493749 break;
37503750
37513751 case 89:
3752 #line 1195 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3752 #line 1195 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37533753 { (yyval.Linkage) = GlobalValue::DLLImportLinkage; ;}
37543754 break;
37553755
37563756 case 90:
3757 #line 1196 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3757 #line 1196 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37583758 { (yyval.Linkage) = GlobalValue::ExternalWeakLinkage; ;}
37593759 break;
37603760
37613761 case 91:
3762 #line 1200 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3762 #line 1200 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37633763 { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;}
37643764 break;
37653765
37663766 case 92:
3767 #line 1201 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3767 #line 1201 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37683768 { (yyval.Linkage) = GlobalValue::InternalLinkage; ;}
37693769 break;
37703770
37713771 case 93:
3772 #line 1202 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3772 #line 1202 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37733773 { (yyval.Linkage) = GlobalValue::LinkOnceLinkage; ;}
37743774 break;
37753775
37763776 case 94:
3777 #line 1203 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3777 #line 1203 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37783778 { (yyval.Linkage) = GlobalValue::WeakLinkage; ;}
37793779 break;
37803780
37813781 case 95:
3782 #line 1204 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3782 #line 1204 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37833783 { (yyval.Linkage) = GlobalValue::DLLExportLinkage; ;}
37843784 break;
37853785
37863786 case 96:
3787 #line 1208 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3787 #line 1208 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37883788 { (yyval.Linkage) = GlobalValue::ExternalLinkage; ;}
37893789 break;
37903790
37913791 case 97:
3792 #line 1209 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3792 #line 1209 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37933793 { (yyval.Linkage) = GlobalValue::WeakLinkage; ;}
37943794 break;
37953795
37963796 case 98:
3797 #line 1210 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3797 #line 1210 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
37983798 { (yyval.Linkage) = GlobalValue::InternalLinkage; ;}
37993799 break;
38003800
38013801 case 99:
3802 #line 1213 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3802 #line 1213 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38033803 { (yyval.UIntVal) = CallingConv::C; ;}
38043804 break;
38053805
38063806 case 100:
3807 #line 1214 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3807 #line 1214 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38083808 { (yyval.UIntVal) = CallingConv::C; ;}
38093809 break;
38103810
38113811 case 101:
3812 #line 1215 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3812 #line 1215 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38133813 { (yyval.UIntVal) = CallingConv::Fast; ;}
38143814 break;
38153815
38163816 case 102:
3817 #line 1216 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3817 #line 1216 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38183818 { (yyval.UIntVal) = CallingConv::Cold; ;}
38193819 break;
38203820
38213821 case 103:
3822 #line 1217 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3822 #line 1217 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38233823 { (yyval.UIntVal) = CallingConv::X86_StdCall; ;}
38243824 break;
38253825
38263826 case 104:
3827 #line 1218 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3827 #line 1218 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38283828 { (yyval.UIntVal) = CallingConv::X86_FastCall; ;}
38293829 break;
38303830
38313831 case 105:
3832 #line 1219 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3832 #line 1219 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38333833 {
38343834 if ((unsigned)(yyvsp[(2) - (2)].UInt64Val) != (yyvsp[(2) - (2)].UInt64Val))
38353835 GEN_ERROR("Calling conv too large");
38393839 break;
38403840
38413841 case 106:
3842 #line 1226 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3842 #line 1226 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38433843 { (yyval.ParamAttrs) = ParamAttr::ZExt; ;}
38443844 break;
38453845
38463846 case 107:
3847 #line 1227 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3847 #line 1227 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38483848 { (yyval.ParamAttrs) = ParamAttr::ZExt; ;}
38493849 break;
38503850
38513851 case 108:
3852 #line 1228 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3852 #line 1228 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38533853 { (yyval.ParamAttrs) = ParamAttr::SExt; ;}
38543854 break;
38553855
38563856 case 109:
3857 #line 1229 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3857 #line 1229 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38583858 { (yyval.ParamAttrs) = ParamAttr::SExt; ;}
38593859 break;
38603860
38613861 case 110:
3862 #line 1230 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3862 #line 1230 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38633863 { (yyval.ParamAttrs) = ParamAttr::InReg; ;}
38643864 break;
38653865
38663866 case 111:
3867 #line 1231 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3867 #line 1231 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38683868 { (yyval.ParamAttrs) = ParamAttr::StructRet; ;}
38693869 break;
38703870
38713871 case 112:
3872 #line 1232 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3872 #line 1232 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38733873 { (yyval.ParamAttrs) = ParamAttr::NoAlias; ;}
38743874 break;
38753875
38763876 case 113:
3877 #line 1233 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3877 #line 1233 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38783878 { (yyval.ParamAttrs) = ParamAttr::ByVal; ;}
38793879 break;
38803880
38813881 case 114:
3882 #line 1234 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3882 #line 1234 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38833883 { (yyval.ParamAttrs) = ParamAttr::Nest; ;}
38843884 break;
38853885
38863886 case 115:
3887 #line 1235 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3887 #line 1235 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38883888 { (yyval.ParamAttrs) =
38893889 ParamAttr::constructAlignmentFromInt((yyvsp[(2) - (2)].UInt64Val)); ;}
38903890 break;
38913891
38923892 case 116:
3893 #line 1239 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3893 #line 1239 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38943894 { (yyval.ParamAttrs) = ParamAttr::None; ;}
38953895 break;
38963896
38973897 case 117:
3898 #line 1240 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3898 #line 1240 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
38993899 {
39003900 (yyval.ParamAttrs) = (yyvsp[(1) - (2)].ParamAttrs) | (yyvsp[(2) - (2)].ParamAttrs);
39013901 ;}
39023902 break;
39033903
39043904 case 118:
3905 #line 1245 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3905 #line 1245 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39063906 { (yyval.ParamAttrs) = ParamAttr::NoReturn; ;}
39073907 break;
39083908
39093909 case 119:
3910 #line 1246 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3910 #line 1246 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39113911 { (yyval.ParamAttrs) = ParamAttr::NoUnwind; ;}
39123912 break;
39133913
39143914 case 120:
3915 #line 1247 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3915 #line 1247 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39163916 { (yyval.ParamAttrs) = ParamAttr::ZExt; ;}
39173917 break;
39183918
39193919 case 121:
3920 #line 1248 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3920 #line 1248 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39213921 { (yyval.ParamAttrs) = ParamAttr::SExt; ;}
39223922 break;
39233923
39243924 case 122:
3925 #line 1249 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3925 #line 1249 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39263926 { (yyval.ParamAttrs) = ParamAttr::ReadNone; ;}
39273927 break;
39283928
39293929 case 123:
3930 #line 1250 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3930 #line 1250 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39313931 { (yyval.ParamAttrs) = ParamAttr::ReadOnly; ;}
39323932 break;
39333933
39343934 case 124:
3935 #line 1253 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3935 #line 1253 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39363936 { (yyval.ParamAttrs) = ParamAttr::None; ;}
39373937 break;
39383938
39393939 case 125:
3940 #line 1254 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3940 #line 1254 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39413941 {
39423942 (yyval.ParamAttrs) = (yyvsp[(1) - (2)].ParamAttrs) | (yyvsp[(2) - (2)].ParamAttrs);
39433943 ;}
39443944 break;
39453945
39463946 case 126:
3947 #line 1259 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3947 #line 1259 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39483948 { (yyval.StrVal) = 0; ;}
39493949 break;
39503950
39513951 case 127:
3952 #line 1260 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3952 #line 1260 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39533953 {
39543954 (yyval.StrVal) = (yyvsp[(2) - (2)].StrVal);
39553955 ;}
39563956 break;
39573957
39583958 case 128:
3959 #line 1267 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3959 #line 1267 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39603960 { (yyval.UIntVal) = 0; ;}
39613961 break;
39623962
39633963 case 129:
3964 #line 1268 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3964 #line 1268 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39653965 {
39663966 (yyval.UIntVal) = (yyvsp[(2) - (2)].UInt64Val);
39673967 if ((yyval.UIntVal) != 0 && !isPowerOf2_32((yyval.UIntVal)))
39713971 break;
39723972
39733973 case 130:
3974 #line 1274 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3974 #line 1274 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39753975 { (yyval.UIntVal) = 0; ;}
39763976 break;
39773977
39783978 case 131:
3979 #line 1275 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3979 #line 1275 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39803980 {
39813981 (yyval.UIntVal) = (yyvsp[(3) - (3)].UInt64Val);
39823982 if ((yyval.UIntVal) != 0 && !isPowerOf2_32((yyval.UIntVal)))
39863986 break;
39873987
39883988 case 132:
3989 #line 1284 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
3989 #line 1284 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
39903990 {
39913991 for (unsigned i = 0, e = (yyvsp[(2) - (2)].StrVal)->length(); i != e; ++i)
39923992 if ((*(yyvsp[(2) - (2)].StrVal))[i] == '"' || (*(yyvsp[(2) - (2)].StrVal))[i] == '\\')
39973997 break;
39983998
39993999 case 133:
4000 #line 1292 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4000 #line 1292 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40014001 { (yyval.StrVal) = 0; ;}
40024002 break;
40034003
40044004 case 134:
4005 #line 1293 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4005 #line 1293 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40064006 { (yyval.StrVal) = (yyvsp[(1) - (1)].StrVal); ;}
40074007 break;
40084008
40094009 case 135:
4010 #line 1298 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4010 #line 1298 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40114011 {;}
40124012 break;
40134013
40144014 case 136:
4015 #line 1299 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4015 #line 1299 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40164016 {;}
40174017 break;
40184018
40194019 case 137:
4020 #line 1300 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4020 #line 1300 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40214021 {
40224022 CurGV->setSection(*(yyvsp[(1) - (1)].StrVal));
40234023 delete (yyvsp[(1) - (1)].StrVal);
40264026 break;
40274027
40284028 case 138:
4029 #line 1305 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4029 #line 1305 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40304030 {
40314031 if ((yyvsp[(2) - (2)].UInt64Val) != 0 && !isPowerOf2_32((yyvsp[(2) - (2)].UInt64Val)))
40324032 GEN_ERROR("Alignment must be a power of two");
40364036 break;
40374037
40384038 case 146:
4039 #line 1321 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4039 #line 1321 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40404040 {
40414041 (yyval.TypeVal) = new PATypeHolder(OpaqueType::get());
40424042 CHECK_FOR_ERROR
40444044 break;
40454045
40464046 case 147:
4047 #line 1325 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4047 #line 1325 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40484048 {
40494049 (yyval.TypeVal) = new PATypeHolder((yyvsp[(1) - (1)].PrimType));
40504050 CHECK_FOR_ERROR
40524052 break;
40534053
40544054 case 148:
4055 #line 1329 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4055 #line 1329 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40564056 { // Pointer type?
40574057 if (*(yyvsp[(1) - (3)].TypeVal) == Type::LabelTy)
40584058 GEN_ERROR("Cannot form a pointer to a basic block");
40634063 break;
40644064
40654065 case 149:
4066 #line 1336 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4066 #line 1336 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40674067 { // Named types are also simple types...
40684068 const Type* tmp = getTypeVal((yyvsp[(1) - (1)].ValIDVal));
40694069 CHECK_FOR_ERROR
40724072 break;
40734073
40744074 case 150:
4075 #line 1341 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4075 #line 1341 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40764076 { // Type UpReference
40774077 if ((yyvsp[(2) - (2)].UInt64Val) > (uint64_t)~0U) GEN_ERROR("Value out of range");
40784078 OpaqueType *OT = OpaqueType::get(); // Use temporary placeholder
40844084 break;
40854085
40864086 case 151:
4087 #line 1349 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4087 #line 1349 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
40884088 {
40894089 // Allow but ignore attributes on function types; this permits auto-upgrade.
40904090 // FIXME: remove in LLVM 3.0.
41174117 break;
41184118
41194119 case 152:
4120 #line 1378 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4120 #line 1378 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
41214121 {
41224122 // Allow but ignore attributes on function types; this permits auto-upgrade.
41234123 // FIXME: remove in LLVM 3.0.
41454145 break;
41464146
41474147 case 153:
4148 #line 1403 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4148 #line 1403 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
41494149 { // Sized array type?
41504150 (yyval.TypeVal) = new PATypeHolder(HandleUpRefs(ArrayType::get(*(yyvsp[(4) - (5)].TypeVal), (unsigned)(yyvsp[(2) - (5)].UInt64Val))));
41514151 delete (yyvsp[(4) - (5)].TypeVal);
41544154 break;
41554155
41564156 case 154:
4157 #line 1408 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4157 #line 1408 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
41584158 { // Vector type?
41594159 const llvm::Type* ElemTy = (yyvsp[(4) - (5)].TypeVal)->get();
41604160 if ((unsigned)(yyvsp[(2) - (5)].UInt64Val) != (yyvsp[(2) - (5)].UInt64Val))
41684168 break;
41694169
41704170 case 155:
4171 #line 1418 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4171 #line 1418 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
41724172 { // Structure type?
41734173 std::vector Elements;
41744174 for (std::list::iterator I = (yyvsp[(2) - (3)].TypeList)->begin(),
41824182 break;
41834183
41844184 case 156:
4185 #line 1428 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4185 #line 1428 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
41864186 { // Empty structure type?
41874187 (yyval.TypeVal) = new PATypeHolder(StructType::get(std::vector()));
41884188 CHECK_FOR_ERROR
41904190 break;
41914191
41924192 case 157:
4193 #line 1432 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4193 #line 1432 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
41944194 {
41954195 std::vector Elements;
41964196 for (std::list::iterator I = (yyvsp[(3) - (5)].TypeList)->begin(),
42044204 break;
42054205
42064206 case 158:
4207 #line 1442 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4207 #line 1442 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42084208 { // Empty structure type?
42094209 (yyval.TypeVal) = new PATypeHolder(StructType::get(std::vector(), true));
42104210 CHECK_FOR_ERROR
42124212 break;
42134213
42144214 case 159:
4215 #line 1449 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4215 #line 1449 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42164216 {
42174217 // Allow but ignore attributes on function types; this permits auto-upgrade.
42184218 // FIXME: remove in LLVM 3.0.
42224222 break;
42234223
42244224 case 160:
4225 #line 1458 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4225 #line 1458 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42264226 {
42274227 if (!UpRefs.empty())
42284228 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (1)].TypeVal))->getDescription());
42334233 break;
42344234
42354235 case 161:
4236 #line 1465 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4236 #line 1465 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42374237 {
42384238 (yyval.TypeVal) = new PATypeHolder(Type::VoidTy);
42394239 ;}
42404240 break;
42414241
42424242 case 162:
4243 #line 1470 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4243 #line 1470 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42444244 {
42454245 (yyval.TypeWithAttrsList) = new TypeWithAttrsList();
42464246 (yyval.TypeWithAttrsList)->push_back((yyvsp[(1) - (1)].TypeWithAttrs));
42494249 break;
42504250
42514251 case 163:
4252 #line 1475 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4252 #line 1475 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42534253 {
42544254 ((yyval.TypeWithAttrsList)=(yyvsp[(1) - (3)].TypeWithAttrsList))->push_back((yyvsp[(3) - (3)].TypeWithAttrs));
42554255 CHECK_FOR_ERROR
42574257 break;
42584258
42594259 case 165:
4260 #line 1483 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4260 #line 1483 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42614261 {
42624262 (yyval.TypeWithAttrsList)=(yyvsp[(1) - (3)].TypeWithAttrsList);
42634263 TypeWithAttrs TWA; TWA.Attrs = ParamAttr::None;
42684268 break;
42694269
42704270 case 166:
4271 #line 1490 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4271 #line 1490 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42724272 {
42734273 (yyval.TypeWithAttrsList) = new TypeWithAttrsList;
42744274 TypeWithAttrs TWA; TWA.Attrs = ParamAttr::None;
42794279 break;
42804280
42814281 case 167:
4282 #line 1497 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4282 #line 1497 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42834283 {
42844284 (yyval.TypeWithAttrsList) = new TypeWithAttrsList();
42854285 CHECK_FOR_ERROR
42874287 break;
42884288
42894289 case 168:
4290 #line 1505 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4290 #line 1505 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
42914291 {
42924292 (yyval.TypeList) = new std::list();
42934293 (yyval.TypeList)->push_back(*(yyvsp[(1) - (1)].TypeVal));
42974297 break;
42984298
42994299 case 169:
4300 #line 1511 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4300 #line 1511 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
43014301 {
43024302 ((yyval.TypeList)=(yyvsp[(1) - (3)].TypeList))->push_back(*(yyvsp[(3) - (3)].TypeVal));
43034303 delete (yyvsp[(3) - (3)].TypeVal);
43064306 break;
43074307
43084308 case 170:
4309 #line 1523 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4309 #line 1523 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
43104310 { // Nonempty unsized arr
43114311 if (!UpRefs.empty())
43124312 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (4)].TypeVal))->getDescription());
43384338 break;
43394339
43404340 case 171:
4341 #line 1551 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4341 #line 1551 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
43424342 {
43434343 if (!UpRefs.empty())
43444344 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (3)].TypeVal))->getDescription());
43584358 break;
43594359
43604360 case 172:
4361 #line 1567 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4361 #line 1567 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
43624362 {
43634363 if (!UpRefs.empty())
43644364 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (3)].TypeVal))->getDescription());
43894389 break;
43904390
43914391 case 173:
4392 #line 1594 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4392 #line 1594 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
43934393 { // Nonempty unsized arr
43944394 if (!UpRefs.empty())
43954395 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (4)].TypeVal))->getDescription());
44214421 break;
44224422
44234423 case 174:
4424 #line 1622 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4424 #line 1622 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
44254425 {
44264426 const StructType *STy = dyn_cast((yyvsp[(1) - (4)].TypeVal)->get());
44274427 if (STy == 0)
44514451 break;
44524452
44534453 case 175:
4454 #line 1648 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4454 #line 1648 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
44554455 {
44564456 if (!UpRefs.empty())
44574457 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (3)].TypeVal))->getDescription());
44754475 break;
44764476
44774477 case 176:
4478 #line 1668 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4478 #line 1668 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
44794479 {
44804480 const StructType *STy = dyn_cast((yyvsp[(1) - (6)].TypeVal)->get());
44814481 if (STy == 0)
45054505 break;
45064506
45074507 case 177:
4508 #line 1694 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4508 #line 1694 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
45094509 {
45104510 if (!UpRefs.empty())
45114511 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (5)].TypeVal))->getDescription());
45294529 break;
45304530
45314531 case 178:
4532 #line 1714 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4532 #line 1714 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
45334533 {
45344534 if (!UpRefs.empty())
45354535 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription());
45454545 break;
45464546
45474547 case 179:
4548 #line 1726 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4548 #line 1726 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
45494549 {
45504550 if (!UpRefs.empty())
45514551 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription());
45564556 break;
45574557
45584558 case 180:
4559 #line 1733 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4559 #line 1733 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
45604560 {
45614561 if (!UpRefs.empty())
45624562 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription());
46264626 break;
46274627
46284628 case 181:
4629 #line 1799 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4629 #line 1799 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
46304630 {
46314631 if (!UpRefs.empty())
46324632 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription());
46404640 break;
46414641
46424642 case 182:
4643 #line 1809 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4643 #line 1809 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
46444644 {
46454645 if (!UpRefs.empty())
46464646 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription());
46544654 break;
46554655
46564656 case 183:
4657 #line 1819 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4657 #line 1819 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
46584658 { // integral constants
46594659 if (!ConstantInt::isValueValidForType((yyvsp[(1) - (2)].PrimType), (yyvsp[(2) - (2)].SInt64Val)))
46604660 GEN_ERROR("Constant value doesn't fit in type");
46644664 break;
46654665
46664666 case 184:
4667 #line 1825 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4667 #line 1825 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
46684668 { // arbitrary precision integer constants
46694669 uint32_t BitWidth = cast((yyvsp[(1) - (2)].PrimType))->getBitWidth();
46704670 if ((yyvsp[(2) - (2)].APIntVal)->getBitWidth() > BitWidth) {
46784678 break;
46794679
46804680 case 185:
4681 #line 1835 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4681 #line 1835 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
46824682 { // integral constants
46834683 if (!ConstantInt::isValueValidForType((yyvsp[(1) - (2)].PrimType), (yyvsp[(2) - (2)].UInt64Val)))
46844684 GEN_ERROR("Constant value doesn't fit in type");
46884688 break;
46894689
46904690 case 186:
4691 #line 1841 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4691 #line 1841 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
46924692 { // arbitrary precision integer constants
46934693 uint32_t BitWidth = cast((yyvsp[(1) - (2)].PrimType))->getBitWidth();
46944694 if ((yyvsp[(2) - (2)].APIntVal)->getBitWidth() > BitWidth) {
47024702 break;
47034703
47044704 case 187:
4705 #line 1851 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4705 #line 1851 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
47064706 { // Boolean constants
47074707 assert(cast((yyvsp[(1) - (2)].PrimType))->getBitWidth() == 1 && "Not Bool?");
47084708 (yyval.ConstVal) = ConstantInt::getTrue();
47114711 break;
47124712
47134713 case 188:
4714 #line 1856 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4714 #line 1856 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
47154715 { // Boolean constants
47164716 assert(cast((yyvsp[(1) - (2)].PrimType))->getBitWidth() == 1 && "Not Bool?");
47174717 (yyval.ConstVal) = ConstantInt::getFalse();
47204720 break;
47214721
47224722 case 189:
4723 #line 1861 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4723 #line 1861 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
47244724 { // Floating point constants
47254725 if (!ConstantFP::isValueValidForType((yyvsp[(1) - (2)].PrimType), *(yyvsp[(2) - (2)].FPVal)))
47264726 GEN_ERROR("Floating point constant invalid for type");
47354735 break;
47364736
47374737 case 190:
4738 #line 1874 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4738 #line 1874 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
47394739 {
47404740 if (!UpRefs.empty())
47414741 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(5) - (6)].TypeVal))->getDescription());
47514751 break;
47524752
47534753 case 191:
4754 #line 1886 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4754 #line 1886 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
47554755 {
47564756 if (!isa((yyvsp[(3) - (5)].ConstVal)->getType()))
47574757 GEN_ERROR("GetElementPtr requires a pointer operand");
47764776 break;
47774777
47784778 case 192:
4779 #line 1907 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4779 #line 1907 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
47804780 {
47814781 if ((yyvsp[(3) - (8)].ConstVal)->getType() != Type::Int1Ty)
47824782 GEN_ERROR("Select condition must be of boolean type");
47884788 break;
47894789
47904790 case 193:
4791 #line 1915 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4791 #line 1915 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
47924792 {
47934793 if ((yyvsp[(3) - (6)].ConstVal)->getType() != (yyvsp[(5) - (6)].ConstVal)->getType())
47944794 GEN_ERROR("Binary operator types must match");
47984798 break;
47994799
48004800 case 194:
4801 #line 1921 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4801 #line 1921 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48024802 {
48034803 if ((yyvsp[(3) - (6)].ConstVal)->getType() != (yyvsp[(5) - (6)].ConstVal)->getType())
48044804 GEN_ERROR("Logical operator types must match");
48134813 break;
48144814
48154815 case 195:
4816 #line 1932 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4816 #line 1932 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48174817 {
48184818 if ((yyvsp[(4) - (7)].ConstVal)->getType() != (yyvsp[(6) - (7)].ConstVal)->getType())
48194819 GEN_ERROR("icmp operand types must match");
48224822 break;
48234823
48244824 case 196:
4825 #line 1937 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4825 #line 1937 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48264826 {
48274827 if ((yyvsp[(4) - (7)].ConstVal)->getType() != (yyvsp[(6) - (7)].ConstVal)->getType())
48284828 GEN_ERROR("fcmp operand types must match");
48314831 break;
48324832
48334833 case 197:
4834 #line 1942 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4834 #line 1942 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48354835 {
48364836 if ((yyvsp[(4) - (7)].ConstVal)->getType() != (yyvsp[(6) - (7)].ConstVal)->getType())
48374837 GEN_ERROR("vicmp operand types must match");
48404840 break;
48414841
48424842 case 198:
4843 #line 1947 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4843 #line 1947 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48444844 {
48454845 if ((yyvsp[(4) - (7)].ConstVal)->getType() != (yyvsp[(6) - (7)].ConstVal)->getType())
48464846 GEN_ERROR("vfcmp operand types must match");
48494849 break;
48504850
48514851 case 199:
4852 #line 1952 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4852 #line 1952 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48534853 {
48544854 if (!ExtractElementInst::isValidOperands((yyvsp[(3) - (6)].ConstVal), (yyvsp[(5) - (6)].ConstVal)))
48554855 GEN_ERROR("Invalid extractelement operands");
48594859 break;
48604860
48614861 case 200:
4862 #line 1958 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4862 #line 1958 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48634863 {
48644864 if (!InsertElementInst::isValidOperands((yyvsp[(3) - (8)].ConstVal), (yyvsp[(5) - (8)].ConstVal), (yyvsp[(7) - (8)].ConstVal)))
48654865 GEN_ERROR("Invalid insertelement operands");
48694869 break;
48704870
48714871 case 201:
4872 #line 1964 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4872 #line 1964 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48734873 {
48744874 if (!ShuffleVectorInst::isValidOperands((yyvsp[(3) - (8)].ConstVal), (yyvsp[(5) - (8)].ConstVal), (yyvsp[(7) - (8)].ConstVal)))
48754875 GEN_ERROR("Invalid shufflevector operands");
48794879 break;
48804880
48814881 case 202:
4882 #line 1973 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4882 #line 1973 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48834883 {
48844884 ((yyval.ConstVector) = (yyvsp[(1) - (3)].ConstVector))->push_back((yyvsp[(3) - (3)].ConstVal));
48854885 CHECK_FOR_ERROR
48874887 break;
48884888
48894889 case 203:
4890 #line 1977 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4890 #line 1977 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
48914891 {
48924892 (yyval.ConstVector) = new std::vector();
48934893 (yyval.ConstVector)->push_back((yyvsp[(1) - (1)].ConstVal));
48964896 break;
48974897
48984898 case 204:
4899 #line 1985 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4899 #line 1985 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49004900 { (yyval.BoolVal) = false; ;}
49014901 break;
49024902
49034903 case 205:
4904 #line 1985 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4904 #line 1985 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49054905 { (yyval.BoolVal) = true; ;}
49064906 break;
49074907
49084908 case 206:
4909 #line 1988 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4909 #line 1988 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49104910 { (yyval.BoolVal) = true; ;}
49114911 break;
49124912
49134913 case 207:
4914 #line 1988 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4914 #line 1988 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49154915 { (yyval.BoolVal) = false; ;}
49164916 break;
49174917
49184918 case 208:
4919 #line 1991 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4919 #line 1991 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49204920 {
49214921 const Type* VTy = (yyvsp[(1) - (2)].TypeVal)->get();
49224922 Value *V = getVal(VTy, (yyvsp[(2) - (2)].ValIDVal));
49324932 break;
49334933
49344934 case 209:
4935 #line 2003 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4935 #line 2003 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49364936 {
49374937 Constant *Val = (yyvsp[(3) - (6)].ConstVal);
49384938 const Type *DestTy = (yyvsp[(5) - (6)].TypeVal)->get();
49484948 break;
49494949
49504950 case 210:
4951 #line 2024 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4951 #line 2024 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49524952 {
49534953 (yyval.ModuleVal) = ParserResult = CurModule.CurrentModule;
49544954 CurModule.ModuleDone();
49574957 break;
49584958
49594959 case 211:
4960 #line 2029 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4960 #line 2029 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49614961 {
49624962 (yyval.ModuleVal) = ParserResult = CurModule.CurrentModule;
49634963 CurModule.ModuleDone();
49664966 break;
49674967
49684968 case 214:
4969 #line 2042 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4969 #line 2042 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49704970 { CurFun.isDeclare = false; ;}
49714971 break;
49724972
49734973 case 215:
4974 #line 2042 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4974 #line 2042 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49754975 {
49764976 CurFun.FunctionDone();
49774977 CHECK_FOR_ERROR
49794979 break;
49804980
49814981 case 216:
4982 #line 2046 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4982 #line 2046 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49834983 { CurFun.isDeclare = true; ;}
49844984 break;
49854985
49864986 case 217:
4987 #line 2046 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4987 #line 2046 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49884988 {
49894989 CHECK_FOR_ERROR
49904990 ;}
49914991 break;
49924992
49934993 case 218:
4994 #line 2049 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
4994 #line 2049 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
49954995 {
49964996 CHECK_FOR_ERROR
49974997 ;}
49984998 break;
49994999
50005000 case 219:
5001 #line 2052 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5001 #line 2052 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
50025002 {
50035003 if (!UpRefs.empty())
50045004 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (3)].TypeVal))->getDescription());
50265026 break;
50275027
50285028 case 220:
5029 #line 2076 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5029 #line 2076 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
50305030 {
50315031 ResolveTypeTo((yyvsp[(1) - (3)].StrVal), (yyvsp[(3) - (3)].PrimType));
50325032
50415041 break;
50425042
50435043 case 221:
5044 #line 2088 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5044 #line 2088 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
50455045 {
50465046 /* "Externally Visible" Linkage */
50475047 if ((yyvsp[(5) - (6)].ConstVal) == 0)
50535053 break;
50545054
50555055 case 222:
5056 #line 2095 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5056 #line 2095 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
50575057 {
50585058 CurGV = 0;
50595059 ;}
50605060 break;
50615061
50625062 case 223:
5063 #line 2099 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5063 #line 2099 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
50645064 {
50655065 if ((yyvsp[(6) - (7)].ConstVal) == 0)
50665066 GEN_ERROR("Global value initializer is not a constant");
50705070 break;
50715071
50725072 case 224:
5073 #line 2104 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5073 #line 2104 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
50745074 {
50755075 CurGV = 0;
50765076 ;}
50775077 break;
50785078
50795079 case 225:
5080 #line 2108 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5080 #line 2108 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
50815081 {
50825082 if (!UpRefs.empty())
50835083 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(6) - (7)].TypeVal))->getDescription());
50885088 break;
50895089
50905090 case 226:
5091 #line 2114 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5091 #line 2114 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
50925092 {
50935093 CurGV = 0;
50945094 CHECK_FOR_ERROR
50965096 break;
50975097
50985098 case 227:
5099 #line 2118 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5099 #line 2118 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
51005100 {
51015101 std::string Name;
51025102 if ((yyvsp[(1) - (5)].StrVal)) {
51405140 break;
51415141
51425142 case 228:
5143 #line 2158 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5143 #line 2158 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
51445144 {
51455145 CHECK_FOR_ERROR
51465146 ;}
51475147 break;
51485148
51495149 case 229:
5150 #line 2161 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5150 #line 2161 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
51515151 {
51525152 CHECK_FOR_ERROR
51535153 ;}
51545154 break;
51555155
51565156 case 230:
5157 #line 2167 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5157 #line 2167 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
51585158 {
51595159 const std::string &AsmSoFar = CurModule.CurrentModule->getModuleInlineAsm();
51605160 if (AsmSoFar.empty())
51675167 break;
51685168
51695169 case 231:
5170 #line 2177 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5170 #line 2177 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
51715171 {
51725172 CurModule.CurrentModule->setTargetTriple(*(yyvsp[(3) - (3)].StrVal));
51735173 delete (yyvsp[(3) - (3)].StrVal);
51755175 break;
51765176
51775177 case 232:
5178 #line 2181 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5178 #line 2181 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
51795179 {
51805180 CurModule.CurrentModule->setDataLayout(*(yyvsp[(3) - (3)].StrVal));
51815181 delete (yyvsp[(3) - (3)].StrVal);
51835183 break;
51845184
51855185 case 234:
5186 #line 2188 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5186 #line 2188 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
51875187 {
51885188 CurModule.CurrentModule->addLibrary(*(yyvsp[(3) - (3)].StrVal));
51895189 delete (yyvsp[(3) - (3)].StrVal);
51925192 break;
51935193
51945194 case 235:
5195 #line 2193 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5195 #line 2193 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
51965196 {
51975197 CurModule.CurrentModule->addLibrary(*(yyvsp[(1) - (1)].StrVal));
51985198 delete (yyvsp[(1) - (1)].StrVal);
52015201 break;
52025202
52035203 case 236:
5204 #line 2198 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5204 #line 2198 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
52055205 {
52065206 CHECK_FOR_ERROR
52075207 ;}
52085208 break;
52095209
52105210 case 237:
5211 #line 2207 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5211 #line 2207 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
52125212 {
52135213 if (!UpRefs.empty())
52145214 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (5)].TypeVal))->getDescription());
52225222 break;
52235223
52245224 case 238:
5225 #line 2217 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5225 #line 2217 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
52265226 {
52275227 if (!UpRefs.empty())
52285228 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (3)].TypeVal))->getDescription());
52365236 break;
52375237
52385238 case 239:
5239 #line 2228 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5239 #line 2228 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
52405240 {
52415241 (yyval.ArgList) = (yyvsp[(1) - (1)].ArgList);
52425242 CHECK_FOR_ERROR
52445244 break;
52455245
52465246 case 240:
5247 #line 2232 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5247 #line 2232 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
52485248 {
52495249 (yyval.ArgList) = (yyvsp[(1) - (3)].ArgList);
52505250 struct ArgListEntry E;
52575257 break;
52585258
52595259 case 241:
5260 #line 2241 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5260 #line 2241 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
52615261 {
52625262 (yyval.ArgList) = new ArgListType;
52635263 struct ArgListEntry E;
52705270 break;
52715271
52725272 case 242:
5273 #line 2250 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5273 #line 2250 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
52745274 {
52755275 (yyval.ArgList) = 0;
52765276 CHECK_FOR_ERROR
52785278 break;
52795279
52805280 case 243:
5281 #line 2256 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5281 #line 2256 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
52825282 {
52835283 std::string FunctionName(*(yyvsp[(3) - (10)].StrVal));
52845284 delete (yyvsp[(3) - (10)].StrVal); // Free strdup'd memory!
54095409 break;
54105410
54115411 case 246:
5412 #line 2386 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5412 #line 2386 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54135413 {
54145414 (yyval.FunctionVal) = CurFun.CurrentFunction;
54155415
54215421 break;
54225422
54235423 case 249:
5424 #line 2397 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5424 #line 2397 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54255425 {
54265426 (yyval.FunctionVal) = (yyvsp[(1) - (2)].FunctionVal);
54275427 CHECK_FOR_ERROR
54295429 break;
54305430
54315431 case 250:
5432 #line 2402 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5432 #line 2402 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54335433 {
54345434 CurFun.CurrentFunction->setLinkage((yyvsp[(1) - (3)].Linkage));
54355435 CurFun.CurrentFunction->setVisibility((yyvsp[(2) - (3)].Visibility));
54405440 break;
54415441
54425442 case 251:
5443 #line 2414 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5443 #line 2414 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54445444 {
54455445 (yyval.BoolVal) = false;
54465446 CHECK_FOR_ERROR
54485448 break;
54495449
54505450 case 252:
5451 #line 2418 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5451 #line 2418 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54525452 {
54535453 (yyval.BoolVal) = true;
54545454 CHECK_FOR_ERROR
54565456 break;
54575457
54585458 case 253:
5459 #line 2423 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5459 #line 2423 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54605460 { // A reference to a direct constant
54615461 (yyval.ValIDVal) = ValID::create((yyvsp[(1) - (1)].SInt64Val));
54625462 CHECK_FOR_ERROR
54645464 break;
54655465
54665466 case 254:
5467 #line 2427 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5467 #line 2427 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54685468 {
54695469 (yyval.ValIDVal) = ValID::create((yyvsp[(1) - (1)].UInt64Val));
54705470 CHECK_FOR_ERROR
54725472 break;
54735473
54745474 case 255:
5475 #line 2431 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5475 #line 2431 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54765476 { // Perhaps it's an FP constant?
54775477 (yyval.ValIDVal) = ValID::create((yyvsp[(1) - (1)].FPVal));
54785478 CHECK_FOR_ERROR
54805480 break;
54815481
54825482 case 256:
5483 #line 2435 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5483 #line 2435 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54845484 {
54855485 (yyval.ValIDVal) = ValID::create(ConstantInt::getTrue());
54865486 CHECK_FOR_ERROR
54885488 break;
54895489
54905490 case 257:
5491 #line 2439 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5491 #line 2439 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
54925492 {
54935493 (yyval.ValIDVal) = ValID::create(ConstantInt::getFalse());
54945494 CHECK_FOR_ERROR
54965496 break;
54975497
54985498 case 258:
5499 #line 2443 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5499 #line 2443 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55005500 {
55015501 (yyval.ValIDVal) = ValID::createNull();
55025502 CHECK_FOR_ERROR
55045504 break;
55055505
55065506 case 259:
5507 #line 2447 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5507 #line 2447 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55085508 {
55095509 (yyval.ValIDVal) = ValID::createUndef();
55105510 CHECK_FOR_ERROR
55125512 break;
55135513
55145514 case 260:
5515 #line 2451 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5515 #line 2451 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55165516 { // A vector zero constant.
55175517 (yyval.ValIDVal) = ValID::createZeroInit();
55185518 CHECK_FOR_ERROR
55205520 break;
55215521
55225522 case 261:
5523 #line 2455 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5523 #line 2455 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55245524 { // Nonempty unsized packed vector
55255525 const Type *ETy = (*(yyvsp[(2) - (3)].ConstVector))[0]->getType();
55265526 int NumElements = (yyvsp[(2) - (3)].ConstVector)->size();
55495549 break;
55505550
55515551 case 262:
5552 #line 2480 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5552 #line 2480 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55535553 {
55545554 (yyval.ValIDVal) = ValID::create((yyvsp[(1) - (1)].ConstVal));
55555555 CHECK_FOR_ERROR
55575557 break;
55585558
55595559 case 263:
5560 #line 2484 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5560 #line 2484 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55615561 {
55625562 (yyval.ValIDVal) = ValID::createInlineAsm(*(yyvsp[(3) - (5)].StrVal), *(yyvsp[(5) - (5)].StrVal), (yyvsp[(2) - (5)].BoolVal));
55635563 delete (yyvsp[(3) - (5)].StrVal);
55675567 break;
55685568
55695569 case 264:
5570 #line 2494 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5570 #line 2494 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55715571 { // Is it an integer reference...?
55725572 (yyval.ValIDVal) = ValID::createLocalID((yyvsp[(1) - (1)].UIntVal));
55735573 CHECK_FOR_ERROR
55755575 break;
55765576
55775577 case 265:
5578 #line 2498 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5578 #line 2498 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55795579 {
55805580 (yyval.ValIDVal) = ValID::createGlobalID((yyvsp[(1) - (1)].UIntVal));
55815581 CHECK_FOR_ERROR
55835583 break;
55845584
55855585 case 266:
5586 #line 2502 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5586 #line 2502 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55875587 { // Is it a named reference...?
55885588 (yyval.ValIDVal) = ValID::createLocalName(*(yyvsp[(1) - (1)].StrVal));
55895589 delete (yyvsp[(1) - (1)].StrVal);
55925592 break;
55935593
55945594 case 267:
5595 #line 2507 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5595 #line 2507 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
55965596 { // Is it a named reference...?
55975597 (yyval.ValIDVal) = ValID::createGlobalName(*(yyvsp[(1) - (1)].StrVal));
55985598 delete (yyvsp[(1) - (1)].StrVal);
56015601 break;
56025602
56035603 case 270:
5604 #line 2520 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5604 #line 2520 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56055605 {
56065606 if (!UpRefs.empty())
56075607 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (2)].TypeVal))->getDescription());
56125612 break;
56135613
56145614 case 271:
5615 #line 2529 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5615 #line 2529 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56165616 {
56175617 (yyval.ValueList) = new std::vector();
56185618 (yyval.ValueList)->push_back((yyvsp[(1) - (1)].ValueVal));
56215621 break;
56225622
56235623 case 272:
5624 #line 2534 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5624 #line 2534 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56255625 {
56265626 ((yyval.ValueList)=(yyvsp[(1) - (3)].ValueList))->push_back((yyvsp[(3) - (3)].ValueVal));
56275627 CHECK_FOR_ERROR
56295629 break;
56305630
56315631 case 273:
5632 #line 2539 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5632 #line 2539 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56335633 {
56345634 (yyval.FunctionVal) = (yyvsp[(1) - (2)].FunctionVal);
56355635 CHECK_FOR_ERROR
56375637 break;
56385638
56395639 case 274:
5640 #line 2543 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5640 #line 2543 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56415641 { // Do not allow functions with 0 basic blocks
56425642 (yyval.FunctionVal) = (yyvsp[(1) - (2)].FunctionVal);
56435643 CHECK_FOR_ERROR
56455645 break;
56465646
56475647 case 275:
5648 #line 2552 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5648 #line 2552 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56495649 {
56505650 setValueName((yyvsp[(3) - (3)].TermInstVal), (yyvsp[(2) - (3)].StrVal));
56515651 CHECK_FOR_ERROR
56575657 break;
56585658
56595659 case 276:
5660 #line 2561 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5660 #line 2561 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56615661 {
56625662 if (CastInst *CI1 = dyn_cast((yyvsp[(2) - (2)].InstVal)))
56635663 if (CastInst *CI2 = dyn_cast(CI1->getOperand(0)))
56705670 break;
56715671
56725672 case 277:
5673 #line 2570 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5673 #line 2570 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56745674 { // Empty space between instruction lists
56755675 (yyval.BasicBlockVal) = defineBBVal(ValID::createLocalID(CurFun.NextValNum));
56765676 CHECK_FOR_ERROR
56785678 break;
56795679
56805680 case 278:
5681 #line 2574 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5681 #line 2574 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56825682 { // Labelled (named) basic block
56835683 (yyval.BasicBlockVal) = defineBBVal(ValID::createLocalName(*(yyvsp[(1) - (1)].StrVal)));
56845684 delete (yyvsp[(1) - (1)].StrVal);
56885688 break;
56895689
56905690 case 279:
5691 #line 2582 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5691 #line 2582 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
56925692 { // Return with a result...
56935693 ValueList &VL = *(yyvsp[(2) - (2)].ValueList);
56945694 assert(!VL.empty() && "Invalid ret operands!");
56995699 break;
57005700
57015701 case 280:
5702 #line 2589 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5702 #line 2589 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
57035703 { // Return with no result...
57045704 (yyval.TermInstVal) = ReturnInst::Create();
57055705 CHECK_FOR_ERROR
57075707 break;
57085708
57095709 case 281:
5710 #line 2593 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5710 #line 2593 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
57115711 { // Unconditional Branch...
57125712 BasicBlock* tmpBB = getBBVal((yyvsp[(3) - (3)].ValIDVal));
57135713 CHECK_FOR_ERROR
57165716 break;
57175717
57185718 case 282:
5719 #line 2598 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5719 #line 2598 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
57205720 {
57215721 assert(cast((yyvsp[(2) - (9)].PrimType))->getBitWidth() == 1 && "Not Bool?");
57225722 BasicBlock* tmpBBA = getBBVal((yyvsp[(6) - (9)].ValIDVal));
57305730 break;
57315731
57325732 case 283:
5733 #line 2608 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5733 #line 2608 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
57345734 {
57355735 Value* tmpVal = getVal((yyvsp[(2) - (9)].PrimType), (yyvsp[(3) - (9)].ValIDVal));
57365736 CHECK_FOR_ERROR
57535753 break;
57545754
57555755 case 284:
5756 #line 2627 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5756 #line 2627 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
57575757 {
57585758 Value* tmpVal = getVal((yyvsp[(2) - (8)].PrimType), (yyvsp[(3) - (8)].ValIDVal));
57595759 CHECK_FOR_ERROR
57665766 break;
57675767
57685768 case 285:
5769 #line 2637 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5769 #line 2637 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
57705770 {
57715771
57725772 // Handle the short syntax
58555855 break;
58565856
58575857 case 286:
5858 #line 2722 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5858 #line 2722 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
58595859 {
58605860 (yyval.TermInstVal) = new UnwindInst();
58615861 CHECK_FOR_ERROR
58635863 break;
58645864
58655865 case 287:
5866 #line 2726 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5866 #line 2726 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
58675867 {
58685868 (yyval.TermInstVal) = new UnreachableInst();
58695869 CHECK_FOR_ERROR
58715871 break;
58725872
58735873 case 288:
5874 #line 2733 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5874 #line 2733 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
58755875 {
58765876 (yyval.JumpTable) = (yyvsp[(1) - (6)].JumpTable);
58775877 Constant *V = cast(getExistingVal((yyvsp[(2) - (6)].PrimType), (yyvsp[(3) - (6)].ValIDVal)));
58865886 break;
58875887
58885888 case 289:
5889 #line 2744 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5889 #line 2744 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
58905890 {
58915891 (yyval.JumpTable) = new std::vector >();
58925892 Constant *V = cast(getExistingVal((yyvsp[(1) - (5)].PrimType), (yyvsp[(2) - (5)].ValIDVal)));
59025902 break;
59035903
59045904 case 290:
5905 #line 2757 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5905 #line 2757 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
59065906 {
59075907 // Is this definition named?? if so, assign the name...
59085908 setValueName((yyvsp[(2) - (2)].InstVal), (yyvsp[(1) - (2)].StrVal));
59145914 break;
59155915
59165916 case 291:
5917 #line 2767 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5917 #line 2767 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
59185918 { // Used for PHI nodes
59195919 if (!UpRefs.empty())
59205920 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(1) - (6)].TypeVal))->getDescription());
59295929 break;
59305930
59315931 case 292:
5932 #line 2778 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5932 #line 2778 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
59335933 {
59345934 (yyval.PHIList) = (yyvsp[(1) - (7)].PHIList);
59355935 Value* tmpVal = getVal((yyvsp[(1) - (7)].PHIList)->front().first->getType(), (yyvsp[(4) - (7)].ValIDVal));
59415941 break;
59425942
59435943 case 293:
5944 #line 2788 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5944 #line 2788 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
59455945 {
59465946 // FIXME: Remove trailing OptParamAttrs in LLVM 3.0, it was a mistake in 2.0
59475947 if (!UpRefs.empty())
59565956 break;
59575957
59585958 case 294:
5959 #line 2799 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5959 #line 2799 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
59605960 {
59615961 // FIXME: Remove trailing OptParamAttrs in LLVM 3.0, it was a mistake in 2.0
59625962 // Labels are only valid in ASMs
59685968 break;
59695969
59705970 case 295:
5971 #line 2807 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5971 #line 2807 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
59725972 {
59735973 // FIXME: Remove trailing OptParamAttrs in LLVM 3.0, it was a mistake in 2.0
59745974 if (!UpRefs.empty())
59825982 break;
59835983
59845984 case 296:
5985 #line 2817 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5985 #line 2817 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
59865986 {
59875987 // FIXME: Remove trailing OptParamAttrs in LLVM 3.0, it was a mistake in 2.0
59885988 (yyval.ParamList) = (yyvsp[(1) - (6)].ParamList);
59935993 break;
59945994
59955995 case 297:
5996 #line 2824 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
5996 #line 2824 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
59975997 { (yyval.ParamList) = new ParamList(); ;}
59985998 break;
59995999
60006000 case 298:
6001 #line 2827 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6001 #line 2827 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
60026002 { (yyval.ValueList) = new std::vector(); ;}
60036003 break;
60046004
60056005 case 299:
6006 #line 2828 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6006 #line 2828 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
60076007 {
60086008 (yyval.ValueList) = (yyvsp[(1) - (3)].ValueList);
60096009 (yyval.ValueList)->push_back((yyvsp[(3) - (3)].ValueVal));
60126012 break;
60136013
60146014 case 300:
6015 #line 2835 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6015 #line 2835 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
60166016 {
60176017 (yyval.BoolVal) = true;
60186018 CHECK_FOR_ERROR
60206020 break;
60216021
60226022 case 301:
6023 #line 2839 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6023 #line 2839 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
60246024 {
60256025 (yyval.BoolVal) = false;
60266026 CHECK_FOR_ERROR
60286028 break;
60296029
60306030 case 302:
6031 #line 2844 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6031 #line 2844 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
60326032 {
60336033 if (!UpRefs.empty())
60346034 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (5)].TypeVal))->getDescription());
60406040 CHECK_FOR_ERROR
60416041 Value* val2 = getVal(*(yyvsp[(2) - (5)].TypeVal), (yyvsp[(5) - (5)].ValIDVal));
60426042 CHECK_FOR_ERROR
6043 (yyval.InstVal) = BinaryOperator::create((yyvsp[(1) - (5)].BinaryOpVal), val1, val2);
6043 (yyval.InstVal) = BinaryOperator::Create((yyvsp[(1) - (5)].BinaryOpVal), val1, val2);
60446044 if ((yyval.InstVal) == 0)
60456045 GEN_ERROR("binary operator returned null");
60466046 delete (yyvsp[(2) - (5)].TypeVal);
60486048 break;
60496049
60506050 case 303:
6051 #line 2860 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6051 #line 2860 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
60526052 {
60536053 if (!UpRefs.empty())
60546054 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (5)].TypeVal))->getDescription());
60616061 CHECK_FOR_ERROR
60626062 Value* tmpVal2 = getVal(*(yyvsp[(2) - (5)].TypeVal), (yyvsp[(5) - (5)].ValIDVal));
60636063 CHECK_FOR_ERROR
6064 (yyval.InstVal) = BinaryOperator::create((yyvsp[(1) - (5)].BinaryOpVal), tmpVal1, tmpVal2);
6064 (yyval.InstVal) = BinaryOperator::Create((yyvsp[(1) - (5)].BinaryOpVal), tmpVal1, tmpVal2);
60656065 if ((yyval.InstVal) == 0)
60666066 GEN_ERROR("binary operator returned null");
60676067 delete (yyvsp[(2) - (5)].TypeVal);
60696069 break;
60706070
60716071 case 304:
6072 #line 2877 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6072 #line 2877 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
60736073 {
60746074 if (!UpRefs.empty())
60756075 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (6)].TypeVal))->getDescription());
60796079 CHECK_FOR_ERROR
60806080 Value* tmpVal2 = getVal(*(yyvsp[(3) - (6)].TypeVal), (yyvsp[(6) - (6)].ValIDVal));
60816081 CHECK_FOR_ERROR
6082 (yyval.InstVal) = CmpInst::create((yyvsp[(1) - (6)].OtherOpVal), (yyvsp[(2) - (6)].IPredicate), tmpVal1, tmpVal2);
6082 (yyval.InstVal) = CmpInst::Create((yyvsp[(1) - (6)].OtherOpVal), (yyvsp[(2) - (6)].IPredicate), tmpVal1, tmpVal2);
60836083 if ((yyval.InstVal) == 0)
60846084 GEN_ERROR("icmp operator returned null");
60856085 delete (yyvsp[(3) - (6)].TypeVal);
60876087 break;
60886088
60896089 case 305:
6090 #line 2891 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6090 #line 2891 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
60916091 {
60926092 if (!UpRefs.empty())
60936093 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (6)].TypeVal))->getDescription());
60976097 CHECK_FOR_ERROR
60986098 Value* tmpVal2 = getVal(*(yyvsp[(3) - (6)].TypeVal), (yyvsp[(6) - (6)].ValIDVal));
60996099 CHECK_FOR_ERROR
6100 (yyval.InstVal) = CmpInst::create((yyvsp[(1) - (6)].OtherOpVal), (yyvsp[(2) - (6)].FPredicate), tmpVal1, tmpVal2);
6100 (yyval.InstVal) = CmpInst::Create((yyvsp[(1) - (6)].OtherOpVal), (yyvsp[(2) - (6)].FPredicate), tmpVal1, tmpVal2);
61016101 if ((yyval.InstVal) == 0)
61026102 GEN_ERROR("fcmp operator returned null");
61036103 delete (yyvsp[(3) - (6)].TypeVal);
61056105 break;
61066106
61076107 case 306:
6108 #line 2905 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6108 #line 2905 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
61096109 {
61106110 if (!UpRefs.empty())
61116111 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (6)].TypeVal))->getDescription());
61156115 CHECK_FOR_ERROR
61166116 Value* tmpVal2 = getVal(*(yyvsp[(3) - (6)].TypeVal), (yyvsp[(6) - (6)].ValIDVal));
61176117 CHECK_FOR_ERROR
6118 (yyval.InstVal) = CmpInst::create((yyvsp[(1) - (6)].OtherOpVal), (yyvsp[(2) - (6)].IPredicate), tmpVal1, tmpVal2);
6118 (yyval.InstVal) = CmpInst::Create((yyvsp[(1) - (6)].OtherOpVal), (yyvsp[(2) - (6)].IPredicate), tmpVal1, tmpVal2);
61196119 if ((yyval.InstVal) == 0)
61206120 GEN_ERROR("icmp operator returned null");
61216121 delete (yyvsp[(3) - (6)].TypeVal);
61236123 break;
61246124
61256125 case 307:
6126 #line 2919 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6126 #line 2919 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
61276127 {
61286128 if (!UpRefs.empty())
61296129 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (6)].TypeVal))->getDescription());
61336133 CHECK_FOR_ERROR
61346134 Value* tmpVal2 = getVal(*(yyvsp[(3) - (6)].TypeVal), (yyvsp[(6) - (6)].ValIDVal));
61356135 CHECK_FOR_ERROR
6136 (yyval.InstVal) = CmpInst::create((yyvsp[(1) - (6)].OtherOpVal), (yyvsp[(2) - (6)].FPredicate), tmpVal1, tmpVal2);
6136 (yyval.InstVal) = CmpInst::Create((yyvsp[(1) - (6)].OtherOpVal), (yyvsp[(2) - (6)].FPredicate), tmpVal1, tmpVal2);
61376137 if ((yyval.InstVal) == 0)
61386138 GEN_ERROR("fcmp operator returned null");
61396139 delete (yyvsp[(3) - (6)].TypeVal);
61416141 break;
61426142
61436143 case 308:
6144 #line 2933 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6144 #line 2933 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
61456145 {
61466146 if (!UpRefs.empty())
61476147 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(4) - (4)].TypeVal))->getDescription());
61516151 GEN_ERROR("invalid cast opcode for cast from '" +
61526152 Val->getType()->getDescription() + "' to '" +
61536153 DestTy->getDescription() + "'");
6154 (yyval.InstVal) = CastInst::create((yyvsp[(1) - (4)].CastOpVal), Val, DestTy);
6154 (yyval.InstVal) = CastInst::Create((yyvsp[(1) - (4)].CastOpVal), Val, DestTy);
61556155 delete (yyvsp[(4) - (4)].TypeVal);
61566156 ;}
61576157 break;
61586158
61596159 case 309:
6160 #line 2945 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6160 #line 2945 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
61616161 {
61626162 if ((yyvsp[(2) - (6)].ValueVal)->getType() != Type::Int1Ty)
61636163 GEN_ERROR("select condition must be boolean");
61696169 break;
61706170
61716171 case 310:
6172 #line 2953 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6172 #line 2953 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
61736173 {
61746174 if (!UpRefs.empty())
61756175 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(4) - (4)].TypeVal))->getDescription());
61806180 break;
61816181
61826182 case 311:
6183 #line 2960 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6183 #line 2960 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
61846184 {
61856185 if (!ExtractElementInst::isValidOperands((yyvsp[(2) - (4)].ValueVal), (yyvsp[(4) - (4)].ValueVal)))
61866186 GEN_ERROR("Invalid extractelement operands");
61906190 break;
61916191
61926192 case 312:
6193 #line 2966 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6193 #line 2966 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
61946194 {
61956195 if (!InsertElementInst::isValidOperands((yyvsp[(2) - (6)].ValueVal), (yyvsp[(4) - (6)].ValueVal), (yyvsp[(6) - (6)].ValueVal)))
61966196 GEN_ERROR("Invalid insertelement operands");
62006200 break;
62016201
62026202 case 313:
6203 #line 2972 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6203 #line 2972 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
62046204 {
62056205 if (!ShuffleVectorInst::isValidOperands((yyvsp[(2) - (6)].ValueVal), (yyvsp[(4) - (6)].ValueVal), (yyvsp[(6) - (6)].ValueVal)))
62066206 GEN_ERROR("Invalid shufflevector operands");
62106210 break;
62116211
62126212 case 314:
6213 #line 2978 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6213 #line 2978 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
62146214 {
62156215 const Type *Ty = (yyvsp[(2) - (2)].PHIList)->front().first->getType();
62166216 if (!Ty->isFirstClassType())
62296229 break;
62306230
62316231 case 315:
6232 #line 2994 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6232 #line 2994 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
62336233 {
62346234
62356235 // Handle the short syntax
63226322 break;
63236323
63246324 case 316:
6325 #line 3083 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6325 #line 3083 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
63266326 {
63276327 (yyval.InstVal) = (yyvsp[(1) - (1)].InstVal);
63286328 CHECK_FOR_ERROR
63306330 break;
63316331
63326332 case 317:
6333 #line 3088 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6333 #line 3088 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
63346334 {
63356335 (yyval.BoolVal) = true;
63366336 CHECK_FOR_ERROR
63386338 break;
63396339
63406340 case 318:
6341 #line 3092 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6341 #line 3092 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
63426342 {
63436343 (yyval.BoolVal) = false;
63446344 CHECK_FOR_ERROR
63466346 break;
63476347
63486348 case 319:
6349 #line 3099 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6349 #line 3099 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
63506350 {
63516351 if (!UpRefs.empty())
63526352 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (3)].TypeVal))->getDescription());
63576357 break;
63586358
63596359 case 320:
6360 #line 3106 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6360 #line 3106 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
63616361 {
63626362 if (!UpRefs.empty())
63636363 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (6)].TypeVal))->getDescription());
63696369 break;
63706370
63716371 case 321:
6372 #line 3114 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6372 #line 3114 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
63736373 {
63746374 if (!UpRefs.empty())
63756375 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (3)].TypeVal))->getDescription());
63806380 break;
63816381
63826382 case 322:
6383 #line 3121 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6383 #line 3121 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
63846384 {
63856385 if (!UpRefs.empty())
63866386 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (6)].TypeVal))->getDescription());
63926392 break;
63936393
63946394 case 323:
6395 #line 3129 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6395 #line 3129 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
63966396 {
63976397 if (!isa((yyvsp[(2) - (2)].ValueVal)->getType()))
63986398 GEN_ERROR("Trying to free nonpointer type " +
64036403 break;
64046404
64056405 case 324:
6406 #line 3137 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6406 #line 3137 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
64076407 {
64086408 if (!UpRefs.empty())
64096409 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(3) - (5)].TypeVal))->getDescription());
64216421 break;
64226422
64236423 case 325:
6424 #line 3151 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6424 #line 3151 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
64256425 {
64266426 if (!UpRefs.empty())
64276427 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(5) - (7)].TypeVal))->getDescription());
64426442 break;
64436443
64446444 case 326:
6445 #line 3168 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6445 #line 3168 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
64466446 {
64476447 Value *TmpVal = getVal((yyvsp[(2) - (5)].TypeVal)->get(), (yyvsp[(3) - (5)].ValIDVal));
64486448 if (!GetResultInst::isValidOperands(TmpVal, (yyvsp[(5) - (5)].UInt64Val)))
64546454 break;
64556455
64566456 case 327:
6457 #line 3176 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6457 #line 3176 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
64586458 {
64596459 if (!UpRefs.empty())
64606460 GEN_ERROR("Invalid upreference in type: " + (*(yyvsp[(2) - (4)].TypeVal))->getDescription());
66886688 }
66896689
66906690
6691 #line 3193 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
6691 #line 3193 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
66926692
66936693
66946694 // common code from the two 'RunVMAsmParser' functions
349349
350350 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
351351 typedef union YYSTYPE
352 #line 949 "/Volumes/LLVM/llvm/lib/AsmParser/llvmAsmParser.y"
352 #line 949 "/Users/malichus/Source/LLVM/src/svn/llvm/lib/AsmParser/llvmAsmParser.y"
353353 {
354354 llvm::Module *ModuleVal;
355355 llvm::Function *FunctionVal;
28512851 CHECK_FOR_ERROR
28522852 Value* val2 = getVal(*$2, $5);
28532853 CHECK_FOR_ERROR
2854 $$ = BinaryOperator::create($1, val1, val2);
2854 $$ = BinaryOperator::Create($1, val1, val2);
28552855 if ($$ == 0)
28562856 GEN_ERROR("binary operator returned null");
28572857 delete $2;
28682868 CHECK_FOR_ERROR
28692869 Value* tmpVal2 = getVal(*$2, $5);
28702870 CHECK_FOR_ERROR
2871 $$ = BinaryOperator::create($1, tmpVal1, tmpVal2);
2871 $$ = BinaryOperator::Create($1, tmpVal1, tmpVal2);
28722872 if ($$ == 0)
28732873 GEN_ERROR("binary operator returned null");
28742874 delete $2;
28822882 CHECK_FOR_ERROR
28832883 Value* tmpVal2 = getVal(*$3, $6);
28842884 CHECK_FOR_ERROR
2885 $$ = CmpInst::create($1, $2, tmpVal1, tmpVal2);
2885 $$ = CmpInst::Create($1, $2, tmpVal1, tmpVal2);
28862886 if ($$ == 0)
28872887 GEN_ERROR("icmp operator returned null");
28882888 delete $3;
28962896 CHECK_FOR_ERROR
28972897 Value* tmpVal2 = getVal(*$3, $6);
28982898 CHECK_FOR_ERROR
2899 $$ = CmpInst::create($1, $2, tmpVal1, tmpVal2);
2899 $$ = CmpInst::Create($1, $2, tmpVal1, tmpVal2);
29002900 if ($$ == 0)
29012901 GEN_ERROR("fcmp operator returned null");
29022902 delete $3;
29102910 CHECK_FOR_ERROR
29112911 Value* tmpVal2 = getVal(*$3, $6);
29122912 CHECK_FOR_ERROR
2913 $$ = CmpInst::create($1, $2, tmpVal1, tmpVal2);
2913 $$ = CmpInst::Create($1, $2, tmpVal1, tmpVal2);
29142914 if ($$ == 0)
29152915 GEN_ERROR("icmp operator returned null");
29162916 delete $3;
29242924 CHECK_FOR_ERROR
29252925 Value* tmpVal2 = getVal(*$3, $6);
29262926 CHECK_FOR_ERROR
2927 $$ = CmpInst::create($1, $2, tmpVal1, tmpVal2);
2927 $$ = CmpInst::Create($1, $2, tmpVal1, tmpVal2);
29282928 if ($$ == 0)
29292929 GEN_ERROR("fcmp operator returned null");
29302930 delete $3;
29382938 GEN_ERROR("invalid cast opcode for cast from '" +
29392939 Val->getType()->getDescription() + "' to '" +
29402940 DestTy->getDescription() + "'");
2941 $$ = CastInst::create($1, Val, DestTy);
2941 $$ = CastInst::Create($1, Val, DestTy);
29422942 delete $4;
29432943 }
29442944 | SELECT ResolvedVal ',' ResolvedVal ',' ResolvedVal {
8989 return static_cast(unwrap(Ty)->getTypeID());
9090 }
9191
92 void LLVMRefineAbstractType(LLVMTypeRef AbstractType, LLVMTypeRef ConcreteType){
93 DerivedType *Ty = unwrap(AbstractType);
94 Ty->refineAbstractTypeTo(unwrap(ConcreteType));
95 }
96
9792 /*--.. Operations on integer types .........................................--*/
9893
9994 LLVMTypeRef LLVMInt1Type(void) { return (LLVMTypeRef) Type::Int1Ty; }