LLVM 20.0.0git
Public Member Functions | List of all members
llvm::CodeGenDataWriter Class Reference

#include "llvm/CGData/CodeGenDataWriter.h"

Public Member Functions

 CodeGenDataWriter ()=default
 
 ~CodeGenDataWriter ()=default
 
void addRecord (OutlinedHashTreeRecord &Record)
 Add the outlined hash tree record. The input Record is released.
 
Error write (raw_fd_ostream &OS)
 Write the codegen data to OS.
 
Error writeText (raw_fd_ostream &OS)
 Write the codegen data in text format to OS.
 
CGDataKind getCGDataKind () const
 Return the attributes of the current CGData.
 
bool hasOutlinedHashTree () const
 Return true if the header indicates the data has an outlined hash tree.
 

Detailed Description

Definition at line 56 of file CodeGenDataWriter.h.

Constructor & Destructor Documentation

◆ CodeGenDataWriter()

llvm::CodeGenDataWriter::CodeGenDataWriter ( )
default

◆ ~CodeGenDataWriter()

llvm::CodeGenDataWriter::~CodeGenDataWriter ( )
default

Member Function Documentation

◆ addRecord()

void CodeGenDataWriter::addRecord ( OutlinedHashTreeRecord Record)

Add the outlined hash tree record. The input Record is released.

Definition at line 48 of file CodeGenDataWriter.cpp.

References assert(), llvm::FunctionOutlinedHashTree, and llvm::OutlinedHashTreeRecord::HashTree.

◆ getCGDataKind()

CGDataKind llvm::CodeGenDataWriter::getCGDataKind ( ) const
inline

Return the attributes of the current CGData.

Definition at line 77 of file CodeGenDataWriter.h.

◆ hasOutlinedHashTree()

bool llvm::CodeGenDataWriter::hasOutlinedHashTree ( ) const
inline

Return true if the header indicates the data has an outlined hash tree.

Definition at line 80 of file CodeGenDataWriter.h.

References llvm::FunctionOutlinedHashTree.

Referenced by writeText().

◆ write()

Error CodeGenDataWriter::write ( raw_fd_ostream OS)

Write the codegen data to OS.

Definition at line 55 of file CodeGenDataWriter.cpp.

References OS.

◆ writeText()

Error CodeGenDataWriter::writeText ( raw_fd_ostream OS)

Write the codegen data in text format to OS.

Definition at line 114 of file CodeGenDataWriter.cpp.

References hasOutlinedHashTree(), OS, llvm::OutlinedHashTreeRecord::serializeYAML(), and llvm::Error::success().


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