diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:30 +0300 |
commit | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch) | |
tree | 012bb94d777798f1f56ac1cec429509766d05181 /contrib/libs/llvm12/include/llvm/ProfileData/InstrProfReader.h | |
parent | 6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff) | |
download | ydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/ProfileData/InstrProfReader.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/ProfileData/InstrProfReader.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/contrib/libs/llvm12/include/llvm/ProfileData/InstrProfReader.h b/contrib/libs/llvm12/include/llvm/ProfileData/InstrProfReader.h index 29555e07d8..a95a7657b0 100644 --- a/contrib/libs/llvm12/include/llvm/ProfileData/InstrProfReader.h +++ b/contrib/libs/llvm12/include/llvm/ProfileData/InstrProfReader.h @@ -90,8 +90,8 @@ public: virtual bool hasCSIRLevelProfile() const = 0; - virtual bool instrEntryBBEnabled() const = 0; - + virtual bool instrEntryBBEnabled() const = 0; + /// Return the PGO symtab. There are three different readers: /// Raw, Text, and Indexed profile readers. The first two types /// of readers are used only by llvm-profdata tool, while the indexed @@ -161,7 +161,7 @@ private: line_iterator Line; bool IsIRLevelProfile = false; bool HasCSIRLevelProfile = false; - bool InstrEntryBBEnabled = false; + bool InstrEntryBBEnabled = false; Error readValueProfileData(InstrProfRecord &Record); @@ -178,8 +178,8 @@ public: bool hasCSIRLevelProfile() const override { return HasCSIRLevelProfile; } - bool instrEntryBBEnabled() const override { return InstrEntryBBEnabled; } - + bool instrEntryBBEnabled() const override { return InstrEntryBBEnabled; } + /// Read the header. Error readHeader() override; @@ -240,10 +240,10 @@ public: return (Version & VARIANT_MASK_CSIR_PROF) != 0; } - bool instrEntryBBEnabled() const override { - return (Version & VARIANT_MASK_INSTR_ENTRY) != 0; - } - + bool instrEntryBBEnabled() const override { + return (Version & VARIANT_MASK_INSTR_ENTRY) != 0; + } + InstrProfSymtab &getSymtab() override { assert(Symtab.get()); return *Symtab.get(); @@ -380,7 +380,7 @@ struct InstrProfReaderIndexBase { virtual uint64_t getVersion() const = 0; virtual bool isIRLevelProfile() const = 0; virtual bool hasCSIRLevelProfile() const = 0; - virtual bool instrEntryBBEnabled() const = 0; + virtual bool instrEntryBBEnabled() const = 0; virtual Error populateSymtab(InstrProfSymtab &) = 0; }; @@ -429,10 +429,10 @@ public: return (FormatVersion & VARIANT_MASK_CSIR_PROF) != 0; } - bool instrEntryBBEnabled() const override { - return (FormatVersion & VARIANT_MASK_INSTR_ENTRY) != 0; - } - + bool instrEntryBBEnabled() const override { + return (FormatVersion & VARIANT_MASK_INSTR_ENTRY) != 0; + } + Error populateSymtab(InstrProfSymtab &Symtab) override { return Symtab.create(HashTable->keys()); } @@ -487,10 +487,10 @@ public: return Index->hasCSIRLevelProfile(); } - bool instrEntryBBEnabled() const override { - return Index->instrEntryBBEnabled(); - } - + bool instrEntryBBEnabled() const override { + return Index->instrEntryBBEnabled(); + } + /// Return true if the given buffer is in an indexed instrprof format. static bool hasFormat(const MemoryBuffer &DataBuffer); |