clang 20.0.0git
|
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 OffloadBundlerConfig & | BundlerConfig |
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.
OffloadTargetInfo::OffloadTargetInfo | ( | const llvm::StringRef | Target, |
const OffloadBundlerConfig & | BC | ||
) |
Definition at line 73 of file OffloadBundler.cpp.
References OffloadKind, clang::StringToOffloadArch(), TargetID, Triple, and clang::UNKNOWN.
bool OffloadTargetInfo::hasHostKind | ( | ) | const |
Definition at line 105 of file OffloadBundler.cpp.
References OffloadKind.
bool OffloadTargetInfo::isOffloadKindCompatible | ( | const llvm::StringRef | TargetOffloadKind | ) | const |
Definition at line 114 of file OffloadBundler.cpp.
References BundlerConfig, clang::OffloadBundlerConfig::HipOpenmpCompatible, and OffloadKind.
Referenced by isCodeObjectCompatible().
bool OffloadTargetInfo::isOffloadKindValid | ( | ) | const |
Definition at line 109 of file OffloadBundler.cpp.
References OffloadKind.
bool OffloadTargetInfo::isTripleValid | ( | ) | const |
Definition at line 132 of file OffloadBundler.cpp.
References Triple.
bool OffloadTargetInfo::operator== | ( | const OffloadTargetInfo & | Target | ) | const |
Definition at line 136 of file OffloadBundler.cpp.
References OffloadKind, TargetID, and Triple.
std::string OffloadTargetInfo::str | ( | ) | const |
Definition at line 141 of file OffloadBundler.cpp.
References OffloadKind, TargetID, and Triple.
Referenced by isCodeObjectCompatible().
const OffloadBundlerConfig& clang::OffloadTargetInfo::BundlerConfig |
Definition at line 83 of file OffloadBundler.h.
Referenced by isOffloadKindCompatible().
llvm::StringRef clang::OffloadTargetInfo::OffloadKind |
Definition at line 79 of file OffloadBundler.h.
Referenced by hasHostKind(), isOffloadKindCompatible(), isOffloadKindValid(), OffloadTargetInfo(), operator==(), and str().
llvm::StringRef clang::OffloadTargetInfo::TargetID |
Definition at line 81 of file OffloadBundler.h.
Referenced by isCodeObjectCompatible(), OffloadTargetInfo(), operator==(), and str().
llvm::Triple clang::OffloadTargetInfo::Triple |
Definition at line 80 of file OffloadBundler.h.
Referenced by isCodeObjectCompatible(), isTripleValid(), OffloadTargetInfo(), operator==(), and str().