LLVM 22.0.0git
llvm::object::OffloadBundleFatBin Class Reference

Fat binary embedded in object files in clang-offload-bundler format. More...

#include "llvm/Object/OffloadBundle.h"

Public Member Functions

SmallVector< OffloadBundleEntrygetEntries ()
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< MemoryBufferDecompressedBuffer

Detailed Description

Fat binary embedded in object files in clang-offload-bundler format.

Definition at line 91 of file OffloadBundle.h.

Constructor & Destructor Documentation

◆ OffloadBundleFatBin()

llvm::object::OffloadBundleFatBin::OffloadBundleFatBin ( MemoryBufferRef Source,
StringRef File,
bool Decompress = false )
inline

Definition at line 126 of file OffloadBundle.h.

References DecompressedBuffer, and llvm::MemoryBuffer::getMemBufferCopy().

Referenced by create().

Member Function Documentation

◆ create()

◆ dumpEntries()

void llvm::object::OffloadBundleFatBin::dumpEntries ( )
inline

Definition at line 116 of file OffloadBundle.h.

References llvm::outs().

◆ dumpEntryToCodeObject()

LLVM_ABI Error llvm::object::OffloadBundleFatBin::dumpEntryToCodeObject ( )

References LLVM_ABI.

◆ extractBundle()

Error OffloadBundleFatBin::extractBundle ( const ObjectFile & Source)

◆ getEntries()

SmallVector< OffloadBundleEntry > llvm::object::OffloadBundleFatBin::getEntries ( )
inline

Definition at line 102 of file OffloadBundle.h.

◆ getFileName()

StringRef llvm::object::OffloadBundleFatBin::getFileName ( ) const
inline

Definition at line 104 of file OffloadBundle.h.

Referenced by extractBundle().

◆ getNumEntries()

uint64_t llvm::object::OffloadBundleFatBin::getNumEntries ( ) const
inline

Definition at line 105 of file OffloadBundle.h.

◆ getSize()

uint64_t llvm::object::OffloadBundleFatBin::getSize ( ) const
inline

Definition at line 103 of file OffloadBundle.h.

◆ isDecompressed()

bool llvm::object::OffloadBundleFatBin::isDecompressed ( ) const
inline

Definition at line 106 of file OffloadBundle.h.

◆ printEntriesAsURI()

void llvm::object::OffloadBundleFatBin::printEntriesAsURI ( )
inline

Definition at line 121 of file OffloadBundle.h.

References llvm::outs().

◆ readEntries()

Member Data Documentation

◆ DecompressedBuffer

std::unique_ptr<MemoryBuffer> llvm::object::OffloadBundleFatBin::DecompressedBuffer

Definition at line 100 of file OffloadBundle.h.

Referenced by OffloadBundleFatBin().


The documentation for this class was generated from the following files: