rewrite cli description

This commit is contained in:
Tian Jin 2019-12-23 01:14:35 -05:00
parent 0c41a204e4
commit 238c937f1b
1 changed files with 7 additions and 4 deletions

View File

@ -87,10 +87,13 @@ int main(int argc, char *argv[]) {
llvm::cl::opt<EmissionTargetType> emissionTarget(
llvm::cl::desc("Choose target to emit:"),
llvm::cl::values(
clEnumVal(EmitONNXIR, "No optimizations, enable debugging"),
clEnumVal(EmitMLIR, "Enable trivial optimizations"),
clEnumVal(EmitLLVMIR, "Enable default optimizations"),
clEnumVal(EmitLLVMBC, "Enable expensive optimizations")),
clEnumVal(EmitONNXIR,
"Ingest ONNX and emit corresponding ONNX dialect."),
clEnumVal(EmitMLIR,
"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::HideUnrelatedOptions(OnnfOptions);