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

Flags / VSCode for outputting phase results/inputs #573

Open
marzipankaiser opened this issue Sep 4, 2024 · 1 comment
Open

Flags / VSCode for outputting phase results/inputs #573

marzipankaiser opened this issue Sep 4, 2024 · 1 comment
Labels
feature New feature or request quality-of-life

Comments

@marzipankaiser
Copy link
Contributor

In continuation of #303, I also often find myself wanting to know the intermediate results between the phases (core pre/post Optimizer, PolymorphismBoxing etc).
It would be really nice for debugging if this was possible without needing to change the compiler.

Example usage:

$ effekt --show-IR-after Optimizer ./test.effekt
... outputs IR
$ effekt --show-IR-before Optimizer ./test.effekt
... outputs IR

Maybe we can somehow achieve this with the existing phase abstraction?

@marzipankaiser marzipankaiser added feature New feature or request quality-of-life labels Sep 4, 2024
@marzipankaiser
Copy link
Contributor Author

Alternatively (even better): Output them into files, so they are from the same compilation run and can be diff'd.

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

No branches or pull requests

1 participant