Lines Matching refs:Record

52 static bool ConvertToString(SmallVector<uint64_t, 64> &Record, unsigned Idx,
54 if (Idx > Record.size())
57 for (unsigned i = Idx, e = Record.size(); i != e; ++i)
58 Result += (char)Record[i];
426 SmallVector<uint64_t, 64> Record;
453 Record.clear();
454 switch (Stream.ReadRecord(Code, Record)) {
458 if (Record.size() & 1)
467 for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
472 unsigned Alignment = (Record[i+1] & (0xffffull << 16)) >> 16;
476 Attributes ReconstitutedAttr = Record[i+1] & 0xffff;
479 ReconstitutedAttr |= (Record[i+1] & (0xffffull << 32)) >> 11;
480 Record[i+1] = ReconstitutedAttr;
482 if (Record[i] == 0)
483 RetAttribute = Record[i+1];
484 else if (Record[i] == ~0U)
485 FnAttribute = Record[i+1];
494 Record.push_back(~0U);
495 Record.push_back(0);
502 for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
503 if (Record[i] == 0) {
506 } else if (Record[i] == ~0U) {
509 } else if (Record[i+1] != Attribute::None)
510 Attrs.push_back(AttributeWithIndex::get(Record[i], Record[i+1]));
532 SmallVector<uint64_t, 64> Record;
562 Record.clear();
564 switch (Stream.ReadRecord(Code, Record)) {
569 if (Record.size() < 1)
571 TypeList.resize(Record[0]);
601 if (Record.size() < 1)
604 ResultTy = IntegerType::get(Context, Record[0]);
608 if (Record.size() < 1)
611 if (Record.size() == 2)
612 AddressSpace = Record[1];
613 ResultTy = getTypeByID(Record[0]);
621 if (Record.size() < 3)
624 for (unsigned i = 3, e = Record.size(); i != e; ++i) {
625 if (Type *T = getTypeByID(Record[i]))
631 ResultTy = getTypeByID(Record[2]);
632 if (ResultTy == 0 || ArgTys.size() < Record.size()-3)
635 ResultTy = FunctionType::get(ResultTy, ArgTys, Record[0]);
639 if (Record.size() < 1)
642 for (unsigned i = 1, e = Record.size(); i != e; ++i) {
643 if (Type *T = getTypeByID(Record[i]))
648 if (EltTys.size() != Record.size()-1)
650 ResultTy = StructType::get(Context, EltTys, Record[0]);
654 if (ConvertToString(Record, 0, TypeName))
659 if (Record.size() < 1)
675 for (unsigned i = 1, e = Record.size(); i != e; ++i) {
676 if (Type *T = getTypeByID(Record[i]))
681 if (EltTys.size() != Record.size()-1)
683 Res->setBody(EltTys, Record[0]);
688 if (Record.size() != 1)
706 if (Record.size() < 2)
708 if ((ResultTy = getTypeByID(Record[1])))
709 ResultTy = ArrayType::get(ResultTy, Record[0]);
714 if (Record.size() < 2)
716 if ((ResultTy = getTypeByID(Record[1])))
717 ResultTy = VectorType::get(ResultTy, Record[0]);
747 SmallVector<uint64_t, 64> Record;
789 Record.clear();
791 switch (Stream.ReadRecord(Code, Record)) {
796 if (Record.size() < 1)
798 TypeList.resize(Record[0]);
828 if (Record.size() < 1)
830 ResultTy = IntegerType::get(Context, Record[0]);
848 for (unsigned i = 1, e = Record.size(); i != e; ++i) {
849 if (Type *Elt = getTypeByIDOrNull(Record[i]))
855 if (EltTys.size() != Record.size()-1)
858 cast<StructType>(TypeList[NextTypeID])->setBody(EltTys, Record[0]);
865 if (Record.size() < 1)
868 if (Record.size() == 2)
869 AddressSpace = Record[1];
870 if ((ResultTy = getTypeByIDOrNull(Record[0])))
877 if (Record.size() < 3)
880 for (unsigned i = 3, e = Record.size(); i != e; ++i) {
881 if (Type *Elt = getTypeByIDOrNull(Record[i]))
886 if (ArgTys.size()+3 != Record.size())
888 if ((ResultTy = getTypeByIDOrNull(Record[2])))
889 ResultTy = FunctionType::get(ResultTy, ArgTys, Record[0]);
893 if (Record.size() < 2)
895 if ((ResultTy = getTypeByIDOrNull(Record[1])))
896 ResultTy = ArrayType::get(ResultTy, Record[0]);
899 if (Record.size() < 2)
901 if ((ResultTy = getTypeByIDOrNull(Record[1])))
902 ResultTy = VectorType::get(ResultTy, Record[0]);
925 SmallVector<uint64_t, 64> Record;
951 Record.clear();
952 switch (Stream.ReadRecord(Code, Record)) {
956 if (ConvertToString(Record, 1, TypeName))
958 unsigned TypeID = Record[0];
976 SmallVector<uint64_t, 64> Record;
1001 Record.clear();
1002 switch (Stream.ReadRecord(Code, Record)) {
1006 if (ConvertToString(Record, 1, ValueName))
1008 unsigned ValueID = Record[0];
1018 if (ConvertToString(Record, 1, ValueName))
1020 BasicBlock *BB = getBasicBlock(Record[0]);
1038 SmallVector<uint64_t, 64> Record;
1064 Record.clear();
1065 Code = Stream.ReadRecord(Code, Record);
1071 unsigned NameLength = Record.size();
1075 Name[i] = Record[i];
1076 Record.clear();
1080 unsigned NextBitCode = Stream.ReadRecord(Code, Record);
1084 unsigned Size = Record.size();
1087 MDNode *MD = dyn_cast<MDNode>(MDValueList.getValueFwdRef(Record[i]));
1098 if (Record.size() % 2 == 1)
1101 unsigned Size = Record.size();
1104 Type *Ty = getTypeByID(Record[i]);
1107 Elts.push_back(MDValueList.getValueFwdRef(Record[i+1]));
1109 Elts.push_back(ValueList.getValueFwdRef(Record[i+1], Ty));
1119 unsigned MDStringLength = Record.size();
1123 String[i] = Record[i];
1130 unsigned RecordLength = Record.size();
1131 if (Record.empty() || RecordLength < 2)
1135 unsigned Kind = Record[0];
1137 Name[i-1] = Record[i];
1201 SmallVector<uint64_t, 64> Record;
1225 Record.clear();
1227 unsigned BitCode = Stream.ReadRecord(Code, Record);
1234 if (Record.empty())
1236 if (Record[0] >= TypeList.size())
1238 CurTy = TypeList[Record[0]];
1244 if (!CurTy->isIntegerTy() || Record.empty())
1246 V = ConstantInt::get(CurTy, DecodeSignRotatedValue(Record[0]));
1249 if (!CurTy->isIntegerTy() || Record.empty())
1252 unsigned NumWords = Record.size();
1256 Words[i] = DecodeSignRotatedValue(Record[i]);
1263 if (Record.empty())
1266 V = ConstantFP::get(Context, APFloat(APInt(32, (uint32_t)Record[0])));
1268 V = ConstantFP::get(Context, APFloat(APInt(64, Record[0])));
1272 Rearrange[0] = (Record[1] & 0xffffLL) | (Record[0] << 16);
1273 Rearrange[1] = Record[0] >> 48;
1276 V = ConstantFP::get(Context, APFloat(APInt(128, Record), true));
1278 V = ConstantFP::get(Context, APFloat(APInt(128, Record)));
1285 if (Record.empty())
1288 unsigned Size = Record.size();
1293 Elts.push_back(ValueList.getConstantFwdRef(Record[i],
1299 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy));
1304 Elts.push_back(ValueList.getConstantFwdRef(Record[i], EltTy));
1312 if (Record.empty())
1318 unsigned Size = Record.size();
1321 Elts.push_back(ConstantInt::get(EltTy, Record[i]));
1326 if (Record.empty())
1332 unsigned Size = Record.size();
1335 Elts.push_back(ConstantInt::get(EltTy, Record[i]));
1341 if (Record.size() < 3) return Error("Invalid CE_BINOP record");
1342 int Opc = GetDecodedBinaryOpcode(Record[0], CurTy);
1346 Constant *LHS = ValueList.getConstantFwdRef(Record[1], CurTy);
1347 Constant *RHS = ValueList.getConstantFwdRef(Record[2], CurTy);
1349 if (Record.size() >= 4) {
1354 if (Record[3] & (1 << bitc::OBO_NO_SIGNED_WRAP))
1356 if (Record[3] & (1 << bitc::OBO_NO_UNSIGNED_WRAP))
1362 if (Record[3] & (1 << bitc::PEO_EXACT))
1371 if (Record.size() < 3) return Error("Invalid CE_CAST record");
1372 int Opc = GetDecodedCastOpcode(Record[0]);
1376 Type *OpTy = getTypeByID(Record[1]);
1378 Constant *Op = ValueList.getConstantFwdRef(Record[2], OpTy);
1385 if (Record.size() & 1) return Error("Invalid CE_GEP record");
1387 for (unsigned i = 0, e = Record.size(); i != e; i += 2) {
1388 Type *ElTy = getTypeByID(Record[i]);
1390 Elts.push_back(ValueList.getConstantFwdRef(Record[i+1], ElTy));
1399 if (Record.size() < 3) return Error("Invalid CE_SELECT record");
1400 V = ConstantExpr::getSelect(ValueList.getConstantFwdRef(Record[0],
1402 ValueList.getConstantFwdRef(Record[1],CurTy),
1403 ValueList.getConstantFwdRef(Record[2],CurTy));
1406 if (Record.size() < 3) return Error("Invalid CE_EXTRACTELT record");
1408 dyn_cast_or_null<VectorType>(getTypeByID(Record[0]));
1410 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1411 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], Type::getInt32Ty(Context));
1417 if (Record.size() < 3 || OpTy == 0)
1419 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
1420 Constant *Op1 = ValueList.getConstantFwdRef(Record[1],
1422 Constant *Op2 = ValueList.getConstantFwdRef(Record[2], Type::getInt32Ty(Context));
1428 if (Record.size() < 3 || OpTy == 0)
1430 Constant *Op0 = ValueList.getConstantFwdRef(Record[0], OpTy);
1431 Constant *Op1 = ValueList.getConstantFwdRef(Record[1], OpTy);
1434 Constant *Op2 = ValueList.getConstantFwdRef(Record[2], ShufTy);
1441 dyn_cast_or_null<VectorType>(getTypeByID(Record[0]));
1442 if (Record.size() < 4 || RTy == 0 || OpTy == 0)
1444 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1445 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
1448 Constant *Op2 = ValueList.getConstantFwdRef(Record[3], ShufTy);
1453 if (Record.size() < 4) return Error("Invalid CE_CMP record");
1454 Type *OpTy = getTypeByID(Record[0]);
1456 Constant *Op0 = ValueList.getConstantFwdRef(Record[1], OpTy);
1457 Constant *Op1 = ValueList.getConstantFwdRef(Record[2], OpTy);
1460 V = ConstantExpr::getFCmp(Record[3], Op0, Op1);
1462 V = ConstantExpr::getICmp(Record[3], Op0, Op1);
1466 if (Record.size() < 2) return Error("Invalid INLINEASM record");
1468 bool HasSideEffects = Record[0] & 1;
1469 bool IsAlignStack = Record[0] >> 1;
1470 unsigned AsmStrSize = Record[1];
1471 if (2+AsmStrSize >= Record.size())
1473 unsigned ConstStrSize = Record[2+AsmStrSize];
1474 if (3+AsmStrSize+ConstStrSize > Record.size())
1478 AsmStr += (char)Record[2+i];
1480 ConstrStr += (char)Record[3+AsmStrSize+i];
1487 if (Record.size() < 3) return Error("Invalid CE_BLOCKADDRESS record");
1488 Type *FnTy = getTypeByID(Record[0]);
1491 dyn_cast_or_null<Function>(ValueList.getConstantFwdRef(Record[1],FnTy));
1498 BlockAddrFwdRefs[Fn].push_back(std::make_pair(Record[2], FwdRef));
1545 SmallVector<uint64_t, 64> Record;
1644 switch (Stream.ReadRecord(Code, Record)) {
1647 if (Record.size() < 1)
1650 if (Record[0] != 0)
1655 if (ConvertToString(Record, 0, S))
1662 if (ConvertToString(Record, 0, S))
1669 if (ConvertToString(Record, 0, S))
1676 if (ConvertToString(Record, 0, S))
1683 if (ConvertToString(Record, 0, S))
1690 if (ConvertToString(Record, 0, S))
1699 if (Record.size() < 6)
1701 Type *Ty = getTypeByID(Record[0]);
1708 bool isConstant = Record[1];
1709 GlobalValue::LinkageTypes Linkage = GetDecodedLinkage(Record[3]);
1710 unsigned Alignment = (1 << Record[4]) >> 1;
1712 if (Record[5]) {
1713 if (Record[5]-1 >= SectionTable.size())
1715 Section = SectionTable[Record[5]-1];
1718 if (Record.size() > 6)
1719 Visibility = GetDecodedVisibility(Record[6]);
1721 if (Record.size() > 7)
1722 isThreadLocal = Record[7];
1725 if (Record.size() > 8)
1726 UnnamedAddr = Record[8];
1741 if (unsigned InitID = Record[2])
1748 if (Record.size() < 8)
1750 Type *Ty = getTypeByID(Record[0]);
1762 Func->setCallingConv(static_cast<CallingConv::ID>(Record[1]));
1763 bool isProto = Record[2];
1764 Func->setLinkage(GetDecodedLinkage(Record[3]));
1765 Func->setAttributes(getAttributes(Record[4]));
1767 Func->setAlignment((1 << Record[5]) >> 1);
1768 if (Record[6]) {
1769 if (Record[6]-1 >= SectionTable.size())
1771 Func->setSection(SectionTable[Record[6]-1]);
1773 Func->setVisibility(GetDecodedVisibility(Record[7]));
1774 if (Record.size() > 8 && Record[8]) {
1775 if (Record[8]-1 > GCTable.size())
1777 Func->setGC(GCTable[Record[8]-1].c_str());
1780 if (Record.size() > 9)
1781 UnnamedAddr = Record[9];
1794 if (Record.size() < 3)
1796 Type *Ty = getTypeByID(Record[0]);
1801 GlobalAlias *NewGA = new GlobalAlias(Ty, GetDecodedLinkage(Record[2]),
1804 if (Record.size() > 3)
1805 NewGA->setVisibility(GetDecodedVisibility(Record[3]));
1807 AliasInits.push_back(std::make_pair(NewGA, Record[1]));
1813 if (Record.size() < 1 || Record[0] > ValueList.size())
1815 ValueList.shrinkTo(Record[0]);
1818 Record.clear();
1903 SmallVector<uint64_t, 64> Record;
1931 switch (Stream.ReadRecord(Code, Record)) {
1934 if (Record.size() < 1)
1937 if (Record[0] != 0)
1942 if (ConvertToString(Record, 0, S))
1948 Record.clear();
2010 SmallVector<uint64_t, 64> Record;
2023 Record.clear();
2024 switch (Stream.ReadRecord(Code, Record)) {
2028 unsigned RecordLength = Record.size();
2029 if (Record.empty() || (RecordLength - 1) % 2 == 1)
2031 Instruction *Inst = InstructionList[Record[0]];
2033 unsigned Kind = Record[i];
2038 Value *Node = MDValueList.getValueFwdRef(Record[i+1]);
2068 SmallVector<uint64_t, 64> Record;
2106 Record.clear();
2108 unsigned BitCode = Stream.ReadRecord(Code, Record);
2113 if (Record.size() < 1 || Record[0] == 0)
2116 FunctionBBs.resize(Record[0]);
2146 if (I == 0 || Record.size() < 4)
2149 unsigned Line = Record[0], Col = Record[1];
2150 unsigned ScopeID = Record[2], IAID = Record[3];
2164 if (getValueTypePair(Record, OpNum, NextValueNo, LHS) ||
2165 getValue(Record, OpNum, LHS->getType(), RHS) ||
2166 OpNum+1 > Record.size())
2169 int Opc = GetDecodedBinaryOpcode(Record[OpNum++], LHS->getType());
2173 if (OpNum < Record.size()) {
2178 if (Record[OpNum] & (1 << bitc::OBO_NO_SIGNED_WRAP))
2180 if (Record[OpNum] & (1 << bitc::OBO_NO_UNSIGNED_WRAP))
2186 if (Record[OpNum] & (1 << bitc::PEO_EXACT))
2195 if (getValueTypePair(Record, OpNum, NextValueNo, Op) ||
2196 OpNum+2 != Record.size())
2199 Type *ResTy = getTypeByID(Record[OpNum]);
2200 int Opc = GetDecodedCastOpcode(Record[OpNum+1]);
2211 if (getValueTypePair(Record, OpNum, NextValueNo, BasePtr))
2215 while (OpNum != Record.size()) {
2217 if (getValueTypePair(Record, OpNum, NextValueNo, Op))
2233 if (getValueTypePair(Record, OpNum, NextValueNo, Agg))
2237 for (unsigned RecSize = Record.size();
2239 uint64_t Index = Record[OpNum];
2254 if (getValueTypePair(Record, OpNum, NextValueNo, Agg))
2257 if (getValueTypePair(Record, OpNum, NextValueNo, Val))
2261 for (unsigned RecSize = Record.size();
2263 uint64_t Index = Record[OpNum];
2279 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) ||
2280 getValue(Record, OpNum, TrueVal->getType(), FalseVal) ||
2281 getValue(Record, OpNum, Type::getInt1Ty(Context), Cond))
2294 if (getValueTypePair(Record, OpNum, NextValueNo, TrueVal) ||
2295 getValue(Record, OpNum, TrueVal->getType(), FalseVal) ||
2296 getValueTypePair(Record, OpNum, NextValueNo, Cond))
2319 if (getValueTypePair(Record, OpNum, NextValueNo, Vec) ||
2320 getValue(Record, OpNum, Type::getInt32Ty(Context), Idx))
2330 if (getValueTypePair(Record, OpNum, NextValueNo, Vec) ||
2331 getValue(Record, OpNum,
2333 getValue(Record, OpNum, Type::getInt32Ty(Context), Idx))
2343 if (getValueTypePair(Record, OpNum, NextValueNo, Vec1) ||
2344 getValue(Record, OpNum, Vec1->getType(), Vec2))
2347 if (getValueTypePair(Record, OpNum, NextValueNo, Mask))
2363 if (getValueTypePair(Record, OpNum, NextValueNo, LHS) ||
2364 getValue(Record, OpNum, LHS->getType(), RHS) ||
2365 OpNum+1 != Record.size())
2369 I = new FCmpInst((FCmpInst::Predicate)Record[OpNum], LHS, RHS);
2371 I = new ICmpInst((ICmpInst::Predicate)Record[OpNum], LHS, RHS);
2378 unsigned Size = Record.size();
2387 if (getValueTypePair(Record, OpNum, NextValueNo, Op))
2389 if (OpNum != Record.size())
2397 if (Record.size() != 1 && Record.size() != 3)
2399 BasicBlock *TrueDest = getBasicBlock(Record[0]);
2403 if (Record.size() == 1) {
2408 BasicBlock *FalseDest = getBasicBlock(Record[1]);
2409 Value *Cond = getFnValueByID(Record[2], Type::getInt1Ty(Context));
2418 if (Record.size() < 3 || (Record.size() & 1) == 0)
2420 Type *OpTy = getTypeByID(Record[0]);
2421 Value *Cond = getFnValueByID(Record[1], OpTy);
2422 BasicBlock *Default = getBasicBlock(Record[2]);
2425 unsigned NumCases = (Record.size()-3)/2;
2430 dyn_cast_or_null<ConstantInt>(getFnValueByID(Record[3+i*2], OpTy));
2431 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]);
2442 if (Record.size() < 2)
2444 Type *OpTy = getTypeByID(Record[0]);
2445 Value *Address = getFnValueByID(Record[1], OpTy);
2448 unsigned NumDests = Record.size()-2;
2452 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) {
2465 if (Record.size() < 4) return Error("Invalid INVOKE record");
2466 AttrListPtr PAL = getAttributes(Record[0]);
2467 unsigned CCInfo = Record[1];
2468 BasicBlock *NormalBB = getBasicBlock(Record[2]);
2469 BasicBlock *UnwindBB = getBasicBlock(Record[3]);
2473 if (getValueTypePair(Record, OpNum, NextValueNo, Callee))
2482 Record.size() < OpNum+FTy->getNumParams())
2487 Ops.push_back(getFnValueByID(Record[OpNum], FTy->getParamType(i)));
2492 if (Record.size() != OpNum)
2496 while (OpNum != Record.size()) {
2498 if (getValueTypePair(Record, OpNum, NextValueNo, Op))
2514 if (getValueTypePair(Record, Idx, NextValueNo, Val))
2529 if (Record.size() < 1 || ((Record.size()-1)&1))
2531 Type *Ty = getTypeByID(Record[0]);
2534 PHINode *PN = PHINode::Create(Ty, (Record.size()-1)/2);
2537 for (unsigned i = 0, e = Record.size()-1; i != e; i += 2) {
2538 Value *V = getFnValueByID(Record[1+i], Ty);
2539 BasicBlock *BB = getBasicBlock(Record[2+i]);
2550 if (Record.size() < 4)
2552 Type *Ty = getTypeByID(Record[Idx++]);
2555 if (getValueTypePair(Record, Idx, NextValueNo, PersFn))
2558 bool IsCleanup = !!Record[Idx++];
2559 unsigned NumClauses = Record[Idx++];
2564 LandingPadInst::ClauseType(Record[Idx++]); (void)CT;
2567 if (getValueTypePair(Record, Idx, NextValueNo, Val)) {
2587 if (Record.size() != 4)
2590 dyn_cast_or_null<PointerType>(getTypeByID(Record[0]));
2591 Type *OpTy = getTypeByID(Record[1]);
2592 Value *Size = getFnValueByID(Record[2], OpTy);
2593 unsigned Align = Record[3];
2602 if (getValueTypePair(Record, OpNum, NextValueNo, Op) ||
2603 OpNum+2 != Record.size())
2606 I = new LoadInst(Op, "", Record[OpNum+1], (1 << Record[OpNum]) >> 1);
2614 if (getValueTypePair(Record, OpNum, NextValueNo, Op) ||
2615 OpNum+4 != Record.size())
2619 AtomicOrdering Ordering = GetDecodedOrdering(Record[OpNum+2]);
2623 if (Ordering != NotAtomic && Record[OpNum] == 0)
2625 SynchronizationScope SynchScope = GetDecodedSynchScope(Record[OpNum+3]);
2627 I = new LoadInst(Op, "", Record[OpNum+1], (1 << Record[OpNum]) >> 1,
2635 if (getValueTypePair(Record, OpNum, NextValueNo, Ptr) ||
2636 getValue(Record, OpNum,
2638 OpNum+2 != Record.size())
2641 I = new StoreInst(Val, Ptr, Record[OpNum+1], (1 << Record[OpNum]) >> 1);
2649 if (getValueTypePair(Record, OpNum, NextValueNo, Ptr) ||
2650 getValue(Record, OpNum,
2652 OpNum+4 != Record.size())
2655 AtomicOrdering Ordering = GetDecodedOrdering(Record[OpNum+2]);
2659 SynchronizationScope SynchScope = GetDecodedSynchScope(Record[OpNum+3]);
2660 if (Ordering != NotAtomic && Record[OpNum] == 0)
2663 I = new StoreInst(Val, Ptr, Record[OpNum+1], (1 << Record[OpNum]) >> 1,
2672 if (getValueTypePair(Record, OpNum, NextValueNo, Ptr) ||
2673 getValue(Record, OpNum,
2675 getValue(Record, OpNum,
2677 OpNum+3 != Record.size())
2679 AtomicOrdering Ordering = GetDecodedOrdering(Record[OpNum+1]);
2682 SynchronizationScope SynchScope = GetDecodedSynchScope(Record[OpNum+2]);
2684 cast<AtomicCmpXchgInst>(I)->setVolatile(Record[OpNum]);
2692 if (getValueTypePair(Record, OpNum, NextValueNo, Ptr) ||
2693 getValue(Record, OpNum,
2695 OpNum+4 != Record.size())
2697 AtomicRMWInst::BinOp Operation = GetDecodedRMWOperation(Record[OpNum]);
2701 AtomicOrdering Ordering = GetDecodedOrdering(Record[OpNum+2]);
2704 SynchronizationScope SynchScope = GetDecodedSynchScope(Record[OpNum+3]);
2706 cast<AtomicRMWInst>(I)->setVolatile(Record[OpNum+1]);
2711 if (2 != Record.size())
2713 AtomicOrdering Ordering = GetDecodedOrdering(Record[0]);
2717 SynchronizationScope SynchScope = GetDecodedSynchScope(Record[1]);
2724 if (Record.size() < 3)
2727 AttrListPtr PAL = getAttributes(Record[0]);
2728 unsigned CCInfo = Record[1];
2732 if (getValueTypePair(Record, OpNum, NextValueNo, Callee))
2738 if (!FTy || Record.size() < FTy->getNumParams()+OpNum)
2745 Args.push_back(getBasicBlock(Record[OpNum]));
2747 Args.push_back(getFnValueByID(Record[OpNum], FTy->getParamType(i)));
2753 if (OpNum != Record.size())
2756 while (OpNum != Record.size()) {
2758 if (getValueTypePair(Record, OpNum, NextValueNo, Op))
2773 if (Record.size() < 3)
2775 Type *OpTy = getTypeByID(Record[0]);
2776 Value *Op = getFnValueByID(Record[1], OpTy);
2777 Type *ResTy = getTypeByID(Record[2]);