Lines Matching defs:Vals

145   SmallVector<unsigned, 64> Vals;
151 Vals.push_back(Str[i]);
155 Stream.EmitRecord(Code, Vals, AbbrevToUse);
477 SmallVector<unsigned, 64> Vals;
484 Vals.push_back(VE.getTypeID(GV.getType()));
485 Vals.push_back(GV.isConstant());
486 Vals.push_back(GV.isDeclaration() ? 0 :
488 Vals.push_back(getEncodedLinkage(GV));
489 Vals.push_back(Log2_32(GV.getAlignment())+1);
490 Vals.push_back(GV.hasSection() ? SectionMap[GV.getSection()] : 0);
494 Vals.push_back(getEncodedVisibility(GV));
495 Vals.push_back(getEncodedThreadLocalMode(GV));
496 Vals.push_back(GV.hasUnnamedAddr());
497 Vals.push_back(GV.isExternallyInitialized());
502 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse);
503 Vals.clear();
510 Vals.push_back(VE.getTypeID(F.getType()));
511 Vals.push_back(F.getCallingConv());
512 Vals.push_back(F.isDeclaration());
513 Vals.push_back(getEncodedLinkage(F));
514 Vals.push_back(VE.getAttributeID(F.getAttributes()));
515 Vals.push_back(Log2_32(F.getAlignment())+1);
516 Vals.push_back(F.hasSection() ? SectionMap[F.getSection()] : 0);
517 Vals.push_back(getEncodedVisibility(F));
518 Vals.push_back(F.hasGC() ? GCMap[F.getGC()] : 0);
519 Vals.push_back(F.hasUnnamedAddr());
522 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse);
523 Vals.clear();
529 Vals.push_back(VE.getTypeID(A.getType()));
530 Vals.push_back(VE.getValueID(A.getAliasee()));
531 Vals.push_back(getEncodedLinkage(A));
532 Vals.push_back(getEncodedVisibility(A));
534 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse);
535 Vals.clear();
796 static void emitSignedInt64(SmallVectorImpl<uint64_t> &Vals, uint64_t V) {
798 Vals.push_back(V << 1);
800 Vals.push_back((-V << 1) | 1);
845 const llvm_3_2::ValueEnumerator::ValueList &Vals = VE.getValues();
848 const Value *V = Vals[i].first;
1068 const llvm_3_2::ValueEnumerator::ValueList &Vals = VE.getValues();
1072 for (unsigned i = 0, e = Vals.size(); i != e; ++i) {
1073 if (!isa<GlobalValue>(Vals[i].first)) {
1074 WriteConstants(i, Vals.size(), VE, Stream, true);
1085 /// This function adds V's value ID to Vals. If the value ID is higher than the
1089 SmallVector<unsigned, 64> &Vals,
1092 Vals.push_back(ValID);
1094 Vals.push_back(VE.getTypeID(V->getType()));
1104 SmallVector<unsigned, 64> &Vals) {
1112 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1114 Vals.push_back(VE.getTypeID(I.getType()));
1115 Vals.push_back(GetEncodedCastOpcode(I.getOpcode()));
1119 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1121 Vals.push_back(VE.getValueID(I.getOperand(1)));
1122 Vals.push_back(GetEncodedBinaryOpcode(I.getOpcode()));
1127 Vals.push_back(Flags);
1137 PushValueAndType(I.getOperand(i), InstID, Vals, VE);
1141 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1144 Vals.push_back(*i);
1149 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1150 PushValueAndType(I.getOperand(1), InstID, Vals, VE);
1153 Vals.push_back(*i);
1158 PushValueAndType(I.getOperand(1), InstID, Vals, VE);
1159 Vals.push_back(VE.getValueID(I.getOperand(2)));
1160 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1164 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1165 Vals.push_back(VE.getValueID(I.getOperand(1)));
1169 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1170 Vals.push_back(VE.getValueID(I.getOperand(1)));
1171 Vals.push_back(VE.getValueID(I.getOperand(2)));
1175 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1176 Vals.push_back(VE.getValueID(I.getOperand(1)));
1177 Vals.push_back(VE.getValueID(I.getOperand(2)));
1183 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1184 Vals.push_back(VE.getValueID(I.getOperand(1)));
1185 Vals.push_back(cast<CmpInst>(I).getPredicate());
1195 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE))
1199 PushValueAndType(I.getOperand(i), InstID, Vals, VE);
1207 Vals.push_back(VE.getValueID(II.getSuccessor(0)));
1209 Vals.push_back(VE.getValueID(II.getSuccessor(1)));
1210 Vals.push_back(VE.getValueID(II.getCondition()));
1218 Vals.push_back(VE.getTypeID(SI.getCondition()->getType()));
1219 Vals.push_back(VE.getValueID(SI.getCondition()));
1220 Vals.push_back(VE.getValueID(SI.getDefaultDest()));
1223 Vals.push_back(VE.getValueID(i.getCaseValue()));
1224 Vals.push_back(VE.getValueID(i.getCaseSuccessor()));
1230 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
1232 Vals.push_back(VE.getValueID(I.getOperand(i)));
1242 Vals.push_back(VE.getAttributeID(II->getAttributes()));
1243 Vals.push_back(II->getCallingConv());
1244 Vals.push_back(VE.getValueID(II->getNormalDest()));
1245 Vals.push_back(VE.getValueID(II->getUnwindDest()));
1246 PushValueAndType(Callee, InstID, Vals, VE);
1250 Vals.push_back(VE.getValueID(I.getOperand(i))); // fixed param.
1256 PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg
1262 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1272 Vals.push_back(VE.getTypeID(PN.getType()));
1274 Vals.push_back(VE.getValueID(PN.getIncomingValue(i)));
1275 Vals.push_back(VE.getValueID(PN.getIncomingBlock(i)));
1283 Vals.push_back(VE.getTypeID(LP.getType()));
1284 PushValueAndType(LP.getPersonalityFn(), InstID, Vals, VE);
1285 Vals.push_back(LP.isCleanup());
1286 Vals.push_back(LP.getNumClauses());
1289 Vals.push_back(LandingPadInst::Catch);
1291 Vals.push_back(LandingPadInst::Filter);
1292 PushValueAndType(LP.getClause(I), InstID, Vals, VE);
1299 Vals.push_back(VE.getTypeID(I.getType()));
1300 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType()));
1301 Vals.push_back(VE.getValueID(I.getOperand(0))); // size.
1302 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1);
1309 PushValueAndType(I.getOperand(0), InstID, Vals, VE);
1312 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) // ptr
1315 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1);
1316 Vals.push_back(cast<LoadInst>(I).isVolatile());
1318 Vals.push_back(GetEncodedOrdering(cast<LoadInst>(I).getOrdering()));
1319 Vals.push_back(GetEncodedSynchScope(cast<LoadInst>(I).getSynchScope()));
1327 PushValueAndType(I.getOperand(1), InstID, Vals, VE); // ptrty + ptr
1328 Vals.push_back(VE.getValueID(I.getOperand(0))); // val.
1329 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1);
1330 Vals.push_back(cast<StoreInst>(I).isVolatile());
1332 Vals.push_back(GetEncodedOrdering(cast<StoreInst>(I).getOrdering()));
1333 Vals.push_back(GetEncodedSynchScope(cast<StoreInst>(I).getSynchScope()));
1338 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr
1339 Vals.push_back(VE.getValueID(I.getOperand(1))); // cmp.
1340 Vals.push_back(VE.getValueID(I.getOperand(2))); // newval.
1341 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile());
1342 Vals.push_back(GetEncodedOrdering(
1344 Vals.push_back(GetEncodedSynchScope(
1349 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr
1350 Vals.push_back(VE.getValueID(I.getOperand(1))); // val.
1351 Vals.push_back(GetEncodedRMWOperation(
1353 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile());
1354 Vals.push_back(GetEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering()));
1355 Vals.push_back(GetEncodedSynchScope(
1360 Vals.push_back(GetEncodedOrdering(cast<FenceInst>(I).getOrdering()));
1361 Vals.push_back(GetEncodedSynchScope(cast<FenceInst>(I).getSynchScope()));
1370 Vals.push_back(VE.getAttributeID(CI.getAttributes()));
1371 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall()));
1372 PushValueAndType(CI.getCalledValue(), InstID, Vals, VE); // Callee
1376 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); // fixed param.
1382 PushValueAndType(CI.getArgOperand(i), InstID, Vals, VE); // varargs
1388 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); // valistty
1389 Vals.push_back(VE.getValueID(I.getOperand(0))); // valist.
1390 Vals.push_back(VE.getTypeID(I.getType())); // restype.
1394 Stream.EmitRecord(Code, Vals, AbbrevToUse);
1395 Vals.clear();
1495 SmallVector<unsigned, 64> Vals;
1499 Vals.push_back(VE.getBasicBlocks().size());
1500 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals);
1501 Vals.clear();
1522 WriteInstruction(*I, InstID, VE, Stream, Vals);
1537 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals);
1541 Vals.push_back(DL->getLine());
1542 Vals.push_back(DL->getColumn());
1543 Vals.push_back(VE.getMetadataOrNullID(DL->getScope()));
1544 Vals.push_back(VE.getMetadataOrNullID(DL->getInlinedAt()));
1545 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals);
1546 Vals.clear();
1730 SmallVector<unsigned, 1> Vals;
1734 Vals.push_back(CurVersion);
1735 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals);