Home | History | Annotate | Download | only in Writer

Lines Matching refs:Vals

151   SmallVector<unsigned, 64> Vals;
157 Vals.push_back(Str[i]);
161 Stream.EmitRecord(Code, Vals, AbbrevToUse);
520 SmallVector<unsigned, 64> Vals;
528 Vals.push_back(VE.getTypeID(GV->getType()));
529 Vals.push_back(GV->isConstant());
530 Vals.push_back(GV->isDeclaration() ? 0 :
532 Vals.push_back(getEncodedLinkage(GV));
533 Vals.push_back(Log2_32(GV->getAlignment())+1);
534 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0);
538 Vals.push_back(getEncodedVisibility(GV));
539 Vals.push_back(getEncodedThreadLocalMode(GV));
540 Vals.push_back(GV->hasUnnamedAddr());
541 Vals.push_back(GV->isExternallyInitialized());
546 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse);
547 Vals.clear();
554 Vals.push_back(VE.getTypeID(F->getType()));
555 Vals.push_back(F->getCallingConv());
556 Vals.push_back(F->isDeclaration());
557 Vals.push_back(getEncodedLinkage(F));
558 Vals.push_back(VE.getAttributeID(F->getAttributes()));
559 Vals.push_back(Log2_32(F->getAlignment())+1);
560 Vals.push_back(F->hasSection() ? SectionMap[F->getSection()] : 0);
561 Vals.push_back(getEncodedVisibility(F));
562 Vals.push_back(F->hasGC() ? GCMap[F->getGC()] : 0);
563 Vals.push_back(F->hasUnnamedAddr());
566 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse);
567 Vals.clear();
574 Vals.push_back(VE.getTypeID(AI->getType()));
575 Vals.push_back(VE.getValueID(AI->getAliasee()));
576 Vals.push_back(getEncodedLinkage(AI));
577 Vals.push_back(getEncodedVisibility(AI));
579 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse);
580 Vals.clear();
636 const ValueEnumerator::ValueList &Vals = VE.getMDValues();
640 for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
642 if (const MDNode *N = dyn_cast<MDNode>(Vals[i].first)) {
650 } else if (const MDString *MDS = dyn_cast<MDString>(Vals[i].first)) {
704 const SmallVector<const MDNode *, 8> &Vals = VE.getFunctionLocalMDValues();
705 for (unsigned i = 0, e = Vals.size(); i != e; ++i)
706 if (const MDNode *N = Vals[i])
776 static void emitSignedInt64(SmallVectorImpl<uint64_t> &Vals, uint64_t V) {
778 Vals.push_back(V << 1);
780 Vals.push_back((-V << 1) | 1);
783 static void EmitAPInt(SmallVectorImpl<uint64_t> &Vals,
789 emitSignedInt64(Vals, V);
801 Vals.push_back(NWords);
805 emitSignedInt64(Vals, RawWords[i]);
853 const ValueEnumerator::ValueList &Vals = VE.getValues();
856 const Value *V = Vals[i].first;
1060 const ValueEnumerator::ValueList &Vals = VE.getValues();
1064 for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
1065 if (!isa<GlobalValue>(Vals[i].first)) {
1066 WriteConstants(i, Vals.size(), VE, Stream, true);
1077 /// This function adds V's value ID to Vals. If the value ID is higher than the
1081 SmallVector<unsigned, 64> &Vals,
1085 Vals.push_back(InstID - ValID);
1087 Vals.push_back(VE.getTypeID(V->getType()));
1096 SmallVector<unsigned, 64> &Vals,
1099 Vals.push_back(InstID - ValID);
1103 SmallVector<uint64_t, 128> &Vals,
1106 Vals.push_back(InstID - ValID);
1110 SmallVector<uint64_t, 128> &Vals,
1114 emitSignedInt64(Vals, diff);
1120 SmallVector<unsigned, 64> &Vals) {
1128 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1130 Vals.push_back(VE.getTypeID(I.getType()));
1131 Vals.push_back(GetEncodedCastOpcode(I.getOpcode()));
1135 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1137 pushValue(I.getOperand(1), InstID, Vals, VE);
1138 Vals.push_back(GetEncodedBinaryOpcode(I.getOpcode()));
1143 Vals.push_back(Flags);
1153 PushValueAndType(I.getOperand(i), InstID, Vals, VE);
1157 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1160 Vals.push_back(*i);
1165 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1166 PushValueAndType(I.getOperand(1), InstID, Vals, VE);
1169 Vals.push_back(*i);
1174 PushValueAndType(I.getOperand(1), InstID, Vals, VE);
1175 pushValue(I.getOperand(2), InstID, Vals, VE);
1176 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1180 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1181 pushValue(I.getOperand(1), InstID, Vals, VE);
1185 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1186 pushValue(I.getOperand(1), InstID, Vals, VE);
1187 pushValue(I.getOperand(2), InstID, Vals, VE);
1191 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1192 pushValue(I.getOperand(1), InstID, Vals, VE);
1193 pushValue(I.getOperand(2), InstID, Vals, VE);
1199 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1200 pushValue(I.getOperand(1), InstID, Vals, VE);
1201 Vals.push_back(cast<CmpInst>(I).getPredicate());
1211 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1215 PushValueAndType(I.getOperand(i), InstID, Vals, VE);
1223 Vals.push_back(VE.getValueID(II.getSuccessor(0)));
1225 Vals.push_back(VE.getValueID(II.getSuccessor(1)));
1226 pushValue(II.getCondition(), InstID, Vals, VE);
1232 // Redefine Vals, since here we need to use 64 bit values
1286 // Also do expected action - clear external Vals collection:
1287 Vals.clear();
1293 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
1295 pushValue(I.getOperand(0), InstID, Vals, VE);
1297 Vals.push_back(VE.getValueID(I.getOperand(i)));
1307 Vals.push_back(VE.getAttributeID(II->getAttributes()));
1308 Vals.push_back(II->getCallingConv());
1309 Vals.push_back(VE.getValueID(II->getNormalDest()));
1310 Vals.push_back(VE.getValueID(II->getUnwindDest()));
1311 PushValueAndType(Callee, InstID, Vals, VE);
1315 pushValue(I.getOperand(i), InstID, Vals, VE); // fixed param.
1321 PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg
1327 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1355 Vals.push_back(VE.getTypeID(LP.getType()));
1356 PushValueAndType(LP.getPersonalityFn(), InstID, Vals, VE);
1357 Vals.push_back(LP.isCleanup());
1358 Vals.push_back(LP.getNumClauses());
1361 Vals.push_back(LandingPadInst::Catch);
1363 Vals.push_back(LandingPadInst::Filter);
1364 PushValueAndType(LP.getClause(I), InstID, Vals, VE);
1371 Vals.push_back(VE.getTypeID(I.getType()));
1372 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
1373 Vals.push_back(VE.getValueID(I.getOperand(0))); // size.
1374 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1);
1380 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1383 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) // ptr
1386 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1);
1387 Vals.push_back(cast<LoadInst>(I).isVolatile());
1389 Vals.push_back(GetEncodedOrdering(cast<LoadInst>(I).getOrdering()));
1390 Vals.push_back(GetEncodedSynchScope(cast<LoadInst>(I).getSynchScope()));
1398 PushValueAndType(I.getOperand(1), InstID, Vals, VE); // ptrty + ptr
1399 pushValue(I.getOperand(0), InstID, Vals, VE); // val.
1400 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1);
1401 Vals.push_back(cast<StoreInst>(I).isVolatile());
1403 Vals.push_back(GetEncodedOrdering(cast<StoreInst>(I).getOrdering()));
1404 Vals.push_back(GetEncodedSynchScope(cast<StoreInst>(I).getSynchScope()));
1409 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr
1410 pushValue(I.getOperand(1), InstID, Vals, VE); // cmp.
1411 pushValue(I.getOperand(2), InstID, Vals, VE); // newval.
1412 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile());
1413 Vals.push_back(GetEncodedOrdering(
1415 Vals.push_back(GetEncodedSynchScope(
1420 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr
1421 pushValue(I.getOperand(1), InstID, Vals, VE); // val.
1422 Vals.push_back(GetEncodedRMWOperation(
1424 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile());
1425 Vals.push_back(GetEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering()));
1426 Vals.push_back(GetEncodedSynchScope(
1431 Vals.push_back(GetEncodedOrdering(cast<FenceInst>(I).getOrdering()));
1432 Vals.push_back(GetEncodedSynchScope(cast<FenceInst>(I).getSynchScope()));
1441 Vals.push_back(VE.getAttributeID(CI.getAttributes()));
1442 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall()));
1443 PushValueAndType(CI.getCalledValue(), InstID, Vals, VE); // Callee
1449 Vals.push_back(VE.getValueID(CI.getArgOperand(i)));
1451 pushValue(CI.getArgOperand(i), InstID, Vals, VE); // fixed param.
1458 PushValueAndType(CI.getArgOperand(i), InstID, Vals, VE); // varargs
1464 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); // valistty
1465 pushValue(I.getOperand(0), InstID, Vals, VE); // valist.
1466 Vals.push_back(VE.getTypeID(I.getType())); // restype.
1470 Stream.EmitRecord(Code, Vals, AbbrevToUse);
1471 Vals.clear();
1538 SmallVector<unsigned, 64> Vals;
1542 Vals.push_back(VE.getBasicBlocks().size());
1543 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals);
1544 Vals.clear();
1565 WriteInstruction(*I, InstID, VE, Stream, Vals);
1579 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals);
1584 Vals.push_back(DL.getLine());
1585 Vals.push_back(DL.getCol());
1586 Vals.push_back(Scope ? VE.getValueID(Scope)+1 : 0);
1587 Vals.push_back(IA ? VE.getValueID(IA)+1 : 0);
1588 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals);
1589 Vals.clear();
1866 SmallVector<unsigned, 1> Vals;
1868 Vals.push_back(CurVersion);
1869 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals);