MCPcopy Create free account
hub / github.com/GANGE666/xVMP / readSummary

Method readSummary

src/lib/Bitcode/Reader/BitcodeReader.cpp:5907–5915  ·  view source on GitHub ↗

Parse the specified bitcode buffer and merge the index into CombinedIndex. We don't use ModuleIdentifier here because the client may need to control the module path used in the combined summary (e.g. when reading summaries for regular LTO modules).

Source from the content-addressed store, hash-verified

5905// module path used in the combined summary (e.g. when reading summaries for
5906// regular LTO modules).
5907Error BitcodeModule::readSummary(ModuleSummaryIndex &CombinedIndex,
5908 StringRef ModulePath, uint64_t ModuleId) {
5909 BitstreamCursor Stream(Buffer);
5910 Stream.JumpToBit(ModuleBit);
5911
5912 ModuleSummaryIndexBitcodeReader R(std::move(Stream), Strtab, CombinedIndex,
5913 ModulePath, ModuleId);
5914 return R.parseModule();
5915}
5916
5917// Parse the specified bitcode buffer, returning the function info index.
5918Expected<std::unique_ptr<ModuleSummaryIndex>> BitcodeModule::getSummary() {

Callers 1

Calls 3

JumpToBitMethod · 0.80
moveFunction · 0.50
parseModuleMethod · 0.45

Tested by

no test coverage detected