LLVM 20.0.0git
|
#include "llvm/CGData/CodeGenDataWriter.h"
Public Member Functions | |
CodeGenDataWriter ()=default | |
~CodeGenDataWriter ()=default | |
void | addRecord (OutlinedHashTreeRecord &Record) |
Add the outlined hash tree record. The input hash tree is released. | |
void | addRecord (StableFunctionMapRecord &Record) |
Add the stable function map record. The input function map 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. | |
bool | hasStableFunctionMap () const |
Return true if the header indicates the data has a stable function map. | |
Definition at line 57 of file CodeGenDataWriter.h.
|
default |
|
default |
void CodeGenDataWriter::addRecord | ( | OutlinedHashTreeRecord & | Record | ) |
Add the outlined hash tree record. The input hash tree is released.
Definition at line 48 of file CodeGenDataWriter.cpp.
References assert(), llvm::FunctionOutlinedHashTree, and llvm::OutlinedHashTreeRecord::HashTree.
void CodeGenDataWriter::addRecord | ( | StableFunctionMapRecord & | Record | ) |
Add the stable function map record. The input function map is released.
Definition at line 55 of file CodeGenDataWriter.cpp.
References assert(), llvm::StableFunctionMapRecord::FunctionMap, and llvm::StableFunctionMergingMap.
|
inline |
Return the attributes of the current CGData.
Definition at line 84 of file CodeGenDataWriter.h.
|
inline |
Return true if the header indicates the data has an outlined hash tree.
Definition at line 87 of file CodeGenDataWriter.h.
References llvm::FunctionOutlinedHashTree.
Referenced by writeText().
|
inline |
Return true if the header indicates the data has a stable function map.
Definition at line 92 of file CodeGenDataWriter.h.
References llvm::StableFunctionMergingMap.
Referenced by writeText().
Error CodeGenDataWriter::write | ( | raw_fd_ostream & | OS | ) |
Error CodeGenDataWriter::writeText | ( | raw_fd_ostream & | OS | ) |
Write the codegen data in text format to OS
.
Definition at line 137 of file CodeGenDataWriter.cpp.
References hasOutlinedHashTree(), hasStableFunctionMap(), OS, llvm::OutlinedHashTreeRecord::serializeYAML(), llvm::StableFunctionMapRecord::serializeYAML(), and llvm::Error::success().