-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update scripts to allow extra flags. #10
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks (didn't account for the stderr in the successful execution case 😄)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would you prefer to have it this way? The -Xprefix
pattern is common in other tools like clang (-Xclang
and -mllvm
)
Yeah, that very unergnomic. I always felt its probably just an artifact how the CL parser is implemented. |
@saienduri this seems to be hitting some unrelated failure on CI. Could you please take a look? |
Sure, @MaheshRavishankar I have landed this PR (#11) which fixes the CI. Once you rebase, you should be good |
default=[], | ||
help="Extra command line arguments passed to the IREE compiler. This can be specified multiple times to pass multiple arguments." | ||
help="Extra command line arguments passed to the IREE compiler. The flags need to be specified without the `--` or `-`" | ||
) | ||
parser.add_argument( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you change this one one, I think we should also change the two flags below to use nargs=+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe... i dont know where all it is used. Could be a follow up.
Signed-off-by: MaheshRavishankar <mravisha@amd.com>
Signed-off-by: MaheshRavishankar <mravisha@amd.com>
…command` Signed-off-by: MaheshRavishankar <mravisha@amd.com>
Signed-off-by: MaheshRavishankar <mravisha@amd.com>
Signed-off-by: MaheshRavishankar <mravisha@amd.com>
Signed-off-by: MaheshRavishankar <mravisha@amd.com>
b20558e
to
4dc69c6
Compare
Use nargs=+ for data types and variants to align with extra compiler args. This is a follow up after nod-ai#10.
Use nargs=+ for data types and variants to align with extra compiler args. This is a follow up after #10.
Couple of changes in this PR
--Xiree_compile
can take now a list of flags to pass toiree-compile
without having to specify--Xiree-compile
multiple times. Note that the flags passed toiree-compile
should not contain--
stderr
forrun_iree_command
and pass back to caller. This allows generating IR dumps.For example
--Xiree_compile mlir-disable-threading mlir-print-ir-before=<pass-list> mlir-print-ir-after=<pass-list>
dumps IR before and after passes to*.stderr.mlir
.