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

Devirtualize the protected compile() methods in Codegen_C #7341

Merged
merged 1 commit into from
Feb 11, 2023

Conversation

steven-johnson
Copy link
Contributor

With the addition of preprocess_function_body(), neither of these need to be virtual, and devirtualizing them avoid hidden overloaded virtual function warnings in subclasses that don't override them.

(I'll follow this up with a PR to make appropriate changes in Codegen_Xtensa)

With the addition of `preprocess_function_body()`, neither of these need to be virtual, and devirtualizing them avoid `hidden overloaded virtual function` warnings in subclasses that don't override them
@steven-johnson steven-johnson requested a review from vksnk February 11, 2023 00:04
@steven-johnson steven-johnson merged commit 22aed20 into main Feb 11, 2023
@steven-johnson steven-johnson deleted the srj/compile-devirtualize branch February 11, 2023 02:42
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
With the addition of `preprocess_function_body()`, neither of these need to be virtual, and devirtualizing them avoid `hidden overloaded virtual function` warnings in subclasses that don't override them
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