Skip to content

Add dump overloads to print debug info for SIL. #80079

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025

Conversation

rastogishubham
Copy link
Contributor

@rastogishubham rastogishubham commented Mar 18, 2025

This patch adds dump overload methods to SILInstruction, SILBasicBlock, SILFunction, and SILModule that prints the debug information as well.

This will make it easier for people working on swift debug info related features or bugs, especially when dealing with SILGen

@rastogishubham
Copy link
Contributor Author

@swift-ci please smoke test Linux

@rastogishubham
Copy link
Contributor Author

@swift-ci please smoke test macOS

@rastogishubham
Copy link
Contributor Author

@swift-ci please test Windows

@rastogishubham
Copy link
Contributor Author

@adrian-prantl I was not sure how to add a test for the dump method?

Copy link
Contributor

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's flip the arguments.

This patch adds dump overload methods to SILInstruction, SILBasicBlock,
SILFunction, and SILModule that prints the debug information as well.
@adrian-prantl
Copy link
Contributor

@swift-ci test

@rastogishubham rastogishubham merged commit 65a515b into swiftlang:main Mar 31, 2025
5 checks passed
@rastogishubham rastogishubham deleted the EnhanceDump branch March 31, 2025 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants