LLVM 20.0.0git
|
#include "llvm/ProfileData/InstrProfWriter.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/ProfileSummary.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/ProfileData/MemProf.h"
#include "llvm/ProfileData/ProfileCommon.h"
#include "llvm/Support/Compression.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/EndianStream.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/OnDiskHashTable.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdint>
#include <memory>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "llvm/ProfileData/InstrProfData.inc"
Go to the source code of this file.
Classes | |
struct | PatchItem |
class | llvm::ProfOStream |
class | llvm::InstrProfRecordWriterTrait |
Namespaces | |
namespace | llvm |
This is an optimization pass for GlobalISel generic memory operations. | |
Macros | |
#define | VALUE_PROF_KIND(Enumerator, Value, Descr) #Enumerator, |
Variables | |
static const char * | ValueProfKindStr [] |
#define VALUE_PROF_KIND | ( | Enumerator, | |
Value, | |||
Descr | |||
) | #Enumerator, |
|
static |
Definition at line 425 of file InstrProfWriter.cpp.
References llvm::ProfileSummary::getDetailedSummary(), llvm::ProfileSummary::getMaxCount(), llvm::ProfileSummary::getMaxFunctionCount(), llvm::ProfileSummary::getMaxInternalCount(), llvm::ProfileSummary::getNumCounts(), llvm::ProfileSummary::getNumFunctions(), llvm::ProfileSummary::getTotalCount(), I, llvm::IndexedInstrProf::Summary::NumCutoffEntries, llvm::IndexedInstrProf::Summary::NumSummaryFields, llvm::IndexedInstrProf::Summary::set(), and llvm::IndexedInstrProf::Summary::setEntry().
|
static |
Definition at line 759 of file InstrProfWriter.cpp.
References llvm::formatv(), llvm::memprof::MaximumSupportedVersion, llvm::memprof::MinimumSupportedVersion, OS, llvm::unsupported_version, llvm::memprof::Version0, llvm::memprof::Version1, llvm::memprof::Version2, llvm::memprof::Version3, writeMemProfV0(), writeMemProfV1(), writeMemProfV2(), and writeMemProfV3().
|
static |
Definition at line 563 of file InstrProfWriter.cpp.
References llvm::memprof::CallStackRadixTreeBuilder::build(), llvm::memprof::CallStackRadixTreeBuilder::getRadixArray(), I, OS, and llvm::memprof::CallStackRadixTreeBuilder::takeCallStackPos().
Referenced by writeMemProfV3().
|
static |
Definition at line 548 of file InstrProfWriter.cpp.
References llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), and OS.
Referenced by writeMemProfV2().
|
static |
Definition at line 494 of file InstrProfWriter.cpp.
References assert(), llvm::MapVector< KeyT, ValueT, MapType, VectorType >::clear(), F, if(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::insert(), OS, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::reserve(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size(), llvm::MapVector< KeyT, ValueT, MapType, VectorType >::size(), and llvm::sort().
Referenced by writeMemProfV3().
|
static |
Definition at line 476 of file InstrProfWriter.cpp.
References llvm::MapVector< KeyT, ValueT, MapType, VectorType >::clear(), llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), and OS.
Referenced by writeMemProfV0(), writeMemProfV1(), and writeMemProfV2().
|
static |
Definition at line 451 of file InstrProfWriter.cpp.
References llvm::MapVector< KeyT, ValueT, MapType, VectorType >::clear(), llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), OS, and llvm::Version.
Referenced by writeMemProfV0(), writeMemProfV1(), writeMemProfV2(), and writeMemProfV3().
|
static |
Definition at line 443 of file InstrProfWriter.cpp.
References OS, llvm::SmallVectorBase< Size_T >::size(), and llvm::raw_ostream::write().
Referenced by writeMemProfV0(), writeMemProfV1(), writeMemProfV2(), and writeMemProfV3().
|
static |
Definition at line 597 of file InstrProfWriter.cpp.
References llvm::memprof::IndexedMemProfData::Frames, llvm::memprof::getFullSchema(), OS, llvm::memprof::IndexedMemProfData::Records, llvm::Error::success(), llvm::raw_ostream::tell(), llvm::memprof::Version0, llvm::raw_ostream::write(), writeMemProfFrames(), writeMemProfRecords(), and writeMemProfSchema().
Referenced by writeMemProf().
|
static |
Definition at line 631 of file InstrProfWriter.cpp.
References llvm::memprof::IndexedMemProfData::Frames, llvm::memprof::getFullSchema(), OS, llvm::memprof::IndexedMemProfData::Records, llvm::Error::success(), llvm::raw_ostream::tell(), llvm::memprof::Version1, llvm::raw_ostream::write(), writeMemProfFrames(), writeMemProfRecords(), and writeMemProfSchema().
Referenced by writeMemProf().
|
static |
Definition at line 669 of file InstrProfWriter.cpp.
References llvm::memprof::IndexedMemProfData::CallStacks, llvm::memprof::IndexedMemProfData::Frames, llvm::memprof::getFullSchema(), llvm::memprof::getHotColdSchema(), OS, llvm::memprof::IndexedMemProfData::Records, llvm::Error::success(), llvm::raw_ostream::tell(), llvm::memprof::Version2, llvm::raw_ostream::write(), writeMemProfCallStacks(), writeMemProfFrames(), writeMemProfRecords(), and writeMemProfSchema().
Referenced by writeMemProf().
|
static |
Definition at line 717 of file InstrProfWriter.cpp.
References assert(), llvm::memprof::IndexedMemProfData::CallStacks, llvm::memprof::computeFrameHistogram(), llvm::memprof::IndexedMemProfData::Frames, llvm::memprof::getFullSchema(), llvm::memprof::getHotColdSchema(), OS, llvm::memprof::IndexedMemProfData::Records, llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::size(), llvm::Error::success(), llvm::raw_ostream::tell(), llvm::memprof::Version3, llvm::raw_ostream::write(), writeMemProfCallStackArray(), writeMemProfFrameArray(), writeMemProfRecords(), and writeMemProfSchema().
Referenced by writeMemProf().
Definition at line 1031 of file InstrProfWriter.cpp.
Referenced by llvm::InstrProfWriter::writeRecordInText().