mirror-llvm-project/compiler-rt
Benjamin Maxwell b37a607933
[compiler-rt] Don't provide __arm_sme_state for baremetal targets (#191434)
Previously, we required baremetal runtimes to implement an undocumented
`__aarch64_sme_accessible` hook to check if SME is available (as
checking CPU features may vary across targets).

This allowed us to provide a generic `__arm_sme_state` implementation
but caused some friction for toolchains that depend on compiler-rt.

This patch instead removes the implementation of `__arm_sme_state` for
baremetal. This makes it the responsibility of the runtime (e.g. libc)
to provide this function for baremetal targets.

The requirements of this function are documented in the AAPCS64:
https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst#811__arm_sme_state

All other SME ABI rountines are still provided by compiler-rt.
2026-04-20 10:00:18 +01:00
..
cmake [compiler-rt] clang-cl: skip MSVC external-header probe; -std=c++ for unit-test compiles (#191564) 2026-04-13 07:13:39 -04:00
docs
include [compiler-rt] Rework profile data handling for GPU targets (#187136) 2026-03-26 10:17:43 -05:00
lib [compiler-rt] Don't provide __arm_sme_state for baremetal targets (#191434) 2026-04-20 10:00:18 +01:00
test Revert "XFAIL symbolizer test for TySan" (#192770) 2026-04-18 06:36:46 +00:00
tools
unittests Rename config.host_os to config.target_os. 2025-07-17 11:12:29 -07:00
utils
www
.clang-tidy
.gitignore
CMakeLists.txt [compiler-rt] Enable minimal ubsan for GPU targets (#188289) 2026-04-07 06:53:51 -05:00
CREDITS.TXT
LICENSE.TXT
Maintainers.md
README.txt

Compiler-RT
================================

This directory and its subdirectories contain source code for the compiler
support routines.

Compiler-RT is open source software. You may freely distribute it under the
terms of the license agreement found in LICENSE.txt.

================================