<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc/src/threads/linux/thrd_create.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[libc] Add a linux Thread class in __support/threads.</title>
<updated>2022-04-07T16:13:21+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2022-04-01T06:42:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2ce09e680a7dc1201463ae74e199eac66ac52a8d'/>
<id>2ce09e680a7dc1201463ae74e199eac66ac52a8d</id>
<content type='text'>
This change is essentially a mechanical change which moves the thread
creation and join implementations from src/threads/linux to
src/__support/threads/linux/thread.h. The idea being that, in future, a
pthread implementation can reuse the common thread implementations in
src/__support/threads.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D123287
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This change is essentially a mechanical change which moves the thread
creation and join implementations from src/threads/linux to
src/__support/threads/linux/thread.h. The idea being that, in future, a
pthread implementation can reuse the common thread implementations in
src/__support/threads.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D123287
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][NFC] Do not call mmap and munmap from thread functions.</title>
<updated>2022-04-02T05:12:08+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2022-04-01T07:33:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6a7cd4a1df6c394f5d0dae93c9be26f8f777cd7f'/>
<id>6a7cd4a1df6c394f5d0dae93c9be26f8f777cd7f</id>
<content type='text'>
Instead, memory is allocated and deallocated using mmap and munmap
syscalls directly.

Reviewed By: lntue, michaelrj

Differential Revision: https://reviews.llvm.org/D122876
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead, memory is allocated and deallocated using mmap and munmap
syscalls directly.

Reviewed By: lntue, michaelrj

Differential Revision: https://reviews.llvm.org/D122876
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Enable threads.h functions on aarch64.</title>
<updated>2022-03-31T15:42:07+00:00</updated>
<author>
<name>Siva Chandra</name>
<email>sivachandra@google.com</email>
</author>
<published>2022-03-31T06:44:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=97417e0300719f4bc9e8599ecc68ef97170524f8'/>
<id>97417e0300719f4bc9e8599ecc68ef97170524f8</id>
<content type='text'>
Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D122788
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D122788
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Remove the remaining uses of stdatomic.h.</title>
<updated>2022-03-01T17:12:39+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2022-03-01T08:54:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=75747c73946546fb9f9163b9a813b54f96874948'/>
<id>75747c73946546fb9f9163b9a813b54f96874948</id>
<content type='text'>
New methods to the Atomic class have been added as required. Futex
related types have been consolidated at a common place.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D120705
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New methods to the Atomic class have been added as required. Futex
related types have been consolidated at a common place.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D120705
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Move the x86_64 syscall functions to OSUtil.</title>
<updated>2021-12-22T21:48:57+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2021-12-22T18:17:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3cc2161c897ca6c9f1ff09fbc610a6ae40b3b566'/>
<id>3cc2161c897ca6c9f1ff09fbc610a6ae40b3b566</id>
<content type='text'>
Reviewed By: michaelrj, lntue

Differential Revision: https://reviews.llvm.org/D116177
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed By: michaelrj, lntue

Differential Revision: https://reviews.llvm.org/D116177
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] apply new lint rules</title>
<updated>2021-12-07T18:49:47+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2021-11-19T21:56:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1c92911e9e1d503c0dfc4367da7f15d0dff50587'/>
<id>1c92911e9e1d503c0dfc4367da7f15d0dff50587</id>
<content type='text'>
This patch applies the lint rules described in the previous patch. There
was also a significant amount of effort put into manually fixing things,
since all of the templated functions, or structs defined in /spec, were
not updated and had to be handled manually.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D114302
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch applies the lint rules described in the previous patch. There
was also a significant amount of effort put into manually fixing things,
since all of the templated functions, or structs defined in /spec, were
not updated and had to be handled manually.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D114302
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Ensure the result of the clone syscall is not on stack in thrd_create.</title>
<updated>2021-08-30T04:35:40+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2021-08-30T04:31:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3383ec5fdd04be095678e0bd8bd1ce341f4f9294'/>
<id>3383ec5fdd04be095678e0bd8bd1ce341f4f9294</id>
<content type='text'>
Also, added a call to munmap on error in thrd_create.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also, added a call to munmap on error in thrd_create.
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][NFC] Move the mutex implementation into a utility class.</title>
<updated>2021-08-26T18:49:20+00:00</updated>
<author>
<name>Siva Chandra Reddy</name>
<email>sivachandra@google.com</email>
</author>
<published>2021-08-26T05:21:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=004c7b1da6cfea1d1f09535607a8c7c2f051e8d5'/>
<id>004c7b1da6cfea1d1f09535607a8c7c2f051e8d5</id>
<content type='text'>
This allows others parts of the libc to use the mutex types without
actually pulling in public function implementations.

Along the way, few cleanups have been done, like using a uniform type to
refer the linux futex word.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D108749
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows others parts of the libc to use the mutex types without
actually pulling in public function implementations.

Along the way, few cleanups have been done, like using a uniform type to
refer the linux futex word.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D108749
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][NFC] add includes for internal headers to all libc functions</title>
<updated>2021-01-09T00:39:18+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2021-01-09T00:35:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b02ca0969ea3f8147ae74d08e131f1bfe4f203d2'/>
<id>b02ca0969ea3f8147ae74d08e131f1bfe4f203d2</id>
<content type='text'>
this will make sure that all of the functions are using the correct
prototypes. Explained much better in the comments of this diff:
https://reviews.llvm.org/D94195
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this will make sure that all of the functions are using the correct
prototypes. Explained much better in the comments of this diff:
https://reviews.llvm.org/D94195
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Switch to use a macro which does not insert a section for every libc function.</title>
<updated>2021-01-08T23:52:35+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2020-12-23T18:46:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a0b65a7bcd6065688189b3d678c42ed6af9603db'/>
<id>a0b65a7bcd6065688189b3d678c42ed6af9603db</id>
<content type='text'>
Summary:
The new macro also inserts the C alias for the C++ implementations
without needing an objcopy based post processing step. The CMake
rules have been updated to reflect this. More CMake cleanup can be
taken up in future rounds and appropriate TODOs have been added for them.

Reviewers: mcgrathr, sivachandra

Subscribers:
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
The new macro also inserts the C alias for the C++ implementations
without needing an objcopy based post processing step. The CMake
rules have been updated to reflect this. More CMake cleanup can be
taken up in future rounds and appropriate TODOs have been added for them.

Reviewers: mcgrathr, sivachandra

Subscribers:
</pre>
</div>
</content>
</entry>
</feed>
