LLVM 20.0.0git
|
#include "llvm/Remarks/YAMLRemarkSerializer.h"
#include "llvm/Remarks/Remark.h"
#include "llvm/Support/FileSystem.h"
#include <optional>
Go to the source code of this file.
Classes | |
struct | llvm::yaml::MappingTraits< remarks::Remark * > |
struct | llvm::yaml::MappingTraits< RemarkLocation > |
struct | llvm::yaml::StringBlockVal |
Helper struct for multiline string block literals. More... | |
struct | llvm::yaml::BlockScalarTraits< StringBlockVal > |
struct | llvm::yaml::SequenceTraits< ArrayRef< T > > |
ArrayRef is not really compatible with the YAMLTraits. More... | |
struct | llvm::yaml::MappingTraits< Argument > |
Implement this as a mapping for now to get proper quotation for the value. More... | |
Namespaces | |
namespace | llvm |
This is an optimization pass for GlobalISel generic memory operations. | |
namespace | llvm::yaml |
Functions | |
template<typename T > | |
static void | mapRemarkHeader (yaml::IO &io, T PassName, T RemarkName, std::optional< RemarkLocation > RL, T FunctionName, std::optional< uint64_t > Hotness, ArrayRef< Argument > Args) |
static void | emitMagic (raw_ostream &OS) |
static void | emitVersion (raw_ostream &OS) |
static void | emitStrTab (raw_ostream &OS, std::optional< const StringTable * > StrTab) |
static void | emitExternalFile (raw_ostream &OS, StringRef Filename) |
|
static |
Definition at line 233 of file YAMLRemarkSerializer.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::data(), llvm::SmallVectorBase< Size_T >::empty(), llvm::sys::fs::make_absolute(), OS, llvm::SmallVectorBase< Size_T >::size(), and llvm::raw_ostream::write().
Referenced by llvm::remarks::YAMLMetaSerializer::emit(), and llvm::remarks::YAMLStrTabMetaSerializer::emit().
|
static |
Definition at line 205 of file YAMLRemarkSerializer.cpp.
References llvm::remarks::Magic(), OS, and llvm::raw_ostream::write().
Referenced by llvm::remarks::YAMLMetaSerializer::emit(), and llvm::remarks::YAMLStrTabMetaSerializer::emit().
|
static |
Definition at line 219 of file YAMLRemarkSerializer.cpp.
References OS, llvm::raw_ostream::write(), and llvm::support::endian::write64le().
Referenced by llvm::remarks::YAMLMetaSerializer::emit(), and llvm::remarks::YAMLStrTabMetaSerializer::emit().
|
static |
Definition at line 212 of file YAMLRemarkSerializer.cpp.
References llvm::remarks::CurrentRemarkVersion, OS, llvm::Version, llvm::raw_ostream::write(), and llvm::support::endian::write64le().
Referenced by llvm::remarks::YAMLMetaSerializer::emit(), and llvm::remarks::YAMLStrTabMetaSerializer::emit().
|
static |
Definition at line 25 of file YAMLRemarkSerializer.cpp.
References PassName.
Referenced by llvm::yaml::MappingTraits< remarks::Remark * >::mapping().