LLVM 23.0.0git
DXContainerEmitter.cpp File Reference

Binary emitter for yaml to DXContainer binary. More...

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::yaml

Functions

template<typename T>
static void assign_if (T &Dst, const std::optional< T > &Src)
static void assignSectionHeader (dxbc::SourceInfo::SectionHeader &Dst, const DXContainerYAML::SourceInfo::Section &Src)
LLVM_ABI bool llvm::yaml::yaml2dxcontainer (DXContainerYAML::Object &Doc, raw_ostream &Out, ErrorHandler EH)

Detailed Description

Binary emitter for yaml to DXContainer binary.

Definition in file DXContainerEmitter.cpp.

Function Documentation

◆ assign_if()

template<typename T>
void assign_if ( T & Dst,
const std::optional< T > & Src )
static

Definition at line 114 of file DXContainerEmitter.cpp.

References T.

Referenced by assignSectionHeader().

◆ assignSectionHeader()

void assignSectionHeader ( dxbc::SourceInfo::SectionHeader & Dst,
const DXContainerYAML::SourceInfo::Section & Src )
static

Definition at line 120 of file DXContainerEmitter.cpp.

References assign_if().