Stella Laurenzo | ae70815 | 2023-06-22 21:51:59 -0700 | [diff] [blame] | 1 | // Copyright 2023 The IREE Authors |
| 2 | // |
| 3 | // Licensed 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 | // Adapted from mlir-tblgen.cpp. Simply delegates through to MlirTblgenMain. |
| 8 | |
| 9 | #include "llvm/TableGen/Record.h" |
| 10 | #include "mlir/TableGen/GenInfo.h" |
| 11 | #include "mlir/Tools/mlir-tblgen/MlirTblgenMain.h" |
| 12 | |
| 13 | using namespace llvm; |
| 14 | using namespace mlir; |
| 15 | |
| 16 | // Generator that prints records. |
| 17 | GenRegistration printRecords("print-records", "Print all records to stdout", |
| 18 | [](const RecordKeeper &records, raw_ostream &os) { |
| 19 | os << records; |
| 20 | return false; |
| 21 | }); |
| 22 | |
| 23 | int main(int argc, char **argv) { return MlirTblgenMain(argc, argv); } |