Skip to content

Add a hook to Codegen_C::compile()#7335

Merged
steven-johnson merged 1 commit intomainfrom
srj/codegen-c-hooks
Feb 10, 2023
Merged

Add a hook to Codegen_C::compile()#7335
steven-johnson merged 1 commit intomainfrom
srj/codegen-c-hooks

Conversation

@steven-johnson
Copy link
Copy Markdown
Contributor

At least one subclass of Codegen_C currently has to replicate ~all of the compile(LoweredFunc) method, with the result that it has often gone stale (and still is stale) wrt changes in the base; this adds an optional method to allow some modifications to the function body just before it is printed, to avoid redundant code.

At least one subclass of Codegen_C currently has to replicate ~all of the compile(LoweredFunc) method, with the result that it has often gone stale (and still is stale) wrt changes in the base; this adds an optional method to allow some modifications to the function body just before it is printed, to avoid redundant code.
@steven-johnson steven-johnson merged commit a6c5be7 into main Feb 10, 2023
@steven-johnson steven-johnson deleted the srj/codegen-c-hooks branch February 10, 2023 21:28
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
At least one subclass of Codegen_C currently has to replicate ~all of the compile(LoweredFunc) method, with the result that it has often gone stale (and still is stale) wrt changes in the base; this adds an optional method to allow some modifications to the function body just before it is printed, to avoid redundant code.
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