[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
================
@@ -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:
`std::string` should be good enough unless you have performance data that this is better
https://github.com/llvm/llvm-project/pull/66412
More information about the llvm-commits
mailing list