13 #ifndef CIRCT_SUPPORT_LOWERINGOPTIONSPARSER_H
14 #define CIRCT_SUPPORT_LOWERINGOPTIONSPARSER_H
17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/Support/CommandLine.h"
29 bool parse(llvm::cl::Option &option, StringRef argName, StringRef argValue,
32 value.
parse(argValue, [&](Twine error) { failed = option.error(error); });
38 :
llvm::cl::opt<LoweringOptions, false, LoweringOptionsParser> {
43 "Style options. Valid flags include: "
44 "noAlwaysComb, exprInEventControl, disallowPackedArrays, "
45 "disallowLocalVariables, verifLabels, emittedLineLength=<n>, "
46 "maximumNumberOfTermsPerExpression=<n>, "
47 "explicitBitcast, emitReplicatedOpsToHeader, "
48 "locationInfoStyle={plain,wrapInAtSquareBracket,none}, "
49 "disallowPortDeclSharing, printDebugInfo, "
50 "disallowExpressionInliningInPorts, disallowMuxInlining, "
51 "emitWireInPort, emitBindComments, omitVersionComment, "
52 "caseInsensitiveKeywords"),
53 llvm::cl::cat(cat), llvm::cl::value_desc(
"option")} {}
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
LoweringOptionsOption(llvm::cl::OptionCategory &cat)
Commandline parser for LoweringOptions.
LoweringOptionsParser(llvm::cl::Option &option)
bool parse(llvm::cl::Option &option, StringRef argName, StringRef argValue, LoweringOptions &value)
Options which control the emission from CIRCT to Verilog.
void parse(llvm::StringRef options, ErrorHandlerT callback)
Read in options from a string, overriding only the set options in the string.