[compiler-rt] Revert "[compiler-rt][cmake] Test COMPILER_RT_HAS_AARCH64_SME with ar… (PR #141280)
Usama Hameed via llvm-commits
llvm-commits at lists.llvm.org
Fri May 23 11:56:54 PDT 2025
https://github.com/usama54321 created https://github.com/llvm/llvm-project/pull/141280
…m64 (#141115)"
This reverts commit a2ce5647200ad40ae356affd44db7d054de444d2.
>From 8e0f6116376698e0cf1f4c7f8c5a113cca1c569b Mon Sep 17 00:00:00 2001
From: usama <u_hameed at apple.com>
Date: Fri, 23 May 2025 11:55:14 -0700
Subject: [PATCH] Revert "[compiler-rt][cmake] Test COMPILER_RT_HAS_AARCH64_SME
with arm64 (#141115)"
This reverts commit a2ce5647200ad40ae356affd44db7d054de444d2.
---
compiler-rt/cmake/Modules/BuiltinTests.cmake | 13 -------------
compiler-rt/cmake/builtin-config-ix.cmake | 4 ++--
2 files changed, 2 insertions(+), 15 deletions(-)
diff --git a/compiler-rt/cmake/Modules/BuiltinTests.cmake b/compiler-rt/cmake/Modules/BuiltinTests.cmake
index 093a1c758e278..63c5f47cb5010 100644
--- a/compiler-rt/cmake/Modules/BuiltinTests.cmake
+++ b/compiler-rt/cmake/Modules/BuiltinTests.cmake
@@ -134,16 +134,3 @@ function(builtin_check_c_compiler_source output source)
endif()
endif()
endfunction()
-
-function(builtin_check_c_compiler_source_with_flags output source flags)
- if(NOT DEFINED ${output})
- message(STATUS "Performing Test ${output}")
- try_compile_only(result SOURCE ${source} FLAGS ${flags})
- set(${output} ${result} CACHE INTERNAL "Compiler supports ${output} with ${flags}")
- if(${result})
- message(STATUS "Performing Test ${output} - Success")
- else()
- message(STATUS "Performing Test ${output} - Failed")
- endif()
- endif()
-endfunction()
diff --git a/compiler-rt/cmake/builtin-config-ix.cmake b/compiler-rt/cmake/builtin-config-ix.cmake
index c0684ebc519e3..8c9c84ad64bc0 100644
--- a/compiler-rt/cmake/builtin-config-ix.cmake
+++ b/compiler-rt/cmake/builtin-config-ix.cmake
@@ -41,14 +41,14 @@ asm(\".arch armv8-a+lse\");
asm(\"cas w0, w1, [x2]\");
")
-builtin_check_c_compiler_source_with_flags(COMPILER_RT_HAS_AARCH64_SME
+builtin_check_c_compiler_source(COMPILER_RT_HAS_AARCH64_SME
"
void foo(void) __arm_streaming_compatible {
asm(\".arch armv9-a+sme2\\n\"
\"smstart\\n\"
\"ldr zt0, [sp]\");
}
-" "-target aarch64-linux-gnu")
+")
check_include_files("sys/auxv.h" COMPILER_RT_HAS_AUXV)
More information about the llvm-commits
mailing list