MLIR  19.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"

Go to the source code of this file.

Enumerations

enum  DeprecatedAction { None , Warn , Error }
 

Functions

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 (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() [1/2]

static bool findUse ( Init *  field,
Init *  deprecatedInit,
llvm::DenseMap< Init *, bool > &  known 
)
static

Definition at line 33 of file MlirTblgenMain.cpp.

Referenced by warnOfDeprecatedUses().

◆ findUse() [2/2]

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

Definition at line 86 of file MlirTblgenMain.cpp.

◆ mlirTableGenMain()

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

◆ warnOfDeprecatedUses()

static void warnOfDeprecatedUses ( RecordKeeper &  records)
static

Definition at line 93 of file MlirTblgenMain.cpp.

References actionOnDeprecatedValue, 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

Definition at line 125 of file MlirTblgenMain.cpp.

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