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 <ctime>
#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 494 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 773 of file InstrProfWriter.cpp.
References llvm::formatv(), llvm::memprof::MaximumSupportedVersion, llvm::memprof::MinimumSupportedVersion, OS, llvm::unsupported_version, llvm::memprof::Version2, llvm::memprof::Version3, writeMemProfV2(), and writeMemProfV3().
|
static |
Definition at line 632 of file InstrProfWriter.cpp.
References llvm::memprof::CallStackRadixTreeBuilder< FrameIdTy >::build(), llvm::memprof::CallStackRadixTreeBuilder< FrameIdTy >::getRadixArray(), I, OS, and llvm::memprof::CallStackRadixTreeBuilder< FrameIdTy >::takeCallStackPos().
Referenced by writeMemProfV3().
|
static |
Definition at line 617 of file InstrProfWriter.cpp.
References llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), and OS.
Referenced by writeMemProfV2().
|
static |
Definition at line 563 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 545 of file InstrProfWriter.cpp.
References llvm::MapVector< KeyT, ValueT, MapType, VectorType >::clear(), llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), and OS.
Referenced by writeMemProfV2().
|
static |
Definition at line 520 of file InstrProfWriter.cpp.
References llvm::MapVector< KeyT, ValueT, MapType, VectorType >::clear(), llvm::OnDiskChainedHashTableGenerator< Info >::Emit(), OS, and llvm::Version.
Referenced by writeMemProfV2(), and writeMemProfV3().
|
static |
Definition at line 512 of file InstrProfWriter.cpp.
References OS, llvm::SmallVectorBase< Size_T >::size(), and llvm::raw_ostream::write().
Referenced by writeMemProfV2(), and writeMemProfV3().
|
static |
Definition at line 672 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 720 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 1051 of file InstrProfWriter.cpp.
Referenced by llvm::InstrProfWriter::writeRecordInText().