Skip to content

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

Merged
kmclaughlin-arm merged 4 commits intollvm:mainfrom
kmclaughlin-arm:sme-abi-disable-fmv
Jun 12, 2024
Merged

[AArch64][compiler-rt] Disable SME ABI routines if function multiversioning is not supported#94973
kmclaughlin-arm merged 4 commits intollvm:mainfrom
kmclaughlin-arm:sme-abi-disable-fmv

Conversation

@kmclaughlin-arm
Copy link
Copy Markdown
Contributor

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


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

#if !defined(DISABLE_AARCH64_FMV)
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.

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
Copy Markdown
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
Copy Markdown
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
@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