MLIR  18.0.0git
Classes | Namespaces | Typedefs | Functions
Translation.h File Reference
#include "mlir/IR/Operation.h"
#include "llvm/Support/CommandLine.h"
#include <optional>

Go to the source code of this file.

Classes

class  mlir::Translation
 This class contains all of the components necessary for performing a translation. More...
 
struct  mlir::TranslateToMLIRRegistration
 Use Translate[ToMLIR|FromMLIR]Registration as an initializer that registers a function and associates it with name. More...
 
struct  mlir::TranslateFromMLIRRegistration
 
struct  mlir::TranslateRegistration
 
struct  mlir::TranslationParser
 A command line parser for translation functions. More...
 

Namespaces

 mlir
 This header declares functions that assist transformations in the MemRef dialect.
 

Typedefs

using mlir::TranslateSourceMgrToMLIRFunction = std::function< OwningOpRef< Operation * >(const std::shared_ptr< llvm::SourceMgr > &sourceMgr, MLIRContext *)>
 Interface of the function that translates the sources managed by sourceMgr to MLIR. More...
 
using mlir::TranslateRawSourceMgrToMLIRFunction = std::function< OwningOpRef< Operation * >(llvm::SourceMgr &sourceMgr, MLIRContext *)>
 
using mlir::TranslateStringRefToMLIRFunction = std::function< OwningOpRef< Operation * >(llvm::StringRef, MLIRContext *)>
 Interface of the function that translates the given string to MLIR. More...
 
using mlir::TranslateFromMLIRFunction = std::function< LogicalResult(Operation *, llvm::raw_ostream &output)>
 Interface of the function that translates MLIR to a different format and outputs the result to a stream. More...
 
using mlir::TranslateFunction = std::function< LogicalResult(const std::shared_ptr< llvm::SourceMgr > &sourceMgr, llvm::raw_ostream &output, MLIRContext *)>
 Interface of the function that performs file-to-file translation involving MLIR. More...
 
using mlir::DialectRegistrationFunction = std::function< void(DialectRegistry &)>
 Interface of the function that adds all dialects and dialect extensions used for the translation to the given DialectRegistry. More...
 

Functions

void mlir::registerTranslationCLOptions ()
 Register command-line options used by the translation registry. More...