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

Method getSummary

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

Parse the specified bitcode buffer, returning the function info index.

Source from the content-addressed store, hash-verified

5916
5917// Parse the specified bitcode buffer, returning the function info index.
5918Expected<std::unique_ptr<ModuleSummaryIndex>> BitcodeModule::getSummary() {
5919 BitstreamCursor Stream(Buffer);
5920 Stream.JumpToBit(ModuleBit);
5921
5922 auto Index = llvm::make_unique<ModuleSummaryIndex>(/*HaveGVs=*/false);
5923 ModuleSummaryIndexBitcodeReader R(std::move(Stream), Strtab, *Index,
5924 ModuleIdentifier, 0);
5925
5926 if (Error Err = R.parseModule())
5927 return std::move(Err);
5928
5929 return std::move(Index);
5930}
5931
5932static Expected<bool> getEnableSplitLTOUnitFlag(BitstreamCursor &Stream,
5933 unsigned ID) {

Callers 5

runOnModuleMethod · 0.45
annotateAllFunctionsFunction · 0.45
getModuleSummaryIndexMethod · 0.45
TEST_FFunction · 0.45
testRoundTripMethod · 0.45

Calls 3

JumpToBitMethod · 0.80
moveFunction · 0.50
parseModuleMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
testRoundTripMethod · 0.36