[libc] Make the errno macro resolve to the thread local variable directly.With modern architectures having a thread pointer and language supportingthread locals, there is no reason to use a functi
[libc] Make the errno macro resolve to the thread local variable directly.With modern architectures having a thread pointer and language supportingthread locals, there is no reason to use a function intermediary to accessthe thread local errno value.The entrypoint corresponding to errno has been replaced with an objectlibrary as there is no formal entrypoint for errno anymore.Reviewed By: jeffbailey, michaelrjDifferential Revision: https://reviews.llvm.org/D120920
show more ...
[libc][NFC] Add dummy errno target to satisfy mixed mode builds.In mixed mode builds, we should not be including errno as part ofLLVM libc - errno from another library (or the system library) shou
[libc][NFC] Add dummy errno target to satisfy mixed mode builds.In mixed mode builds, we should not be including errno as part ofLLVM libc - errno from another library (or the system library) should beused. But, other entrypoints which use errno list LLVM libc's errno as adep ta satisfy the full build mode. So, we add a dummy errnoimplementation with empty files to make both mixed mode and full buildmode happy.
[libc][NFC] add "LlvmLibc" as a prefix to all test namesSummary:Having a consistent prefix makes selecting all of the llvm libc testseasier on any platform that is also using the gtest framework.
[libc][NFC] add "LlvmLibc" as a prefix to all test namesSummary:Having a consistent prefix makes selecting all of the llvm libc testseasier on any platform that is also using the gtest framework.This also modifies the TEST and TEST_F macros to enforce this changemoving forward.Reviewers: sivachandraSubscribers:
[libc] Add fully-qualified target names.Only targets setup by the special LLVM libc rules now have fullyqualified names. The naming style is similar to fully qualified names inPython.Reviewers:
[libc] Add fully-qualified target names.Only targets setup by the special LLVM libc rules now have fullyqualified names. The naming style is similar to fully qualified names inPython.Reviewers: abrachet, PaulkaToast, phosekDifferential Revision: https://reviews.llvm.org/D77340
[libc][NFC] Make all top of file comments consistent.Summary:Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.And did the same
[libc][NFC] Make all top of file comments consistent.Summary:Made all header files consistent based of this documentation: https://llvm.org/docs/CodingStandards.html#file-headers.And did the same for all source files top of file comments.Reviewers: sivachandra, abrachetReviewed By: sivachandra, abrachetSubscribers: MaskRay, tschuett, libc-commitsTags: #libc-projectDifferential Revision: https://reviews.llvm.org/D77533
[libc] Replace the use of gtest with a new light weight unittest framework.Header files included wrongly using <...> are now included using theinternal path names as the new unittest framework all
[libc] Replace the use of gtest with a new light weight unittest framework.Header files included wrongly using <...> are now included using theinternal path names as the new unittest framework allows us to do so.Reviewers: phosek, abrachetDifferential Revision: https://reviews.llvm.org/D72743
[libc] Add a convenience CMake rule to add testsuites.Summary:This rule helps avoid repeated setting of check-libc's dependency on thevarious testsuites.Reviewers: abrachetSubscribers: mgorny
[libc] Add a convenience CMake rule to add testsuites.Summary:This rule helps avoid repeated setting of check-libc's dependency on thevarious testsuites.Reviewers: abrachetSubscribers: mgorny, MaskRay, tschuett, libc-commitsTags: #libc-projectDifferential Revision: https://reviews.llvm.org/D72353
[libc] Move all tests to a top level `test` directory.A toplevel target, `check-libc` has also been added.Reviewers: abrachet, phosekTags: #libc-projectDifferential Revision: https://reviews.
[libc] Move all tests to a top level `test` directory.A toplevel target, `check-libc` has also been added.Reviewers: abrachet, phosekTags: #libc-projectDifferential Revision: https://reviews.llvm.org/D72177