ExecutionEngine::InstallLazyFunctionCreator takes a function pointer, which prevents passing lambdas that capture state or member functions. With this commit, InstallLazyFunctionCreator takes a std::function parameter which allows lambdas and member functions to be used.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good to me. Thanks Pierre.
Do you have commit access? Otherwise I can commit this for you.
Comment Actions
Thanks for the review Lang. I don't have commit access yet, it would be great if you could commit the changes for me.
Comment Actions
Hi Pierre,
My apologies - I just realized this doesn't have a unit-test. Would you be able to write one up?
If not, I'll try to get to it tomorrow, but I'm a bit swamped at the moment.
Cheers,
Lang.
Comment Actions
Hi Lang,
My bad, here is a couple unit tests (for both the old function pointer use case and the new lambda / std::function one).
Cheers,
Pierre-Andre
Comment Actions
Thanks Lang! I have noticed that this commit was reverted due to tests failing on ARM. I'll create another review with an updated patch.