-
Notifications
You must be signed in to change notification settings - Fork 347
Cleanup HeapReporter command line options #2783
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
Conversation
Signed-off-by: philass <[email protected]>
src/Compiler/HeapReporter.cpp
Outdated
reportBegin("onnx-mlir heap report" | ||
"\n--report-heap-before='" + | ||
beforePasses.str() + "'\n--report-heap-after='" + | ||
afterPasses.str() + "'"); | ||
beforePassesStr + "'\n--report-heap-after=" + afterPassesStr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use llvm::join() from StringExtras.h?
llvm::join(beforePasses, ",") + "'\n--report-heap-after=" + llvm::join(afterPasses, ",")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I knew there must be some handy function for this lying around. Thanks for the pointer
Signed-off-by: philass <[email protected]>
27996f4
to
582c3b8
Compare
Jenkins Linux ppc64le Build #13632 [push] Cleanup HeapReporter com... started at 22:17 |
Jenkins Linux s390x Build #14637 [push] Cleanup HeapReporter com... started at 22:07 |
Jenkins Linux amd64 Build #14607 [push] Cleanup HeapReporter com... started at 21:07 |
Jenkins Linux amd64 Build #14607 [push] Cleanup HeapReporter com... passed after 1 hr 16 min |
Jenkins Linux s390x Build #14637 [push] Cleanup HeapReporter com... passed after 1 hr 32 min |
Jenkins Linux ppc64le Build #13632 [push] Cleanup HeapReporter com... passed after 1 hr 55 min |
This PR uses
llvm::cl::list
to handle the parsing of a list of passes past as command line options.This is consistent with the
onnx-const-prop-disable-pattern
andfunctions-to-decompose
implementations for list command line parsing.