| /llvm-project-15.0.7/flang/lib/FrontendTool/ |
| H A D | ExecuteCompilerInvocation.cpp | 35 switch (ci.getFrontendOpts().programAction) { in createFrontendAction() 85 if (plugin.getName() == ci.getFrontendOpts().actionName) { in createFrontendAction() 102 if (flang->getFrontendOpts().showHelp) { in executeCompilerInvocation() 112 if (flang->getFrontendOpts().showVersion) { in executeCompilerInvocation() 118 for (const std::string &path : flang->getFrontendOpts().plugins) { in executeCompilerInvocation() 129 if (!flang->getFrontendOpts().llvmArgs.empty()) { in executeCompilerInvocation() 130 unsigned numArgs = flang->getFrontendOpts().llvmArgs.size(); in executeCompilerInvocation() 135 args[i + 1] = flang->getFrontendOpts().llvmArgs[i].c_str(); in executeCompilerInvocation() 142 if (!flang->getFrontendOpts().mlirArgs.empty()) { in executeCompilerInvocation() 145 unsigned numArgs = flang->getFrontendOpts().mlirArgs.size(); in executeCompilerInvocation() [all …]
|
| /llvm-project-15.0.7/clang/lib/FrontendTool/ |
| H A D | ExecuteCompilerInvocation.cpp | 45 switch (CI.getFrontendOpts().ProgramAction) { in CreateFrontendBaseAction() 84 if (Plugin.getName() == CI.getFrontendOpts().ActionName) { in CreateFrontendBaseAction() 97 << CI.getFrontendOpts().ActionName; in CreateFrontendBaseAction() 148 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in CreateFrontendAction() 156 CI.getFrontendOpts().ProgramAction != frontend::GeneratePCH) { in CreateFrontendAction() 194 if (Clang->getFrontendOpts().ShowHelp) { in ExecuteCompilerInvocation() 206 if (Clang->getFrontendOpts().ShowVersion) { in ExecuteCompilerInvocation() 217 if (!Clang->getFrontendOpts().LLVMArgs.empty()) { in ExecuteCompilerInvocation() 218 unsigned NumArgs = Clang->getFrontendOpts().LLVMArgs.size(); in ExecuteCompilerInvocation() 222 Args[i + 1] = Clang->getFrontendOpts().LLVMArgs[i].c_str(); in ExecuteCompilerInvocation() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Frontend/ |
| H A D | FrontendActionTest.cpp | 87 invocation->getFrontendOpts().Inputs.push_back( in TEST() 89 invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST() 107 invocation->getFrontendOpts().Inputs.push_back( in TEST() 109 invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST() 134 invocation->getFrontendOpts().Inputs.push_back( in TEST() 136 invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST() 180 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 241 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 273 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 275 Invocation->getFrontendOpts().OutputFile = PCHFilename.str().str(); in TEST() [all …]
|
| H A D | CodeGenActionTest.cpp | 49 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 51 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST() 67 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 69 Invocation->getFrontendOpts().ProgramAction = frontend::EmitLLVMOnly; in TEST() 93 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 95 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST()
|
| H A D | OutputStreamTest.cpp | 28 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 30 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST() 52 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 54 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST() 81 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 83 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
|
| H A D | CompilerInvocationTest.cpp | 130 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary); in TEST_F() 141 ASSERT_FALSE(Invocation.getFrontendOpts().UseTemporary); in TEST_F() 153 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary); in TEST_F() 448 ASSERT_TRUE(Invocation.getFrontendOpts().ModuleMapFiles.empty()); in TEST_F() 459 ASSERT_EQ(Invocation.getFrontendOpts().ModuleMapFiles, in TEST_F() 472 ASSERT_TRUE(Invocation.getFrontendOpts().ModuleMapFiles == in TEST_F() 874 ASSERT_THAT(Invocation.getFrontendOpts().ModuleFileExtensions.size(), 2); in TEST_F() 879 Invocation.getFrontendOpts().ModuleFileExtensions.push_back( in TEST_F()
|
| /llvm-project-15.0.7/clang/tools/driver/ |
| H A D | cc1_main.cpp | 215 if (Clang->getFrontendOpts().TimeTrace || in cc1_main() 216 !Clang->getFrontendOpts().TimeTracePath.empty()) { in cc1_main() 217 Clang->getFrontendOpts().TimeTrace = 1; in cc1_main() 219 Clang->getFrontendOpts().TimeTraceGranularity, Argv0); in cc1_main() 222 if (Clang->getFrontendOpts().PrintSupportedCPUs) in cc1_main() 259 SmallString<128> Path(Clang->getFrontendOpts().OutputFile); in cc1_main() 261 if (!Clang->getFrontendOpts().TimeTracePath.empty()) { in cc1_main() 263 SmallString<128> TracePath(Clang->getFrontendOpts().TimeTracePath); in cc1_main() 284 if (Clang->getFrontendOpts().DisableFree) { in cc1_main()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Compiler.cpp | 78 CI.getFrontendOpts().Plugins.clear(); in disableUnsupportedOptions() 79 CI.getFrontendOpts().AddPluginActions.clear(); in disableUnsupportedOptions() 80 CI.getFrontendOpts().PluginArgs.clear(); in disableUnsupportedOptions() 81 CI.getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in disableUnsupportedOptions() 82 CI.getFrontendOpts().ActionName.clear(); in disableUnsupportedOptions() 111 CI->getFrontendOpts().DisableFree = false; in buildCompilerInvocation() 136 CI->getFrontendOpts().Inputs[0].getFile(), Buffer.get()); in prepareCompilerInstance()
|
| /llvm-project-15.0.7/flang/unittests/Frontend/ |
| H A D | FrontendActionTest.cpp | 68 compInst.getFrontendOpts().inputs.push_back( in SetUp() 92 compInst.getInvocation().getFrontendOpts().programAction = InputOutputTest; in TEST_F() 121 compInst.getInvocation().getFrontendOpts().programAction = in TEST_F() 149 compInst.getInvocation().getFrontendOpts().programAction = ParseSyntaxOnly; in TEST_F() 175 compInst.getInvocation().getFrontendOpts().programAction = EmitLLVM; in TEST_F() 205 compInst.getInvocation().getFrontendOpts().programAction = EmitAssembly; in TEST_F()
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | FrontendActions.cpp | 97 const FrontendOptions &FEOpts = getCompilerInstance().getFrontendOpts(); in BeginSourceFileAction() 120 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in BeginInvocation() 251 Instance.getFrontendOpts().DisableFree = false; in visitModuleFile() 252 Instance.getFrontendOpts().Inputs.clear(); in visitModuleFile() 253 Instance.getFrontendOpts().Inputs.emplace_back( in visitModuleFile() 255 Instance.getFrontendOpts().ModuleFiles.clear(); in visitModuleFile() 256 Instance.getFrontendOpts().ModuleMapFiles.clear(); in visitModuleFile()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | FrontendActions.cpp | 104 const FrontendOptions &Opts = CI.getFrontendOpts(); in CreateASTConsumer() 133 if (!CI.getFrontendOpts().RelocatablePCH) in CreateASTConsumer() 136 const auto &FrontendOpts = CI.getFrontendOpts(); in CreateASTConsumer() 170 OutputFile = CI.getFrontendOpts().OutputFile; in CreateOutputFile() 200 CI.getFrontendOpts().ModuleFileExtensions, in CreateASTConsumer() 202 +CI.getFrontendOpts().AllowPCMWithCompilerErrors, in CreateASTConsumer() 204 +CI.getFrontendOpts().BuildingImplicitModule, in CreateASTConsumer() 206 +CI.getFrontendOpts().BuildingImplicitModule)); in CreateASTConsumer() 232 if (CI.getFrontendOpts().OutputFile.empty()) { in CreateOutputFile() 238 CI.getFrontendOpts().OutputFile = in CreateOutputFile() [all …]
|
| H A D | CompilerInstance.cpp | 114 !getFrontendOpts().AuxTriple.empty()) { in createTarget() 117 if (getFrontendOpts().AuxTargetCPU) in createTarget() 118 TO->CPU = getFrontendOpts().AuxTargetCPU.value(); in createTarget() 119 if (getFrontendOpts().AuxTargetFeatures) in createTarget() 474 getFrontendOpts()); in createPreprocessor() 622 getFrontendOpts().UseGlobalModuleIndex); in createPCHExternalASTSource() 1025 if (getFrontendOpts().ShowStats || !getFrontendOpts().StatsFile.empty()) in ExecuteAction() 1067 if (getFrontendOpts().ShowStats) { in ExecuteAction() 1074 StringRef StatsFile = getFrontendOpts().StatsFile; in ExecuteAction() 1486 .getFrontendOpts() in compileModuleAndReadAST() [all …]
|
| H A D | FrontendAction.cpp | 195 if (llvm::any_of(CI.getFrontendOpts().AddPluginActions, in CreateWrappedASTConsumer() 640 CI.getFrontendOpts().ModuleMapFiles.push_back( in BeginSourceFile() 725 for (const auto &F : CI.getFrontendOpts().ModulesEmbedFiles) { in BeginSourceFile() 731 if (CI.getFrontendOpts().ModulesEmbedAllFiles) in BeginSourceFile() 1005 for (const auto &ModuleFile : CI.getFrontendOpts().ModuleFiles) in BeginSourceFile() 1011 if (!CI.getFrontendOpts().OverrideRecordLayoutsFile.empty() && in BeginSourceFile() 1075 bool DisableFree = CI.getFrontendOpts().DisableFree; in EndSourceFile() 1086 if (CI.getFrontendOpts().ShowStats) { in EndSourceFile() 1133 !CI.getFrontendOpts().CodeCompletionAt.FileName.empty()) in ExecuteAction() 1144 ParseAST(CI.getSema(), CI.getFrontendOpts().ShowStats, in ExecuteAction() [all …]
|
| H A D | ASTUnit.cpp | 1144 std::string(Clang->getFrontendOpts().Inputs[0].getFile()); in Parse() 1154 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in Parse() 1297 PreambleInvocationIn.getFrontendOpts().Inputs[0].getFile(); in getMainBufferWithPrecompiledPreamble() 1370 PreambleInvocationIn.getFrontendOpts().SkipFunctionBodies = in getMainBufferWithPrecompiledPreamble() 1541 CI->getFrontendOpts().DisableFree = false; in LoadFromCompilerInvocationAction() 1554 std::string(Clang->getFrontendOpts().Inputs[0].getFile()); in LoadFromCompilerInvocationAction() 1564 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in LoadFromCompilerInvocationAction() 1648 Invocation->getFrontendOpts().DisableFree = false; in LoadFromCompilerInvocation() 1755 CI->getFrontendOpts().SkipFunctionBodies = in LoadFromCommandLine() 2174 std::string(Clang->getFrontendOpts().Inputs[0].getFile()); in CodeComplete() [all …]
|
| H A D | ChainedIncludesSource.cpp | 120 InputKind IK = CI.getFrontendOpts().Inputs[0].getKind(); in createChainedIncludesSource() 138 CInvok->getFrontendOpts().Inputs.clear(); in createChainedIncludesSource() 140 CInvok->getFrontendOpts().Inputs.push_back(InputFile); in createChainedIncludesSource()
|
| H A D | PrecompiledPreamble.cpp | 324 if (!CI.getFrontendOpts().RelocatablePCH) in CreateASTConsumer() 410 FrontendOptions &FrontendOpts = PreambleInvocation->getFrontendOpts(); in Build() 458 if (Clang->getFrontendOpts().Inputs.size() != 1 || in Build() 459 Clang->getFrontendOpts().Inputs[0].getKind().getFormat() != in Build() 461 Clang->getFrontendOpts().Inputs[0].getKind().getLanguage() == in Build() 503 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) in Build() 758 auto MainFilePath = CI.getFrontendOpts().Inputs[0].getFile(); in configurePreamble()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Frontend/ |
| H A D | AnalyzerHelpFlags.cpp | 34 CI.getFrontendOpts().Plugins); in printCheckerHelp() 45 CI.getFrontendOpts().Plugins); in printEnabledCheckerList() 54 CI.getFrontendOpts().Plugins); in printCheckerConfigList()
|
| /llvm-project-15.0.7/flang/include/flang/Frontend/ |
| H A D | CompilerInstance.h | 173 FrontendOptions &getFrontendOpts() { return invocation->getFrontendOpts(); } in getFrontendOpts() function 174 const FrontendOptions &getFrontendOpts() const { in getFrontendOpts() function 175 return invocation->getFrontendOpts(); in getFrontendOpts()
|
| H A D | CompilerInvocation.h | 127 FrontendOptions &getFrontendOpts() { return frontendOpts; } in getFrontendOpts() function 128 const FrontendOptions &getFrontendOpts() const { return frontendOpts; } in getFrontendOpts() function
|
| /llvm-project-15.0.7/clang/lib/Tooling/DependencyScanning/ |
| H A D | ModuleDepCollector.cpp | 56 CI.getFrontendOpts().Inputs.clear(); in makeInvocationForModuleBuildWithoutPaths() 57 CI.getFrontendOpts().OutputFile.clear(); in makeInvocationForModuleBuildWithoutPaths() 64 CI.getFrontendOpts().ProgramAction = frontend::GenerateModule; in makeInvocationForModuleBuildWithoutPaths() 66 CI.getFrontendOpts().IsSystemModule = Deps.IsSystem; in makeInvocationForModuleBuildWithoutPaths() 82 CI.getFrontendOpts().ModuleFiles.push_back(PrebuiltModule.PCMFile); in makeInvocationForModuleBuildWithoutPaths() 84 CI.getFrontendOpts().ModuleMapFiles = Deps.ModuleMapFileDeps; in makeInvocationForModuleBuildWithoutPaths() 128 FrontendOptions &FrontendOpts = CI.getFrontendOpts(); in getCanonicalCommandLine()
|
| H A D | DependencyScanningWorker.cpp | 153 OriginalInvocation.getFrontendOpts().DisableFree = DisableFree; in runInvocation() 168 ScanInstance.getFrontendOpts().GenerateGlobalModuleIndex = false; in runInvocation() 169 ScanInstance.getFrontendOpts().UseGlobalModuleIndex = false; in runInvocation() 217 deduceDepTarget(ScanInstance.getFrontendOpts().OutputFile, in runInvocation() 218 ScanInstance.getFrontendOpts().Inputs)}; in runInvocation()
|
| /llvm-project-15.0.7/clang/lib/Interpreter/ |
| H A D | IncrementalParser.cpp | 53 switch (CI.getFrontendOpts().ProgramAction) { in IncrementalAction() 59 CI.getFrontendOpts().ProgramAction); in IncrementalAction() 91 !CI.getFrontendOpts().CodeCompletionAt.FileName.empty()) in ExecuteAction()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/ |
| H A D | IncludeFixer.cpp | 46 !Compiler->getFrontendOpts().CodeCompletionAt.FileName.empty()) in ExecuteAction() 57 clang::ParseAST(Compiler->getSema(), Compiler->getFrontendOpts().ShowStats, in ExecuteAction() 58 Compiler->getFrontendOpts().SkipFunctionBodies); in ExecuteAction() 88 assert(Invocation->getFrontendOpts().Inputs.size() == 1); in runInvocation()
|
| /llvm-project-15.0.7/clang/include/clang/Frontend/ |
| H A D | CompilerInstance.h | 282 FrontendOptions &getFrontendOpts() { in getFrontendOpts() function 283 return Invocation->getFrontendOpts(); in getFrontendOpts() 285 const FrontendOptions &getFrontendOpts() const { in getFrontendOpts() function 286 return Invocation->getFrontendOpts(); in getFrontendOpts()
|
| /llvm-project-15.0.7/clang/lib/Testing/ |
| H A D | TestAST.cpp | 102 assert(!Clang->getInvocation().getFrontendOpts().DisableFree); in TestAST() 118 const FrontendInputFile &Main = Clang->getFrontendOpts().Inputs.front(); in TestAST()
|