• Home
  • Raw
  • Download

Lines Matching refs:Vals

235                         SmallVectorImpl<unsigned> &Vals);
238 SmallVectorImpl<unsigned> &Vals);
240 SmallVectorImpl<uint64_t> &Vals);
242 SmallVectorImpl<unsigned> &Vals);
555 SmallVector<unsigned, 64> Vals; in writeStringRecord() local
561 Vals.push_back(Str[i]); in writeStringRecord()
565 Stream.EmitRecord(Code, Vals, AbbrevToUse); in writeStringRecord()
1011 SmallVector<unsigned, 64> Vals; in writeComdats() local
1014 Vals.push_back(getEncodedComdatSelectionKind(*C)); in writeComdats()
1017 Vals.push_back(Size); in writeComdats()
1019 Vals.push_back((unsigned char)Chr); in writeComdats()
1020 Stream.EmitRecord(bitc::MODULE_CODE_COMDAT, Vals, /*AbbrevToUse=*/0); in writeComdats()
1021 Vals.clear(); in writeComdats()
1042 uint64_t Vals[] = {bitc::MODULE_CODE_VSTOFFSET, 0}; in writeValueSymbolTableForwardDecl() local
1043 Stream.EmitRecordWithAbbrev(VSTOffsetAbbrev, Vals); in writeValueSymbolTableForwardDecl()
1154 SmallVector<unsigned, 64> Vals; in writeModuleInfo() local
1162 Vals.push_back(VE.getTypeID(GV.getValueType())); in writeModuleInfo()
1163 Vals.push_back(GV.getType()->getAddressSpace() << 2 | 2 | GV.isConstant()); in writeModuleInfo()
1164 Vals.push_back(GV.isDeclaration() ? 0 : in writeModuleInfo()
1166 Vals.push_back(getEncodedLinkage(GV)); in writeModuleInfo()
1167 Vals.push_back(Log2_32(GV.getAlignment())+1); in writeModuleInfo()
1168 Vals.push_back(GV.hasSection() ? SectionMap[GV.getSection()] : 0); in writeModuleInfo()
1175 Vals.push_back(getEncodedVisibility(GV)); in writeModuleInfo()
1176 Vals.push_back(getEncodedThreadLocalMode(GV)); in writeModuleInfo()
1177 Vals.push_back(getEncodedUnnamedAddr(GV)); in writeModuleInfo()
1178 Vals.push_back(GV.isExternallyInitialized()); in writeModuleInfo()
1179 Vals.push_back(getEncodedDLLStorageClass(GV)); in writeModuleInfo()
1180 Vals.push_back(GV.hasComdat() ? VE.getComdatID(GV.getComdat()) : 0); in writeModuleInfo()
1185 Stream.EmitRecord(bitc::MODULE_CODE_GLOBALVAR, Vals, AbbrevToUse); in writeModuleInfo()
1186 Vals.clear(); in writeModuleInfo()
1194 Vals.push_back(VE.getTypeID(F.getFunctionType())); in writeModuleInfo()
1195 Vals.push_back(F.getCallingConv()); in writeModuleInfo()
1196 Vals.push_back(F.isDeclaration()); in writeModuleInfo()
1197 Vals.push_back(getEncodedLinkage(F)); in writeModuleInfo()
1198 Vals.push_back(VE.getAttributeID(F.getAttributes())); in writeModuleInfo()
1199 Vals.push_back(Log2_32(F.getAlignment())+1); in writeModuleInfo()
1200 Vals.push_back(F.hasSection() ? SectionMap[F.getSection()] : 0); in writeModuleInfo()
1201 Vals.push_back(getEncodedVisibility(F)); in writeModuleInfo()
1202 Vals.push_back(F.hasGC() ? GCMap[F.getGC()] : 0); in writeModuleInfo()
1203 Vals.push_back(getEncodedUnnamedAddr(F)); in writeModuleInfo()
1204 Vals.push_back(F.hasPrologueData() ? (VE.getValueID(F.getPrologueData()) + 1) in writeModuleInfo()
1206 Vals.push_back(getEncodedDLLStorageClass(F)); in writeModuleInfo()
1207 Vals.push_back(F.hasComdat() ? VE.getComdatID(F.getComdat()) : 0); in writeModuleInfo()
1208 Vals.push_back(F.hasPrefixData() ? (VE.getValueID(F.getPrefixData()) + 1) in writeModuleInfo()
1210 Vals.push_back( in writeModuleInfo()
1214 Stream.EmitRecord(bitc::MODULE_CODE_FUNCTION, Vals, AbbrevToUse); in writeModuleInfo()
1215 Vals.clear(); in writeModuleInfo()
1222 Vals.push_back(VE.getTypeID(A.getValueType())); in writeModuleInfo()
1223 Vals.push_back(A.getType()->getAddressSpace()); in writeModuleInfo()
1224 Vals.push_back(VE.getValueID(A.getAliasee())); in writeModuleInfo()
1225 Vals.push_back(getEncodedLinkage(A)); in writeModuleInfo()
1226 Vals.push_back(getEncodedVisibility(A)); in writeModuleInfo()
1227 Vals.push_back(getEncodedDLLStorageClass(A)); in writeModuleInfo()
1228 Vals.push_back(getEncodedThreadLocalMode(A)); in writeModuleInfo()
1229 Vals.push_back(getEncodedUnnamedAddr(A)); in writeModuleInfo()
1231 Stream.EmitRecord(bitc::MODULE_CODE_ALIAS, Vals, AbbrevToUse); in writeModuleInfo()
1232 Vals.clear(); in writeModuleInfo()
1238 Vals.push_back(VE.getTypeID(I.getValueType())); in writeModuleInfo()
1239 Vals.push_back(I.getType()->getAddressSpace()); in writeModuleInfo()
1240 Vals.push_back(VE.getValueID(I.getResolver())); in writeModuleInfo()
1241 Vals.push_back(getEncodedLinkage(I)); in writeModuleInfo()
1242 Vals.push_back(getEncodedVisibility(I)); in writeModuleInfo()
1243 Stream.EmitRecord(bitc::MODULE_CODE_IFUNC, Vals); in writeModuleInfo()
1244 Vals.clear(); in writeModuleInfo()
1265 Vals.push_back((unsigned char)P); in writeModuleInfo()
1268 Stream.EmitRecord(bitc::MODULE_CODE_SOURCE_FILENAME, Vals, FilenameAbbrev); in writeModuleInfo()
1269 Vals.clear(); in writeModuleInfo()
1965 static void emitSignedInt64(SmallVectorImpl<uint64_t> &Vals, uint64_t V) { in emitSignedInt64() argument
1967 Vals.push_back(V << 1); in emitSignedInt64()
1969 Vals.push_back((-V << 1) | 1); in emitSignedInt64()
2013 const ValueEnumerator::ValueList &Vals = VE.getValues(); in writeConstants() local
2016 const Value *V = Vals[i].first; in writeConstants()
2228 const ValueEnumerator::ValueList &Vals = VE.getValues(); in writeModuleConstants() local
2232 for (unsigned i = 0, e = Vals.size(); i != e; ++i) { in writeModuleConstants()
2233 if (!isa<GlobalValue>(Vals[i].first)) { in writeModuleConstants()
2234 writeConstants(i, Vals.size(), true); in writeModuleConstants()
2249 SmallVectorImpl<unsigned> &Vals) { in pushValueAndType() argument
2252 Vals.push_back(InstID - ValID); in pushValueAndType()
2254 Vals.push_back(VE.getTypeID(V->getType())); in pushValueAndType()
2280 SmallVectorImpl<unsigned> &Vals) { in pushValue() argument
2282 Vals.push_back(InstID - ValID); in pushValue()
2286 SmallVectorImpl<uint64_t> &Vals) { in pushValueSigned() argument
2289 emitSignedInt64(Vals, diff); in pushValueSigned()
2295 SmallVectorImpl<unsigned> &Vals) { in writeInstruction() argument
2303 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2305 Vals.push_back(VE.getTypeID(I.getType())); in writeInstruction()
2306 Vals.push_back(getEncodedCastOpcode(I.getOpcode())); in writeInstruction()
2310 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2312 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2313 Vals.push_back(getEncodedBinaryOpcode(I.getOpcode())); in writeInstruction()
2318 Vals.push_back(Flags); in writeInstruction()
2327 Vals.push_back(GEPInst.isInBounds()); in writeInstruction()
2328 Vals.push_back(VE.getTypeID(GEPInst.getSourceElementType())); in writeInstruction()
2330 pushValueAndType(I.getOperand(i), InstID, Vals); in writeInstruction()
2335 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2337 Vals.append(EVI->idx_begin(), EVI->idx_end()); in writeInstruction()
2342 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2343 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2345 Vals.append(IVI->idx_begin(), IVI->idx_end()); in writeInstruction()
2350 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2351 pushValue(I.getOperand(2), InstID, Vals); in writeInstruction()
2352 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2356 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2357 pushValueAndType(I.getOperand(1), InstID, Vals); in writeInstruction()
2361 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2362 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2363 pushValueAndType(I.getOperand(2), InstID, Vals); in writeInstruction()
2367 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2368 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2369 pushValue(I.getOperand(2), InstID, Vals); in writeInstruction()
2375 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2376 pushValue(I.getOperand(1), InstID, Vals); in writeInstruction()
2377 Vals.push_back(cast<CmpInst>(I).getPredicate()); in writeInstruction()
2380 Vals.push_back(Flags); in writeInstruction()
2391 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) in writeInstruction()
2395 pushValueAndType(I.getOperand(i), InstID, Vals); in writeInstruction()
2403 Vals.push_back(VE.getValueID(II.getSuccessor(0))); in writeInstruction()
2405 Vals.push_back(VE.getValueID(II.getSuccessor(1))); in writeInstruction()
2406 pushValue(II.getCondition(), InstID, Vals); in writeInstruction()
2414 Vals.push_back(VE.getTypeID(SI.getCondition()->getType())); in writeInstruction()
2415 pushValue(SI.getCondition(), InstID, Vals); in writeInstruction()
2416 Vals.push_back(VE.getValueID(SI.getDefaultDest())); in writeInstruction()
2418 Vals.push_back(VE.getValueID(Case.getCaseValue())); in writeInstruction()
2419 Vals.push_back(VE.getValueID(Case.getCaseSuccessor())); in writeInstruction()
2425 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in writeInstruction()
2427 pushValue(I.getOperand(0), InstID, Vals); in writeInstruction()
2429 Vals.push_back(VE.getValueID(I.getOperand(i))); in writeInstruction()
2442 Vals.push_back(VE.getAttributeID(II->getAttributes())); in writeInstruction()
2443 Vals.push_back(II->getCallingConv() | 1 << 13); in writeInstruction()
2444 Vals.push_back(VE.getValueID(II->getNormalDest())); in writeInstruction()
2445 Vals.push_back(VE.getValueID(II->getUnwindDest())); in writeInstruction()
2446 Vals.push_back(VE.getTypeID(FTy)); in writeInstruction()
2447 pushValueAndType(Callee, InstID, Vals); in writeInstruction()
2451 pushValue(I.getOperand(i), InstID, Vals); // fixed param. in writeInstruction()
2457 pushValueAndType(I.getOperand(i), InstID, Vals); // vararg in writeInstruction()
2463 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2468 pushValue(CRI.getCleanupPad(), InstID, Vals); in writeInstruction()
2470 Vals.push_back(VE.getValueID(CRI.getUnwindDest())); in writeInstruction()
2476 pushValue(CRI.getCatchPad(), InstID, Vals); in writeInstruction()
2477 Vals.push_back(VE.getValueID(CRI.getSuccessor())); in writeInstruction()
2485 pushValue(FuncletPad.getParentPad(), InstID, Vals); in writeInstruction()
2488 Vals.push_back(NumArgOperands); in writeInstruction()
2490 pushValueAndType(FuncletPad.getArgOperand(Op), InstID, Vals); in writeInstruction()
2497 pushValue(CatchSwitch.getParentPad(), InstID, Vals); in writeInstruction()
2500 Vals.push_back(NumHandlers); in writeInstruction()
2502 Vals.push_back(VE.getValueID(CatchPadBB)); in writeInstruction()
2505 Vals.push_back(VE.getValueID(CatchSwitch.getUnwindDest())); in writeInstruction()
2534 Vals.push_back(VE.getTypeID(LP.getType())); in writeInstruction()
2535 Vals.push_back(LP.isCleanup()); in writeInstruction()
2536 Vals.push_back(LP.getNumClauses()); in writeInstruction()
2539 Vals.push_back(LandingPadInst::Catch); in writeInstruction()
2541 Vals.push_back(LandingPadInst::Filter); in writeInstruction()
2542 pushValueAndType(LP.getClause(I), InstID, Vals); in writeInstruction()
2550 Vals.push_back(VE.getTypeID(AI.getAllocatedType())); in writeInstruction()
2551 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); in writeInstruction()
2552 Vals.push_back(VE.getValueID(I.getOperand(0))); // size. in writeInstruction()
2560 Vals.push_back(AlignRecord); in writeInstruction()
2567 pushValueAndType(I.getOperand(0), InstID, Vals); in writeInstruction()
2570 if (!pushValueAndType(I.getOperand(0), InstID, Vals)) // ptr in writeInstruction()
2573 Vals.push_back(VE.getTypeID(I.getType())); in writeInstruction()
2574 Vals.push_back(Log2_32(cast<LoadInst>(I).getAlignment())+1); in writeInstruction()
2575 Vals.push_back(cast<LoadInst>(I).isVolatile()); in writeInstruction()
2577 Vals.push_back(getEncodedOrdering(cast<LoadInst>(I).getOrdering())); in writeInstruction()
2578 Vals.push_back(getEncodedSynchScope(cast<LoadInst>(I).getSynchScope())); in writeInstruction()
2586 pushValueAndType(I.getOperand(1), InstID, Vals); // ptrty + ptr in writeInstruction()
2587 pushValueAndType(I.getOperand(0), InstID, Vals); // valty + val in writeInstruction()
2588 Vals.push_back(Log2_32(cast<StoreInst>(I).getAlignment())+1); in writeInstruction()
2589 Vals.push_back(cast<StoreInst>(I).isVolatile()); in writeInstruction()
2591 Vals.push_back(getEncodedOrdering(cast<StoreInst>(I).getOrdering())); in writeInstruction()
2592 Vals.push_back(getEncodedSynchScope(cast<StoreInst>(I).getSynchScope())); in writeInstruction()
2597 pushValueAndType(I.getOperand(0), InstID, Vals); // ptrty + ptr in writeInstruction()
2598 pushValueAndType(I.getOperand(1), InstID, Vals); // cmp. in writeInstruction()
2599 pushValue(I.getOperand(2), InstID, Vals); // newval. in writeInstruction()
2600 Vals.push_back(cast<AtomicCmpXchgInst>(I).isVolatile()); in writeInstruction()
2601 Vals.push_back( in writeInstruction()
2603 Vals.push_back( in writeInstruction()
2605 Vals.push_back( in writeInstruction()
2607 Vals.push_back(cast<AtomicCmpXchgInst>(I).isWeak()); in writeInstruction()
2611 pushValueAndType(I.getOperand(0), InstID, Vals); // ptrty + ptr in writeInstruction()
2612 pushValue(I.getOperand(1), InstID, Vals); // val. in writeInstruction()
2613 Vals.push_back( in writeInstruction()
2615 Vals.push_back(cast<AtomicRMWInst>(I).isVolatile()); in writeInstruction()
2616 Vals.push_back(getEncodedOrdering(cast<AtomicRMWInst>(I).getOrdering())); in writeInstruction()
2617 Vals.push_back( in writeInstruction()
2622 Vals.push_back(getEncodedOrdering(cast<FenceInst>(I).getOrdering())); in writeInstruction()
2623 Vals.push_back(getEncodedSynchScope(cast<FenceInst>(I).getSynchScope())); in writeInstruction()
2634 Vals.push_back(VE.getAttributeID(CI.getAttributes())); in writeInstruction()
2637 Vals.push_back(CI.getCallingConv() << bitc::CALL_CCONV | in writeInstruction()
2644 Vals.push_back(Flags); in writeInstruction()
2646 Vals.push_back(VE.getTypeID(FTy)); in writeInstruction()
2647 pushValueAndType(CI.getCalledValue(), InstID, Vals); // Callee in writeInstruction()
2653 Vals.push_back(VE.getValueID(CI.getArgOperand(i))); in writeInstruction()
2655 pushValue(CI.getArgOperand(i), InstID, Vals); // fixed param. in writeInstruction()
2662 pushValueAndType(CI.getArgOperand(i), InstID, Vals); // varargs in writeInstruction()
2668 Vals.push_back(VE.getTypeID(I.getOperand(0)->getType())); // valistty in writeInstruction()
2669 pushValue(I.getOperand(0), InstID, Vals); // valist. in writeInstruction()
2670 Vals.push_back(VE.getTypeID(I.getType())); // restype. in writeInstruction()
2674 Stream.EmitRecord(Code, Vals, AbbrevToUse); in writeInstruction()
2675 Vals.clear(); in writeInstruction()
2879 SmallVector<unsigned, 64> Vals; in writeFunction() local
2883 Vals.push_back(VE.getBasicBlocks().size()); in writeFunction()
2884 Stream.EmitRecord(bitc::FUNC_CODE_DECLAREBLOCKS, Vals); in writeFunction()
2885 Vals.clear(); in writeFunction()
2905 writeInstruction(*I, InstID, Vals); in writeFunction()
2920 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_AGAIN, Vals); in writeFunction()
2924 Vals.push_back(DL->getLine()); in writeFunction()
2925 Vals.push_back(DL->getColumn()); in writeFunction()
2926 Vals.push_back(VE.getMetadataOrNullID(DL->getScope())); in writeFunction()
2927 Vals.push_back(VE.getMetadataOrNullID(DL->getInlinedAt())); in writeFunction()
2928 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals); in writeFunction()
2929 Vals.clear(); in writeFunction()
3161 SmallVector<unsigned, 64> Vals; in writeModStrings() local
3173 Vals.push_back(MPSE.getValue().first); in writeModStrings()
3176 Vals.push_back((unsigned char)P); in writeModStrings()
3179 Stream.EmitRecord(bitc::MST_CODE_ENTRY, Vals, AbbrevToUse); in writeModStrings()
3181 Vals.clear(); in writeModStrings()
3188 Vals.push_back(Val); in writeModStrings()
3192 Stream.EmitRecord(bitc::MST_CODE_HASH, Vals, AbbrevHash); in writeModStrings()
3195 Vals.clear(); in writeModStrings()
3539 SmallVector<unsigned, 1> Vals = {bitc::BITCODE_CURRENT_EPOCH}; in writeIdentificationBlock() local
3540 Stream.EmitRecord(bitc::IDENTIFICATION_CODE_EPOCH, Vals, EpochAbbrev); in writeIdentificationBlock()
3551 SmallVector<uint64_t, 20> Vals; in writeModuleHash() local
3558 Vals.push_back(SubHash); in writeModuleHash()
3562 Stream.EmitRecord(bitc::MODULE_CODE_HASH, Vals); in writeModuleHash()
3586 SmallVector<unsigned, 1> Vals; in writeModule() local
3588 Vals.push_back(CurVersion); in writeModule()
3589 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in writeModule()
3751 SmallVector<unsigned, 1> Vals; in writeIndex() local
3753 Vals.push_back(CurVersion); in writeIndex()
3754 Stream.EmitRecord(bitc::MODULE_CODE_VERSION, Vals); in writeIndex()