Skip to content
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

printer: add debug printer #6

Open
mmcloughlin opened this issue Dec 28, 2018 · 1 comment
Open

printer: add debug printer #6

mmcloughlin opened this issue Dec 28, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@mmcloughlin
Copy link
Owner

It would be great to support a "debug" print mode. This would display all metadata from the AST, including the results of passes. See PeachPy format_instructions for example.

@mmcloughlin mmcloughlin added the enhancement New feature or request label Dec 31, 2018
mmcloughlin added a commit that referenced this issue May 15, 2019
@mmcloughlin
Copy link
Owner Author

I have a scrappy initial version of this in the issue83 branch at the moment.

There is a snag the the obvious implementation. Currently all printers run after all other passes. Cleanup passes invalidate the CFG, so for safety we wipe out those fields to ensure they don't get accidentally used. This means the debug output is incomplete. I'm not immediately sure what the most elegant way to deal with this is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant