Lines Matching refs:opts
112 bool Fortran::frontend::parseDiagnosticArgs(clang::DiagnosticOptions &opts, in parseDiagnosticArgs() argument
114 opts.ShowColors = parseShowColorsArgs(args); in parseDiagnosticArgs()
119 static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, in parseCodeGenArgs() argument
122 opts.OptimizationLevel = getOptimizationLevel(args, diags); in parseCodeGenArgs()
126 opts.DebugPassManager = 1; in parseCodeGenArgs()
134 static void parseTargetArgs(TargetOptions &opts, llvm::opt::ArgList &args) { in parseTargetArgs() argument
137 opts.triple = a->getValue(); in parseTargetArgs()
141 static void setUpFrontendBasedOnAction(FrontendOptions &opts) { in setUpFrontendBasedOnAction() argument
142 if (opts.programAction == DebugDumpParsingLog) in setUpFrontendBasedOnAction()
143 opts.instrumentedParse = true; in setUpFrontendBasedOnAction()
145 if (opts.programAction == DebugDumpProvenance || in setUpFrontendBasedOnAction()
146 opts.programAction == Fortran::frontend::GetDefinition) in setUpFrontendBasedOnAction()
147 opts.needProvenanceRangeToCharBlockMappings = true; in setUpFrontendBasedOnAction()
150 static bool parseFrontendArgs(FrontendOptions &opts, llvm::opt::ArgList &args, in parseFrontendArgs() argument
155 opts.programAction = ParseSyntaxOnly; in parseFrontendArgs()
175 opts.programAction = InputOutputTest; in parseFrontendArgs()
178 opts.programAction = PrintPreprocessedInput; in parseFrontendArgs()
181 opts.programAction = ParseSyntaxOnly; in parseFrontendArgs()
184 opts.programAction = EmitMLIR; in parseFrontendArgs()
187 opts.programAction = EmitLLVM; in parseFrontendArgs()
190 opts.programAction = EmitLLVMBitcode; in parseFrontendArgs()
193 opts.programAction = EmitObj; in parseFrontendArgs()
196 opts.programAction = EmitAssembly; in parseFrontendArgs()
199 opts.programAction = DebugUnparse; in parseFrontendArgs()
202 opts.programAction = DebugUnparseNoSema; in parseFrontendArgs()
205 opts.programAction = DebugUnparseWithSymbols; in parseFrontendArgs()
208 opts.programAction = DebugDumpSymbols; in parseFrontendArgs()
211 opts.programAction = DebugDumpParseTree; in parseFrontendArgs()
214 opts.programAction = DebugDumpPFT; in parseFrontendArgs()
217 opts.programAction = DebugDumpAll; in parseFrontendArgs()
220 opts.programAction = DebugDumpParseTreeNoSema; in parseFrontendArgs()
223 opts.programAction = DebugDumpProvenance; in parseFrontendArgs()
226 opts.programAction = DebugDumpParsingLog; in parseFrontendArgs()
229 opts.programAction = DebugMeasureParseTree; in parseFrontendArgs()
232 opts.programAction = DebugPreFIRTree; in parseFrontendArgs()
235 opts.programAction = GetSymbolsSources; in parseFrontendArgs()
238 opts.programAction = GetDefinition; in parseFrontendArgs()
241 opts.programAction = InitOnly; in parseFrontendArgs()
268 opts.getDefVals.line = optVals[0]; in parseFrontendArgs()
269 opts.getDefVals.startColumn = optVals[1]; in parseFrontendArgs()
270 opts.getDefVals.endColumn = optVals[2]; in parseFrontendArgs()
276 opts.plugins.push_back(a->getValue()); in parseFrontendArgs()
282 opts.programAction = PluginAction; in parseFrontendArgs()
283 opts.actionName = a->getValue(); in parseFrontendArgs()
286 opts.outputFile = args.getLastArgValue(clang::driver::options::OPT_o); in parseFrontendArgs()
287 opts.showHelp = args.hasArg(clang::driver::options::OPT_help); in parseFrontendArgs()
288 opts.showVersion = args.hasArg(clang::driver::options::OPT_version); in parseFrontendArgs()
319 opts.inputs.clear(); in parseFrontendArgs()
334 opts.inputs.emplace_back(std::move(inputs[i]), ik); in parseFrontendArgs()
340 opts.fortranForm = in parseFrontendArgs()
360 opts.fixedFormColumns = 1000000; in parseFrontendArgs()
365 opts.fixedFormColumns = columns; in parseFrontendArgs()
370 opts.features.Enable( in parseFrontendArgs()
376 opts.features.Enable(Fortran::common::LanguageFeature::BackslashEscapes, in parseFrontendArgs()
381 opts.features.Enable(Fortran::common::LanguageFeature::LogicalAbbreviations, in parseFrontendArgs()
386 opts.features.Enable(Fortran::common::LanguageFeature::XOROperator, in parseFrontendArgs()
392 opts.features.Enable(Fortran::common::LanguageFeature::DefaultSave); in parseFrontendArgs()
397 opts.features.Enable(Fortran::common::LanguageFeature::OldStyleParameter); in parseFrontendArgs()
403 opts.encoding = Fortran::parser::Encoding::UTF_8; in parseFrontendArgs()
405 opts.encoding = Fortran::parser::Encoding::LATIN_1; in parseFrontendArgs()
412 setUpFrontendBasedOnAction(opts); in parseFrontendArgs()
413 opts.dashX = dashX; in parseFrontendArgs()
443 Fortran::frontend::PreprocessorOptions &opts, llvm::opt::ArgList &args) { in parsePreprocessorArgs() argument
448 opts.addMacroDef(currentArg->getValue()); in parsePreprocessorArgs()
450 opts.addMacroUndef(currentArg->getValue()); in parsePreprocessorArgs()
456 opts.searchDirectoriesFromDashI.emplace_back(currentArg->getValue()); in parsePreprocessorArgs()
462 opts.searchDirectoriesFromIntrModPath.emplace_back(currentArg->getValue()); in parsePreprocessorArgs()
467 opts.macrosFlag = in parsePreprocessorArgs()
472 opts.noReformat = args.hasArg(clang::driver::options::OPT_fno_reformat); in parsePreprocessorArgs()
473 opts.noLineDirectives = args.hasArg(clang::driver::options::OPT_P); in parsePreprocessorArgs()
622 const llvm::opt::OptTable &opts = clang::driver::getDriverOptTable(); in createFromArgs() local
625 llvm::opt::InputArgList args = opts.ParseArgs( in createFromArgs()
639 if (opts.findNearest(argString, nearest, includedFlagsBitmask) > 1) in createFromArgs()