MLIR  20.0.0git
Classes | Namespaces | Typedefs | Functions
MlirOptMain.h File Reference
#include "mlir/Debug/CLOptionsSetup.h"
#include "mlir/Support/ToolUtilities.h"
#include "llvm/ADT/StringRef.h"
#include <cstdlib>
#include <functional>
#include <memory>

Go to the source code of this file.

Classes

class  mlir::MlirOptMainConfig
 Configuration options for the mlir-opt tool. More...
 

Namespaces

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

Typedefs

using mlir::PassPipelineFn = llvm::function_ref< LogicalResult(PassManager &pm)>
 This defines the function type used to setup the pass manager. More...
 

Functions

std::pair< std::string, std::string > mlir::registerAndParseCLIOptions (int argc, char **argv, llvm::StringRef toolName, DialectRegistry &registry)
 Register and parse command line options. More...
 
LogicalResult mlir::MlirOptMain (llvm::raw_ostream &outputStream, std::unique_ptr< llvm::MemoryBuffer > buffer, DialectRegistry &registry, const MlirOptMainConfig &config)
 Perform the core processing behind mlir-opt. More...
 
LogicalResult mlir::MlirOptMain (int argc, char **argv, llvm::StringRef toolName, DialectRegistry &registry)
 Implementation for tools like mlir-opt. More...
 
LogicalResult mlir::MlirOptMain (int argc, char **argv, llvm::StringRef inputFilename, llvm::StringRef outputFilename, DialectRegistry &registry)
 Implementation for tools like mlir-opt. More...
 
int mlir::asMainReturnCode (LogicalResult r)
 Helper wrapper to return the result of MlirOptMain directly from main. More...