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

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 28 09:36:38 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();
----------------
aeubanks wrote:

I'd prefer moving this to StandardInstrumentations.cpp if it's the only file that uses it right now, unless you have plans to also use this for the codegen pipeline

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


More information about the llvm-commits mailing list