Skip to content

Conversation

@yuyichao
Copy link
Contributor

We already need to manually create a C compatible function pointer and heap allocated data, might as well do so directly without another indirection through std::function.

Noticed the callback during #59946. It does not need to be an non static extern "C" function and could even be a lambda.

We already need to manually create a C compatible function pointer and heap allocated data, might as well do so directly without another indirection through std::function.
@LilithHafner
Copy link
Member

@gbaraldi, could you make sure the right person(s) review this?

@giordano giordano added the compiler:codegen Generation of LLVM IR and native code label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:codegen Generation of LLVM IR and native code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants