LLVM 20.0.0git
|
#include "llvm/CGData/StableFunctionMapRecord.h"
Public Member Functions | |
StableFunctionMapRecord () | |
StableFunctionMapRecord (std::unique_ptr< StableFunctionMap > FunctionMap) | |
void | serialize (raw_ostream &OS) const |
Serialize the stable function map to a raw_ostream. | |
void | deserialize (const unsigned char *&Ptr) |
Deserialize the stable function map from a raw_ostream. | |
void | serializeYAML (yaml::Output &YOS) const |
Serialize the stable function map to a YAML stream. | |
void | deserializeYAML (yaml::Input &YIS) |
Deserialize the stable function map from a YAML stream. | |
void | finalize (bool SkipTrim=false) |
Finalize the stable function map by trimming content. | |
void | merge (const StableFunctionMapRecord &Other) |
Merge the stable function map into this one. | |
bool | empty () const |
void | print (raw_ostream &OS=llvm::errs()) const |
Print the stable function map in a YAML format. | |
Static Public Member Functions | |
static void | serialize (raw_ostream &OS, const StableFunctionMap *FunctionMap) |
A static helper function to serialize the stable function map without owning the stable function map. | |
Public Attributes | |
std::unique_ptr< StableFunctionMap > | FunctionMap |
Definition at line 25 of file StableFunctionMapRecord.h.
|
inline |
Definition at line 28 of file StableFunctionMapRecord.h.
References FunctionMap.
|
inline |
Definition at line 32 of file StableFunctionMapRecord.h.
Deserialize the stable function map from a raw_ostream.
Definition at line 123 of file StableFunctionMapRecord.cpp.
References llvm::alignAddr(), assert(), FunctionMap, I, Name, and Ptr.
Referenced by llvm::CodeGenDataReader::mergeFromObjectFile(), and llvm::IndexedCodeGenDataReader::read().
void StableFunctionMapRecord::deserializeYAML | ( | yaml::Input & | YIS | ) |
Deserialize the stable function map from a YAML stream.
Definition at line 196 of file StableFunctionMapRecord.cpp.
References FunctionMap.
Referenced by llvm::TextCodeGenDataReader::read().
|
inline |
Definition at line 60 of file StableFunctionMapRecord.h.
References FunctionMap.
Referenced by llvm::cgdata::mergeCodeGenData().
|
inline |
Finalize the stable function map by trimming content.
Definition at line 52 of file StableFunctionMapRecord.h.
References FunctionMap.
Referenced by llvm::cgdata::mergeCodeGenData().
|
inline |
Merge the stable function map into this one.
Definition at line 55 of file StableFunctionMapRecord.h.
References FunctionMap, and llvm::Other.
Referenced by llvm::CodeGenDataReader::mergeFromObjectFile().
|
inline |
Print the stable function map in a YAML format.
Definition at line 63 of file StableFunctionMapRecord.h.
References OS, and serializeYAML().
void StableFunctionMapRecord::serialize | ( | raw_ostream & | OS | ) | const |
Serialize the stable function map to a raw_ostream.
Definition at line 80 of file StableFunctionMapRecord.cpp.
References FunctionMap, OS, and serialize().
|
static |
A static helper function to serialize the stable function map without owning the stable function map.
Definition at line 84 of file StableFunctionMapRecord.cpp.
References FunctionMap, getStableFunctionEntries(), getStableIndexOperandHashes(), I, llvm::little, Name, llvm::offsetToAlignment(), llvm::support::endian::Writer::OS, OS, and llvm::support::endian::Writer::write().
Referenced by llvm::GlobalMergeFunc::emitFunctionMap(), and serialize().
void StableFunctionMapRecord::serializeYAML | ( | yaml::Output & | YOS | ) | const |
Serialize the stable function map to a YAML stream.
Definition at line 182 of file StableFunctionMapRecord.cpp.
References llvm::SmallVectorImpl< T >::emplace_back(), FunctionMap, getStableFunctionEntries(), and getStableIndexOperandHashes().
Referenced by print(), and llvm::CodeGenDataWriter::writeText().
std::unique_ptr<StableFunctionMap> llvm::StableFunctionMapRecord::FunctionMap |
Definition at line 26 of file StableFunctionMapRecord.h.
Referenced by llvm::CodeGenDataWriter::addRecord(), deserialize(), deserializeYAML(), empty(), finalize(), merge(), llvm::cgdata::mergeCodeGenData(), llvm::CodeGenDataReader::releaseStableFunctionMap(), serialize(), serializeYAML(), and StableFunctionMapRecord().