9#ifndef LLVM_MC_DXCONTAINERINFO_H
10#define LLVM_MC_DXCONTAINERINFO_H
45 void updateContentSize();
82 Header(
const dxbc::SourceInfo::Names::HeaderOnDisk &
H);
107 using Entry = std::pair<StringRef, StringRef>;
136 CompressionType =
Type;
140 FileNamesAndContents.emplace_back(Name, Content);
143 Args.emplace_back(Name,
Value);
151 std::optional<dxbc::SourceInfo::Contents::CompressionType> CompressionType;
155 void recomputeAfterCompression(
uint32_t CompressedSize);
This file defines the SmallString class.
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Represent a constant reference to a string, i.e.
The instances of the Type class are immutable: once they are created, they are never changed.
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream.
void swapByteOrder(T &Value)
This is an optimization pass for GlobalISel generic memory operations.
StringRef CustomVersionString
void setCommitSha(StringRef CommitSha)
void setVersionString(StringRef VersionString)
void write(raw_ostream &OS) const
dxbc::CompilerVersionHeader Parameters
dxbc::DebugNameHeader Parameters
void setFilename(StringRef DebugFilename)
void write(raw_ostream &OS) const
DebugName(dxbc::DebugNameHeader &Parameters, StringRef Filename)
This data structure is a helper for reading and writing SourceInfo data.
void addArg(StringRef Name, StringRef Value)
void setCompressionType(dxbc::SourceInfo::Contents::CompressionType Type)
SmallString< 128 > CompressedContents
void write(raw_ostream &OS) const
void addFile(StringRef Name, StringRef Content)
std::pair< StringRef, StringRef > Entry
void compute()
Compute Parameters based on Args.
dxbc::SourceInfo::Args::Header Parameters
SmallVector< Entry > Args
void computeGenericHeader(uint32_t ContentSize, dxbc::SourceInfo::SectionType Type)
dxbc::SourceInfo::SectionHeader GenericHeader
void compute()
Compute Parameters based on FileContent.
dxbc::SourceInfo::Contents::Entry Parameters
void computeUncompressed(dxbc::SourceInfo::Contents::CompressionType Type)
Compute Parameters based on the content of Args.
SmallVector< Entry > Entries
void computeFinalSize(uint32_t CompressedSize)
Update Parameters based on the compressed size of section content.
dxbc::SourceInfo::Contents::Header Parameters
dxbc::SourceInfo::Names::Entry Parameters
SmallVector< Entry > Entries
void compute()
Compute headers based on the content of entries.
void compute()
Compute Parameters based on the content of sections.
dxbc::SourceInfo::Header Parameters