clang 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::OffloadTargetInfo Struct Reference

Obtain the offload kind, real machine triple, and an optional TargetID out of the target information specified by the user. More...

#include "clang/Driver/OffloadBundler.h"

Public Member Functions

 OffloadTargetInfo (const llvm::StringRef Target, const OffloadBundlerConfig &BC)
 
bool hasHostKind () const
 
bool isOffloadKindValid () const
 
bool isOffloadKindCompatible (const llvm::StringRef TargetOffloadKind) const
 
bool isTripleValid () const
 
bool operator== (const OffloadTargetInfo &Target) const
 
std::string str () const
 

Public Attributes

llvm::StringRef OffloadKind
 
llvm::Triple Triple
 
llvm::StringRef TargetID
 
const OffloadBundlerConfigBundlerConfig
 

Detailed Description

Obtain the offload kind, real machine triple, and an optional TargetID out of the target information specified by the user.

Bundle Entry ID (or, Offload Target String) has following components:

Definition at line 78 of file OffloadBundler.h.

Constructor & Destructor Documentation

◆ OffloadTargetInfo()

OffloadTargetInfo::OffloadTargetInfo ( const llvm::StringRef  Target,
const OffloadBundlerConfig BC 
)

Member Function Documentation

◆ hasHostKind()

bool OffloadTargetInfo::hasHostKind ( ) const

Definition at line 106 of file OffloadBundler.cpp.

References OffloadKind.

◆ isOffloadKindCompatible()

bool OffloadTargetInfo::isOffloadKindCompatible ( const llvm::StringRef  TargetOffloadKind) const

◆ isOffloadKindValid()

bool OffloadTargetInfo::isOffloadKindValid ( ) const

Definition at line 110 of file OffloadBundler.cpp.

References OffloadKind.

◆ isTripleValid()

bool OffloadTargetInfo::isTripleValid ( ) const

Definition at line 133 of file OffloadBundler.cpp.

References Triple.

◆ operator==()

bool OffloadTargetInfo::operator== ( const OffloadTargetInfo Target) const

Definition at line 137 of file OffloadBundler.cpp.

References OffloadKind, TargetID, and Triple.

◆ str()

std::string OffloadTargetInfo::str ( ) const

Definition at line 142 of file OffloadBundler.cpp.

References OffloadKind, TargetID, and Triple.

Referenced by isCodeObjectCompatible().

Member Data Documentation

◆ BundlerConfig

const OffloadBundlerConfig& clang::OffloadTargetInfo::BundlerConfig

Definition at line 83 of file OffloadBundler.h.

Referenced by isOffloadKindCompatible().

◆ OffloadKind

llvm::StringRef clang::OffloadTargetInfo::OffloadKind

◆ TargetID

llvm::StringRef clang::OffloadTargetInfo::TargetID

Definition at line 81 of file OffloadBundler.h.

Referenced by isCodeObjectCompatible(), OffloadTargetInfo(), operator==(), and str().

◆ Triple

llvm::Triple clang::OffloadTargetInfo::Triple

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