Lines Matching refs:Vals
153 static void emitSignedInt64(SmallVectorImpl<uint64_t> &Vals, uint64_t V);
154 static void emitWideAPInt(SmallVectorImpl<uint64_t> &Vals, const APInt &A);
336 SmallVectorImpl<unsigned> &Vals);
339 SmallVectorImpl<unsigned> &Vals);
341 SmallVectorImpl<uint64_t> &Vals);
343 SmallVectorImpl<unsigned> &Vals);
603 SmallVector<unsigned, 64> Vals; in writeStringRecord() local
609 Vals.push_back(C); in writeStringRecord()
613 Stream.EmitRecord(Code, Vals, AbbrevToUse); in writeStringRecord()
721 void DXILBitcodeWriter::emitSignedInt64(SmallVectorImpl<uint64_t> &Vals, in emitSignedInt64() argument
724 Vals.push_back(V << 1); in emitSignedInt64()
726 Vals.push_back((-V << 1) | 1); in emitSignedInt64()
729 void DXILBitcodeWriter::emitWideAPInt(SmallVectorImpl<uint64_t> &Vals, in emitWideAPInt() argument
738 emitSignedInt64(Vals, RawData[i]); in emitWideAPInt()
1148 SmallVector<uint16_t, 64> Vals; in writeComdats() local
1151 Vals.push_back(getEncodedComdatSelectionKind(*C)); in writeComdats()
1154 Vals.push_back(Size); in writeComdats()
1156 Vals.push_back((unsigned char)Chr); in writeComdats()
1157 Stream.EmitRecord(bitc::MODULE_CODE_COMDAT, Vals, /*AbbrevToUse=*/0); in writeComdats()
1158 Vals.clear(); in writeComdats()
1258 SmallVector<unsigned, 64> Vals; in writeModuleInfo() local
1266 Vals.push_back(getGlobalObjectValueTypeID(GV.getValueType(), &GV)); in writeModuleInfo()
1267 Vals.push_back( in writeModuleInfo()
1271 Vals.push_back( in writeModuleInfo()
1273 Vals.push_back(getEncodedLinkage(GV)); in writeModuleInfo()
1274 Vals.push_back(getEncodedAlign(GV.getAlign())); in writeModuleInfo()
1275 Vals.push_back(GV.hasSection() ? SectionMap[std::string(GV.getSection())] in writeModuleInfo()
1283 Vals.push_back(getEncodedVisibility(GV)); in writeModuleInfo()
1284 Vals.push_back(getEncodedThreadLocalMode(GV)); in writeModuleInfo()
1285 Vals.push_back(GV.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in writeModuleInfo()
1286 Vals.push_back(GV.isExternallyInitialized()); in writeModuleInfo()
1287 Vals.push_back(getEncodedDLLStorageClass(GV)); in writeModuleInfo()
1288 Vals.push_back(GV.hasComdat() ? VE.getComdatID(GV.getComdat()) : 0); in writeModuleInfo()
1293 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in writeModuleInfo()
1294 Vals.clear(); in writeModuleInfo()
1302 Vals.push_back(getGlobalObjectValueTypeID(F.getFunctionType(), &F)); in writeModuleInfo()
1303 Vals.push_back(F.getCallingConv()); in writeModuleInfo()
1304 Vals.push_back(F.isDeclaration()); in writeModuleInfo()
1305 Vals.push_back(getEncodedLinkage(F)); in writeModuleInfo()
1306 Vals.push_back(VE.getAttributeListID(F.getAttributes())); in writeModuleInfo()
1307 Vals.push_back(getEncodedAlign(F.getAlign())); in writeModuleInfo()
1308 Vals.push_back(F.hasSection() ? SectionMap[std::string(F.getSection())] in writeModuleInfo()
1310 Vals.push_back(getEncodedVisibility(F)); in writeModuleInfo()
1311 Vals.push_back(F.hasGC() ? GCMap[F.getGC()] : 0); in writeModuleInfo()
1312 Vals.push_back(F.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in writeModuleInfo()
1313 Vals.push_back( in writeModuleInfo()
1315 Vals.push_back(getEncodedDLLStorageClass(F)); in writeModuleInfo()
1316 Vals.push_back(F.hasComdat() ? VE.getComdatID(F.getComdat()) : 0); in writeModuleInfo()
1317 Vals.push_back(F.hasPrefixData() ? (VE.getValueID(F.getPrefixData()) + 1) in writeModuleInfo()
1319 Vals.push_back( in writeModuleInfo()
1323 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in writeModuleInfo()
1324 Vals.clear(); in writeModuleInfo()
1330 Vals.push_back(getTypeID(A.getValueType(), &A)); in writeModuleInfo()
1331 Vals.push_back(VE.getValueID(A.getAliasee())); in writeModuleInfo()
1332 Vals.push_back(getEncodedLinkage(A)); in writeModuleInfo()
1333 Vals.push_back(getEncodedVisibility(A)); in writeModuleInfo()
1334 Vals.push_back(getEncodedDLLStorageClass(A)); in writeModuleInfo()
1335 Vals.push_back(getEncodedThreadLocalMode(A)); in writeModuleInfo()
1336 Vals.push_back(A.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in writeModuleInfo()
1338 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS_OLD, Vals, AbbrevToUse); in writeModuleInfo()
1339 Vals.clear(); in writeModuleInfo()
1959 const ValueEnumerator::ValueList &Vals = VE.getValues(); in writeConstants() local
1962 const Value *V = Vals[i].first; in writeConstants()
2192 const ValueEnumerator::ValueList &Vals = VE.getValues(); in writeModuleConstants() local
2196 for (unsigned i = 0, e = Vals.size(); i != e; ++i) { in writeModuleConstants()
2197 if (!isa<GlobalValue>(Vals[i].first)) { in writeModuleConstants()
2198 writeConstants(i, Vals.size(), true); in writeModuleConstants()
2213 SmallVectorImpl<unsigned> &Vals) { in pushValueAndType() argument
2216 Vals.push_back(InstID - ValID); in pushValueAndType()
2218 Vals.push_back(getTypeID(V->getType(), V)); in pushValueAndType()
2227 SmallVectorImpl<unsigned> &Vals) { in pushValue() argument
2229 Vals.push_back(InstID - ValID); in pushValue()
2233 SmallVectorImpl<uint64_t> &Vals) { in pushValueSigned() argument
2236 emitSignedInt64(Vals, diff); in pushValueSigned()
2241 SmallVectorImpl<unsigned> &Vals) { in writeInstruction() argument
2249 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2251 Vals.push_back(getTypeID(I.getType(), &I)); in writeInstruction()
2252 Vals.push_back(getEncodedCastOpcode(I.getOpcode())); in writeInstruction()
2256 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2258 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2259 Vals.push_back(getEncodedBinaryOpcode(I.getOpcode())); in writeInstruction()
2264 Vals.push_back(Flags); in writeInstruction()
2273 Vals.push_back(GEPInst.isInBounds()); in writeInstruction()
2274 Vals.push_back(getTypeID(GEPInst.getSourceElementType())); in writeInstruction()
2276 pushValueAndType(I.getOperand(i), InstID, Vals); in writeInstruction()
2281 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2283 Vals.append(EVI->idx_begin(), EVI->idx_end()); in writeInstruction()
2288 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2289 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2291 Vals.append(IVI->idx_begin(), IVI->idx_end()); in writeInstruction()
2296 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2297 pushValue(I.getOperand(2), InstID, Vals); in writeInstruction()
2298 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2302 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2303 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2307 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2308 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2309 pushValueAndType(I.getOperand(2), InstID, Vals); in writeInstruction()
2313 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2314 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2316 Vals); in writeInstruction()
2322 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2323 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2324 Vals.push_back(cast<CmpInst>(I).getPredicate()); in writeInstruction()
2327 Vals.push_back(Flags); in writeInstruction()
2337 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2341 pushValueAndType(I.getOperand(i), InstID, Vals); in writeInstruction()
2347 Vals.push_back(VE.getValueID(II.getSuccessor(0))); in writeInstruction()
2349 Vals.push_back(VE.getValueID(II.getSuccessor(1))); in writeInstruction()
2350 pushValue(II.getCondition(), InstID, Vals); in writeInstruction()
2356 Vals.push_back(getTypeID(SI.getCondition()->getType())); in writeInstruction()
2357 pushValue(SI.getCondition(), InstID, Vals); in writeInstruction()
2358 Vals.push_back(VE.getValueID(SI.getDefaultDest())); in writeInstruction()
2360 Vals.push_back(VE.getValueID(Case.getCaseValue())); in writeInstruction()
2361 Vals.push_back(VE.getValueID(Case.getCaseSuccessor())); in writeInstruction()
2366 Vals.push_back(getTypeID(I.getOperand(0)->getType())); in writeInstruction()
2368 pushValue(I.getOperand(0), InstID, Vals); in writeInstruction()
2370 Vals.push_back(VE.getValueID(I.getOperand(i))); in writeInstruction()
2379 Vals.push_back(VE.getAttributeListID(II->getAttributes())); in writeInstruction()
2380 Vals.push_back(II->getCallingConv() | 1 << 13); in writeInstruction()
2381 Vals.push_back(VE.getValueID(II->getNormalDest())); in writeInstruction()
2382 Vals.push_back(VE.getValueID(II->getUnwindDest())); in writeInstruction()
2383 Vals.push_back(getTypeID(FTy)); in writeInstruction()
2384 pushValueAndType(Callee, InstID, Vals); in writeInstruction()
2388 pushValue(I.getOperand(i), InstID, Vals); // fixed param. in writeInstruction()
2394 pushValueAndType(I.getOperand(i), InstID, Vals); // vararg in writeInstruction()
2400 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2428 Vals.push_back(getTypeID(LP.getType())); in writeInstruction()
2429 Vals.push_back(LP.isCleanup()); in writeInstruction()
2430 Vals.push_back(LP.getNumClauses()); in writeInstruction()
2433 Vals.push_back(LandingPadInst::Catch); in writeInstruction()
2435 Vals.push_back(LandingPadInst::Filter); in writeInstruction()
2436 pushValueAndType(LP.getClause(I), InstID, Vals); in writeInstruction()
2444 Vals.push_back(getTypeID(AI.getAllocatedType())); in writeInstruction()
2445 Vals.push_back(getTypeID(I.getOperand(0)->getType())); in writeInstruction()
2446 Vals.push_back(VE.getValueID(I.getOperand(0))); // size. in writeInstruction()
2451 Vals.push_back(AlignRecord); in writeInstruction()
2458 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2461 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) // ptr in writeInstruction()
2464 Vals.push_back(getTypeID(I.getType())); in writeInstruction()
2465 Vals.push_back(Log2(cast<LoadInst>(I).getAlign()) + 1); in writeInstruction()
2466 Vals.push_back(cast<LoadInst>(I).isVolatile()); in writeInstruction()
2468 Vals.push_back(getEncodedOrdering(cast<LoadInst>(I).getOrdering())); in writeInstruction()
2469 Vals.push_back(getEncodedSyncScopeID(cast<LoadInst>(I).getSyncScopeID())); in writeInstruction()
2477 pushValueAndType(I.getOperand(1), InstID, Vals); // ptrty + ptr in writeInstruction()
2478 pushValueAndType(I.getOperand(0), InstID, Vals); // valty + val in writeInstruction()
2479 Vals.push_back(Log2(cast<StoreInst>(I).getAlign()) + 1); in writeInstruction()
2480 Vals.push_back(cast<StoreInst>(I).isVolatile()); in writeInstruction()
2482 Vals.push_back(getEncodedOrdering(cast<StoreInst>(I).getOrdering())); in writeInstruction()
2483 Vals.push_back( in writeInstruction()
2489 pushValueAndType(I.getOperand(0), InstID, Vals); // ptrty + ptr in writeInstruction()
2490 pushValueAndType(I.getOperand(1), InstID, Vals); // cmp. in writeInstruction()
2491 pushValue(I.getOperand(2), InstID, Vals); // newval. in writeInstruction()
2492 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile()); in writeInstruction()
2493 Vals.push_back( in writeInstruction()
2495 Vals.push_back( in writeInstruction()
2497 Vals.push_back( in writeInstruction()
2499 Vals.push_back(cast<AtomicCmpXchgInst>(I).isWeak()); in writeInstruction()
2503 pushValueAndType(I.getOperand(0), InstID, Vals); // ptrty + ptr in writeInstruction()
2504 pushValue(I.getOperand(1), InstID, Vals); // val. in writeInstruction()
2505 Vals.push_back( in writeInstruction()
2507 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile()); in writeInstruction()
2508 Vals.push_back(getEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering())); in writeInstruction()
2509 Vals.push_back( in writeInstruction()
2514 Vals.push_back(getEncodedOrdering(cast<FenceInst>(I).getOrdering())); in writeInstruction()
2515 Vals.push_back(getEncodedSyncScopeID(cast<FenceInst>(I).getSyncScopeID())); in writeInstruction()
2523 Vals.push_back(VE.getAttributeListID(CI.getAttributes())); in writeInstruction()
2524 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall()) | in writeInstruction()
2526 Vals.push_back(getGlobalObjectValueTypeID(FTy, CI.getCalledFunction())); in writeInstruction()
2527 pushValueAndType(CI.getCalledOperand(), InstID, Vals); // Callee in writeInstruction()
2533 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); in writeInstruction()
2535 pushValue(CI.getArgOperand(i), InstID, Vals); // fixed param. in writeInstruction()
2541 pushValueAndType(CI.getArgOperand(i), InstID, Vals); // varargs in writeInstruction()
2547 Vals.push_back(getTypeID(I.getOperand(0)->getType())); // valistty in writeInstruction()
2548 pushValue(I.getOperand(0), InstID, Vals); // valist. in writeInstruction()
2549 Vals.push_back(getTypeID(I.getType())); // restype. in writeInstruction()
2553 Stream.EmitRecord(Code, Vals, AbbrevToUse); in writeInstruction()
2554 Vals.clear(); in writeInstruction()
2630 SmallVector<unsigned, 64> Vals; in writeFunction() local
2634 Vals.push_back(VE.getBasicBlocks().size()); in writeFunction()
2635 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in writeFunction()
2636 Vals.clear(); in writeFunction()
2657 writeInstruction(*I, InstID, Vals); in writeFunction()
2672 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in writeFunction()
2676 Vals.push_back(DL->getLine()); in writeFunction()
2677 Vals.push_back(DL->getColumn()); in writeFunction()
2678 Vals.push_back(VE.getMetadataOrNullID(DL->getScope())); in writeFunction()
2679 Vals.push_back(VE.getMetadataOrNullID(DL->getInlinedAt())); in writeFunction()
2680 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals); in writeFunction()
2681 Vals.clear(); in writeFunction()