16#ifndef LLVM_CGDATA_STABLEFUNCTIONMAPRECORD_H
17#define LLVM_CGDATA_STABLEFUNCTIONMAPRECORD_H
29 FunctionMap = std::make_unique<StableFunctionMap>();
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.
void merge(const StableFunctionMapRecord &Other)
Merge the stable function map into this one.
void finalize(bool SkipTrim=false)
Finalize the stable function map by trimming content.
void deserialize(const unsigned char *&Ptr)
Deserialize the stable function map from a raw_ostream.
std::unique_ptr< StableFunctionMap > FunctionMap
void print(raw_ostream &OS=llvm::errs()) const
Print the stable function map in a YAML format.
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.
StableFunctionMapRecord(std::unique_ptr< StableFunctionMap > FunctionMap)
void deserializeYAML(yaml::Input &YIS)
Deserialize the stable function map from a YAML stream.
StableFunctionMapRecord()
void serializeYAML(yaml::Output &YOS) const
Serialize the stable function map to a YAML stream.