LLVM 20.0.0git
|
A class to contain the binary information for a single OffloadBinary that owns its memory. More...
#include "llvm/Object/OffloadBinary.h"
Public Types | |
using | TargetID = std::pair< StringRef, StringRef > |
Public Member Functions | |
OffloadFile (std::unique_ptr< OffloadBinary > Binary, std::unique_ptr< MemoryBuffer > Buffer) | |
OffloadFile | copy () const |
Make a deep copy of this offloading file. | |
operator TargetID () const | |
We use the Triple and Architecture pair to group linker inputs together. | |
Public Member Functions inherited from llvm::object::OwningBinary< OffloadBinary > | |
OwningBinary () | |
OwningBinary (std::unique_ptr< OffloadBinary > Bin, std::unique_ptr< MemoryBuffer > Buf) | |
OwningBinary (OwningBinary< OffloadBinary > &&Other) | |
OwningBinary< OffloadBinary > & | operator= (OwningBinary< OffloadBinary > &&Other) |
std::pair< std::unique_ptr< OffloadBinary >, std::unique_ptr< MemoryBuffer > > | takeBinary () |
OffloadBinary * | getBinary () |
const OffloadBinary * | getBinary () const |
A class to contain the binary information for a single OffloadBinary that owns its memory.
Definition at line 157 of file OffloadBinary.h.
using llvm::object::OffloadFile::TargetID = std::pair<StringRef, StringRef> |
Definition at line 159 of file OffloadBinary.h.
|
inline |
Definition at line 161 of file OffloadBinary.h.
|
inline |
Make a deep copy of this offloading file.
Definition at line 166 of file OffloadBinary.h.
References assert(), llvm::consumeError(), llvm::object::OffloadBinary::create(), llvm::object::OwningBinary< OffloadBinary >::getBinary(), and llvm::MemoryBuffer::getMemBufferCopy().
|
inline |
We use the Triple and Architecture pair to group linker inputs together.
This conversion function lets us use these inputs in a hash-map.
Definition at line 181 of file OffloadBinary.h.
References llvm::object::OwningBinary< OffloadBinary >::getBinary().