Add iree-dump-parameters python console script entrypoint. (#15490)
Also trues up a number of things:
* Fixes usage banner for a couple of tools
* Moves package_test.py (which was not being run) into the package so it
can always validate the installed wheel.
* Fixes issue with version.py.
* Adds verification of all tools and generated version info.
* Adds _package_test to the CI for presubmit and after package build for
releases.
Fixes #15213
diff --git a/tools/iree-benchmark-module-main.cc b/tools/iree-benchmark-module-main.cc
index f69ef49..f753664 100644
--- a/tools/iree-benchmark-module-main.cc
+++ b/tools/iree-benchmark-module-main.cc
@@ -604,6 +604,13 @@
IREE_TRACE_ZONE_BEGIN_NAMED(z0, "iree-benchmark-module");
// Pass through flags to benchmark (allowing --help to fall through).
+ iree_flags_set_usage(
+ "iree-benchmark-module",
+ "Benchmarks a function within a compiled IREE module and handles I/O\n"
+ "parsing. Modules can be provided by file path (`--module=file.vmfb`)\n"
+ "or read from stdin (`--module=-`) and the function to execute\n"
+ "matches the original name provided to the compiler\n"
+ "(`--function=foo` for `func.func @foo`).\n");
iree_flags_parse_checked(IREE_FLAGS_PARSE_MODE_UNDEFINED_OK |
IREE_FLAGS_PARSE_MODE_CONTINUE_AFTER_HELP,
&argc, &argv);