LLVM 22.0.0git
llvm::OutlinedHashTreeRecord Struct Reference

#include "llvm/CGData/OutlinedHashTreeRecord.h"

Public Member Functions

 OutlinedHashTreeRecord ()
 OutlinedHashTreeRecord (std::unique_ptr< OutlinedHashTree > HashTree)
LLVM_ABI void serialize (raw_ostream &OS) const
 Serialize the outlined hash tree to a raw_ostream.
LLVM_ABI void deserialize (const unsigned char *&Ptr)
 Deserialize the outlined hash tree from a raw_ostream.
LLVM_ABI void serializeYAML (yaml::Output &YOS) const
 Serialize the outlined hash tree to a YAML stream.
LLVM_ABI void deserializeYAML (yaml::Input &YIS)
 Deserialize the outlined hash tree from a YAML stream.
void merge (const OutlinedHashTreeRecord &Other)
 Merge the other outlined hash tree into this one.
bool empty () const
void print (raw_ostream &OS=llvm::errs()) const
 Print the outlined hash tree in a YAML format.

Public Attributes

std::unique_ptr< OutlinedHashTreeHashTree

Detailed Description

Definition at line 36 of file OutlinedHashTreeRecord.h.

Constructor & Destructor Documentation

◆ OutlinedHashTreeRecord() [1/2]

llvm::OutlinedHashTreeRecord::OutlinedHashTreeRecord ( )
inline

Definition at line 39 of file OutlinedHashTreeRecord.h.

References HashTree.

Referenced by merge().

◆ OutlinedHashTreeRecord() [2/2]

llvm::OutlinedHashTreeRecord::OutlinedHashTreeRecord ( std::unique_ptr< OutlinedHashTree > HashTree)
inline

Definition at line 40 of file OutlinedHashTreeRecord.h.

References HashTree, and llvm::move().

Member Function Documentation

◆ deserialize()

void OutlinedHashTreeRecord::deserialize ( const unsigned char *& Ptr)

◆ deserializeYAML()

void OutlinedHashTreeRecord::deserializeYAML ( yaml::Input & YIS)

Deserialize the outlined hash tree from a YAML stream.

Definition at line 105 of file OutlinedHashTreeRecord.cpp.

References llvm::yaml::Input::nextDocument().

◆ empty()

bool llvm::OutlinedHashTreeRecord::empty ( ) const
inline
Returns
true if the outlined hash tree is empty.

Definition at line 58 of file OutlinedHashTreeRecord.h.

References HashTree.

Referenced by llvm::cgdata::mergeCodeGenData().

◆ merge()

void llvm::OutlinedHashTreeRecord::merge ( const OutlinedHashTreeRecord & Other)
inline

Merge the other outlined hash tree into this one.

Definition at line 53 of file OutlinedHashTreeRecord.h.

References HashTree, llvm::Other, and OutlinedHashTreeRecord().

Referenced by llvm::CodeGenDataReader::mergeFromObjectFile().

◆ print()

void llvm::OutlinedHashTreeRecord::print ( raw_ostream & OS = llvm::errs()) const
inline

Print the outlined hash tree in a YAML format.

Definition at line 61 of file OutlinedHashTreeRecord.h.

References llvm::errs(), and serializeYAML().

◆ serialize()

void OutlinedHashTreeRecord::serialize ( raw_ostream & OS) const

Serialize the outlined hash tree to a raw_ostream.

Definition at line 58 of file OutlinedHashTreeRecord.cpp.

References llvm::little, and llvm::support::endian::Writer::write().

◆ serializeYAML()

void OutlinedHashTreeRecord::serializeYAML ( yaml::Output & YOS) const

Serialize the outlined hash tree to a YAML stream.

Definition at line 98 of file OutlinedHashTreeRecord.cpp.

Referenced by print().

Member Data Documentation

◆ HashTree

std::unique_ptr<OutlinedHashTree> llvm::OutlinedHashTreeRecord::HashTree

The documentation for this struct was generated from the following files: