@@ -72,8 +72,8 @@ bool disableRecomposeOption; // onnx-mlir only
72
72
bool enableSimdDataLayout; // onnx-mlir only
73
73
bool verifyInputTensors; // onnx-mlir only
74
74
bool allowSorting; // onnx-mlir only
75
- std::string reportHeapBefore; // onnx-mlir only
76
- std::string reportHeapAfter; // onnx-mlir only
75
+ std::vector<std:: string> reportHeapBefore; // onnx-mlir only
76
+ std::vector<std:: string> reportHeapAfter; // onnx-mlir only
77
77
std::string modelTag; // onnx-mlir only
78
78
bool enableConvOptPass; // onnx-mlir only
79
79
bool disableConstantProp; // onnx-mlir only
@@ -470,20 +470,19 @@ static llvm::cl::opt<bool, true> allowSortingOpt("allowSorting",
470
470
llvm::cl::location(allowSorting), llvm::cl::init(true ),
471
471
llvm::cl::cat(OnnxMlirOptions));
472
472
473
- static llvm::cl::opt <std::string, true > reportHeapBeforeOpt (
474
- " report-heap-before" ,
475
- llvm::cl::desc (" Comma separated list of names of passes.\n "
476
- " Before each heap statistics are dumped to "
477
- " <output-files-base-path>.heap.log" ),
478
- llvm::cl::location(reportHeapBefore), llvm::cl::init( " " ),
479
- llvm::cl::cat(OnnxMlirOptions));
480
-
481
- static llvm::cl::opt<std::string, true > reportHeapAfterOpt ( " report-heap-after" ,
482
- llvm::cl::desc (" Comma separated list of names of passes.\n "
473
+ static llvm::cl::list <std::string, std::vector<std::string>>
474
+ reportHeapBeforeOpt ( " report-heap-before" ,
475
+ llvm::cl::desc (" A list of names of passes.\n "
476
+ " Before each heap statistics are dumped to "
477
+ " <output-files-base-path>.heap.log" ),
478
+ llvm::cl::location(reportHeapBefore), llvm::cl::cat(OnnxMlirOptions));
479
+
480
+ static llvm::cl::list<std::string, std::vector<std::string>> reportHeapAfterOpt (
481
+ " report-heap-after" ,
482
+ llvm::cl::desc (" A list of names of passes.\n "
483
483
" After each heap statistics are dumped to "
484
484
" <output-files-base-path>.heap.log" ),
485
- llvm::cl::location(reportHeapAfter), llvm::cl::init(" " ),
486
- llvm::cl::cat(OnnxMlirOptions));
485
+ llvm::cl::location(reportHeapAfter), llvm::cl::cat(OnnxMlirOptions));
487
486
488
487
static llvm::cl::opt<std::string, true > modelTagOpt (" tag" ,
489
488
llvm::cl::desc (
0 commit comments