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

[AArch64][compiler-rt] Disable SME ABI routines if function multiversioning is not supported #94973

Merged
merged 4 commits into from
Jun 12, 2024

Conversation

kmclaughlin-arm
Copy link
Contributor

This prevents build failures when building with DISABLE_AARCH64_FMV,
see #92921.

@@ -4,6 +4,8 @@

#include "../cpu_model/aarch64.h"

#if !defined(DISABLE_AARCH64_FMV)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you can just choose not to implement these specific routines, but still compile the rest. If the SME ABI routines require this feature, then we better make that dependency clear in cmake.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a warning to CMakeLists where we enable the SME ABI routines, though I can change this to an error if that would be more appropriate?

Copy link
Contributor

@yozhu yozhu left a comment

Choose a reason for hiding this comment

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

LGTM

@kmclaughlin-arm kmclaughlin-arm changed the title [AArch64][compiler-rt] Guard sme-abi-vg.c with !defined(DISABLE_AARCH64_FMV) [AArch64][compiler-rt] Disable SME ABI routines if function multiversioning is not supported Jun 11, 2024
@kmclaughlin-arm kmclaughlin-arm merged commit 0387254 into llvm:main Jun 12, 2024
6 checks passed
@kmclaughlin-arm kmclaughlin-arm deleted the sme-abi-disable-fmv branch June 14, 2024 12:55
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