LLVM 22.0.0git
|
Fat binary embedded in object files in clang-offload-bundler format. More...
#include "llvm/Object/OffloadBundle.h"
Public Member Functions | |
SmallVector< OffloadBundleEntry > | getEntries () |
uint64_t | getSize () const |
StringRef | getFileName () const |
uint64_t | getNumEntries () const |
bool | isDecompressed () const |
LLVM_ABI Error | extractBundle (const ObjectFile &Source) |
LLVM_ABI Error | dumpEntryToCodeObject () |
LLVM_ABI Error | readEntries (StringRef Section, uint64_t SectionOffset) |
void | dumpEntries () |
void | printEntriesAsURI () |
OffloadBundleFatBin (MemoryBufferRef Source, StringRef File, bool Decompress=false) |
Static Public Member Functions | |
static LLVM_ABI Expected< std::unique_ptr< OffloadBundleFatBin > > | create (MemoryBufferRef, uint64_t SectionOffset, StringRef FileName, bool Decompress=false) |
Public Attributes | |
std::unique_ptr< MemoryBuffer > | DecompressedBuffer |
Fat binary embedded in object files in clang-offload-bundler format.
Definition at line 91 of file OffloadBundle.h.
|
inline |
Definition at line 126 of file OffloadBundle.h.
References DecompressedBuffer, and llvm::MemoryBuffer::getMemBufferCopy().
Referenced by create().
|
static |
Definition at line 147 of file OffloadBundle.cpp.
References llvm::errorCodeToError(), llvm::MemoryBufferRef::getBuffer(), llvm::MemoryBufferRef::getBufferSize(), llvm::identify_magic(), llvm::file_magic::offload_bundle, llvm::file_magic::offload_bundle_compressed, OffloadBundleFatBin(), and llvm::object::parse_failed.
Referenced by extractOffloadBundle().
|
inline |
Definition at line 116 of file OffloadBundle.h.
References llvm::outs().
Error OffloadBundleFatBin::extractBundle | ( | const ObjectFile & | Source | ) |
Definition at line 170 of file OffloadBundle.cpp.
References llvm::object::extractCodeObject(), getFileName(), llvm::itostr(), llvm::StringRef::str(), and llvm::Error::success().
|
inline |
Definition at line 102 of file OffloadBundle.h.
|
inline |
Definition at line 104 of file OffloadBundle.h.
Referenced by extractBundle().
|
inline |
Definition at line 105 of file OffloadBundle.h.
|
inline |
Definition at line 103 of file OffloadBundle.h.
|
inline |
Definition at line 106 of file OffloadBundle.h.
|
inline |
Definition at line 121 of file OffloadBundle.h.
References llvm::outs().
Definition at line 101 of file OffloadBundle.cpp.
References llvm::errorCodeToError(), I, llvm::little, llvm::object::parse_failed, llvm::BinaryStreamReader::readFixedString(), llvm::BinaryStreamReader::readInteger(), and llvm::Error::success().
std::unique_ptr<MemoryBuffer> llvm::object::OffloadBundleFatBin::DecompressedBuffer |
Definition at line 100 of file OffloadBundle.h.
Referenced by OffloadBundleFatBin().