12 #include "llvm/Support/CommandLine.h"
13 #include "llvm/Support/ManagedStatic.h"
27 addLiteralOption(kv.getGenArgument(), &kv, kv.getGenDescription());
32 size_t globalWidth)
const {
34 llvm::array_pod_sort(tp->Values.begin(), tp->Values.end(),
35 [](
const GenNameParser::OptionInfo *vT1,
36 const GenNameParser::OptionInfo *vT2) {
37 return vT1->Name.compare(vT2->Name);
40 parser<const GenInfo *>::printOptionInfo(o, globalWidth);
static llvm::ManagedStatic< std::vector< GenInfo > > generatorRegistry
Structure to group information about a generator (argument to invoke via mlir-tblgen,...
The OpAsmOpInterface, see OpAsmInterface.td for more details.
Include the generated interface declarations.
std::function< bool(const llvm::RecordKeeper &records, raw_ostream &os)> GenFunction
Generator function to invoke.
Adds command line option for each registered generator.
GenNameParser(llvm::cl::Option &opt)
void printOptionInfo(const llvm::cl::Option &o, size_t globalWidth) const override
GenRegistration(StringRef arg, StringRef description, const GenFunction &function)