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

Add information to SourceInfo whether it was created from a system file. #4779

Open
fruffy opened this issue Jul 3, 2024 · 0 comments
Open
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser)

Comments

@fruffy
Copy link
Collaborator

fruffy commented Jul 3, 2024

This way we can distinguish whether a particular IR object is a system object or a program object. This can be useful in optimizations (e.g., do not remove system declarations) and debugging (printing a program etc).

Ideally, this should directly be done in the parser. With the compile options the parser should already be able to distinguish system files from the program itself.

Originally posted by @fruffy in #4752 (comment)

@fruffy fruffy added the core Topics concerning the core segments of the compiler (frontend, midend, parser) label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Topics concerning the core segments of the compiler (frontend, midend, parser)
Projects
None yet
Development

No branches or pull requests

1 participant