Skip to content

Commit ffd6f6b

Browse files
committed
1 parent cca5106 commit ffd6f6b

File tree

2 files changed

+0
-60
lines changed

2 files changed

+0
-60
lines changed

mlir/include/mlir/Tools/mlir-opt/MlirOptMain.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -216,27 +216,6 @@ LogicalResult MlirOptMain(llvm::raw_ostream &outputStream,
216216
DialectRegistry &registry,
217217
const MlirOptMainConfig &config);
218218

219-
/// Perform the core processing behind `mlir-opt`.
220-
/// This API is deprecated, use the MlirOptMainConfig version above instead.
221-
LogicalResult MlirOptMain(llvm::raw_ostream &outputStream,
222-
std::unique_ptr<llvm::MemoryBuffer> buffer,
223-
const PassPipelineCLParser &passPipeline,
224-
DialectRegistry &registry, bool splitInputFile,
225-
bool verifyDiagnostics, bool verifyPasses,
226-
bool allowUnregisteredDialects,
227-
bool preloadDialectsInContext = false,
228-
bool emitBytecode = false, bool explicitModule = true,
229-
bool dumpPassPipeline = false);
230-
231-
/// Perform the core processing behind `mlir-opt`.
232-
/// This API is deprecated, use the MlirOptMainConfig version above instead.
233-
LogicalResult MlirOptMain(
234-
llvm::raw_ostream &outputStream, std::unique_ptr<llvm::MemoryBuffer> buffer,
235-
PassPipelineFn passManagerSetupFn, DialectRegistry &registry,
236-
bool splitInputFile, bool verifyDiagnostics, bool verifyPasses,
237-
bool allowUnregisteredDialects, bool preloadDialectsInContext = false,
238-
bool emitBytecode = false, bool explicitModule = true);
239-
240219
/// Implementation for tools like `mlir-opt`.
241220
/// - toolName is used for the header displayed by `--help`.
242221
/// - registry should contain all the dialects that can be parsed in the source.

mlir/lib/Tools/mlir-opt/MlirOptMain.cpp

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -362,45 +362,6 @@ LogicalResult mlir::MlirOptMain(llvm::raw_ostream &outputStream,
362362
/*insertMarkerInOutput=*/true);
363363
}
364364

365-
LogicalResult mlir::MlirOptMain(raw_ostream &outputStream,
366-
std::unique_ptr<MemoryBuffer> buffer,
367-
PassPipelineFn passManagerSetupFn,
368-
DialectRegistry &registry, bool splitInputFile,
369-
bool verifyDiagnostics, bool verifyPasses,
370-
bool allowUnregisteredDialects,
371-
bool preloadDialectsInContext,
372-
bool emitBytecode, bool explicitModule) {
373-
return MlirOptMain(outputStream, std::move(buffer), registry,
374-
MlirOptMainConfig{}
375-
.splitInputFile(splitInputFile)
376-
.verifyDiagnostics(verifyDiagnostics)
377-
.verifyPasses(verifyPasses)
378-
.allowUnregisteredDialects(allowUnregisteredDialects)
379-
.preloadDialectsInContext(preloadDialectsInContext)
380-
.emitBytecode(emitBytecode)
381-
.useExplicitModule(explicitModule)
382-
.setPassPipelineSetupFn(passManagerSetupFn));
383-
}
384-
385-
LogicalResult mlir::MlirOptMain(
386-
raw_ostream &outputStream, std::unique_ptr<MemoryBuffer> buffer,
387-
const PassPipelineCLParser &passPipeline, DialectRegistry &registry,
388-
bool splitInputFile, bool verifyDiagnostics, bool verifyPasses,
389-
bool allowUnregisteredDialects, bool preloadDialectsInContext,
390-
bool emitBytecode, bool explicitModule, bool dumpPassPipeline) {
391-
return MlirOptMain(outputStream, std::move(buffer), registry,
392-
MlirOptMainConfig{}
393-
.splitInputFile(splitInputFile)
394-
.verifyDiagnostics(verifyDiagnostics)
395-
.verifyPasses(verifyPasses)
396-
.allowUnregisteredDialects(allowUnregisteredDialects)
397-
.preloadDialectsInContext(preloadDialectsInContext)
398-
.emitBytecode(emitBytecode)
399-
.useExplicitModule(explicitModule)
400-
.dumpPassPipeline(dumpPassPipeline)
401-
.setPassPipelineParser(passPipeline));
402-
}
403-
404365
LogicalResult mlir::MlirOptMain(int argc, char **argv, llvm::StringRef toolName,
405366
DialectRegistry &registry,
406367
bool preloadDialectsInContext) {

0 commit comments

Comments
 (0)