Lines Matching defs:Driver
31 #include "clang/Driver/Distro.h"
32 #include "clang/Driver/DriverDiagnostic.h"
33 #include "clang/Driver/Options.h"
34 #include "clang/Driver/SanitizerArgs.h"
35 #include "clang/Driver/XRayArgs.h"
49 using namespace clang::driver;
50 using namespace clang::driver::tools;
54 static void CheckPreprocessingOptions(const Driver &D, const ArgList &Args) {
56 Args.getLastArg(clang::driver::options::OPT_C, options::OPT_CC)) {
66 static void CheckCodeGenerationOptions(const Driver &D, const ArgList &Args) {
157 static bool getRefinementStep(StringRef In, const Driver &D,
185 static void ParseMRecip(const Driver &D, const ArgList &Args,
286 static void ParseMPreferVectorWidth(const Driver &D, const ArgList &Args,
310 static void getTargetFeatures(const Driver &D, const llvm::Triple &Triple,
403 /// Adds exception related arguments to the driver command arguments. There's a
649 static void addDebugPrefixMapArg(const Driver &D, const ArgList &Args, ArgStringList &CmdArgs) {
663 static void addMacroPrefixMapArg(const Driver &D, const ArgList &Args,
678 static void addCoveragePrefixMapArg(const Driver &D, const ArgList &Args,
737 // Map the driver type to the frontend type. This is mostly an identity
757 const Driver &D, const InputInfo &Output,
1072 const Driver &D, const ToolChain &TC) {
1083 const Driver &D,
1123 static void handleAMDGPUCodeObjectVersionOptions(const Driver &D,
1141 const Driver &D, const ArgList &Args,
1348 // Translated to -internal-isystem by the driver, no need to pass to cc1.
1386 // frontend into the driver. It will allow deleting 4 otherwise unused flags.
1474 static bool checkRemarksOptions(const Driver &D, const ArgList &Args,
1784 const Driver &D = getToolChain().getDriver();
1819 const Driver &D = getToolChain().getDriver();
1836 const Driver &D = getToolChain().getDriver();
2039 const Driver &D = TC.getDriver();
2079 if (const Arg *A = Args.getLastArg(clang::driver::options::OPT_mtune_EQ)) {
2120 const Driver &D = getToolChain().getDriver();
2138 const Driver &D = getToolChain().getDriver();
2189 if (!Args.hasArg(clang::driver::options::OPT_march_EQ) &&
2194 if (const Arg *A = Args.getLastArg(clang::driver::options::OPT_mtune_EQ)) {
2279 const Driver &D = getToolChain().getDriver();
2345 const auto &Driver = C.getDriver();
2346 Driver.getVFS().makeAbsolute(Path);
2349 Driver.Diag(diag::err_drv_compilationdatabase) << Dir << Err.message();
2361 Driver.Diag(diag::err_drv_compilationdatabase) << Path << Err.message();
2383 const Driver &D) {
2602 static void RenderFloatingPointOptions(const ToolChain &TC, const Driver &D,
2676 // ffp-model= is a Driver option, it is entirely rewritten into more
3074 static void RenderSSPOptions(const Driver &D, const ToolChain &TC,
3188 static void RenderTrivialAutoVarInitOptions(const Driver &D,
3282 static void RenderARCMigrateToolOptions(const Driver &D, const ArgList &Args,
3391 bool Driver::getDefaultModuleCachePath(SmallVectorImpl<char> &Result) {
3400 static void RenderModulesOptions(Compilation &C, const Driver &D,
3463 HasPath = Driver::getDefaultModuleCachePath(Path);
3609 static void RenderObjCOptions(const ToolChain &TC, const Driver &D,
3702 static void RenderDiagnosticsOptions(const Driver &D, const ArgList &Args,
3773 // Color diagnostics are parsed by the driver directly from argv and later
3819 static DwarfFissionKind getDebugFissionKind(const Driver &D,
3840 static void renderDwarfFormat(const Driver &D, const llvm::Triple &T,
3863 static void renderDebugOptions(const ToolChain &TC, const Driver &D,
3882 // about what to pass from the driver to the frontend, but by the time they
3889 // decision should be made in the driver as well though.
4187 const Driver &D = TC.getDriver();
4653 [](const clang::driver::InputInfo &II) {
5420 // splitting it between the driver and clang -cc1.
5675 case Driver::OMPRT_OMP:
5676 case Driver::OMPRT_IOMP5:
6772 if (Output.getType() == clang::driver::types::TY_IFS_CPP ||
6773 Output.getType() == clang::driver::types::TY_IFS) {
7005 static EHFlags parseClangCLEHFlags(const Driver &D, const ArgList &Args) {
7136 const Driver &D = getToolChain().getDriver();
7521 // FIXME: Stop lying and consume only the appropriate driver flags