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 |
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) |
Static Public Member Functions | |
static LLVM_ABI Expected< std::unique_ptr< OffloadBundleFatBin > > | create (MemoryBufferRef, uint64_t SectionOffset, StringRef FileName) |
Fat binary embedded in object files in clang-offload-bundler format.
Definition at line 79 of file OffloadBundle.h.
|
inline |
Definition at line 109 of file OffloadBundle.h.
Referenced by create().
|
static |
Definition at line 114 of file OffloadBundle.cpp.
References llvm::errorCodeToError(), llvm::MemoryBufferRef::getBuffer(), llvm::MemoryBufferRef::getBufferSize(), llvm::identify_magic(), llvm::file_magic::offload_bundle, OffloadBundleFatBin(), llvm::object::parse_failed, and readEntries().
Referenced by extractOffloadBundle().
|
inline |
Definition at line 99 of file OffloadBundle.h.
References llvm::outs().
Error OffloadBundleFatBin::extractBundle | ( | const ObjectFile & | Source | ) |
Definition at line 133 of file OffloadBundle.cpp.
References llvm::object::extractCodeObject(), getFileName(), llvm::itostr(), llvm::StringRef::str(), and llvm::Error::success().
|
inline |
Definition at line 87 of file OffloadBundle.h.
|
inline |
Definition at line 89 of file OffloadBundle.h.
Referenced by extractBundle().
|
inline |
Definition at line 90 of file OffloadBundle.h.
|
inline |
Definition at line 88 of file OffloadBundle.h.
|
inline |
Definition at line 104 of file OffloadBundle.h.
References llvm::outs().
Definition at line 68 of file OffloadBundle.cpp.
References llvm::errorCodeToError(), I, llvm::little, llvm::object::parse_failed, llvm::BinaryStreamReader::readFixedString(), llvm::BinaryStreamReader::readInteger(), and llvm::Error::success().
Referenced by create().