[compiler-rt] 3a06e9a - Conditionalise the addition of Aarch64 function Multi versioning support on aarch64 target (#143749)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 17 10:39:40 PDT 2025
Author: Garvit Gupta
Date: 2025-06-17T23:09:38+05:30
New Revision: 3a06e9a710b7cfdbf1c002acc46fa76617e8baf8
URL: https://github.com/llvm/llvm-project/commit/3a06e9a710b7cfdbf1c002acc46fa76617e8baf8
DIFF: https://github.com/llvm/llvm-project/commit/3a06e9a710b7cfdbf1c002acc46fa76617e8baf8.diff
LOG: Conditionalise the addition of Aarch64 function Multi versioning support on aarch64 target (#143749)
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.
Added:
Modified:
compiler-rt/lib/builtins/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt
index 075c4647abf69..5e832315f3666 100644
--- a/compiler-rt/lib/builtins/CMakeLists.txt
+++ b/compiler-rt/lib/builtins/CMakeLists.txt
@@ -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}" MATCHES "arm64|aarch64")
+ list(APPEND BUILTIN_DEFS ENABLE_BAREMETAL_AARCH64_FMV)
+ endif()
+ endforeach ()
endif()
append_list_if(COMPILER_RT_HAS_ASM_LSE HAS_ASM_LSE BUILTIN_DEFS)
More information about the llvm-commits
mailing list