#include "mlir/Tools/mlir-tblgen/MlirTblgenMain.h"
#include "mlir/TableGen/GenInfo.h"
#include "mlir/TableGen/GenNameParser.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/Signals.h"
#include "llvm/TableGen/Error.h"
#include "llvm/TableGen/Main.h"
#include "llvm/TableGen/Record.h"
usingnamespacemlir;
usingnamespacellvm;
enum DeprecatedAction { … };
static DeprecatedAction actionOnDeprecatedValue;
static bool findUse(Init *field, Init *deprecatedInit,
llvm::DenseMap<Init *, bool> &known) { … }
static bool findUse(Record &record, Init *deprecatedInit,
llvm::DenseMap<Init *, bool> &known) { … }
static void warnOfDeprecatedUses(const RecordKeeper &records) { … }
static const mlir::GenInfo *generator;
static bool mlirTableGenMain(raw_ostream &os, const RecordKeeper &records) { … }
int mlir::MlirTblgenMain(int argc, char **argv) { … }