9#ifndef LLVM_MC_DXCONTAINERINFO_H
10#define LLVM_MC_DXCONTAINERINFO_H
45 void updateContentSize();
108 using Entry = std::pair<StringRef, StringRef>;
137 CompressionType =
Type;
141 FileNamesAndContents.emplace_back(Name, Content);
144 Args.emplace_back(Name,
Value);
152 std::optional<dxbc::SourceInfo::Contents::CompressionType> CompressionType;
156 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
LLVM_ABI void setCommitSha(StringRef CommitSha)
LLVM_ABI void setVersionString(StringRef VersionString)
LLVM_ABI void write(raw_ostream &OS) const
LLVM_ABI CompilerVersion()
dxbc::CompilerVersionHeader Parameters
dxbc::DebugNameHeader Parameters
LLVM_ABI void setFilename(StringRef DebugFilename)
LLVM_ABI 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
LLVM_ABI void computeEntries()
LLVM_ABI void write(raw_ostream &OS) const
void addFile(StringRef Name, StringRef Content)
std::pair< StringRef, StringRef > Entry
LLVM_ABI void compute()
Compute Parameters based on Args.
dxbc::SourceInfo::Args::Header Parameters
SmallVector< Entry > Args
LLVM_ABI void computeGenericHeader(uint32_t ContentSize, dxbc::SourceInfo::SectionType Type)
dxbc::SourceInfo::SectionHeader GenericHeader
LLVM_ABI void compute()
Compute Parameters based on FileContent.
dxbc::SourceInfo::Contents::Entry Parameters
LLVM_ABI void computeUncompressed(dxbc::SourceInfo::Contents::CompressionType Type)
Compute Parameters based on the content of Args.
SmallVector< Entry > Entries
LLVM_ABI 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
LLVM_ABI void compute()
Compute headers based on the content of entries.
LLVM_ABI void compute()
Compute Parameters based on the content of sections.
dxbc::SourceInfo::Header Parameters