clang  16.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 GPUArch out of the target information specified by the user. More...

#include "clang/Driver/OffloadBundler.h"

Collaboration diagram for clang::OffloadTargetInfo:
Collaboration graph
[legend]

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 GPUArch out of the target information specified by the user.

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

Definition at line 70 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 85 of file OffloadBundler.cpp.

References OffloadKind.

◆ isOffloadKindCompatible()

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

◆ isOffloadKindValid()

bool OffloadTargetInfo::isOffloadKindValid ( ) const

Definition at line 89 of file OffloadBundler.cpp.

References OffloadKind.

◆ isTripleValid()

bool OffloadTargetInfo::isTripleValid ( ) const

Definition at line 109 of file OffloadBundler.cpp.

References Triple.

◆ operator==()

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

Definition at line 113 of file OffloadBundler.cpp.

References OffloadKind, clang::Target, TargetID, and Triple.

◆ str()

std::string OffloadTargetInfo::str ( ) const

Definition at line 118 of file OffloadBundler.cpp.

References OffloadKind, TargetID, and Triple.

Referenced by isCodeObjectCompatible().

Member Data Documentation

◆ BundlerConfig

const OffloadBundlerConfig& clang::OffloadTargetInfo::BundlerConfig

Definition at line 75 of file OffloadBundler.h.

Referenced by isOffloadKindCompatible().

◆ OffloadKind

llvm::StringRef clang::OffloadTargetInfo::OffloadKind

◆ TargetID

llvm::StringRef clang::OffloadTargetInfo::TargetID

Definition at line 73 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: