Skip to content
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

Document internal function pointer stability guarantees #15721

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

cameel
Copy link
Member

@cameel cameel commented Jan 15, 2025

Resolves #15716.

As discussed on today's call, I'm updating docs regarding internal function pointers.

I decided to add a whole subsection regarding internal pointer values since it got a bit too long to be just a warning. I split the section about function types into subsections and gave this new bit a subsection of its own. I also added an entry in "Security considerations", because this is something users must be aware of.

Specifically regarding #15716, I added notes that the compiler is free to remove internal functions that are not referenced explicitly, by name. Both in function type docs and in IR breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The optimizer incorrectly removes assembly block that initializes function pointer
2 participants