My Project
MlirOptMain.h
Go to the documentation of this file.
1 //===- MlirOptMain.h - MLIR Optimizer Driver main ---------------*- C++ -*-===//
2 //
3 // Part of the MLIR Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Main entry function for mlir-opt for when built as standalone binary.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include <memory>
14 #include <vector>
15 
16 namespace llvm {
17 class raw_ostream;
18 class MemoryBuffer;
19 } // end namespace llvm
20 
21 namespace mlir {
22 struct LogicalResult;
23 class PassPipelineCLParser;
24 
25 LogicalResult MlirOptMain(llvm::raw_ostream &os,
26  std::unique_ptr<llvm::MemoryBuffer> buffer,
27  const PassPipelineCLParser &passPipeline,
28  bool splitInputFile, bool verifyDiagnostics,
29  bool verifyPasses);
30 
31 } // end namespace mlir
Definition: InferTypeOpInterface.cpp:20
Definition: PassRegistry.cpp:413
LogicalResult MlirOptMain(llvm::raw_ostream &os, std::unique_ptr< llvm::MemoryBuffer > buffer, const PassPipelineCLParser &passPipeline, bool splitInputFile, bool verifyDiagnostics, bool verifyPasses)