brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 9c5cc6a Raw
29 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8//9// This file contains the main function for MLIR's TableGen.10//11//===----------------------------------------------------------------------===//12 13#include "mlir/TableGen/GenInfo.h"14#include "mlir/Tools/mlir-tblgen/MlirTblgenMain.h"15#include "llvm/TableGen/Record.h"16 17using namespace llvm;18using namespace mlir;19 20// Generator that prints records.21static GenRegistration22    printRecords("print-records", "Print all records to stdout",23                 [](const RecordKeeper &records, raw_ostream &os) {24                   os << records;25                   return false;26                 });27 28int main(int argc, char **argv) { return MlirTblgenMain(argc, argv); }29