llvm-capstone/libc
Joseph Huber 158d7b8c23
[libc] Allow hermetic timing if the clock function is built (#71092)
Summary:
This patch fixes some code duplication on the GPU. The GPU build wanted
to enable timing for hermetic tests so it built some special case
handling into the test suite. Now that `clock` is supported on the
target we can simply link against the external interface. Because we
include `clock.h` for the CLOCKS_PER_SEC macro we remap the C entrypoint
to the internal one if it ends up called. This should allow hermetic
tests to run with timing if it is supported.
2023-11-02 15:03:17 -05:00
..
AOR_v20.02 [NFC][Py Reformat] Reformat python files in the rest of the dirs 2023-05-25 11:17:05 +02:00
benchmarks [libc] Add --sweep-min-size flag for benchmarks (#70302) 2023-10-26 11:06:15 +02:00
cmake/modules [libc] Allow hermetic timing if the clock function is built (#71092) 2023-11-02 15:03:17 -05:00
config [libc] Enable remaining string functions on the GPU (#68346) 2023-10-23 13:16:20 -04:00
docs [libc] Enable remaining string functions on the GPU (#68346) 2023-10-23 13:16:20 -04:00
examples Reland "[CMake] Bumps minimum version to 3.20.0. 2023-05-27 12:51:21 +02:00
fuzzing [libc] Add simple long double to printf float fuzz (#68449) 2023-10-16 13:32:34 -07:00
include [libc] Rework the 'fgets' implementation on the GPU (#69635) 2023-10-19 17:00:01 -04:00
lib [libc] Build two different static archives libc.a and libm.a under full build. 2023-01-31 21:45:08 +00:00
spec [libc] Correct 'memrchr' definition and re-enable on GPU (#67850) 2023-09-29 18:22:00 -05:00
src [libc] Add a few missing casts (#70850) 2023-10-31 12:37:09 -07:00
startup [libc] Fix accidental LIBC_NAMESPACE_clock_freq (#69620) 2023-10-19 19:39:02 +02:00
test [libc] Allow hermetic timing if the clock function is built (#71092) 2023-11-02 15:03:17 -05:00
utils [amdgpu][openmp] Treat missing TIMESTAMP_FREQUENCY as non-fatal (#70987) 2023-11-01 22:43:34 +00:00
.clang-tidy [libc][NFC] Clean up clang-tidy warnings for src/__support and src/math. 2023-03-15 18:47:31 -04:00
.gitignore
CMakeLists.txt [reland][libc][cmake] Tidy compiler includes (#66783) (#66878) 2023-09-20 11:21:46 +02:00
LICENSE.TXT
README.txt

LLVM libc
=========

This directory and its subdirectories contain source code for llvm-libc,
a retargetable implementation of the C standard library.

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