LLVM 22.0.0git
YAMLRemarkSerializer.cpp File Reference
#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

static void mapRemarkHeader (yaml::IO &io, StringRef PassName, StringRef RemarkName, std::optional< RemarkLocation > RL, StringRef FunctionName, std::optional< uint64_t > Hotness, ArrayRef< Argument > Args)
static void emitMagic (raw_ostream &OS)
static void emitVersion (raw_ostream &OS)
static void emitExternalFile (raw_ostream &OS, StringRef Filename)

Function Documentation

◆ emitExternalFile()

◆ emitMagic()

void emitMagic ( raw_ostream & OS)
static

◆ emitVersion()

◆ mapRemarkHeader()

void mapRemarkHeader ( yaml::IO & io,
StringRef PassName,
StringRef RemarkName,
std::optional< RemarkLocation > RL,
StringRef FunctionName,
std::optional< uint64_t > Hotness,
ArrayRef< Argument > Args )
static