We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, the AST is fully duplicated for every compilation step, when only minor changes are required (or even if no change is required at all).
We should prevent this by making every AST shared_ptr const (ex: std::shared_ptr<const Ast::ConstantValueExpression>) and cloning only changing parts.
std::shared_ptr<const Ast::ConstantValueExpression>
The end result should be that running constant propagation (or even sanitization) on a already processed AST should return the same AST.
The text was updated successfully, but these errors were encountered:
This is currently worked on, on the multipass branch.
The approach is to directly update the AST using multiple transformers and clone it only when required (importing)
Sorry, something went wrong.
No branches or pull requests
Currently, the AST is fully duplicated for every compilation step, when only minor changes are required (or even if no change is required at all).
We should prevent this by making every AST shared_ptr const (ex:
std::shared_ptr<const Ast::ConstantValueExpression>
) and cloning only changing parts.The end result should be that running constant propagation (or even sanitization) on a already processed AST should return the same AST.
The text was updated successfully, but these errors were encountered: