Lines Matching refs:Vals

145   SmallVector<unsigned, 64> Vals;  in WriteStringRecord()  local
151 Vals.push_back(Str[i]); in WriteStringRecord()
155 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteStringRecord()
477 SmallVector<unsigned, 64> Vals; in WriteModuleInfo() local
484 Vals.push_back(VE.getTypeID(GV.getType())); in WriteModuleInfo()
485 Vals.push_back(GV.isConstant()); in WriteModuleInfo()
486 Vals.push_back(GV.isDeclaration() ? 0 : in WriteModuleInfo()
488 Vals.push_back(getEncodedLinkage(GV)); in WriteModuleInfo()
489 Vals.push_back(Log2_32(GV.getAlignment())+1); in WriteModuleInfo()
490 Vals.push_back(GV.hasSection() ? SectionMap[GV.getSection()] : 0); in WriteModuleInfo()
495 Vals.push_back(getEncodedVisibility(GV)); in WriteModuleInfo()
496 Vals.push_back(getEncodedThreadLocalMode(GV)); in WriteModuleInfo()
497 Vals.push_back(GV.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in WriteModuleInfo()
498 Vals.push_back(GV.isExternallyInitialized()); in WriteModuleInfo()
503 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in WriteModuleInfo()
504 Vals.clear(); in WriteModuleInfo()
511 Vals.push_back(VE.getTypeID(F.getType())); in WriteModuleInfo()
512 Vals.push_back(F.getCallingConv()); in WriteModuleInfo()
513 Vals.push_back(F.isDeclaration()); in WriteModuleInfo()
514 Vals.push_back(getEncodedLinkage(F)); in WriteModuleInfo()
515 Vals.push_back(VE.getAttributeID(F.getAttributes())); in WriteModuleInfo()
516 Vals.push_back(Log2_32(F.getAlignment())+1); in WriteModuleInfo()
517 Vals.push_back(F.hasSection() ? SectionMap[F.getSection()] : 0); in WriteModuleInfo()
518 Vals.push_back(getEncodedVisibility(F)); in WriteModuleInfo()
519 Vals.push_back(F.hasGC() ? GCMap[F.getGC()] : 0); in WriteModuleInfo()
520 Vals.push_back(F.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in WriteModuleInfo()
523 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in WriteModuleInfo()
524 Vals.clear(); in WriteModuleInfo()
530 Vals.push_back(VE.getTypeID(A.getType())); in WriteModuleInfo()
531 Vals.push_back(VE.getValueID(A.getAliasee())); in WriteModuleInfo()
532 Vals.push_back(getEncodedLinkage(A)); in WriteModuleInfo()
533 Vals.push_back(getEncodedVisibility(A)); in WriteModuleInfo()
535 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS_OLD, Vals, AbbrevToUse); in WriteModuleInfo()
536 Vals.clear(); in WriteModuleInfo()
797 static void emitSignedInt64(SmallVectorImpl<uint64_t> &Vals, uint64_t V) { in emitSignedInt64() argument
799 Vals.push_back(V << 1); in emitSignedInt64()
801 Vals.push_back((-V << 1) | 1); in emitSignedInt64()
846 const llvm_3_2::ValueEnumerator::ValueList &Vals = VE.getValues(); in WriteConstants() local
849 const Value *V = Vals[i].first; in WriteConstants()
1060 const llvm_3_2::ValueEnumerator::ValueList &Vals = VE.getValues(); in WriteModuleConstants() local
1064 for (unsigned i = 0, e = Vals.size(); i != e; ++i) { in WriteModuleConstants()
1065 if (!isa<GlobalValue>(Vals[i].first)) { in WriteModuleConstants()
1066 WriteConstants(i, Vals.size(), VE, Stream, true); in WriteModuleConstants()
1081 SmallVector<unsigned, 64> &Vals, in PushValueAndType() argument
1084 Vals.push_back(ValID); in PushValueAndType()
1086 Vals.push_back(VE.getTypeID(V->getType())); in PushValueAndType()
1096 SmallVector<unsigned, 64> &Vals) { in WriteInstruction() argument
1104 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1106 Vals.push_back(VE.getTypeID(I.getType())); in WriteInstruction()
1107 Vals.push_back(GetEncodedCastOpcode(I.getOpcode())); in WriteInstruction()
1111 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1113 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1114 Vals.push_back(GetEncodedBinaryOpcode(I.getOpcode())); in WriteInstruction()
1119 Vals.push_back(Flags); in WriteInstruction()
1129 PushValueAndType(I.getOperand(i), InstID, Vals, VE); in WriteInstruction()
1133 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1136 Vals.push_back(*i); in WriteInstruction()
1141 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1142 PushValueAndType(I.getOperand(1), InstID, Vals, VE); in WriteInstruction()
1145 Vals.push_back(*i); in WriteInstruction()
1150 PushValueAndType(I.getOperand(1), InstID, Vals, VE); in WriteInstruction()
1151 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1152 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1156 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1157 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1161 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1162 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1163 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1167 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1168 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1169 Vals.push_back(VE.getValueID(I.getOperand(2))); in WriteInstruction()
1175 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1176 Vals.push_back(VE.getValueID(I.getOperand(1))); in WriteInstruction()
1177 Vals.push_back(cast<CmpInst>(I).getPredicate()); in WriteInstruction()
1187 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) in WriteInstruction()
1191 PushValueAndType(I.getOperand(i), InstID, Vals, VE); in WriteInstruction()
1199 Vals.push_back(VE.getValueID(II.getSuccessor(0))); in WriteInstruction()
1201 Vals.push_back(VE.getValueID(II.getSuccessor(1))); in WriteInstruction()
1202 Vals.push_back(VE.getValueID(II.getCondition())); in WriteInstruction()
1210 Vals.push_back(VE.getTypeID(SI.getCondition()->getType())); in WriteInstruction()
1211 Vals.push_back(VE.getValueID(SI.getCondition())); in WriteInstruction()
1212 Vals.push_back(VE.getValueID(SI.getDefaultDest())); in WriteInstruction()
1215 Vals.push_back(VE.getValueID(i.getCaseValue())); in WriteInstruction()
1216 Vals.push_back(VE.getValueID(i.getCaseSuccessor())); in WriteInstruction()
1222 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1224 Vals.push_back(VE.getValueID(I.getOperand(i))); in WriteInstruction()
1234 Vals.push_back(VE.getAttributeID(II->getAttributes())); in WriteInstruction()
1235 Vals.push_back(II->getCallingConv()); in WriteInstruction()
1236 Vals.push_back(VE.getValueID(II->getNormalDest())); in WriteInstruction()
1237 Vals.push_back(VE.getValueID(II->getUnwindDest())); in WriteInstruction()
1238 PushValueAndType(Callee, InstID, Vals, VE); in WriteInstruction()
1242 Vals.push_back(VE.getValueID(I.getOperand(i))); // fixed param. in WriteInstruction()
1248 PushValueAndType(I.getOperand(i), InstID, Vals, VE); // vararg in WriteInstruction()
1254 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1264 Vals.push_back(VE.getTypeID(PN.getType())); in WriteInstruction()
1266 Vals.push_back(VE.getValueID(PN.getIncomingValue(i))); in WriteInstruction()
1267 Vals.push_back(VE.getValueID(PN.getIncomingBlock(i))); in WriteInstruction()
1275 Vals.push_back(VE.getTypeID(LP.getType())); in WriteInstruction()
1278 Vals.push_back(LP.isCleanup()); in WriteInstruction()
1279 Vals.push_back(LP.getNumClauses()); in WriteInstruction()
1282 Vals.push_back(LandingPadInst::Catch); in WriteInstruction()
1284 Vals.push_back(LandingPadInst::Filter); in WriteInstruction()
1285 PushValueAndType(LP.getClause(I), InstID, Vals, VE); in WriteInstruction()
1292 Vals.push_back(VE.getTypeID(I.getType())); in WriteInstruction()
1293 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in WriteInstruction()
1294 Vals.push_back(VE.getValueID(I.getOperand(0))); // size. in WriteInstruction()
1295 Vals.push_back(Log2_32(cast<AllocaInst>(I).getAlignment())+1); in WriteInstruction()
1302 PushValueAndType(I.getOperand(0), InstID, Vals, VE); in WriteInstruction()
1305 if (!PushValueAndType(I.getOperand(0), InstID, Vals, VE)) // ptr in WriteInstruction()
1308 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1); in WriteInstruction()
1309 Vals.push_back(cast<LoadInst>(I).isVolatile()); in WriteInstruction()
1311 Vals.push_back(GetEncodedOrdering(cast<LoadInst>(I).getOrdering())); in WriteInstruction()
1312 Vals.push_back(GetEncodedSynchScope(cast<LoadInst>(I).getSynchScope())); in WriteInstruction()
1320 PushValueAndType(I.getOperand(1), InstID, Vals, VE); // ptrty + ptr in WriteInstruction()
1321 Vals.push_back(VE.getValueID(I.getOperand(0))); // val. in WriteInstruction()
1322 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1); in WriteInstruction()
1323 Vals.push_back(cast<StoreInst>(I).isVolatile()); in WriteInstruction()
1325 Vals.push_back(GetEncodedOrdering(cast<StoreInst>(I).getOrdering())); in WriteInstruction()
1326 Vals.push_back(GetEncodedSynchScope(cast<StoreInst>(I).getSynchScope())); in WriteInstruction()
1331 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr in WriteInstruction()
1332 Vals.push_back(VE.getValueID(I.getOperand(1))); // cmp. in WriteInstruction()
1333 Vals.push_back(VE.getValueID(I.getOperand(2))); // newval. in WriteInstruction()
1334 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile()); in WriteInstruction()
1335 Vals.push_back(GetEncodedOrdering( in WriteInstruction()
1337 Vals.push_back(GetEncodedSynchScope( in WriteInstruction()
1342 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // ptrty + ptr in WriteInstruction()
1343 Vals.push_back(VE.getValueID(I.getOperand(1))); // val. in WriteInstruction()
1344 Vals.push_back(GetEncodedRMWOperation( in WriteInstruction()
1346 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile()); in WriteInstruction()
1347 Vals.push_back(GetEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering())); in WriteInstruction()
1348 Vals.push_back(GetEncodedSynchScope( in WriteInstruction()
1353 Vals.push_back(GetEncodedOrdering(cast<FenceInst>(I).getOrdering())); in WriteInstruction()
1354 Vals.push_back(GetEncodedSynchScope(cast<FenceInst>(I).getSynchScope())); in WriteInstruction()
1363 Vals.push_back(VE.getAttributeID(CI.getAttributes())); in WriteInstruction()
1364 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall())); in WriteInstruction()
1365 PushValueAndType(CI.getCalledValue(), InstID, Vals, VE); // Callee in WriteInstruction()
1369 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); // fixed param. in WriteInstruction()
1375 PushValueAndType(CI.getArgOperand(i), InstID, Vals, VE); // varargs in WriteInstruction()
1381 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); // valistty in WriteInstruction()
1382 Vals.push_back(VE.getValueID(I.getOperand(0))); // valist. in WriteInstruction()
1383 Vals.push_back(VE.getTypeID(I.getType())); // restype. in WriteInstruction()
1387 Stream.EmitRecord(Code, Vals, AbbrevToUse); in WriteInstruction()
1388 Vals.clear(); in WriteInstruction()
1488 SmallVector<unsigned, 64> Vals; in WriteFunction() local
1492 Vals.push_back(VE.getBasicBlocks().size()); in WriteFunction()
1493 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in WriteFunction()
1494 Vals.clear(); in WriteFunction()
1515 WriteInstruction(*I, InstID, VE, Stream, Vals); in WriteFunction()
1530 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in WriteFunction()
1534 Vals.push_back(DL->getLine()); in WriteFunction()
1535 Vals.push_back(DL->getColumn()); in WriteFunction()
1536 Vals.push_back(VE.getMetadataOrNullID(DL->getScope())); in WriteFunction()
1537 Vals.push_back(VE.getMetadataOrNullID(DL->getInlinedAt())); in WriteFunction()
1538 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals); in WriteFunction()
1539 Vals.clear(); in WriteFunction()
1723 SmallVector<unsigned, 1> Vals; in WriteModule() local
1727 Vals.push_back(CurVersion); in WriteModule()
1728 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in WriteModule()