Lines Matching refs:Vals
152 static void emitSignedInt64(SmallVectorImpl<uint64_t> &Vals, uint64_t V);
153 static void emitWideAPInt(SmallVectorImpl<uint64_t> &Vals, const APInt &A);
328 SmallVectorImpl<unsigned> &Vals);
331 SmallVectorImpl<unsigned> &Vals);
333 SmallVectorImpl<uint64_t> &Vals);
335 SmallVectorImpl<unsigned> &Vals);
629 SmallVector<unsigned, 64> Vals; in writeStringRecord() local
635 Vals.push_back(C); in writeStringRecord()
639 Stream.EmitRecord(Code, Vals, AbbrevToUse); in writeStringRecord()
749 void DXILBitcodeWriter::emitSignedInt64(SmallVectorImpl<uint64_t> &Vals, in emitSignedInt64() argument
752 Vals.push_back(V << 1); in emitSignedInt64()
754 Vals.push_back((-V << 1) | 1); in emitSignedInt64()
757 void DXILBitcodeWriter::emitWideAPInt(SmallVectorImpl<uint64_t> &Vals, in emitWideAPInt() argument
766 emitSignedInt64(Vals, RawData[i]); in emitWideAPInt()
1169 SmallVector<uint16_t, 64> Vals; in writeComdats() local
1172 Vals.push_back(getEncodedComdatSelectionKind(*C)); in writeComdats()
1175 Vals.push_back(Size); in writeComdats()
1177 Vals.push_back((unsigned char)Chr); in writeComdats()
1178 Stream.EmitRecord(bitc::MODULE_CODE_COMDAT, Vals, /*AbbrevToUse=*/0); in writeComdats()
1179 Vals.clear(); in writeComdats()
1276 SmallVector<unsigned, 64> Vals; in writeModuleInfo() local
1284 Vals.push_back(getTypeID(GV.getValueType(), &GV)); in writeModuleInfo()
1285 Vals.push_back( in writeModuleInfo()
1289 Vals.push_back( in writeModuleInfo()
1291 Vals.push_back(getEncodedLinkage(GV)); in writeModuleInfo()
1292 Vals.push_back(getEncodedAlign(GV.getAlign())); in writeModuleInfo()
1293 Vals.push_back(GV.hasSection() ? SectionMap[std::string(GV.getSection())] in writeModuleInfo()
1301 Vals.push_back(getEncodedVisibility(GV)); in writeModuleInfo()
1302 Vals.push_back(getEncodedThreadLocalMode(GV)); in writeModuleInfo()
1303 Vals.push_back(GV.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in writeModuleInfo()
1304 Vals.push_back(GV.isExternallyInitialized()); in writeModuleInfo()
1305 Vals.push_back(getEncodedDLLStorageClass(GV)); in writeModuleInfo()
1306 Vals.push_back(GV.hasComdat() ? VE.getComdatID(GV.getComdat()) : 0); in writeModuleInfo()
1311 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in writeModuleInfo()
1312 Vals.clear(); in writeModuleInfo()
1320 Vals.push_back(getTypeID(F.getFunctionType(), &F)); in writeModuleInfo()
1321 Vals.push_back(F.getCallingConv()); in writeModuleInfo()
1322 Vals.push_back(F.isDeclaration()); in writeModuleInfo()
1323 Vals.push_back(getEncodedLinkage(F)); in writeModuleInfo()
1324 Vals.push_back(VE.getAttributeListID(F.getAttributes())); in writeModuleInfo()
1325 Vals.push_back(getEncodedAlign(F.getAlign())); in writeModuleInfo()
1326 Vals.push_back(F.hasSection() ? SectionMap[std::string(F.getSection())] in writeModuleInfo()
1328 Vals.push_back(getEncodedVisibility(F)); in writeModuleInfo()
1329 Vals.push_back(F.hasGC() ? GCMap[F.getGC()] : 0); in writeModuleInfo()
1330 Vals.push_back(F.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in writeModuleInfo()
1331 Vals.push_back( in writeModuleInfo()
1333 Vals.push_back(getEncodedDLLStorageClass(F)); in writeModuleInfo()
1334 Vals.push_back(F.hasComdat() ? VE.getComdatID(F.getComdat()) : 0); in writeModuleInfo()
1335 Vals.push_back(F.hasPrefixData() ? (VE.getValueID(F.getPrefixData()) + 1) in writeModuleInfo()
1337 Vals.push_back( in writeModuleInfo()
1341 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in writeModuleInfo()
1342 Vals.clear(); in writeModuleInfo()
1348 Vals.push_back(getTypeID(A.getValueType(), &A)); in writeModuleInfo()
1349 Vals.push_back(VE.getValueID(A.getAliasee())); in writeModuleInfo()
1350 Vals.push_back(getEncodedLinkage(A)); in writeModuleInfo()
1351 Vals.push_back(getEncodedVisibility(A)); in writeModuleInfo()
1352 Vals.push_back(getEncodedDLLStorageClass(A)); in writeModuleInfo()
1353 Vals.push_back(getEncodedThreadLocalMode(A)); in writeModuleInfo()
1354 Vals.push_back(A.getUnnamedAddr() != GlobalValue::UnnamedAddr::None); in writeModuleInfo()
1356 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS_OLD, Vals, AbbrevToUse); in writeModuleInfo()
1357 Vals.clear(); in writeModuleInfo()
1967 const ValueEnumerator::ValueList &Vals = VE.getValues(); in writeConstants() local
1970 const Value *V = Vals[i].first; in writeConstants()
2198 const ValueEnumerator::ValueList &Vals = VE.getValues(); in writeModuleConstants() local
2202 for (unsigned i = 0, e = Vals.size(); i != e; ++i) { in writeModuleConstants()
2203 if (!isa<GlobalValue>(Vals[i].first)) { in writeModuleConstants()
2204 writeConstants(i, Vals.size(), true); in writeModuleConstants()
2219 SmallVectorImpl<unsigned> &Vals) { in pushValueAndType() argument
2222 Vals.push_back(InstID - ValID); in pushValueAndType()
2224 Vals.push_back(getTypeID(V->getType(), V)); in pushValueAndType()
2233 SmallVectorImpl<unsigned> &Vals) { in pushValue() argument
2235 Vals.push_back(InstID - ValID); in pushValue()
2239 SmallVectorImpl<uint64_t> &Vals) { in pushValueSigned() argument
2242 emitSignedInt64(Vals, diff); in pushValueSigned()
2247 SmallVectorImpl<unsigned> &Vals) { in writeInstruction() argument
2255 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2257 Vals.push_back(getTypeID(I.getType(), &I)); in writeInstruction()
2258 Vals.push_back(getEncodedCastOpcode(I.getOpcode())); in writeInstruction()
2262 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2264 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2265 Vals.push_back(getEncodedBinaryOpcode(I.getOpcode())); in writeInstruction()
2270 Vals.push_back(Flags); in writeInstruction()
2279 Vals.push_back(GEPInst.isInBounds()); in writeInstruction()
2280 Vals.push_back(getTypeID(GEPInst.getSourceElementType())); in writeInstruction()
2282 pushValueAndType(I.getOperand(i), InstID, Vals); in writeInstruction()
2287 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2289 Vals.append(EVI->idx_begin(), EVI->idx_end()); in writeInstruction()
2294 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2295 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2297 Vals.append(IVI->idx_begin(), IVI->idx_end()); in writeInstruction()
2302 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2303 pushValue(I.getOperand(2), InstID, Vals); in writeInstruction()
2304 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2308 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2309 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2313 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2314 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2315 pushValueAndType(I.getOperand(2), InstID, Vals); in writeInstruction()
2319 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2320 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2321 pushValue(I.getOperand(2), InstID, Vals); in writeInstruction()
2327 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2328 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2329 Vals.push_back(cast<CmpInst>(I).getPredicate()); in writeInstruction()
2332 Vals.push_back(Flags); in writeInstruction()
2342 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2346 pushValueAndType(I.getOperand(i), InstID, Vals); in writeInstruction()
2352 Vals.push_back(VE.getValueID(II.getSuccessor(0))); in writeInstruction()
2354 Vals.push_back(VE.getValueID(II.getSuccessor(1))); in writeInstruction()
2355 pushValue(II.getCondition(), InstID, Vals); in writeInstruction()
2361 Vals.push_back(getTypeID(SI.getCondition()->getType())); in writeInstruction()
2362 pushValue(SI.getCondition(), InstID, Vals); in writeInstruction()
2363 Vals.push_back(VE.getValueID(SI.getDefaultDest())); in writeInstruction()
2365 Vals.push_back(VE.getValueID(Case.getCaseValue())); in writeInstruction()
2366 Vals.push_back(VE.getValueID(Case.getCaseSuccessor())); in writeInstruction()
2371 Vals.push_back(getTypeID(I.getOperand(0)->getType())); in writeInstruction()
2373 pushValue(I.getOperand(0), InstID, Vals); in writeInstruction()
2375 Vals.push_back(VE.getValueID(I.getOperand(i))); in writeInstruction()
2384 Vals.push_back(VE.getAttributeListID(II->getAttributes())); in writeInstruction()
2385 Vals.push_back(II->getCallingConv() | 1 << 13); in writeInstruction()
2386 Vals.push_back(VE.getValueID(II->getNormalDest())); in writeInstruction()
2387 Vals.push_back(VE.getValueID(II->getUnwindDest())); in writeInstruction()
2388 Vals.push_back(getTypeID(FTy)); in writeInstruction()
2389 pushValueAndType(Callee, InstID, Vals); in writeInstruction()
2393 pushValue(I.getOperand(i), InstID, Vals); // fixed param. in writeInstruction()
2399 pushValueAndType(I.getOperand(i), InstID, Vals); // vararg in writeInstruction()
2405 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2433 Vals.push_back(getTypeID(LP.getType())); in writeInstruction()
2434 Vals.push_back(LP.isCleanup()); in writeInstruction()
2435 Vals.push_back(LP.getNumClauses()); in writeInstruction()
2438 Vals.push_back(LandingPadInst::Catch); in writeInstruction()
2440 Vals.push_back(LandingPadInst::Filter); in writeInstruction()
2441 pushValueAndType(LP.getClause(I), InstID, Vals); in writeInstruction()
2449 Vals.push_back(getTypeID(AI.getAllocatedType())); in writeInstruction()
2450 Vals.push_back(getTypeID(I.getOperand(0)->getType())); in writeInstruction()
2451 Vals.push_back(VE.getValueID(I.getOperand(0))); // size. in writeInstruction()
2460 Vals.push_back(Record); in writeInstruction()
2467 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2470 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) // ptr in writeInstruction()
2473 Vals.push_back(getTypeID(I.getType())); in writeInstruction()
2474 Vals.push_back(Log2(cast<LoadInst>(I).getAlign()) + 1); in writeInstruction()
2475 Vals.push_back(cast<LoadInst>(I).isVolatile()); in writeInstruction()
2477 Vals.push_back(getEncodedOrdering(cast<LoadInst>(I).getOrdering())); in writeInstruction()
2478 Vals.push_back(getEncodedSyncScopeID(cast<LoadInst>(I).getSyncScopeID())); in writeInstruction()
2486 pushValueAndType(I.getOperand(1), InstID, Vals); // ptrty + ptr in writeInstruction()
2487 pushValueAndType(I.getOperand(0), InstID, Vals); // valty + val in writeInstruction()
2488 Vals.push_back(Log2(cast<StoreInst>(I).getAlign()) + 1); in writeInstruction()
2489 Vals.push_back(cast<StoreInst>(I).isVolatile()); in writeInstruction()
2491 Vals.push_back(getEncodedOrdering(cast<StoreInst>(I).getOrdering())); in writeInstruction()
2492 Vals.push_back( in writeInstruction()
2498 pushValueAndType(I.getOperand(0), InstID, Vals); // ptrty + ptr in writeInstruction()
2499 pushValueAndType(I.getOperand(1), InstID, Vals); // cmp. in writeInstruction()
2500 pushValue(I.getOperand(2), InstID, Vals); // newval. in writeInstruction()
2501 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile()); in writeInstruction()
2502 Vals.push_back( in writeInstruction()
2504 Vals.push_back( in writeInstruction()
2506 Vals.push_back( in writeInstruction()
2508 Vals.push_back(cast<AtomicCmpXchgInst>(I).isWeak()); in writeInstruction()
2512 pushValueAndType(I.getOperand(0), InstID, Vals); // ptrty + ptr in writeInstruction()
2513 pushValue(I.getOperand(1), InstID, Vals); // val. in writeInstruction()
2514 Vals.push_back( in writeInstruction()
2516 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile()); in writeInstruction()
2517 Vals.push_back(getEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering())); in writeInstruction()
2518 Vals.push_back( in writeInstruction()
2523 Vals.push_back(getEncodedOrdering(cast<FenceInst>(I).getOrdering())); in writeInstruction()
2524 Vals.push_back(getEncodedSyncScopeID(cast<FenceInst>(I).getSyncScopeID())); in writeInstruction()
2532 Vals.push_back(VE.getAttributeListID(CI.getAttributes())); in writeInstruction()
2533 Vals.push_back((CI.getCallingConv() << 1) | unsigned(CI.isTailCall()) | in writeInstruction()
2535 Vals.push_back(getTypeID(FTy, CI.getCalledFunction())); in writeInstruction()
2536 pushValueAndType(CI.getCalledOperand(), InstID, Vals); // Callee in writeInstruction()
2542 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); in writeInstruction()
2544 pushValue(CI.getArgOperand(i), InstID, Vals); // fixed param. in writeInstruction()
2550 pushValueAndType(CI.getArgOperand(i), InstID, Vals); // varargs in writeInstruction()
2556 Vals.push_back(getTypeID(I.getOperand(0)->getType())); // valistty in writeInstruction()
2557 pushValue(I.getOperand(0), InstID, Vals); // valist. in writeInstruction()
2558 Vals.push_back(getTypeID(I.getType())); // restype. in writeInstruction()
2562 Stream.EmitRecord(Code, Vals, AbbrevToUse); in writeInstruction()
2563 Vals.clear(); in writeInstruction()
2668 SmallVector<unsigned, 64> Vals; in writeFunction() local
2672 Vals.push_back(VE.getBasicBlocks().size()); in writeFunction()
2673 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in writeFunction()
2674 Vals.clear(); in writeFunction()
2695 writeInstruction(*I, InstID, Vals); in writeFunction()
2710 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in writeFunction()
2714 Vals.push_back(DL->getLine()); in writeFunction()
2715 Vals.push_back(DL->getColumn()); in writeFunction()
2716 Vals.push_back(VE.getMetadataOrNullID(DL->getScope())); in writeFunction()
2717 Vals.push_back(VE.getMetadataOrNullID(DL->getInlinedAt())); in writeFunction()
2718 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals); in writeFunction()
2719 Vals.clear(); in writeFunction()