MLIR
16.0.0git
|
#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"
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) |
|
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().
|
static |
Definition at line 57 of file Translation.cpp.
References mlir::failed(), mlir::failure(), registerTranslation(), mlir::success(), mlir::TranslateToMLIRRegistration::TranslateToMLIRRegistration(), and mlir::verify().
|
static |
Register the given translation.
Definition at line 35 of file Translation.cpp.
References getTranslationRegistry().
Referenced by registerTranslateToMLIRFunction(), mlir::TranslateFromMLIRRegistration::TranslateFromMLIRRegistration(), and mlir::TranslateRegistration::TranslateRegistration().