blob: cccf912699fbe6fc033889c7d12b69c1b5f6573b [file] [log] [blame]
Stella Laurenzoae708152023-06-22 21:51:59 -07001// 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
13using namespace llvm;
14using namespace mlir;
15
16// Generator that prints records.
17GenRegistration printRecords("print-records", "Print all records to stdout",
18 [](const RecordKeeper &records, raw_ostream &os) {
19 os << records;
20 return false;
21 });
22
23int main(int argc, char **argv) { return MlirTblgenMain(argc, argv); }