clang 22.0.0git
clang::driver::tools::OffloadBundler Class Referencefinal

Offload bundler tool. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Driver/ToolChains/Clang.h"

Inheritance diagram for clang::driver::tools::OffloadBundler:
[legend]

Public Member Functions

 OffloadBundler (const ToolChain &TC)
bool hasIntegratedCPP () const override
void ConstructJob (Compilation &C, const JobAction &JA, const InputInfo &Output, const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, const char *LinkingOutput) const override
 ConstructJob - Construct jobs to perform the action JA, writing to Output and with Inputs, and add the jobs to C.
void ConstructJobMultipleOutputs (Compilation &C, const JobAction &JA, const InputInfoList &Outputs, const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, const char *LinkingOutput) const override
 Construct jobs to perform the action JA, writing to the Outputs and with Inputs, and add the jobs to C.
Public Member Functions inherited from clang::driver::Tool
 Tool (const char *Name, const char *ShortName, const ToolChain &TC)
virtual ~Tool ()
const char * getName () const
const char * getShortName () const
const ToolChaingetToolChain () const
virtual bool hasIntegratedAssembler () const
virtual bool hasIntegratedBackend () const
virtual bool canEmitIR () const
virtual bool isLinkJob () const
virtual bool isDsymutilJob () const
virtual bool hasGoodDiagnostics () const
 Does this tool have "good" standardized diagnostics, or should the driver add an additional "command failed" diagnostic on failures.

Detailed Description

Offload bundler tool.

Definition at line 145 of file Clang.h.

Constructor & Destructor Documentation

◆ OffloadBundler()

clang::driver::tools::OffloadBundler::OffloadBundler ( const ToolChain & TC)
inline

Definition at line 147 of file Clang.h.

References clang::driver::Tool::Tool().

Member Function Documentation

◆ ConstructJob()

void OffloadBundler::ConstructJob ( Compilation & C,
const JobAction & JA,
const InputInfo & Output,
const InputInfoList & Inputs,
const llvm::opt::ArgList & TCArgs,
const char * LinkingOutput ) const
overridevirtual

◆ ConstructJobMultipleOutputs()

void OffloadBundler::ConstructJobMultipleOutputs ( Compilation & C,
const JobAction & JA,
const InputInfoList & Outputs,
const InputInfoList & Inputs,
const llvm::opt::ArgList & TCArgs,
const char * LinkingOutput ) const
overridevirtual

Construct jobs to perform the action JA, writing to the Outputs and with Inputs, and add the jobs to C.

The default implementation assumes a single output and is expected to be overloaded for the tools that support multiple inputs.

Parameters
TCArgsThe argument list for this toolchain, with any tool chain specific translations applied.
LinkingOutputIf this output will eventually feed the linker, then this is the final output name of the linked image.

Reimplemented from clang::driver::Tool.

Definition at line 8953 of file Clang.cpp.

References Arch, clang::C, clang::cast(), clang::driver::InputInfo::getFilename(), clang::driver::Action::GetOffloadKindName(), clang::driver::Tool::getShortName(), clang::driver::Tool::getToolChain(), clang::driver::InputInfo::getType(), clang::driver::types::getTypeTempSuffix(), clang::driver::ResponseFileSupport::None(), clang::driver::Action::OFK_Cuda, clang::driver::Action::OFK_HIP, and clang::driver::Action::OFK_OpenMP.

◆ hasIntegratedCPP()

bool clang::driver::tools::OffloadBundler::hasIntegratedCPP ( ) const
inlineoverridevirtual

Implements clang::driver::Tool.

Definition at line 150 of file Clang.h.


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