LLVM 24.0.0git
llvm::object::OffloadFile Class Reference

A handle to a single OffloadBinary. More...

#include "llvm/Object/OffloadBinary.h"

Public Types

using TargetID = std::pair<StringRef, StringRef>

Public Member Functions

 OffloadFile ()=default
 OffloadFile (std::unique_ptr< OffloadBinary > Binary)
OffloadBinary * getBinary ()
const OffloadBinary * getBinary () const
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.

Detailed Description

A handle to a single OffloadBinary.

Definition at line 213 of file OffloadBinary.h.

Member Typedef Documentation

◆ TargetID

Definition at line 215 of file OffloadBinary.h.

Constructor & Destructor Documentation

◆ OffloadFile() [1/2]

llvm::object::OffloadFile::OffloadFile ( )
default

Referenced by copy().

◆ OffloadFile() [2/2]

llvm::object::OffloadFile::OffloadFile ( std::unique_ptr< OffloadBinary > Binary)
inline

Definition at line 218 of file OffloadBinary.h.

References llvm::move().

Member Function Documentation

◆ copy()

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

Make a deep copy of this offloading file.

Definition at line 225 of file OffloadBinary.h.

References assert(), llvm::consumeError(), llvm::object::OffloadBinary::create(), getBinary(), and OffloadFile().

◆ getBinary() [1/2]

OffloadBinary * llvm::object::OffloadFile::getBinary ( )
inline

Definition at line 221 of file OffloadBinary.h.

Referenced by copy(), and operator TargetID().

◆ getBinary() [2/2]

const OffloadBinary * llvm::object::OffloadFile::getBinary ( ) const
inline

Definition at line 222 of file OffloadBinary.h.

◆ 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 236 of file OffloadBinary.h.

References getBinary().


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