|
LLVM 23.0.0git
|
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 |
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.
Definition at line 142 of file DXContainerInfo.h.
Definition at line 139 of file DXContainerInfo.h.
| void SourceInfoBuilder::computeEntries | ( | ) |
Definition at line 201 of file DXContainerInfo.cpp.
References BaseData, clearAndReserve(), llvm::mcdxbc::SourceInfo::SourceContents::Entry::compute(), llvm::mcdxbc::SourceInfo::SourceNames::Entry::compute(), llvm::dxbc::SourceInfo::Contents::Entry::ContentSizeInBytes, llvm::mcdxbc::SourceInfo::SourceContents::Entry::FileContent, llvm::mcdxbc::SourceInfo::SourceNames::Entry::FileName, IsFilled, and llvm::mcdxbc::SourceInfo::SourceContents::Entry::Parameters.
| void SourceInfoBuilder::finalize | ( | ) |
Definition at line 227 of file DXContainerInfo.cpp.
References align(), llvm::ArrayRef(), assert(), BaseData, llvm::compression::zlib::BestSizeCompression, llvm::compression::zlib::compress(), CompressedContents, llvm::Data, llvm::SmallVectorTemplateCommon< T, typename >::data(), llvm::compression::getReasonIfUnsupported(), llvm::compression::zlib::isAvailable(), IsFilled, IsFinalized, llvm::reportFatalUsageError(), llvm::SmallVectorTemplateCommon< T, typename >::size(), llvm::raw_ostream::tell(), llvm::raw_ostream::write(), writePadding(), writeString(), writeStruct(), and llvm::compression::Zlib.
|
inline |
Definition at line 135 of file DXContainerInfo.h.
| void SourceInfoBuilder::write | ( | raw_ostream & | OS | ) | const |
Definition at line 280 of file DXContainerInfo.cpp.
References assert(), BaseData, CompressedContents, llvm::mcdxbc::SourceInfo::Contents, llvm::mcdxbc::SourceInfo::SourceNames::Header::Count, llvm::mcdxbc::SourceInfo::SourceNames::Entries, llvm::mcdxbc::SourceInfo::SourceNames::Header::EntriesSizeInBytes, llvm::mcdxbc::SourceInfo::SourceNames::Header::Flags, llvm::formatv(), llvm::mcdxbc::SourceInfo::Section::GenericHeader, IsFinalized, llvm::little, llvm::mcdxbc::SourceInfo::Names, llvm::mcdxbc::SourceInfo::SourceContents::Parameters, llvm::mcdxbc::SourceInfo::SourceNames::Parameters, llvm::reportFatalUsageError(), llvm::raw_ostream::tell(), llvm::raw_ostream::write(), llvm::support::endian::write(), writePadding(), writeString(), and writeStruct().
| SourceInfo llvm::mcdxbc::SourceInfoBuilder::BaseData |
Definition at line 132 of file DXContainerInfo.h.
Referenced by computeEntries(), finalize(), and write().
| SmallString<128> llvm::mcdxbc::SourceInfoBuilder::CompressedContents |
Definition at line 133 of file DXContainerInfo.h.
Referenced by finalize(), and write().
| bool llvm::mcdxbc::SourceInfoBuilder::IsFilled = false |
Definition at line 130 of file DXContainerInfo.h.
Referenced by computeEntries(), and finalize().
| bool llvm::mcdxbc::SourceInfoBuilder::IsFinalized = false |
Definition at line 131 of file DXContainerInfo.h.
Referenced by finalize(), and write().