[llvm] Add option to dump IR to files instead of stderr (PR #66412)
    Sebastian Neubauer via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Sep 26 02:39:36 PDT 2023
    
    
  
================
@@ -46,6 +46,16 @@ class PrintIRInstrumentation {
   void registerCallbacks(PassInstrumentationCallbacks &PIC);
 
 private:
+  enum SuffixType {
+    before,
+    after,
+    invalidated,
+  };
+
+  using PrintModuleDesc = std::tuple<const Module *, std::string /* IRName */,
+                                     StringRef /* StoredPassID */,
+                                     SmallString<128> /* DumpFilename */>;
----------------
Flakebi wrote:
With this many elements, the tuple should probably be a struct.
https://github.com/llvm/llvm-project/pull/66412
    
    
More information about the llvm-commits
mailing list