[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] Move the x86_64 syscall functions to OSUtil.Reviewed By: michaelrj, lntueDifferential Revision: https://reviews.llvm.org/D116177
[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] 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] Cleanup dependencies in src/signal and test/src/signal.Reviewers: abrachetDifferential Revision: https://reviews.llvm.org/D78585
[libc][Take 2] Propagate entrypoint deps to downstream targets.This reverts commit a8086ba4ac85152d8407630e56e9ee5c8b46a214.Setting couple of target properties to an empty string was missed in the
[libc][Take 2] Propagate entrypoint deps to downstream targets.This reverts commit a8086ba4ac85152d8407630e56e9ee5c8b46a214.Setting couple of target properties to an empty string was missed in theprevious commit.
[libc] Revert "Propagate entrypoint deps to downstream targets."This reverts commit 20cb440ea210597bf223505604bb5f2220a067c6 as thetarget llvmlibc seems to be failing on the bots.
[libc] Propagate entrypoint deps to downstream targets.Deps are recrusively evaluated at the place they are needed. With thischange, one does not have to list recursive deps of entrypoints whenli
[libc] Propagate entrypoint deps to downstream targets.Deps are recrusively evaluated at the place they are needed. With thischange, one does not have to list recursive deps of entrypoints whenlisting test targets. One will still have to explicitly list allentrypoint objects when setting up an "add_entrypoint_library" target.Reviewers: abrachetDifferential Revision: https://reviews.llvm.org/D78537
[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] NFC: Fix trivial typo in comments, documents, and messagesDifferential Revision: https://reviews.llvm.org/D77462
[libc] Add sigfillset and sigdelsetSummary: Add's `sigfillset` and `sigdelset` which will be used in D76676.Reviewers: sivachandra, PaulkaToastReviewed By: sivachandraSubscribers: mgorny, Mas
[libc] Add sigfillset and sigdelsetSummary: Add's `sigfillset` and `sigdelset` which will be used in D76676.Reviewers: sivachandra, PaulkaToastReviewed By: sivachandraSubscribers: mgorny, MaskRay, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D76936
[libc] Extend add_object rule to handle helper object libraries.The rule is now called add_object_library.Reviewers: abrachetDifferential Revision: https://reviews.llvm.org/D76826
[libc][NFC] Ensure internal implementation is in __llvm_libc namespaceSummary: In preparation for D76818.Reviewers: PaulkaToast, sivachandra, gchateletReviewed By: PaulkaToast, sivachandraSub
[libc][NFC] Ensure internal implementation is in __llvm_libc namespaceSummary: In preparation for D76818.Reviewers: PaulkaToast, sivachandra, gchateletReviewed By: PaulkaToast, sivachandraSubscribers: MaskRay, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D76967
[libc] Add signalSummary:This patch adds a Linux implementation for `signal`It also fixes `ASSERT|EXPECT_THAT` macrosReviewers: sivachandra, PaulkaToast, MaskRayReviewed By: sivachandraSubs
[libc] Add signalSummary:This patch adds a Linux implementation for `signal`It also fixes `ASSERT|EXPECT_THAT` macrosReviewers: sivachandra, PaulkaToast, MaskRayReviewed By: sivachandraSubscribers: mgorny, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D76536
[libc] Add sigactionSummary: This patch adds `sigaction` and the `sa_restorer` signal trampoline function `__restore_rt`Reviewers: sivachandra, MaskRay, PaulkaToastReviewed By: sivachandraSub
[libc] Add sigactionSummary: This patch adds `sigaction` and the `sa_restorer` signal trampoline function `__restore_rt`Reviewers: sivachandra, MaskRay, PaulkaToastReviewed By: sivachandraSubscribers: gchatelet, mgorny, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D75802
[libc] Add `errno_h` as a dependency to `sigaddset` and `sigemptyset`.Summary: The bots are catching this missing dependency.Reviewers: PaulkaToast, abrachetSubscribers: mgorny, MaskRay, tschue
[libc] Add `errno_h` as a dependency to `sigaddset` and `sigemptyset`.Summary: The bots are catching this missing dependency.Reviewers: PaulkaToast, abrachetSubscribers: mgorny, MaskRay, tschuett, libc-commitsTags: #libc-projectDifferential Revision: https://reviews.llvm.org/D75502
[libc] Add sigprocmaskSummary: This patch adds `sigprocmask`, `sigemptyset` and `sigaddset`Reviewers: sivachandra, MaskRay, gchateletReviewed By: sivachandraSubscribers: mgorny, tschuett, lib
[libc] Add sigprocmaskSummary: This patch adds `sigprocmask`, `sigemptyset` and `sigaddset`Reviewers: sivachandra, MaskRay, gchateletReviewed By: sivachandraSubscribers: mgorny, tschuett, libc-commitsDifferential Revision: https://reviews.llvm.org/D75026
Remove unused variable
[libc] Add Initial Support for SignalsSummary:This patch adds signal support on Linux. The current implementation gets the SIG* macros and types like `sigset_t` from <linux/signals.h>This patch
[libc] Add Initial Support for SignalsSummary:This patch adds signal support on Linux. The current implementation gets the SIG* macros and types like `sigset_t` from <linux/signals.h>This patch also adds raise(3), and internal routines `block_all_signals` and `restore_signals`Reviewers: sivachandra, MaskRay, gchateletReviewed By: sivachandraSubscribers: libc-commits, mgorny, tschuettDifferential Revision: https://reviews.llvm.org/D74528