[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 13:59:07 PDT 2023


================
@@ -46,6 +46,24 @@ class PrintIRInstrumentation {
   void registerCallbacks(PassInstrumentationCallbacks &PIC);
 
 private:
+  enum class SuffixType {
+    Before,
+    After,
+    Invalidated,
+  };
+
+  struct PassRunDescriptor {
+    const Module *M;
+    SmallString<128> DumpIRFilename;
----------------
NuriAmari wrote:

Just made the copy

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


More information about the llvm-commits mailing list