Skip to content
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

Shorten xf options #827

Merged
merged 5 commits into from
Sep 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions xformer/XCoreOptMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,22 @@ namespace xcore {
static cl::OptionCategory XformerCategory("Xformer options");

cl::opt<unsigned> threadCountOption("xcore-thread-count",
cl::desc("Thread count"), cl::init(1),
cl::desc("[-tc] Thread count"), cl::init(1),
cl::cat(XformerCategory));

cl::alias aliasThreadCountOption("tc",
cl::desc("Alias to --xcore-thread-count"),
cl::aliasopt(threadCountOption));

cl::opt<std::string> flashImageFilenameOption(
"xcore-flash-image-file",
cl::desc("The file to write the xcore flash image."),
cl::desc("[-f] The file to write the xcore flash image."),
cl::value_desc("filename"), cl::init(""), cl::cat(XformerCategory));

cl::alias aliasFlashImageOption("f",
cl::desc("Alias for --xcore-flash-image-file"),
cl::aliasopt(flashImageFilenameOption));

cl::opt<unsigned> loadExternallyIfLargerOption(
"xcore-load-externally-if-larger",
cl::desc("Load constants externally if larger than given limit in bytes "
Expand Down Expand Up @@ -222,7 +230,7 @@ int main(int argc, char **argv) {
cl::cat(mlir::xcore::XformerCategory), cl::Hidden);
static cl::opt<std::string> tflmcPrefixOption(
"xcore-naming-prefix",
cl::desc("Specify naming prefix(also \"--xp\") for compiled model"
cl::desc("[-xp] Specify naming prefix for compiled model"
"(default = \"model_\")."),
cl::init("model_"), cl::cat(mlir::xcore::XformerCategory));
static cl::alias aliasTflmcPrefixOption(
Expand Down
Loading