MLIR
20.0.0git
|
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... | |
This class contains all of the components necessary for performing a translation.
Definition at line 61 of file Translation.h.
|
default |
|
inline |
Definition at line 64 of file Translation.h.
|
inline |
Return the description of this translation.
Definition at line 70 of file Translation.h.
|
inline |
Return the optional alignment desired for the input of the translation.
Definition at line 73 of file Translation.h.
|
inline |
Invoke the translation function with the given input and output streams.
Definition at line 78 of file Translation.h.