summaryrefslogtreecommitdiffstats
path: root/libc/cmake/modules
Commit message (Collapse)AuthorAgeFilesLines
* [libc] Add a convenience CMake rule to add testsuites.Siva Chandra Reddy2020-01-071-0/+5
| | | | | | | | | | | | | | Summary: This rule helps avoid repeated setting of check-libc's dependency on the various testsuites. Reviewers: abrachet Subscribers: mgorny, MaskRay, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D72353
* Add implementations of POSIX mmap and munmap functions.Siva Chandra Reddy2019-12-231-8/+29
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: A set of of linux x86_64 internal syscall helpers have also been added. This change does not try to be perfect with respect to OS and machine abstractions. A TODO note has been added at places where such abstractions would help and make the arrangement scalable and cleaner. Addressing the TODOs and building such abstractions is not in the scope of this change. It is hoped that follow up changes cleaning up the problem areas and addressing the TODOs will better illustrate the need for the changes. This change also does not try to imitate mmap and munmap implementations of other libcs. The idea here is to put in the bare minimum required to obtain a working mmap and munmap, and then add the rest of the functionality on an as needed basis. Reviewers: abrachet, phosek, stanshebs, theraven Subscribers: mgorny, MaskRay, jfb, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D71634
* [libc] Add a TableGen based header generator.Siva Chandra Reddy2019-11-221-5/+5
| | | | | | | | | | | | | | | Summary: * The Python header generator has been removed. * Docs giving a highlevel overview of the header gen scheme have been added. Reviewers: phosek, abrachet Subscribers: mgorny, MaskRay, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D70197
* Illustrate a redirector using the example of round function from math.h.Siva Chandra Reddy2019-11-011-4/+72
| | | | | | | | | | | | | | | | | | | | | Setup demonstrated in this patch is only for ELF-ish platforms. Also note: 1. Use of redirectors is a temporary scheme. They will be removed once LLVM-libc has implementations for the redirected functions. 2. Redirectors are optional. One can choose to not include them in the LLVM-libc build for their platform. 3. Even with redirectors used, we want to link to the system libc dynamically. Reviewers: dlj, hfinkel, jakehehrlich, phosek, stanshebs, theraven, alexshap Subscribers: mgorny, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D69020
* [libc] Do not add unittests if LLVM_INCLUDE_TESTS is OFF.Siva Chandra2019-10-151-0/+4
| | | | | | | | | | | | Reviewers: nathanchance Subscribers: mgorny, tschuett, libc-commits Tags: #libc-project Differential Revision: https://reviews.llvm.org/D68726 llvm-svn: 374925
* Add few docs and implementation of strcpy and strcat.Siva Chandra2019-10-041-0/+280
Summary: This patch illustrates some of the features like modularity we want in the new libc. Few other ideas like different kinds of testing, redirectors etc are not yet present. Reviewers: dlj, hfinkel, theraven, jfb, alexshap, jdoerfert Subscribers: mgorny, dexonsmith, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67867 llvm-svn: 373764
OpenPOWER on IntegriCloud