|
|
std::vector< const char * > * | process (int argc, char *const argv[]) override |
| | Process the command line arguments and set options accordingly.
|
| |
|
virtual bool | enable_intrinsic_metadata_fix () |
| |
|
void | closePreprocessedInput (FILE *input) const |
| |
|
DebugHook | getDebugHook () const |
| |
|
const char * | getIncludePath () override |
| |
|
bool | isAnnotationDisabled (const IR::Annotation *a) const |
| |
|
bool | isv1 () const |
| |
|
FILE * | preprocess () |
| |
|
bool | searchForIncludePath (const char *&includePathOut, std::vector< cstring > relativePaths, const char *) |
| |
|
void | setInputFile () |
| |
|
cstring | getBinaryName () |
| |
|
cstring | getBuildDate () |
| |
|
cstring | getCompileCommand () |
| |
|
virtual void | usage () |
| |
|
| enum class | FrontendVersion { P4_14
, P4_16
} |
| |
| enum | OptionFlags { Default = 0
, Hide = 1 << 0
, OptionalArgument = 1 << 1
} |
| |
|
typedef std::function< bool(const char *optarg)> | OptionProcessor |
| |
|
bool | emitExterns = false |
| |
|
bool | loadIRFromJson = false |
| |
|
cstring | outputFile = nullptr |
| |
|
cstring | arch = nullptr |
| |
|
bool | debugJson = false |
| |
|
cstring | dumpJsonFile = nullptr |
| |
|
bool | excludeBackendPasses = false |
| |
|
bool | excludeFrontendPasses = false |
| |
|
bool | excludeMidendPasses = false |
| |
|
bool | listFrontendPasses = false |
| |
|
bool | listMidendPasses = false |
| |
|
bool | loopsUnrolling = false |
| |
|
bool | ndebug = false |
| |
|
int | optimizationLevel = 1 |
| |
|
bool | optimizeDebug = false |
| |
|
bool | optimizeSize = false |
| |
|
cstring | p4RuntimeEntriesFile = nullptr |
| |
|
cstring | p4RuntimeEntriesFiles = nullptr |
| |
|
cstring | p4RuntimeFile = nullptr |
| |
|
cstring | p4RuntimeFiles = nullptr |
| |
|
P4::P4RuntimeFormat | p4RuntimeFormat = P4::P4RuntimeFormat::BINARY |
| |
|
std::vector< cstring > | passesToExcludeBackend |
| |
|
std::vector< cstring > | passesToExcludeFrontend |
| |
|
std::vector< cstring > | passesToExcludeMidend |
| |
|
cstring | prettyPrintFile = nullptr |
| |
|
cstring | target = nullptr |
| |
|
cstring | compilerVersion |
| |
|
bool | doNotCompile = false |
| |
|
bool | doNotPreprocess = false |
| |
|
cstring | dumpFolder = "." |
| |
|
cstring | exe_name |
| |
|
cstring | file = nullptr |
| |
|
FrontendVersion | langVersion = FrontendVersion::P4_16 |
| |
| bool | noIncludes = false |
| |
|
bool | optimizeParserInlining = false |
| |
|
cstring | preprocessor_options = "" |
| |
|
std::vector< cstring > | top4 |
| |
|
void | validateOptions () const override |
| |
|
void | dumpPass (const char *manager, unsigned seq, const char *pass, const IR::Node *node) const |
| |
|
| Options (cstring message) |
| |
|
void | registerOption (const char *option, const char *argName, OptionProcessor processor, const char *description, OptionFlags flags=OptionFlags::Default) |
| |
|
void | registerUsage (const char *msg) |
| |
|
void | setOutStream (std::ostream *out) |
| |
|
std::vector< const char * > | additionalUsage |
| |
|
const char * | binaryName |
| |
|
cstring | buildDate |
| |
|
bool | collectUnknownOptions = false |
| |
|
cstring | compileCommand |
| |
|
cstring | message |
| |
|
std::vector< cstring > | optionOrder |
| |
|
std::map< cstring, const Option * > | options |
| |
|
std::ostream * | outStream = &std::cerr |
| |
|
std::vector< const char * > | remainingOptions |
| |