LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::object::OffloadFile Class Reference

A class to contain the binary information for a single OffloadBinary that owns its memory. More...

#include "llvm/Object/OffloadBinary.h"

Inheritance diagram for llvm::object::OffloadFile:
Inheritance graph
[legend]

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 ()
 
OffloadBinarygetBinary ()
 
const OffloadBinarygetBinary () const
 

Detailed Description

A class to contain the binary information for a single OffloadBinary that owns its memory.

Definition at line 157 of file OffloadBinary.h.

Member Typedef Documentation

◆ TargetID

Definition at line 159 of file OffloadBinary.h.

Constructor & Destructor Documentation

◆ OffloadFile()

llvm::object::OffloadFile::OffloadFile ( std::unique_ptr< OffloadBinary Binary,
std::unique_ptr< MemoryBuffer Buffer 
)
inline

Definition at line 161 of file OffloadBinary.h.

Member Function Documentation

◆ copy()

OffloadFile llvm::object::OffloadFile::copy ( ) const
inline

◆ operator TargetID()

llvm::object::OffloadFile::operator TargetID ( ) const
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 180 of file OffloadBinary.h.

References llvm::object::OwningBinary< OffloadBinary >::getBinary().


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