Skip to content

Commit

Permalink
Update initializeOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardcode84 committed Apr 2, 2024
1 parent 13c8d2d commit bb49a5f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions mlir/lib/Transforms/CompositePass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ struct CompositeFixedPointPass final
dynamicPM.printAsTextualPipeline(os);
}

LogicalResult initializeOptions(StringRef options) override {
if (failed(CompositeFixedPointPassBase::initializeOptions(options)))
LogicalResult initializeOptions(
StringRef options,
function_ref<LogicalResult(const Twine &)> errorHandler) override {
if (failed(CompositeFixedPointPassBase::initializeOptions(options,
errorHandler)))
return failure();

if (failed(parsePassPipeline(pipelineStr, dynamicPM))) {
llvm::errs() << "Failed to parse composite pass pipeline\n";
return failure();
}
if (failed(parsePassPipeline(pipelineStr, dynamicPM)))
return errorHandler("Failed to parse composite pass pipeline");

return success();
}
Expand Down

0 comments on commit bb49a5f

Please sign in to comment.