Add dump overloads to print debug info for SIL.

This patch adds dump overload methods to SILInstruction, SILBasicBlock,
SILFunction, and SILModule that prints the debug information as well.
This commit is contained in:
Shubham Sandeep Rastogi
2025-03-17 18:22:45 -07:00
parent 7f1792a12f
commit b016c742c6
5 changed files with 40 additions and 1 deletions

View File

@@ -975,6 +975,9 @@ public:
/// Pretty-print the module.
void dump(bool Verbose = false) const;
/// Pretty-print the module with DebugInfo.
void dump(bool Verbose, bool DebugInfo) const;
/// Pretty-print the module to a file.
/// Useful for dumping the module when running in a debugger.
/// Warning: no error handling is done. Fails with an assert if the file