[llvm] Add option to dump IR to files instead of stderr (PR #66412)

Nuri Amari via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 28 10:51:23 PDT 2023


================
@@ -55,6 +55,10 @@ bool forcePrintModuleIR();
 bool isPassInPrintList(StringRef PassName);
 bool isFilterPassesEmpty();
 
+// Returns a non-empty string if printing before/after passes is to be
+// dumped into files in the returned directory instead of written to stderr.
+StringRef irDumpDirectory();
----------------
NuriAmari wrote:

I might, but I will just move in pack in a follow up patch if that's the case.

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


More information about the llvm-commits mailing list