[Infra] Fix version-check workflow (#100090)
[llvm-project.git] / mlir / tools / tblgen-to-irdl / tblgen-to-irdl.cpp
blob092ec2ebe81a682cdee3ff3aa727bb0facab598a
1 //===- mlir-tblgen.cpp - Top-Level TableGen implementation for MLIR -------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the main function for MLIR's TableGen IRDL backend.
11 //===----------------------------------------------------------------------===//
13 #include "mlir/TableGen/GenInfo.h"
14 #include "mlir/Tools/mlir-tblgen/MlirTblgenMain.h"
15 #include "llvm/TableGen/Record.h"
17 using namespace llvm;
18 using namespace mlir;
20 // Generator that prints records.
21 GenRegistration printRecords("print-records", "Print all records to stdout",
22 [](const RecordKeeper &records, raw_ostream &os) {
23 os << records;
24 return false;
25 });
27 int main(int argc, char **argv) { return MlirTblgenMain(argc, argv); }