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 a bit of logging to ConstantEvaluator. #2487

Closed
wants to merge 7 commits into from

Conversation

jimblandy
Copy link
Member

No description provided.

teoxoy and others added 7 commits September 15, 2023 09:33
[wgsl-in] support const-expressions in attributes

allow `Splat` as an evaluated const-expression type
With the addition of the constant evaluator to the `proc` module, it
is now concerned with constructing expressions. Any code that
constructs expressions will generally also need to deal with `Emit`
statements, which are handled by the `Emitter` type. However,
`Emitter` is private to the `front` module. This patch moves it to
`proc` and makes it accessible to both the constant evaluator and the
front ends.
Instead of letting the user supply an arbitrary closure for appending
expressions, instead give `ConstantEvaluator` an `Option` that holds
an `Emitter` to interrupt, and a `block` to add any new `Emit`
statements to.
@jimblandy
Copy link
Member Author

wrong base branch

@jimblandy jimblandy closed this Sep 18, 2023
@jimblandy jimblandy deleted the ConstantEvaluator-logging branch September 20, 2023 18:17
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