Skip to content

Refactor the global call-policy system, honor for implicit smart ptr conversions - #110

Merged
aaronj0 merged 2 commits into
compiler-research:mainfrom
aaronj0:smartptr-policy-flag
Oct 6, 2026
Merged

aaronj0 merged 2 commits into
compiler-research:mainfrom
aaronj0:smartptr-policy-flag

Conversation

@aaronj0

@aaronj0 aaronj0 commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@aaronj0
aaronj0 force-pushed the smartptr-policy-flag branch from 077df5c to 9f03fdd Compare September 23, 2026 18:01
@aaronj0
aaronj0 requested a review from guitargeek September 24, 2026 11:06
@aaronj0
aaronj0 force-pushed the smartptr-policy-flag branch 2 times, most recently from a8055ae to d897cc0 Compare September 30, 2026 15:54
aaronj0 added a commit to aaronj0/root that referenced this pull request Sep 30, 2026
…s [upstream]

Consolidate the scattered per-policy globals into one flag word with a
single accessor, so call-time policy checks read one place and new
policies do not add module-level state.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Sep 30, 2026
…[upstream]

SmartPtrConverter wrapped ordinary objects into the smart pointer
unconditionally; respect the global implicit smart-pointer conversion
policy like the other implicit-conversion sites.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Oct 1, 2026
…s [upstream]

Consolidate the scattered per-policy globals into one flag word with a
single accessor, so call-time policy checks read one place and new
policies do not add module-level state.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Oct 1, 2026
…[upstream]

SmartPtrConverter wrapped ordinary objects into the smart pointer
unconditionally; respect the global implicit smart-pointer conversion
policy like the other implicit-conversion sites.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Oct 1, 2026
…s [upstream]

Consolidate the scattered per-policy globals into one flag word with a
single accessor, so call-time policy checks read one place and new
policies do not add module-level state.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Oct 1, 2026
…[upstream]

SmartPtrConverter wrapped ordinary objects into the smart pointer
unconditionally; respect the global implicit smart-pointer conversion
policy like the other implicit-conversion sites.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Oct 1, 2026
…s [upstream]

Consolidate the scattered per-policy globals into one flag word with a
single accessor, so call-time policy checks read one place and new
policies do not add module-level state.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Oct 1, 2026
…[upstream]

SmartPtrConverter wrapped ordinary objects into the smart pointer
unconditionally; respect the global implicit smart-pointer conversion
policy like the other implicit-conversion sites.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Oct 2, 2026
…s [upstream]

Consolidate the scattered per-policy globals into one flag word with a
single accessor, so call-time policy checks read one place and new
policies do not add module-level state.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to aaronj0/root that referenced this pull request Oct 2, 2026
…[upstream]

SmartPtrConverter wrapped ordinary objects into the smart pointer
unconditionally; respect the global implicit smart-pointer conversion
policy like the other implicit-conversion sites.

Matches compiler-research/cppjit#110.
aaronj0 added a commit that referenced this pull request Oct 3, 2026
…s [upstream]

Consolidate the scattered per-policy globals into one flag word with a
single accessor, so call-time policy checks read one place and new
policies do not add module-level state.

Matches #110.
aaronj0 added a commit that referenced this pull request Oct 3, 2026
…[upstream]

SmartPtrConverter wrapped ordinary objects into the smart pointer
unconditionally; respect the global implicit smart-pointer conversion
policy like the other implicit-conversion sites.

Matches #110.
aaronj0 added a commit to root-project/root that referenced this pull request Oct 3, 2026
…s [upstream]

Consolidate the scattered per-policy globals into one flag word with a
single accessor, so call-time policy checks read one place and new
policies do not add module-level state.

Matches compiler-research/cppjit#110.
aaronj0 added a commit to root-project/root that referenced this pull request Oct 3, 2026
…[upstream]

SmartPtrConverter wrapped ordinary objects into the smart pointer
unconditionally; respect the global implicit smart-pointer conversion
policy like the other implicit-conversion sites.

Matches compiler-research/cppjit#110.
guitargeek
guitargeek previously approved these changes Oct 5, 2026

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

On the long term I think all heuristics are confusing though and we should get rid of them.

Consolidate the scattered per-policy globals into one flag word with a
single accessor, so call-time policy checks read one place and new
policies do not add module-level state.
SmartPtrConverter wrapped ordinary objects into the smart pointer
unconditionally; respect the global implicit smart-pointer conversion
policy like the other implicit-conversion sites.
@aaronj0
aaronj0 force-pushed the smartptr-policy-flag branch from d897cc0 to f0d4d90 Compare October 6, 2026 09:38
@aaronj0
aaronj0 merged commit c4e70c5 into compiler-research:main Oct 6, 2026
24 checks passed
@aaronj0
aaronj0 deleted the smartptr-policy-flag branch October 6, 2026 10:18
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