| /llvm-project-15.0.7/flang/tools/f18-parse-demo/ |
| H A D | f18-parse-demo.cpp | 130 Exec(argv, driver.verbose); in RunOtherCompiler() 134 if (driver.compileOnly && !driver.outputPath.empty()) { in RelocatableName() 135 return driver.outputPath; in RelocatableName() 155 if (!driver.forcedForm) { in CompileFortran() 182 if (driver.noReformat) { in CompileFortran() 191 if (driver.timeParse) { in CompileFortran() 220 if (driver.dumpUnparse) { in CompileFortran() 226 if (driver.syntaxOnly) { in CompileFortran() 249 if (!driver.compileOnly && driver.outputPath.empty()) { in CompileFortran() 258 if (!driver.compileOnly && driver.outputPath.empty()) { in CompileOtherLanguage() [all …]
|
| /llvm-project-15.0.7/lldb/test/API/test_runner/test/ |
| H A D | test_process_control.py | 103 driver = TestInferiorDriver() 111 driver = TestInferiorDriver() 122 driver = TestInferiorDriver() 124 driver.run_command_with_timeout( 139 driver = TestInferiorDriver() 142 driver.run_command_with_timeout( 180 driver.run_command_with_timeout( 203 driver.returncode, 204 driver.output)) 213 driver = TestInferiorDriver() [all …]
|
| /llvm-project-15.0.7/flang/lib/Frontend/ |
| H A D | CompilerInvocation.cpp | 174 case clang::driver::options::OPT_test_io: in parseFrontendArgs() 177 case clang::driver::options::OPT_E: in parseFrontendArgs() 180 case clang::driver::options::OPT_fsyntax_only: in parseFrontendArgs() 183 case clang::driver::options::OPT_emit_mlir: in parseFrontendArgs() 186 case clang::driver::options::OPT_emit_llvm: in parseFrontendArgs() 189 case clang::driver::options::OPT_emit_llvm_bc: in parseFrontendArgs() 192 case clang::driver::options::OPT_emit_obj: in parseFrontendArgs() 195 case clang::driver::options::OPT_S: in parseFrontendArgs() 240 case clang::driver::options::OPT_init_only: in parseFrontendArgs() 446 clang::driver::options::OPT_D, clang::driver::options::OPT_U)) { in parsePreprocessorArgs() [all …]
|
| /llvm-project-15.0.7/lldb/utils/lui/ |
| H A D | lui.py | 38 def handle_args(driver, argv): argument 58 driver.attachProcess(ui, pid) 66 driver.loadCore(options.core) 70 driver.createTarget(args[1]) 74 driver.createTarget(args[1], args[2:]) 84 def __init__(self, screen, event_queue, driver): argument 87 self.driver = driver 117 self.driver.terminate() 138 view = LLDBUI(screen, event_queue, driver) 140 driver.start() [all …]
|
| H A D | commandwin.py | 56 def __init__(self, driver, x, y, w, h): argument 60 driver.setSize(w, h) 64 self.driver = driver 97 self.el.prompt = self.driver.getPrompt() 106 self.driver.terminate() 110 ret = self.driver.handleCommand(cmd) 125 self.driver.terminate() 130 return self.driver.getCommandInterpreter()
|
| H A D | breakwin.py | 18 def __init__(self, driver, x, y, w, h): argument 20 self.driver = driver 35 target = self.driver.getTarget() 46 target = self.driver.getTarget() 55 target = self.driver.getTarget() 62 target = self.driver.getTarget()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | DriverInternals.rst | 11 This document describes the Clang driver. The purpose of this document 12 is to describe both the motivation and design goals for the driver, as 18 The Clang driver is intended to be a production quality compiler driver 20 interface which is compatible with the gcc driver. 33 call GCC. Although this makes the driver much more complicated than 87 driver-driver, which is used to implement support for building universal 130 classes when the driver is loaded. Most of the driver code only needs 315 such as whether the platform uses a driver driver. 364 overview of how things from the gcc driver map to the clang driver. 368 The driver driver is fully integrated into the clang driver. The [all …]
|
| H A D | FAQ.rst | 35 ``clang -cc1`` is the frontend, ``clang`` is the :doc:`driver 36 <DriverInternals>`. The driver invokes the frontend with options appropriate 43 Some clang command line options are driver-only options, some are frontend-only 50 driver and add the option you need. Alternatively, you can run 51 ``clang -Xclang <option> ...`` to force the driver pass ``<option>`` to
|
| /llvm-project-15.0.7/llvm/tools/llvm-driver/ |
| H A D | CMakeLists.txt | 18 target_include_directories(llvm-driver PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) 19 target_sources(llvm-driver PRIVATE llvm-driver.cpp) 21 set_target_properties(llvm-driver PROPERTIES OUTPUT_NAME llvm) 23 target_link_libraries(llvm-driver PUBLIC ${LLVM_DRIVER_OBJLIBS}) 27 target_link_libraries(llvm-driver PRIVATE "-framework CoreFoundation") 34 add_llvm_tool_symlink(${name} llvm-driver ALWAYS_GENERATE) 36 llvm_install_symlink(LLVM ${name} llvm-driver ALWAYS_GENERATE)
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | CreateInvocationFromCommandLine.cpp | 46 driver::Driver TheDriver(Args[0], llvm::sys::getDefaultTargetTriple(), *Diags, in createInvocation() 53 std::unique_ptr<driver::Compilation> C(TheDriver.BuildCompilation(Args)); in createInvocation() 57 if (C->getArgs().hasArg(driver::options::OPT_fdriver_only)) in createInvocation() 61 if (C->getArgs().hasArg(driver::options::OPT__HASH_HASH_HASH)) { in createInvocation() 71 const driver::JobList &Jobs = C->getJobs(); in createInvocation() 76 if (isa<driver::BindArchAction>(A)) in createInvocation() 78 if (isa<driver::OffloadAction>(A)) { in createInvocation() 93 auto Cmd = llvm::find_if(Jobs, [](const driver::Command &Cmd) { in createInvocation()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/Arch/ |
| H A D | M68k.cpp | 21 using namespace clang::driver; 22 using namespace clang::driver::tools; 28 if (Arg *A = Args.getLastArg(clang::driver::options::OPT_mcpu_EQ)) { in getM68kTargetCPU() 52 if (Args.hasArg(clang::driver::options::OPT_m68000)) in getM68kTargetCPU() 54 if (Args.hasArg(clang::driver::options::OPT_m68010)) in getM68kTargetCPU() 56 if (Args.hasArg(clang::driver::options::OPT_m68020)) in getM68kTargetCPU() 58 if (Args.hasArg(clang::driver::options::OPT_m68030)) in getM68kTargetCPU() 60 if (Args.hasArg(clang::driver::options::OPT_m68040)) in getM68kTargetCPU() 62 if (Args.hasArg(clang::driver::options::OPT_m68060)) in getM68kTargetCPU()
|
| H A D | X86.cpp | 20 using namespace clang::driver; 21 using namespace clang::driver::tools; 27 if (const Arg *A = Args.getLastArg(clang::driver::options::OPT_march_EQ)) { in getX86TargetCPU() 127 if (const Arg *A = Args.getLastArg(clang::driver::options::OPT_march_EQ)) { in getX86TargetFeatures() 164 auto SpectreOpt = clang::driver::options::ID::OPT_INVALID; in getX86TargetFeatures() 190 auto LVIOpt = clang::driver::options::ID::OPT_INVALID; in getX86TargetFeatures() 208 if (SpectreOpt != clang::driver::options::ID::OPT_INVALID) in getX86TargetFeatures() 220 if (SpectreOpt != clang::driver::options::ID::OPT_INVALID && in getX86TargetFeatures() 221 LVIOpt != clang::driver::options::ID::OPT_INVALID) { in getX86TargetFeatures()
|
| H A D | SystemZ.cpp | 16 using namespace clang::driver; 17 using namespace clang::driver::tools; 29 if (Arg *A = Args.getLastArg(clang::driver::options::OPT_msoft_float, in getSystemZFloatABI() 31 if (A->getOption().matches(clang::driver::options::OPT_msoft_float)) in getSystemZFloatABI() 38 if (const Arg *A = Args.getLastArg(clang::driver::options::OPT_march_EQ)) { in getSystemZTargetCPU()
|
| H A D | Sparc.cpp | 17 using namespace clang::driver; 18 using namespace clang::driver::tools; 85 if (Arg *A = Args.getLastArg(clang::driver::options::OPT_msoft_float, in getSparcFloatABI() 88 if (A->getOption().matches(clang::driver::options::OPT_msoft_float)) in getSparcFloatABI() 119 if (const Arg *A = Args.getLastArg(clang::driver::options::OPT_march_EQ)) { in getSparcTargetCPU() 125 if (const Arg *A = Args.getLastArg(clang::driver::options::OPT_mcpu_EQ)) { in getSparcTargetCPU()
|
| /llvm-project-15.0.7/llvm/utils/gn/build/ |
| H A D | driver_executable.gni | 8 write_cmake_config("${tool_name}-driver") { 9 input = "//llvm/cmake/modules/llvm-driver-template.cpp.in" 10 output = "$target_gen_dir/${tool_name}-driver.cpp" 16 deps += [ ":${tool_name}-driver" ] 17 sources += [ "$target_gen_dir/${tool_name}-driver.cpp" ]
|
| /llvm-project-15.0.7/clang/lib/Tooling/ |
| H A D | Tooling.cpp | 76 static driver::Driver * 79 driver::Driver *CompilerDriver = in newDriver() 88 const driver::JobList &Jobs = Compilation->getJobs(); in ignoreExtraCC1Commands() 103 if (isa<driver::BindArchAction>(A)) in ignoreExtraCC1Commands() 105 if (isa<driver::OffloadAction>(A)) { in ignoreExtraCC1Commands() 133 driver::Compilation *Compilation) { in getCC1Arguments() 136 auto IsCC1Command = [](const driver::Command &Cmd) { in getCC1Arguments() 140 auto IsSrcFile = [](const driver::InputInfo &II) { in getCC1Arguments() 145 for (const driver::Command &Job : Jobs) in getCC1Arguments() 269 const auto &Table = driver::getDriverOptTable(); in addTargetAndModeForProgramName() [all …]
|
| H A D | CompilationDatabase.cpp | 150 void run(const driver::Action *A) { in run() 155 void runImpl(const driver::Action *A, bool Collect) { in runImpl() 158 case driver::Action::CompileJobClass: in runImpl() 162 case driver::Action::InputClass: in runImpl() 164 const auto *IA = cast<driver::InputAction>(A); in runImpl() 174 for (const driver::Action *AI : A->inputs()) in runImpl() 255 std::unique_ptr<driver::Driver> NewDriver(new driver::Driver( in stripPositionalArgs() 281 const std::unique_ptr<driver::Compilation> Compilation( in stripPositionalArgs() 286 const driver::JobList &Jobs = Compilation->getJobs(); in stripPositionalArgs() 295 Cmd.getSource().getKind() == driver::Action::BackendJobClass || in stripPositionalArgs() [all …]
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | SPIRV.cpp | 15 using namespace clang::driver; 16 using namespace clang::driver::toolchains; 17 using namespace clang::driver::tools; 52 clang::driver::Tool *SPIRVToolChain::getTranslator() const { in getTranslator() 58 clang::driver::Tool *SPIRVToolChain::SelectTool(const JobAction &JA) const { in SelectTool() 63 clang::driver::Tool *SPIRVToolChain::getTool(Action::ActionClass AC) const { in getTool() 73 clang::driver::Tool *SPIRVToolChain::buildLinker() const { in buildLinker()
|
| H A D | SPIRV.h | 16 namespace driver { 79 clang::driver::Tool *SelectTool(const JobAction &JA) const override; 82 clang::driver::Tool *getTool(Action::ActionClass AC) const override; 86 clang::driver::Tool *getTranslator() const;
|
| /llvm-project-15.0.7/flang/tools/flang-driver/ |
| H A D | CMakeLists.txt | 1 # Infrastructure to build flang driver entry point. Flang driver depends on 14 driver.cpp 18 # These libraries are used in the linker invocation generated by the driver 19 # (i.e. when constructing the linker job). Without them the driver would be
|
| H A D | driver.cpp | 54 llvm::opt::InputArgList args = clang::driver::getDriverOptTable().ParseArgs( in createAndPopulateDiagOpts() 56 /*FlagsToInclude=*/clang::driver::options::FlangOption); in createAndPopulateDiagOpts() 88 clang::driver::ParsedClangName targetandMode("flang", "--driver-mode=flang"); in main() 126 clang::driver::Driver theDriver(driverPath, in main() 129 std::unique_ptr<clang::driver::Compilation> c( in main() 131 llvm::SmallVector<std::pair<int, const clang::driver::Command *>, 4> in main() 141 const clang::driver::Command *failingCommand = p.second; in main()
|
| /llvm-project-15.0.7/lld/test/COFF/ |
| H A D | driver-opt.s | 5 # RUN: cd %t.dir; lld-link /driver foo.obj 13 # RUN: cd %t.dir; lld-link /driver:uponly foo.obj 20 # RUN: cd %t.dir; lld-link /driver:wdm foo.obj 27 # RUN: cd %t.dir; lld-link /driver:wdm,uponly foo.obj 31 # RUN: cd %t.dir; lld-link /driver:uponly,wdm foo.obj 39 # RUN: cd %t.dir; lld-link /driver foo.obj 43 # RUN: cd %t.dir; lld-link /driver foo.obj /fixed:no 49 # RUN: cd %t.dir; lld-link /driver foo.obj /fixed
|
| H A D | align.s | 10 # WARN1: /align specified without /driver; image may not run 12 # RUN: lld-link /out:%t.exe /entry:main /align:32 %t.obj /driver 2>&1 \ 15 # RUN: lld-link /out:%t.exe /entry:main %t.obj /driver 2>&1 \ 18 # WARN2-NOT: /align specified without /driver; image may not run
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | CompileCommands.cpp | 206 auto &OptTable = clang::driver::getDriverOptTable(); in adjust() 212 bool IsCLMode = driver::IsClangCL(driver::getDriverMode( in adjust() 223 IsCLMode ? (driver::options::CLOption | driver::options::CoreOption | in adjust() 224 driver::options::CLDXCOption) in adjust() 229 : (driver::options::CLOption | driver::options::CLDXCOption))); in adjust() 424 if (Opt.hasFlag(driver::options::CC1Option)) in getModes() 426 if (!Opt.hasFlag(driver::options::NoDriverOption)) { in getModes() 427 if (Opt.hasFlag(driver::options::CLOption)) { in getModes() 433 if (Opt.hasFlag(driver::options::CoreOption)) { in getModes() 450 auto &DriverTable = driver::getDriverOptTable(); in rulesFor() [all …]
|
| /llvm-project-15.0.7/clang/lib/Interpreter/ |
| H A D | Interpreter.cpp | 45 driver::Compilation *Compilation) { in GetCC1Arguments() 48 const driver::JobList &Jobs = Compilation->getJobs(); in GetCC1Arguments() 49 if (!Jobs.size() || !isa<driver::Command>(*Jobs.begin())) in GetCC1Arguments() 55 const driver::Command *Cmd = cast<driver::Command>(&(*Jobs.begin())); in GetCC1Arguments() 161 driver::Driver Driver(/*MainBinaryName=*/ClangArgv[0], in create() 165 std::unique_ptr<driver::Compilation> Compilation(Driver.BuildCompilation(RF)); in create() 167 if (Compilation->getArgs().hasArg(driver::options::OPT_v)) in create()
|