FrontendOptions - Options for controlling the behavior of the frontend.
More...
#include <flang/Frontend/FrontendOptions.h>
|
unsigned | showHelp: 1 |
| Show the -help text.
|
|
unsigned | showVersion: 1 |
| Show the -version text.
|
|
unsigned | instrumentedParse: 1 |
| Instrument the parse to get a more verbose log.
|
|
unsigned | showColors: 1 |
| Enable color diagnostics.
|
|
unsigned | printSupportedCPUs: 1 |
| Print the supported cpus for the current target.
|
|
unsigned | needProvenanceRangeToCharBlockMappings: 1 |
|
GetDefinitionVals | getDefVals |
|
std::vector< FrontendInputFile > | inputs |
| The input files and their types.
|
|
std::string | outputFile |
| The output file, if any.
|
|
frontend::ActionKind | programAction = ParseSyntaxOnly |
| The frontend action to perform.
|
|
FortranForm | fortranForm = FortranForm::Unknown |
|
std::vector< Fortran::lower::EnvironmentDefault > | envDefaults |
|
int | fixedFormColumns = 72 |
|
InputKind | dashX |
|
common::LanguageFeatureControl | features |
|
Fortran::parser::Encoding | encoding {Fortran::parser::Encoding::UTF_8} |
|
std::vector< std::string > | plugins |
| The list of plugins to load.
|
|
std::string | actionName |
| The name of the action to run when using a plugin action.
|
|
std::vector< std::string > | llvmArgs |
|
std::vector< std::string > | mlirArgs |
|
FrontendOptions - Options for controlling the behavior of the frontend.
◆ getInputKindForExtension()
InputKind FrontendOptions::getInputKindForExtension |
( |
llvm::StringRef |
extension | ) |
|
|
static |
"*.f" would return Language::Fortran.
- Returns
- The input kind for the extension, or Language::Unknown if the extension is not recognized.
◆ dashX
InputKind Fortran::frontend::FrontendOptions::dashX |
The input kind, either specified via -x argument or deduced from the input file name.
◆ llvmArgs
std::vector<std::string> Fortran::frontend::FrontendOptions::llvmArgs |
A list of arguments to forward to LLVM's option processing; this should only be used for debugging and experimental features.
◆ mlirArgs
std::vector<std::string> Fortran::frontend::FrontendOptions::mlirArgs |
A list of arguments to forward to MLIR's option processing; this should only be used for debugging and experimental features.
◆ needProvenanceRangeToCharBlockMappings
unsigned Fortran::frontend::FrontendOptions::needProvenanceRangeToCharBlockMappings |
Enable Provenance to character-stream mapping. Allows e.g. IDEs to find symbols based on source-code location. This is not needed in regular compilation.
The documentation for this struct was generated from the following files: