Skip to content

[metacling] Use InterOps JitCall for default object construction #18546

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

Merged
merged 4 commits into from
Jun 28, 2025

Conversation

aaronj0
Copy link
Contributor

@aaronj0 aaronj0 commented Apr 29, 2025

This PR drops the constructor wrapper generation for default ctors in CallFunc (TClingCallFunc::ExecDefaultConstructor ) and now uses CppInterOps JitCall facility. This move improves the generated wrappers, provides a safe interface for construction, gives us better diagnostics and is a well-tested interface (See Cpp::Construct) that can eventually be upstreamed to LLVM

@aaronj0 aaronj0 requested review from dpiparo and pcanal as code owners April 29, 2025 13:46
@aaronj0 aaronj0 removed request for pcanal and dpiparo April 29, 2025 13:47
@pcanal pcanal marked this pull request as draft April 29, 2025 13:57
@aaronj0 aaronj0 self-assigned this Apr 29, 2025
Copy link

github-actions bot commented Apr 29, 2025

Test Results

    20 files      20 suites   3d 5h 10m 27s ⏱️
 3 066 tests  3 066 ✅ 0 💤 0 ❌
59 724 runs  59 724 ✅ 0 💤 0 ❌

Results for commit 195a654.

♻️ This comment has been updated with latest results.

@aaronj0 aaronj0 force-pushed the tcling-jitcall branch 3 times, most recently from 1234a90 to 0ffa579 Compare June 6, 2025 15:21
@aaronj0 aaronj0 force-pushed the tcling-jitcall branch 8 times, most recently from 80b6267 to a6104c6 Compare June 22, 2025 11:45
@vepadulano
Copy link
Member

@smuzaffar we believe these changes would benefit from a CMSSW CI run, could you help us with that?

@smuzaffar
Copy link
Contributor

@vepadulano , cmssw ci tests are running via cms-sw#225

@guitargeek
Copy link
Contributor

Hi @smuzaffar @vepadulano, Aaron and me can't see the build logs behind the CMS login. Can one of you CMS guys please check the logs and see if the failures are related, copy-pasting relevant error messages if there are any? Thanks!

@smuzaffar
Copy link
Contributor

cmssw CI tests look good. The unit tests failure are not due to this change. cms-sw/cmssw#48393 should fix those tests (#19096 : Root's removal of deprecated _TDirectory_getattr pythonization)

@aaronj0 aaronj0 marked this pull request as ready for review June 25, 2025 14:20
@aaronj0 aaronj0 changed the title [TEST PR] CallFunc -> JitCall migration [metacling] Use InterOps JitCall for default object construction Jun 25, 2025
@aaronj0 aaronj0 requested a review from pcanal June 25, 2025 14:25
@vgvassilev
Copy link
Member

@smuzaffar can we give another try of this pr in cmssw?

@smuzaffar
Copy link
Contributor

@smuzaffar can we give another try of this pr in cmssw?

restarted cmssw ci tests

aaronj0 added 3 commits June 28, 2025 09:37
Adds various upstreamed developments:

compiler-research/CppInterOp#650 streamlines the logic in Cpp::Construct to be more generic.
compiler-research/CppInterOp#643 by @hageboeck making CppInterOp work with new gtest target names
Fixed wrapper name conflicts with ROOT that also uses `__cf`, allowing us to integrate JitCall incrementally and co-exist with CallFunc
Fixes related to the cppyy forks
Unrelated work on Emscripten and WebAssembly
@aaronj0 aaronj0 requested a review from bellenot as a code owner June 28, 2025 07:39
Copy link
Member

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

@aaronj0 aaronj0 merged commit 421ce74 into root-project:master Jun 28, 2025
45 of 47 checks passed
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.

5 participants