llvm/libc/cmake/modules
Guillaume Chatelet 94d6dd9057 [libc] Apply no-builtin everywhere, remove unnecessary flags
Some functions like `stpncpy` are implemented in terms of `memset` but are not
currently using `-fno-builtin-memset`. This is somewhat hidden by the fact that
we use `-ffreestanding` globally and that `-ffreestanding` implies
`-fno-builtin` for Clang.

This patch also removes `-mllvm -combiner-global-alias-analysis` that is Clang
specific and that does not bring substantial gains on modern processors.

Also we keep `-mllvm --tail-merge-threshold=0` for aarch64 in CMakeLists.txt
but we omit it in the Bazel config. This is because Bazel consumes the source
files directly and so it can use PGO to take optimal decisions locally.

Differential Revision: https://reviews.llvm.org/D125894
2022-05-19 09:08:42 +00:00
..
cpu_features
LLVMLibCArchitectures.cmake
LLVMLibCCheckCpuFeatures.cmake
LLVMLibCCheckMPFR.cmake
LLVMLibCHeaderRules.cmake
LLVMLibCLibraryRules.cmake [libc] change ASAN condition to generator expression 2022-02-15 16:12:12 -08:00
LLVMLibCObjectRules.cmake [libc] Apply no-builtin everywhere, remove unnecessary flags 2022-05-19 09:08:42 +00:00
LLVMLibCRules.cmake
LLVMLibCTargetNameUtils.cmake
LLVMLibCTestRules.cmake [libc][Obvious] Fix cmake usage of list PREPEND (unavailable pre-3.15). 2022-05-08 13:58:05 -04:00