LLVM 22.0.0git
llvm::object::OffloadBundleURI Struct Reference

#include "llvm/Object/OffloadBundle.h"

Public Member Functions

 OffloadBundleURI (StringRef File, int64_t Off, int64_t Size)
StringRef getFileName () const

Static Public Member Functions

static Expected< std::unique_ptr< OffloadBundleURI > > createOffloadBundleURI (StringRef Str, UriTypeT Type)
static Expected< std::unique_ptr< OffloadBundleURI > > createFileURI (StringRef Str)
static Expected< std::unique_ptr< OffloadBundleURI > > createMemoryURI (StringRef Str)

Public Attributes

int64_t Offset = 0
int64_t Size = 0
uint64_t ProcessID = 0
StringRef FileName
UriTypeT URIType

Detailed Description

Definition at line 116 of file OffloadBundle.h.

Constructor & Destructor Documentation

◆ OffloadBundleURI()

llvm::object::OffloadBundleURI::OffloadBundleURI ( StringRef File,
int64_t Off,
int64_t Size )
inline

Definition at line 125 of file OffloadBundle.h.

References llvm::object::FILE_URI, FileName, Offset, ProcessID, Size, and URIType.

Referenced by createFileURI().

Member Function Documentation

◆ createFileURI()

◆ createMemoryURI()

Expected< std::unique_ptr< OffloadBundleURI > > llvm::object::OffloadBundleURI::createMemoryURI ( StringRef Str)
inlinestatic

Definition at line 175 of file OffloadBundle.h.

References llvm::createStringError(), and llvm::object::parse_failed.

Referenced by createOffloadBundleURI().

◆ createOffloadBundleURI()

Expected< std::unique_ptr< OffloadBundleURI > > llvm::object::OffloadBundleURI::createOffloadBundleURI ( StringRef Str,
UriTypeT Type )
inlinestatic

◆ getFileName()

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

Definition at line 181 of file OffloadBundle.h.

References FileName.

Member Data Documentation

◆ FileName

StringRef llvm::object::OffloadBundleURI::FileName

◆ Offset

int64_t llvm::object::OffloadBundleURI::Offset = 0

Definition at line 117 of file OffloadBundle.h.

Referenced by llvm::object::extractOffloadBundleByURI(), and OffloadBundleURI().

◆ ProcessID

uint64_t llvm::object::OffloadBundleURI::ProcessID = 0

Definition at line 119 of file OffloadBundle.h.

Referenced by OffloadBundleURI().

◆ Size

int64_t llvm::object::OffloadBundleURI::Size = 0

Definition at line 118 of file OffloadBundle.h.

Referenced by llvm::object::extractOffloadBundleByURI(), and OffloadBundleURI().

◆ URIType

UriTypeT llvm::object::OffloadBundleURI::URIType

Definition at line 121 of file OffloadBundle.h.

Referenced by OffloadBundleURI().


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