rewrite cli description
This commit is contained in:
parent
0c41a204e4
commit
238c937f1b
11
src/main.cpp
11
src/main.cpp
|
@ -87,10 +87,13 @@ int main(int argc, char *argv[]) {
|
||||||
llvm::cl::opt<EmissionTargetType> emissionTarget(
|
llvm::cl::opt<EmissionTargetType> emissionTarget(
|
||||||
llvm::cl::desc("Choose target to emit:"),
|
llvm::cl::desc("Choose target to emit:"),
|
||||||
llvm::cl::values(
|
llvm::cl::values(
|
||||||
clEnumVal(EmitONNXIR, "No optimizations, enable debugging"),
|
clEnumVal(EmitONNXIR,
|
||||||
clEnumVal(EmitMLIR, "Enable trivial optimizations"),
|
"Ingest ONNX and emit corresponding ONNX dialect."),
|
||||||
clEnumVal(EmitLLVMIR, "Enable default optimizations"),
|
clEnumVal(EmitMLIR,
|
||||||
clEnumVal(EmitLLVMBC, "Enable expensive optimizations")),
|
"Lower model to MLIR built-in transformation dialect."),
|
||||||
|
clEnumVal(EmitLLVMIR, "Lower model to LLVM IR (LLVM dialect)."),
|
||||||
|
clEnumVal(EmitLLVMBC, "Lower model to LLVM IR and emit (to file) "
|
||||||
|
"LLVM bitcode for model.")),
|
||||||
llvm::cl::init(EmitLLVMBC), llvm::cl::cat(OnnfOptions));
|
llvm::cl::init(EmitLLVMBC), llvm::cl::cat(OnnfOptions));
|
||||||
|
|
||||||
llvm::cl::HideUnrelatedOptions(OnnfOptions);
|
llvm::cl::HideUnrelatedOptions(OnnfOptions);
|
||||||
|
|
Loading…
Reference in New Issue