Lines Matching defs:Vals
150 SmallVector<unsigned, 64> Vals;
156 Vals.push_back(Str[i]);
160 Stream.EmitRecord(Code, Vals, AbbrevToUse);
477 SmallVector<unsigned, 64> Vals;
485 Vals.push_back(VE.getTypeID(GV->getType()));
486 Vals.push_back(GV->isConstant());
487 Vals.push_back(GV->isDeclaration() ? 0 :
489 Vals.push_back(getEncodedLinkage(GV));
490 Vals.push_back(Log2_32(GV->getAlignment())+1);
491 Vals.push_back(GV->hasSection() ? SectionMap[GV->getSection()] : 0);
495 Vals.push_back(getEncodedVisibility(GV));
496 Vals.push_back(getEncodedThreadLocalMode(GV));
497 Vals.push_back(GV->hasUnnamedAddr());
498 Vals.push_back(GV->isExternallyInitialized());
503 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse);
504 Vals.clear();
511 Vals.push_back(VE.getTypeID(F->getType()));
512 Vals.push_back(F->getCallingConv());
513 Vals.push_back(F->isDeclaration());
514 Vals.push_back(getEncodedLinkage(F));
515 Vals.push_back(VE.getAttributeID(F->getAttributes()));
516 Vals.push_back(Log2_32(F->getAlignment())+1);
517 Vals.push_back(F->hasSection() ? SectionMap[F->getSection()] : 0);
518 Vals.push_back(getEncodedVisibility(F));
519 Vals.push_back(F->hasGC() ? GCMap[F->getGC()] : 0);
520 Vals.push_back(F->hasUnnamedAddr());
523 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse);
524 Vals.clear();
531 Vals.push_back(VE.getTypeID(AI->getType()));
532 Vals.push_back(VE.getValueID(AI->getAliasee()));
533 Vals.push_back(getEncodedLinkage(AI));
534 Vals.push_back(getEncodedVisibility(AI));
536 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse);
537 Vals.clear();
596 const llvm_3_2::ValueEnumerator::ValueList &Vals = VE.getMDValues();
600 for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
602 if (const MDNode *N = dyn_cast<MDNode>(Vals[i].first)) {
610 } else if (const MDString *MDS = dyn_cast<MDString>(Vals[i].first)) {
664 const SmallVector<const MDNode *, 8> &Vals = VE.getFunctionLocalMDValues();
665 for (unsigned i = 0, e = Vals.size(); i != e; ++i)
666 if (const MDNode *N = Vals[i])
736 static void EmitAPInt(SmallVectorImpl<uint64_t> &Vals,
743 Vals.push_back(V << 1);
745 Vals.push_back((-V << 1) | 1);
757 Vals.push_back(NWords);
763 Vals.push_back(V << 1);
765 Vals.push_back((-V << 1) | 1);
813 const llvm_3_2::ValueEnumerator::ValueList &Vals = VE.getValues();
816 const Value *V = Vals[i].first;
1020 const llvm_3_2::ValueEnumerator::ValueList &Vals = VE.getValues();
1024 for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
1025 if (!isa<GlobalValue>(Vals[i].first)) {
1026 WriteConstants(i, Vals.size(), VE, Stream, true);
1037 /// This function adds V's value ID to Vals. If the value ID is higher than the
1041 SmallVector<unsigned, 64> &Vals,
1044 Vals.push_back(ValID);
1046 Vals.push_back(VE.getTypeID(V->getType()));
1056 SmallVector<unsigned, 64> &Vals) {
1064 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1066 Vals.push_back(VE.getTypeID(I.getType()));
1067 Vals.push_back(GetEncodedCastOpcode(I.getOpcode()));
1071 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1073 Vals.push_back(VE.getValueID(I.getOperand(1)));
1074 Vals.push_back(GetEncodedBinaryOpcode(I.getOpcode()));
1079 Vals.push_back(Flags);
1089 PushValueAndType(I.getOperand(i), InstID, Vals, VE);
1093 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1096 Vals.push_back(*i);
1101 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1102 PushValueAndType(I.getOperand(1), InstID, Vals, VE);
1105 Vals.push_back(*i);
1110 PushValueAndType(I.getOperand(1), InstID, Vals, VE);
1111 Vals.push_back(VE.getValueID(I.getOperand(2)));
1112 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1116 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1117 Vals.push_back(VE.getValueID(I.getOperand(1)));
1121 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1122 Vals.push_back(VE.getValueID(I.getOperand(1)));
1123 Vals.push_back(VE.getValueID(I.getOperand(2)));
1127 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1128 Vals.push_back(VE.getValueID(I.getOperand(1)));
1129 Vals.push_back(VE.getValueID(I.getOperand(2)));
1135 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1136 Vals.push_back(VE.getValueID(I.getOperand(1)));
1137 Vals.push_back(cast<CmpInst>(I).getPredicate());
1147 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1151 PushValueAndType(I.getOperand(i), InstID, Vals, VE);
1159 Vals.push_back(VE.getValueID(II.getSuccessor(0)));
1161 Vals.push_back(VE.getValueID(II.getSuccessor(1)));
1162 Vals.push_back(VE.getValueID(II.getCondition()));
1168 // Redefine Vals, since here we need to use 64 bit values
1222 // Also do expected action - clear external Vals collection:
1223 Vals.clear();
1229 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
1231 Vals.push_back(VE.getValueID(I.getOperand(i)));
1241 Vals.push_back(VE.getAttributeID(II->getAttributes()));
1242 Vals.push_back(II->getCallingConv());
1243 Vals.push_back(VE.getValueID(II->getNormalDest()));
1244 Vals.push_back(VE.getValueID(II->getUnwindDest()));
1245 PushValueAndType(Callee, InstID, Vals, VE);
1249 Vals.push_back(VE.getValueID(I.getOperand(i))); // fixed param.
1255 PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg
1261 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1271 Vals.push_back(VE.getTypeID(PN.getType()));
1273 Vals.push_back(VE.getValueID(PN.getIncomingValue(i)));
1274 Vals.push_back(VE.getValueID(PN.getIncomingBlock(i)));
1282 Vals.push_back(VE.getTypeID(LP.getType()));
1283 Vals, VE);
1284 Vals.push_back(LP.isCleanup());
1285 Vals.push_back(LP.getNumClauses());
1288 Vals.push_back(LandingPadInst::Catch);
1290 Vals.push_back(LandingPadInst::Filter);
1291 PushValueAndType(LP.getClause(I), InstID, Vals, VE);
1298 Vals.push_back(VE.getTypeID(I.getType()));
1299 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
1300 Vals.push_back(VE.getValueID(I.getOperand(0))); // size.
1301 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1);
1307 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1310 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) // ptr
1313 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1);
1314 Vals.push_back(cast<LoadInst>(I).isVolatile());
1316 Vals.push_back(GetEncodedOrdering(cast<LoadInst>(I).getOrdering()));
1317 Vals.push_back(GetEncodedSynchScope(cast<LoadInst>(I).getSynchScope()));
1325 PushValueAndType(I.getOperand(1), InstID, Vals, VE); // ptrty + ptr
1326 Vals.push_back(VE.getValueID(I.getOperand(0))); // val.
1327 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1);
1328 Vals.push_back(cast<StoreInst>(I).isVolatile());
1330 Vals.push_back(GetEncodedOrdering(cast<StoreInst>(I).getOrdering()));
1331 Vals.push_back(GetEncodedSynchScope(cast<StoreInst>(I).getSynchScope()));
1336 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr
1337 Vals.push_back(VE.getValueID(I.getOperand(1))); // cmp.
1338 Vals.push_back(VE.getValueID(I.getOperand(2))); // newval.
1339 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile());
1340 Vals.push_back(GetEncodedOrdering(
1342 Vals.push_back(GetEncodedSynchScope(
1347 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr
1348 Vals.push_back(VE.getValueID(I.getOperand(1))); // val.
1349 Vals.push_back(GetEncodedRMWOperation(
1351 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile());
1352 Vals.push_back(GetEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering()));
1353 Vals.push_back(GetEncodedSynchScope(
1358 Vals.push_back(GetEncodedOrdering(cast<FenceInst>(I).getOrdering()));
1359 Vals.push_back(GetEncodedSynchScope(cast<FenceInst>(I).getSynchScope()));
1368 Vals.push_back(VE.getAttributeID(CI.getAttributes()));
1369 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall()));
1370 PushValueAndType(CI.getCalledValue(), InstID, Vals, VE); // Callee
1374 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); // fixed param.
1380 PushValueAndType(CI.getArgOperand(i), InstID, Vals, VE); // varargs
1386 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); // valistty
1387 Vals.push_back(VE.getValueID(I.getOperand(0))); // valist.
1388 Vals.push_back(VE.getTypeID(I.getType())); // restype.
1392 Stream.EmitRecord(Code, Vals, AbbrevToUse);
1393 Vals.clear();
1460 SmallVector<unsigned, 64> Vals;
1464 Vals.push_back(VE.getBasicBlocks().size());
1465 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals);
1466 Vals.clear();
1487 WriteInstruction(*I, InstID, VE, Stream, Vals);
1501 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals);
1506 Vals.push_back(DL.getLine());
1507 Vals.push_back(DL.getCol());
1508 Vals.push_back(Scope ? VE.getValueID(Scope)+1 : 0);
1509 Vals.push_back(IA ? VE.getValueID(IA)+1 : 0);
1510 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals);
1511 Vals.clear();
1792 SmallVector<unsigned, 1> Vals;
1793 Vals.push_back(CurVersion);
1794 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals);