#include "llvm/ProfileData/PGOCtxProfReader.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Bitstream/BitCodeEnums.h"
#include "llvm/Bitstream/BitstreamReader.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/ProfileData/PGOCtxProfWriter.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
usingnamespacellvm;
#define EXPECT_OR_RET(LHS, RHS) …
#define RET_ON_ERR(EXPR) …
Expected<PGOCtxProfContext &>
PGOCtxProfContext::getOrEmplace(uint32_t Index, GlobalValue::GUID G,
SmallVectorImpl<uint64_t> &&Counters) { … }
Expected<BitstreamEntry> PGOCtxProfileReader::advance() { … }
Error PGOCtxProfileReader::wrongValue(const Twine &Msg) { … }
Error PGOCtxProfileReader::unsupported(const Twine &Msg) { … }
bool PGOCtxProfileReader::canReadContext() { … }
Expected<std::pair<std::optional<uint32_t>, PGOCtxProfContext>>
PGOCtxProfileReader::readContext(bool ExpectIndex) { … }
Error PGOCtxProfileReader::readMetadata() { … }
Expected<std::map<GlobalValue::GUID, PGOCtxProfContext>>
PGOCtxProfileReader::loadContexts() { … }