MLIR 24.0.0git
MlirTranslateMain.h File Reference
#include "mlir/IR/Diagnostics.h"
#include "mlir/Support/LLVM.h"
#include "mlir/Support/ToolUtilities.h"
#include "llvm/ADT/StringRef.h"
#include <memory>
#include <string>
#include <utility>

Go to the source code of this file.

Classes

class  mlir::MlirTranslateMainConfig
 Configuration options for the mlir-translate driver. More...

Namespaces

namespace  llvm
 The OpAsmOpInterface, see OpAsmInterface.td for more details.
namespace  mlir
 Include the generated interface declarations.

Functions

LogicalResult mlir::mlirTranslateMain (std::unique_ptr< llvm::MemoryBuffer > input, llvm::raw_ostream &output, ArrayRef< const Translation * > translations, const MlirTranslateMainConfig &config={})
 Apply the requested translations to an input buffer and write the result to the output stream.
LogicalResult mlir::mlirTranslateMain (int argc, char **argv, StringRef toolName)
 Translate to/from an MLIR module from/to an external representation (e.g.