-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Allow writing mutators with lambdas #8877
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
Merged
Merged
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f183cdf
Inherit mutate overloads from IRMutator in IRGraphMutator
alexreinking 8eeb9cc
Add lambda-based IR mutators
alexreinking 279480a
Use X macros to reduce boilerplate in visitors/mutators
alexreinking e3c2068
Reduce indirection in LambdaMutator
alexreinking 79bfbf0
fixup: class -> struct
alexreinking 5b7dbe9
Rewrite substitute_calls using LambdaMutator
alexreinking 9394152
Rewrite expand_expr in StorageFlattening.cpp using LambdaMutator
alexreinking 978c1f9
Rewrite remove_likelies/promises with LambdaMutator
alexreinking 232230d
Rewrite FreeAfterLastUse with GenericLambdaMutator
alexreinking 75c93da
Tighten up expand_expr a bit more
alexreinking 40fb86e
Add mutate_with and mutate_with_generic helpers
alexreinking 2c01e5a
Use mutate_with(_generic)
alexreinking 62fa4d3
Remove X macro after discussion
alexreinking f5ed4dc
fixup! Remove X macro after discussion
alexreinking 2624a62
Back out the "generic" stuff
alexreinking a2907a6
No need for CRTP
alexreinking 3376103
Add lambda-based generic mutator
alexreinking 4479308
Add lambda-based visitors.
alexreinking 1fc1b74
Flip self and IR arguments
alexreinking be2cb4d
Convert CountVars in is_small_enough_to_substitute to lambda
alexreinking File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.