Add Backend.post_process_function_def hook#1851
Closed
aditvenk wants to merge 1 commit intoaditvenk/stack/20from
Closed
Add Backend.post_process_function_def hook#1851aditvenk wants to merge 1 commit intoaditvenk/stack/20from
aditvenk wants to merge 1 commit intoaditvenk/stack/20from
Conversation
50c2a72 to
d56d963
Compare
8902395 to
b8a13f6
Compare
This was referenced Mar 27, 2026
d56d963 to
42d8d91
Compare
42d8d91 to
12ea518
Compare
484bc44 to
563343a
Compare
8afa526 to
33125a8
Compare
33125a8 to
30417e7
Compare
30417e7 to
4e000cb
Compare
jansel
approved these changes
Mar 30, 2026
4e000cb to
8676ca5
Compare
Add a post-processing hook called at the end of codegen_function_def so backends can transform the function AST before it is returned. The default implementation is identity. stack-info: PR: #1851, branch: aditvenk/stack/17
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stacked PRs:
Add Backend.post_process_function_def hook
Add a post-processing hook called at the end of codegen_function_def
so backends can transform the function AST before it is returned.
The default implementation is identity.