P4C
The P4 Compiler
TC::TCOptions Class Reference
Inheritance diagram for TC::TCOptions:
[legend]

Public Attributes

bool DebugOn = false
 
bool emitTraceMessages = false
 
cstring outputFolder = nullptr
 
unsigned timerProfiles = 4
 
enum XDP2TC xdp2tcMode = XDP2TC_META
 
- Public Attributes inherited from CompilerOptions
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< cstringpassesToExcludeBackend
 
std::vector< cstringpassesToExcludeFrontend
 
std::vector< cstringpassesToExcludeMidend
 
cstring prettyPrintFile = nullptr
 
cstring target = nullptr
 
- Public Attributes inherited from ParserOptions
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< cstringtop4
 

Additional Inherited Members

- Public Types inherited from ParserOptions
enum class  FrontendVersion { P4_14 , P4_16 }
 
- Public Types inherited from Util::Options
enum  OptionFlags { Default = 0 , Hide = 1 << 0 , OptionalArgument = 1 << 1 }
 
typedef std::function< bool(const char *optarg)> OptionProcessor
 
- Public Member Functions inherited from CompilerOptions
virtual bool enable_intrinsic_metadata_fix ()
 
- Public Member Functions inherited from ParserOptions
void closePreprocessedInput (FILE *input) const
 
DebugHook getDebugHook () const
 
const char * getIncludePath () override
 
bool isAnnotationDisabled (const IR::Annotation *a) const
 
bool isv1 () const
 
FILE * preprocess ()
 
std::vector< const char * > * process (int argc, char *const argv[]) override
 
bool searchForIncludePath (const char *&includePathOut, std::vector< cstring > relativePaths, const char *)
 
void setInputFile ()
 
- Public Member Functions inherited from Util::Options
cstring getBinaryName ()
 
cstring getBuildDate ()
 
cstring getCompileCommand ()
 
virtual void usage ()
 
- Protected Member Functions inherited from CompilerOptions
void validateOptions () const override
 
- Protected Member Functions inherited from ParserOptions
void dumpPass (const char *manager, unsigned seq, const char *pass, const IR::Node *node) const
 
- Protected Member Functions inherited from Util::Options
 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)
 
- Protected Attributes inherited from Util::Options
std::vector< const char * > additionalUsage
 
const char * binaryName
 
cstring buildDate
 
bool collectUnknownOptions = false
 
cstring compileCommand
 
cstring message
 
std::vector< cstringoptionOrder
 
std::map< cstring, const Option * > options
 
std::ostream * outStream = &std::cerr
 
std::vector< const char * > remainingOptions