MLIR 22.0.0git
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

namespace  mlir
 Include the generated interface declarations.

Typedefs

using mlir::TranslateSourceMgrToMLIRFunction
 Interface of the function that translates the sources managed by sourceMgr to MLIR.
using mlir::TranslateRawSourceMgrToMLIRFunction
using mlir::TranslateStringRefToMLIRFunction
 Interface of the function that translates the given string to MLIR.
using mlir::TranslateFromMLIRFunction
 Interface of the function that translates MLIR to a different format and outputs the result to a stream.
using mlir::TranslateFunction
 Interface of the function that performs file-to-file translation involving MLIR.
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.

Functions

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