Compilation - A set of tasks to perform for a single driver invocation. More...
#include "clang/Driver/Compilation.h"
TC
(or the default tool chain, if TC is not specified).
Compilation - A set of tasks to perform for a single driver invocation.
Definition at line 45 of file Compilation.h.
◆ const_offload_toolchains_iteratorIterator that visits device toolchains of a given kind.
Definition at line 152 of file Compilation.h.
◆ const_offload_toolchains_range ◆ Compilation() Compilation::Compilation ( const Driver & D, const ToolChain & DefaultToolChain, llvm::opt::InputArgList * Args, llvm::opt::DerivedArgList * TranslatedArgs, bool ContainsError ) ◆ ~Compilation() Compilation::~Compilation ( ) ◆ addCommand() void clang::driver::Compilation::addCommand ( std::unique_ptr< Command > C ) inline ◆ addFailureResultFile() const char * clang::driver::Compilation::addFailureResultFile ( const char * Name, const JobAction * JA ) inlineaddFailureResultFile - Add a file to remove if we crash, and returns its argument.
Definition at line 270 of file Compilation.h.
◆ addOffloadDeviceToolChain() ◆ addResultFile() const char * clang::driver::Compilation::addResultFile ( const char * Name, const JobAction * JA ) inlineaddResultFile - Add a file to remove on failure, and returns its argument.
Definition at line 263 of file Compilation.h.
◆ addTempFile() const char * clang::driver::Compilation::addTempFile ( const char * Name ) inlineaddTempFile - Add a file to remove on exit, and returns its argument.
Definition at line 256 of file Compilation.h.
◆ addTimeTraceFile() void clang::driver::Compilation::addTimeTraceFile ( const char * Name, const JobAction * JA ) inlineDefinition at line 278 of file Compilation.h.
◆ CleanupFile() bool Compilation::CleanupFile ( const char * File, bool IssueErrors =false
) const ◆ CleanupFileList() bool Compilation::CleanupFileList ( const llvm::opt::ArgStringList & Files, bool IssueErrors = false
) const ◆ CleanupFileMap()
CleanupFileMap - Remove the files in the given map.
Definition at line 146 of file Compilation.cpp.
References CleanupFile(), clang::File, and clang::Success.
◆ containsError() bool clang::driver::Compilation::containsError ( ) const inlineReturn whether an error during the parsing of the input args.
Definition at line 336 of file Compilation.h.
◆ ExecuteCommand() ◆ ExecuteJobs() ◆ getActions() [1/2] ActionList & clang::driver::Compilation::getActions ( ) inline ◆ getActions() [2/2] ◆ getActiveOffloadKinds() unsigned clang::driver::Compilation::getActiveOffloadKinds ( ) const inlineDefinition at line 149 of file Compilation.h.
◆ getArgs() [1/2] llvm::opt::DerivedArgList & clang::driver::Compilation::getArgs ( ) inlineDefinition at line 203 of file Compilation.h.
◆ getArgs() [2/2] const llvm::opt::DerivedArgList & clang::driver::Compilation::getArgs ( ) const inline ◆ getArgsForToolChain() const DerivedArgList & Compilation::getArgsForToolChain ( const ToolChain * TC, StringRef BoundArch, Action::OffloadKind DeviceOffloadKind ) ◆ getDefaultToolChain() const ToolChain & clang::driver::Compilation::getDefaultToolChain ( ) const inlineDefinition at line 143 of file Compilation.h.
◆ getDriver() const Driver & clang::driver::Compilation::getDriver ( ) const inline ◆ getFailureResultFiles() ◆ getInputArgs() const llvm::opt::InputArgList & clang::driver::Compilation::getInputArgs ( ) const inlineDefinition at line 199 of file Compilation.h.
◆ getJobs() [1/2] JobList & clang::driver::Compilation::getJobs ( ) inline ◆ getJobs() [2/2] ◆ getOffloadToolChains() [1/2] ◆ getOffloadToolChains() [2/2] ◆ getResultFiles() ◆ getSingleOffloadToolChain() const ToolChain * clang::driver::Compilation::getSingleOffloadToolChain ( ) const inlineReturn an offload toolchain of the provided kind.
Only one is expected to exist.
Definition at line 178 of file Compilation.h.
◆ getSysRoot() StringRef Compilation::getSysRoot ( ) const ◆ getTempFiles() [1/2] llvm::opt::ArgStringList & clang::driver::Compilation::getTempFiles ( ) inlineDefinition at line 222 of file Compilation.h.
◆ getTempFiles() [2/2] const llvm::opt::ArgStringList & clang::driver::Compilation::getTempFiles ( ) const inlineDefinition at line 223 of file Compilation.h.
◆ getTimeTraceFile() const char * clang::driver::Compilation::getTimeTraceFile ( const JobAction * JA ) const inlineDefinition at line 275 of file Compilation.h.
◆ hasOffloadToolChain() bool clang::driver::Compilation::hasOffloadToolChain ( ) const inlineReturn true if an offloading tool chain of a given kind exists.
Definition at line 170 of file Compilation.h.
References Kind.
◆ initCompilationForDiagnostics() void Compilation::initCompilationForDiagnostics ( ) ◆ isForDiagnostics() bool clang::driver::Compilation::isForDiagnostics ( ) const inlineReturn true if we're compiling for diagnostics.
Definition at line 333 of file Compilation.h.
◆ isOffloadingHostKind() ◆ MakeAction()template<typename
T, typename... Args>
T * clang::driver::Compilation::MakeAction ( Args &&... Arg ) inline ◆ Redirect() void Compilation::Redirect ( ArrayRef< std::optional< StringRef > > Redirects )Redirect - Redirect output of this compilation.
Can only be done once.
Definition at line 307 of file Compilation.cpp.
◆ setContainsError() void clang::driver::Compilation::setContainsError ( ) inlineForce driver to fail before toolchain is created.
This is necessary when error happens in action builder.
Definition at line 340 of file Compilation.h.
◆ setPostCallback() void clang::driver::Compilation::setPostCallback ( const std::function< void(const Command &, int)> & CB ) inlineInstalls a handler that is executed when a compilation job is finished.
The arguments of the callback specify the compilation job as an instance of class Command and the exit status of the child process executed that job.
Definition at line 235 of file Compilation.h.
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4