MLIR  16.0.0git
Functions
Translation.cpp File Reference
#include "mlir/Tools/mlir-translate/Translation.h"
#include "mlir/IR/AsmState.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/Verifier.h"
#include "mlir/Parser/Parser.h"
#include "llvm/Support/SourceMgr.h"
+ Include dependency graph for Translation.cpp:

Go to the source code of this file.

Functions

static llvm::StringMap< TranslateFunction > & getTranslationRegistry ()
 Get the mutable static map between registered file-to-file MLIR translations and the TranslateFunctions that perform those translations. More...
 
static void registerTranslation (StringRef name, const TranslateFunction &function)
 Register the given translation. More...
 
static void registerTranslateToMLIRFunction (StringRef name, const TranslateSourceMgrToMLIRFunction &function)
 

Function Documentation

◆ getTranslationRegistry()

static llvm::StringMap<TranslateFunction>& getTranslationRegistry ( )
static

Get the mutable static map between registered file-to-file MLIR translations and the TranslateFunctions that perform those translations.

Definition at line 29 of file Translation.cpp.

Referenced by registerTranslation(), and mlir::TranslationParser::TranslationParser().

◆ registerTranslateToMLIRFunction()

static void registerTranslateToMLIRFunction ( StringRef  name,
const TranslateSourceMgrToMLIRFunction function 
)
static

◆ registerTranslation()

static void registerTranslation ( StringRef  name,
const TranslateFunction function 
)
static