LLVM 20.0.0git
|
This is the base class for a remark serializer. More...
#include "llvm/Remarks/RemarkSerializer.h"
Public Member Functions | |
RemarkSerializer (Format SerializerFormat, raw_ostream &OS, SerializerMode Mode) | |
virtual | ~RemarkSerializer ()=default |
This is just an interface. | |
virtual void | emit (const Remark &Remark)=0 |
Emit a remark to the stream. | |
virtual std::unique_ptr< MetaSerializer > | metaSerializer (raw_ostream &OS, std::optional< StringRef > ExternalFilename=std::nullopt)=0 |
Return the corresponding metadata serializer. | |
Public Attributes | |
Format | SerializerFormat |
The format of the serializer. | |
raw_ostream & | OS |
The open raw_ostream that the remark diagnostics are emitted to. | |
SerializerMode | Mode |
The serialization mode. | |
std::optional< StringTable > | StrTab |
The string table containing all the unique strings used in the output. | |
This is the base class for a remark serializer.
It includes support for using a string table while emitting.
Definition at line 42 of file RemarkSerializer.h.
|
inline |
Definition at line 53 of file RemarkSerializer.h.
|
virtualdefault |
This is just an interface.
Emit a remark to the stream.
Implemented in llvm::remarks::BitstreamRemarkSerializer, llvm::remarks::YAMLRemarkSerializer, and llvm::remarks::YAMLStrTabRemarkSerializer.
Referenced by llvm::LLVMRemarkStreamer::emit().
|
pure virtual |
Return the corresponding metadata serializer.
Implemented in llvm::remarks::BitstreamRemarkSerializer, llvm::remarks::YAMLRemarkSerializer, and llvm::remarks::YAMLStrTabRemarkSerializer.
Referenced by llvm::AsmPrinter::emitRemarksSection().
SerializerMode llvm::remarks::RemarkSerializer::Mode |
The serialization mode.
Definition at line 48 of file RemarkSerializer.h.
Referenced by llvm::remarks::BitstreamRemarkSerializer::BitstreamRemarkSerializer(), llvm::remarks::YAMLStrTabRemarkSerializer::emit(), and llvm::remarks::RemarkStreamer::needsSection().
raw_ostream& llvm::remarks::RemarkSerializer::OS |
The open raw_ostream that the remark diagnostics are emitted to.
Definition at line 46 of file RemarkSerializer.h.
Referenced by llvm::remarks::BitstreamRemarkSerializer::emit(), llvm::remarks::YAMLStrTabRemarkSerializer::emit(), llvm::remarks::RemarkStreamer::getStream(), llvm::remarks::BitstreamRemarkSerializer::metaSerializer(), llvm::remarks::YAMLRemarkSerializer::metaSerializer(), and llvm::remarks::YAMLStrTabRemarkSerializer::metaSerializer().
Format llvm::remarks::RemarkSerializer::SerializerFormat |
The format of the serializer.
Definition at line 44 of file RemarkSerializer.h.
Referenced by llvm::remarks::BitstreamRemarkSerializer::classof(), llvm::remarks::YAMLRemarkSerializer::classof(), llvm::remarks::YAMLStrTabRemarkSerializer::classof(), and llvm::remarks::RemarkStreamer::needsSection().
std::optional<StringTable> llvm::remarks::RemarkSerializer::StrTab |
The string table containing all the unique strings used in the output.
The table can be serialized to be consumed after the compilation.
Definition at line 51 of file RemarkSerializer.h.
Referenced by llvm::remarks::BitstreamRemarkSerializer::BitstreamRemarkSerializer(), llvm::remarks::BitstreamRemarkSerializer::emit(), llvm::remarks::BitstreamRemarkSerializer::metaSerializer(), llvm::remarks::YAMLStrTabRemarkSerializer::metaSerializer(), llvm::remarks::YAMLRemarkSerializer::YAMLRemarkSerializer(), and llvm::remarks::YAMLStrTabRemarkSerializer::YAMLStrTabRemarkSerializer().