Skip to content

[CIR] Base-to-derived and derived-to-base casts on pointers to member functions #1424

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 1 commit into from
Mar 1, 2025

Conversation

Lancern
Copy link
Member

@Lancern Lancern commented Feb 28, 2025

This PR adds CIRGen and LLVM lowering support for base-to-derived and derived-to-base cast operations on pointers to member functions.

This PR includes a new operation cir.update_member to help the LLVM lowering procedure of such cast operations.

Resolve #973 .

@Lancern Lancern linked an issue Feb 28, 2025 that may be closed by this pull request
Copy link
Member

@bcardosolopes bcardosolopes left a comment

Choose a reason for hiding this comment

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

LGTM after nits

… functions

This patch adds CIRGen and LLVM lowering support for base-to-derived and
derived-to-base cast operations on pointers to member functions.

This patch includes a new operation `cir.update_member` to help the LLVM
lowering procedure of such cast operations.
@Lancern Lancern force-pushed the memfunc-base-derived-cast branch from 84122a4 to fd972ed Compare March 1, 2025 03:37
@Lancern Lancern merged commit 2ab0704 into llvm:main Mar 1, 2025
6 checks passed
@Lancern Lancern deleted the memfunc-base-derived-cast branch March 1, 2025 07:25
lanza pushed a commit that referenced this pull request Mar 18, 2025
… functions (#1424)

This PR adds CIRGen and LLVM lowering support for base-to-derived and
derived-to-base cast operations on pointers to member functions.

This PR includes a new operation `cir.update_member` to help the LLVM
lowering procedure of such cast operations.

Resolve #973 .
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.

Add support for member pointer casting
2 participants