This repository was archived by the owner on Nov 27, 2025. It is now read-only.
Align vpux-opt main to upstream mlir-opt behaviour#172
Closed
andrey-golubev wants to merge 2 commits intonpu/release/20.xfrom
Closed
Align vpux-opt main to upstream mlir-opt behaviour#172andrey-golubev wants to merge 2 commits intonpu/release/20.xfrom
andrey-golubev wants to merge 2 commits intonpu/release/20.xfrom
Conversation
… inside" This reverts commit d0dd595.
mlir-opt's registerAndParseCLIOptions() forces users to both register default MLIR options and parse the command line string. Custom mlir-opt implementations, however, may need to provide own options or own parsing. It seems that separating the two functions makes it easier to achieve necessary customizations. For example, one can register "default" options, then register custom options (not available in standard mlir-opt), then parse all of them. Other cases include two-stage parsing where some additional options become available based on parsed information (e.g. compilation target can allow additional options to be present).
hrotuna
approved these changes
Nov 13, 2025
Contributor
Author
|
Ok, unfortunately, this idea does not fly. If we want to maintain decent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hardware registration in vpux-opt can happen differently. Instead of having a custom MlirOptMain, we can rely on the new additions to the MLIR, which allow to register custom options before parsing all options and before calling the MlirOptMain itself.
This way, our custom patch can be reverted. We only need to take an upstream patch that's going to be available in later LLVM versions.
JIRA ticket
Related PR in NPU Compiler and/or OpenVINO repository with sub-module update
Other related tickets