LLVM 23.0.0git
llvm::mcdxbc::SourceInfoBuilder Struct Reference

This data structure is a helper for reading and writing SourceInfo data. More...

#include "llvm/MC/DXContainerInfo.h"

Public Member Functions

void setCompressionType (dxbc::SourceInfo::Contents::CompressionType Type)
void addFile (StringRef Name, StringRef Content)
void addArg (StringRef Name, StringRef Value)
void computeEntries ()
void finalize ()
void write (raw_ostream &OS) const

Public Attributes

bool IsFilled = false
bool IsFinalized = false
SourceInfo BaseData
SmallString< 128 > CompressedContents

Detailed Description

This data structure is a helper for reading and writing SourceInfo data.

This structure is used to represent the extracted data in an inspectable and modifiable format, and can be used to serialize the data back into valid SourceInfo.

Definition at line 129 of file DXContainerInfo.h.

Member Function Documentation

◆ addArg()

void llvm::mcdxbc::SourceInfoBuilder::addArg ( StringRef Name,
StringRef Value )
inline

Definition at line 142 of file DXContainerInfo.h.

◆ addFile()

void llvm::mcdxbc::SourceInfoBuilder::addFile ( StringRef Name,
StringRef Content )
inline

Definition at line 139 of file DXContainerInfo.h.

◆ computeEntries()

◆ finalize()

◆ setCompressionType()

void llvm::mcdxbc::SourceInfoBuilder::setCompressionType ( dxbc::SourceInfo::Contents::CompressionType Type)
inline

Definition at line 135 of file DXContainerInfo.h.

◆ write()

Member Data Documentation

◆ BaseData

SourceInfo llvm::mcdxbc::SourceInfoBuilder::BaseData

Definition at line 132 of file DXContainerInfo.h.

Referenced by computeEntries(), finalize(), and write().

◆ CompressedContents

SmallString<128> llvm::mcdxbc::SourceInfoBuilder::CompressedContents

Definition at line 133 of file DXContainerInfo.h.

Referenced by finalize(), and write().

◆ IsFilled

bool llvm::mcdxbc::SourceInfoBuilder::IsFilled = false

Definition at line 130 of file DXContainerInfo.h.

Referenced by computeEntries(), and finalize().

◆ IsFinalized

bool llvm::mcdxbc::SourceInfoBuilder::IsFinalized = false

Definition at line 131 of file DXContainerInfo.h.

Referenced by finalize(), and write().


The documentation for this struct was generated from the following files: