[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] apply new lint rulesThis patch applies the lint rules described in the previous patch. Therewas also a significant amount of effort put into manually fixing things,since all of the templat
[libc] apply new lint rulesThis patch applies the lint rules described in the previous patch. Therewas also a significant amount of effort put into manually fixing things,since all of the templated functions, or structs defined in /spec, werenot updated and had to be handled manually.Reviewed By: sivachandra, lntueDifferential Revision: https://reviews.llvm.org/D114302
[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] Switch to use a macro which does not insert a section for every libc function.Summary:The new macro also inserts the C alias for the C++ implementationswithout needing an objcopy based pos
[libc] Switch to use a macro which does not insert a section for every libc function.Summary:The new macro also inserts the C alias for the C++ implementationswithout needing an objcopy based post processing step. The CMakerules have been updated to reflect this. More CMake cleanup can betaken up in future rounds and appropriate TODOs have been added for them.Reviewers: mcgrathr, sivachandraSubscribers:
[LIBC][NFC] Rename errno and assert files to match other files with functionsRename the files containing the `__errno_location` functionto `__errno_location.h/cpp` to match the other files and mov
[LIBC][NFC] Rename errno and assert files to match other files with functionsRename the files containing the `__errno_location` functionto `__errno_location.h/cpp` to match the other files and movethe `llvmlibc_errno` macro to its own file.Split assert.h into `__assert_fail.h` (contains the function prototype)and assert.h (contains the assert macro).Reviewed By: sivachandraDifferential Revision: https://reviews.llvm.org/D90653
[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] 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
[libc] Add implementation of errno and define the other macros of errno.h.Reviewers: stanshebs, alexbrachetSubscribers: mgorny, MaskRay, tschuett, libc-commitsTags: #libc-projectDifferential
[libc] Add implementation of errno and define the other macros of errno.h.Reviewers: stanshebs, alexbrachetSubscribers: mgorny, MaskRay, tschuett, libc-commitsTags: #libc-projectDifferential Revision: https://reviews.llvm.org/D71094