[llvm] Add flags to dump IR to a file before and after LLVM passes (PR #65179)

Nuri Amari via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 1 12:17:45 PDT 2023


================
@@ -33,6 +33,31 @@ static cl::opt<bool> PrintAfterAll("print-after-all",
                                    llvm::cl::desc("Print IR after each pass"),
                                    cl::init(false), cl::Hidden);
 
+static cl::list<std::string>
----------------
NuriAmari wrote:

There is a lot duplication between the print code and the dump code, though there are differences, it might be nice to try to combine them a little more.

https://github.com/llvm/llvm-project/pull/65179


More information about the llvm-commits mailing list