Skip to content

Enable building 16 bit floating point builtins in apple platforms if supported by the compiler #84192

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
Jun 21, 2024

Conversation

gbaraldi
Copy link
Contributor

@gbaraldi gbaraldi commented Mar 6, 2024

Currently we will not build float16/bfloat16 builtins on apple platforms, LLVM will include calls to those builtins and fail to link.

I copied the test code we perform for non apple platforms because oddly we branch on it being apple for building builtins

Copy link
Contributor

@TNorthover TNorthover left a comment

Choose a reason for hiding this comment

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

I think this looks sensible. It's generally pretty harmless to have these functions available even if their uses are a bit obscure and I can't think of a way this might break.

@gbaraldi
Copy link
Contributor Author

gbaraldi commented Mar 9, 2024

The use case here was that if someone was using a recent clang to build Julia, it would try to use the new types and blow up.
I don’t have commit rights so could you commit it for me :)

@gbaraldi
Copy link
Contributor Author

bump!

@wsmoses wsmoses merged commit e9af6ee into llvm:main Jun 21, 2024
AlexisPerry pushed a commit to llvm-project-tlp/llvm-project that referenced this pull request Jul 9, 2024
…supported by the compiler (llvm#84192)

Currently we will not build float16/bfloat16 builtins on apple
platforms, LLVM will include calls to those builtins and fail to link.

I copied the test code we perform for non apple platforms because oddly
we branch on it being apple for building builtins
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.

4 participants