[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 10:37:32 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;
----------------
aeubanks wrote:
I'll admit structured binding looks a lot nicer, this is fine. I wouldn't worry too much about copies in this code though, it shouldn't be performance critical.
https://github.com/llvm/llvm-project/pull/66412
More information about the llvm-commits
mailing list