MLIR  16.0.0git
Enumerations | Functions | Variables
MlirTblgenMain.cpp File Reference
#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"
+ Include dependency graph for MlirTblgenMain.cpp:

Go to the source code of this file.

Enumerations

enum  DeprecatedAction { None, Warn, Error }
 

Functions

static bool findUse (Record &record, Init *init, llvm::DenseMap< Record *, bool > &known)
 
static void warnOfDeprecatedUses (RecordKeeper &records)
 
static bool mlirTableGenMain (raw_ostream &os, RecordKeeper &records)
 

Variables

static DeprecatedAction actionOnDeprecatedValue
 
static const mlir::GenInfogenerator
 

Enumeration Type Documentation

◆ DeprecatedAction

Enumerator
None 
Warn 
Error 

Definition at line 28 of file MlirTblgenMain.cpp.

Function Documentation

◆ findUse()

static bool findUse ( Record &  record,
Init *  init,
llvm::DenseMap< Record *, bool > &  known 
)
static

Definition at line 33 of file MlirTblgenMain.cpp.

Referenced by warnOfDeprecatedUses().

◆ mlirTableGenMain()

static bool mlirTableGenMain ( raw_ostream &  os,
RecordKeeper &  records 
)
static

◆ warnOfDeprecatedUses()

static void warnOfDeprecatedUses ( RecordKeeper &  records)
static

Definition at line 65 of file MlirTblgenMain.cpp.

References actionOnDeprecatedValue, mlir::Error, and findUse().

Referenced by mlirTableGenMain().

Variable Documentation

◆ actionOnDeprecatedValue

DeprecatedAction actionOnDeprecatedValue
static

Definition at line 30 of file MlirTblgenMain.cpp.

Referenced by mlirTableGenMain(), mlir::MlirTblgenMain(), and warnOfDeprecatedUses().

◆ generator

const mlir::GenInfo* generator
static