llvm-project/libc/cmake/modules
Guillaume Chatelet b2a9ea4420 [libc] Apply no-builtin everywhere, remove unnecessary flags
Note, this is a re-submission of D125894 with `features = ["-header_modules"]`
added to the main BUILD.bazel file.

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/D126773
2022-06-01 13:34:36 +00:00
..
cpu_features [libc][NFC] Use a end of list marker for cpu feature detection. 2021-01-27 01:24:15 -08:00
LLVMLibCArchitectures.cmake [libc] Normalize LIBC_TARGET_MACHINE 2021-05-05 15:52:42 +00:00
LLVMLibCCheckCpuFeatures.cmake [libc] Simplifies multi implementations 2021-05-12 07:24:53 +00:00
LLVMLibCCheckMPFR.cmake [libc] Enable MPFR library for math functions test 2021-07-27 20:40:04 +00:00
LLVMLibCFlagRules.cmake [libc] Implement FLAGS option for generating all combinations for targets. 2022-06-01 00:54:07 -04:00
LLVMLibCHeaderRules.cmake [libc] Introduce a full build mode CMake option. 2021-03-12 13:28:40 -08:00
LLVMLibCLibraryRules.cmake [libc] Implement FLAGS option for generating all combinations for targets. 2022-06-01 00:54:07 -04:00
LLVMLibCObjectRules.cmake [libc] Apply no-builtin everywhere, remove unnecessary flags 2022-06-01 13:34:36 +00:00
LLVMLibCRules.cmake [libc] Implement FLAGS option for generating all combinations for targets. 2022-06-01 00:54:07 -04:00
LLVMLibCTargetNameUtils.cmake [libc] Add fully-qualified target names. 2020-04-10 18:01:52 -07:00
LLVMLibCTestRules.cmake [libc] Implement FLAGS option for generating all combinations for targets. 2022-06-01 00:54:07 -04:00