clang 20.0.0git
|
Type used to communicate device actions. More...
#include "clang/Driver/Action.h"
Public Types | |
using | ToolChainList = SmallVector< const ToolChain *, 3 > |
using | BoundArchList = SmallVector< const char *, 3 > |
using | OffloadKindList = SmallVector< OffloadKind, 3 > |
Public Member Functions | |
void | add (Action &A, const ToolChain &TC, const char *BoundArch, OffloadKind OKind) |
Add an action along with the associated toolchain, bound arch, and offload kind. | |
void | add (Action &A, const ToolChain &TC, const char *BoundArch, unsigned OffloadKindMask) |
Add an action along with the associated toolchain, bound arch, and offload kinds. | |
const ActionList & | getActions () const |
Get each of the individual arrays. | |
const ToolChainList & | getToolChains () const |
const BoundArchList & | getBoundArchs () const |
const OffloadKindList & | getOffloadKinds () const |
Type used to communicate device actions.
It associates bound architecture, toolchain, and offload kind to each action.
using clang::driver::OffloadAction::DeviceDependences::BoundArchList = SmallVector<const char *, 3> |
using clang::driver::OffloadAction::DeviceDependences::ToolChainList = SmallVector<const ToolChain *, 3> |
void OffloadAction::DeviceDependences::add | ( | Action & | A, |
const ToolChain & | TC, | ||
const char * | BoundArch, | ||
OffloadKind | OKind | ||
) |
Add an action along with the associated toolchain, bound arch, and offload kind.
Definition at line 306 of file Action.cpp.
Referenced by clang::driver::Driver::BuildOffloadingActions().
void OffloadAction::DeviceDependences::add | ( | Action & | A, |
const ToolChain & | TC, | ||
const char * | BoundArch, | ||
unsigned | OffloadKindMask | ||
) |
Add an action along with the associated toolchain, bound arch, and offload kinds.
Definition at line 315 of file Action.cpp.
References clang::driver::Action::OFK_Cuda, clang::driver::Action::OFK_HIP, and clang::driver::Action::OFK_OpenMP.
|
inline |
Get each of the individual arrays.
Definition at line 310 of file Action.h.
Referenced by clang::driver::OffloadAction::OffloadAction().
|
inline |
Definition at line 312 of file Action.h.
Referenced by clang::driver::OffloadAction::OffloadAction().
|
inline |
Definition at line 313 of file Action.h.
Referenced by clang::driver::OffloadAction::HostDependence::HostDependence(), and clang::driver::OffloadAction::OffloadAction().
|
inline |
Definition at line 311 of file Action.h.
Referenced by clang::driver::OffloadAction::OffloadAction().