@@ -64,8 +64,6 @@ bool VerboseOutput; // onnx-mlir only
64
64
std::vector<std::string> Xopt; // onnx-mlir only
65
65
std::vector<std::string> Xllc; // onnx-mlir only
66
66
std::string mllvm; // onnx-mlir only
67
- std::string mllvmopt; // onnx-mlir only
68
- std::string mllvmllc; // onnx-mlir only
69
67
std::string instrumentOps; // onnx-mlir only
70
68
unsigned instrumentControlBits; // onnx-mlir only
71
69
std::string parallelizeOps; // onnx-mlir only
@@ -409,13 +407,19 @@ static llvm::cl::opt<bool, true> VerboseOutputOpt("v",
409
407
llvm::cl::init(false ), llvm::cl::cat(OnnxMlirOptions));
410
408
411
409
static llvm::cl::list<std::string, std::vector<std::string>> XoptOpt (" Xopt" ,
412
- llvm::cl::desc (" Arguments to forward to LLVM's 'opt' option processing" ),
410
+ llvm::cl::desc (
411
+ " Arguments to forward to LLVM's 'opt' option processing"
412
+ " Multiple arguments to 'opt' need to be pass with seperate 'Xopt'"
413
+ " For example, '-Xopt opt1 -Xopt opt2 ...'" ),
413
414
llvm::cl::value_desc(" A valid LLVM's 'opt' option" ),
414
415
llvm::cl::location(Xopt), llvm::cl::cat(OnnxMlirOptions), llvm::cl::Hidden,
415
416
llvm::cl::ValueRequired, llvm::cl::ZeroOrMore, llvm::cl::CommaSeparated);
416
417
417
418
static llvm::cl::list<std::string, std::vector<std::string>> XllcOpt (" Xllc" ,
418
- llvm::cl::desc (" Arguments to forward to LLVM's 'llc' option processing" ),
419
+ llvm::cl::desc (
420
+ " Arguments to forward to LLVM's 'llc' option processing"
421
+ " Multiple arguments to 'llc' need to be pass with seperate 'Xllc'"
422
+ " For example, '-Xllc opt1 -Xllc opt2 ...'" ),
419
423
llvm::cl::value_desc(" A valid LLVM's 'llc' option" ),
420
424
llvm::cl::location(Xllc), llvm::cl::cat(OnnxMlirOptions), llvm::cl::Hidden,
421
425
llvm::cl::ValueRequired, llvm::cl::ZeroOrMore, llvm::cl::CommaSeparated);
@@ -427,18 +431,6 @@ static llvm::cl::opt<std::string, true> mllvmOpt("mllvm",
427
431
llvm::cl::location(mllvm), llvm::cl::cat(OnnxMlirOptions), llvm::cl::Hidden,
428
432
llvm::cl::ValueRequired);
429
433
430
- static llvm::cl::opt<std::string, true > mllvmoptOpt (" mllvmopt" ,
431
- llvm::cl::desc (" Arguments to forward to LLVM's 'opt' processing" ),
432
- llvm::cl::value_desc(" A valid LLVM's 'opt' option" ),
433
- llvm::cl::location(mllvmopt), llvm::cl::cat(OnnxMlirOptions),
434
- llvm::cl::Hidden, llvm::cl::ValueRequired);
435
-
436
- static llvm::cl::opt<std::string, true > mllvmllcOpt (" mllvmllc" ,
437
- llvm::cl::desc (" Arguments to forward to LLVM's 'llc' option processing" ),
438
- llvm::cl::value_desc(" A valid LLVM's 'llc' option" ),
439
- llvm::cl::location(mllvmllc), llvm::cl::cat(OnnxMlirOptions),
440
- llvm::cl::Hidden, llvm::cl::ValueRequired);
441
-
442
434
static llvm::cl::opt<std::string, true > instrumentOpsOpt (" instrument-ops" ,
443
435
llvm::cl::desc (" Specify operations to be instrumented:\n "
444
436
" \" NONE\" or \"\" for no instrument (default),\n "
@@ -939,19 +931,8 @@ static std::vector<std::string> split(std::string &input) {
939
931
std::vector<std::string> getLLVMOptions () {
940
932
if (mllvm == " " )
941
933
return std::vector<std::string>();
942
- return split (mllvm);
943
- }
944
-
945
- std::vector<std::string> getLLVMOPTOptions () {
946
- if (mllvmopt == " " )
947
- return std::vector<std::string>();
948
- return split (mllvmopt);
949
- }
950
934
951
- std::vector<std::string> getLLVMLLCOptions () {
952
- if (mllvmllc == " " )
953
- return std::vector<std::string>();
954
- return split (mllvmllc);
935
+ return split (mllvm);
955
936
}
956
937
957
938
// Support for model tag
0 commit comments