MLIR  20.0.0git
Public Member Functions | List of all members
mlir::Translation Class Reference

This class contains all of the components necessary for performing a translation. More...

#include "mlir/Tools/mlir-translate/Translation.h"

Public Member Functions

 Translation ()=default
 
 Translation (TranslateFunction function, StringRef description, std::optional< llvm::Align > inputAlignment)
 
StringRef getDescription () const
 Return the description of this translation. More...
 
std::optional< llvm::Align > getInputAlignment () const
 Return the optional alignment desired for the input of the translation. More...
 
LogicalResult operator() (const std::shared_ptr< llvm::SourceMgr > &sourceMgr, llvm::raw_ostream &output, MLIRContext *context) const
 Invoke the translation function with the given input and output streams. More...
 

Detailed Description

This class contains all of the components necessary for performing a translation.

Definition at line 61 of file Translation.h.

Constructor & Destructor Documentation

◆ Translation() [1/2]

mlir::Translation::Translation ( )
default

◆ Translation() [2/2]

mlir::Translation::Translation ( TranslateFunction  function,
StringRef  description,
std::optional< llvm::Align >  inputAlignment 
)
inline

Definition at line 64 of file Translation.h.

Member Function Documentation

◆ getDescription()

StringRef mlir::Translation::getDescription ( ) const
inline

Return the description of this translation.

Definition at line 70 of file Translation.h.

◆ getInputAlignment()

std::optional<llvm::Align> mlir::Translation::getInputAlignment ( ) const
inline

Return the optional alignment desired for the input of the translation.

Definition at line 73 of file Translation.h.

◆ operator()()

LogicalResult mlir::Translation::operator() ( const std::shared_ptr< llvm::SourceMgr > &  sourceMgr,
llvm::raw_ostream &  output,
MLIRContext context 
) const
inline

Invoke the translation function with the given input and output streams.

Definition at line 78 of file Translation.h.


The documentation for this class was generated from the following file: