Skip to content

Conditionalise the addition of Aarch64 function Multi versioning support on aarch64 target #143749

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 17, 2025

Conversation

quic-garvgupt
Copy link
Contributor

Currently, ENABLE_BAREMETAL_AARCH64_FMV is added to builtin defines for all baremetal targets though it is only needed for aarch64. This patch fixes this by adding it only for aarch64 target.

@@ -884,7 +884,11 @@ else ()
if(COMPILER_RT_DISABLE_AARCH64_FMV)
list(APPEND BUILTIN_DEFS DISABLE_AARCH64_FMV)
elseif(COMPILER_RT_BAREMETAL_BUILD)
list(APPEND BUILTIN_DEFS ENABLE_BAREMETAL_AARCH64_FMV)
foreach (arch ${BUILTIN_SUPPORTED_ARCH})
if("${arch}" STREQUAL "aarch64")
Copy link
Contributor

Choose a reason for hiding this comment

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

This will miss some target names which may also require ENABLE_BAREMETAL_AARCH64_FMV (e.g. arm64, arm64ec). I think we can use something like this instead:

Suggested change
if("${arch}" STREQUAL "aarch64")
if("${arch}" MATCHES "arm64|aarch64")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

support on aarch64 target

Currently, `ENABLE_BAREMETAL_AARCH64_FMV` is added to builtin defines
for all baremetal targets though it is only needed for aarch64. This
patch fixes this by adding it only for aarch64 target.

Change-Id: Ie469d01961e9d4992c1a430d7e9b089ae9549079
@quic-garvgupt quic-garvgupt merged commit 3a06e9a into llvm:main Jun 17, 2025
7 checks passed
@quic-garvgupt quic-garvgupt deleted the sme branch June 17, 2025 17:39
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.

3 participants