<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc, branch users/nico/python-2</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>Revert "Fix wcpncpy() return value; add test." (#146752)</title>
<updated>2025-07-02T18:08:21+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-07-02T18:08:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=77d95911a3a4dc7445280cd5ee217e2a47a41b47'/>
<id>77d95911a3a4dc7445280cd5ee217e2a47a41b47</id>
<content type='text'>
This reverts commit 988876cdd918d5b945a072a3d643b5fa22ae2917.
Was intended to be a PR</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 988876cdd918d5b945a072a3d643b5fa22ae2917.
Was intended to be a PR</pre>
</div>
</content>
</entry>
<entry>
<title>Fix wcpncpy() return value; add test.</title>
<updated>2025-07-02T18:00:02+00:00</updated>
<author>
<name>enh-google</name>
<email>enh@google.com</email>
</author>
<published>2025-07-02T18:00:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=988876cdd918d5b945a072a3d643b5fa22ae2917'/>
<id>988876cdd918d5b945a072a3d643b5fa22ae2917</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Fix internal alignment in allcoator (#146738)</title>
<updated>2025-07-02T17:29:01+00:00</updated>
<author>
<name>Joseph Huber</name>
<email>huberjn@outlook.com</email>
</author>
<published>2025-07-02T17:29:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=50f40a5327ad9f8a4a57bb2bf7679f489f86b726'/>
<id>50f40a5327ad9f8a4a57bb2bf7679f489f86b726</id>
<content type='text'>
Summary:
The allocator interface is supposed to have 16 byte alignment (to keep
it consistent with the CPU allocator. We could probably drop this to 8
if desires.) But this was not enforced because the number of bytes used
for the bitfield sometimes resulted in alignment of 8 instead of 16.
Explicitly align the number of bytes to be a multiple of 16 even if
unused.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
The allocator interface is supposed to have 16 byte alignment (to keep
it consistent with the CPU allocator. We could probably drop this to 8
if desires.) But this was not enforced because the number of bytes used
for the bitfield sometimes resulted in alignment of 8 instead of 16.
Explicitly align the number of bytes to be a multiple of 16 even if
unused.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Efficiently implement `aligned_alloc` for AMDGPU (#146585)</title>
<updated>2025-07-02T14:25:57+00:00</updated>
<author>
<name>Joseph Huber</name>
<email>huberjn@outlook.com</email>
</author>
<published>2025-07-02T14:25:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=24828c8c45d7f258159afca251aa853a5fc59150'/>
<id>24828c8c45d7f258159afca251aa853a5fc59150</id>
<content type='text'>
Summary:
This patch uses the actual allocator interface to implement
`aligned_alloc`. We do this by simply rounding up the amount allocated.
Because of how index calculation works, any offset within an allocated
pointer will still map to the same chunk, so we can just adjust
internally and it will free all the same.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
This patch uses the actual allocator interface to implement
`aligned_alloc`. We do this by simply rounding up the amount allocated.
Because of how index calculation works, any offset within an allocated
pointer will still map to the same chunk, so we can just adjust
internally and it will free all the same.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Use is aligned builtin instead of ptrtoint (#146402)</title>
<updated>2025-07-02T12:03:11+00:00</updated>
<author>
<name>Joseph Huber</name>
<email>huberjn@outlook.com</email>
</author>
<published>2025-07-02T12:03:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=dea4f3213d84507ca9741faccab789f48c44e00d'/>
<id>dea4f3213d84507ca9741faccab789f48c44e00d</id>
<content type='text'>
Summary:
This avoids a ptrtoint by just using the clang builtin. This is clang
specific but only clang can compile GPU code anyway so I do not bother
with a fallback.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
This avoids a ptrtoint by just using the clang builtin. This is clang
specific but only clang can compile GPU code anyway so I do not bother
with a fallback.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] wcscspn implementation (#146158)</title>
<updated>2025-07-01T15:56:09+00:00</updated>
<author>
<name>sribee8</name>
<email>sriya.pratipati@gmail.com</email>
</author>
<published>2025-07-01T15:56:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=47e28d9cd1c08690fa77d81b537594cb2e92f0f4'/>
<id>47e28d9cd1c08690fa77d81b537594cb2e92f0f4</id>
<content type='text'>
Implemented wcscspn and tests.

---------

Co-authored-by: Sriya Pratipati &lt;sriyap@google.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implemented wcscspn and tests.

---------

Co-authored-by: Sriya Pratipati &lt;sriyap@google.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][obvious] Fixed typos in some wchar headers (#146413)</title>
<updated>2025-06-30T20:22:05+00:00</updated>
<author>
<name>sribee8</name>
<email>sriya.pratipati@gmail.com</email>
</author>
<published>2025-06-30T20:22:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=81c9a1a4e51061bbf390185a1c642d66036d296b'/>
<id>81c9a1a4e51061bbf390185a1c642d66036d296b</id>
<content type='text'>
Some of the wchar headers had typos in them.

Co-authored-by: Sriya Pratipati &lt;sriyap@google.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some of the wchar headers had typos in them.

Co-authored-by: Sriya Pratipati &lt;sriyap@google.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] wcstok implementation (#145989)</title>
<updated>2025-06-30T17:41:00+00:00</updated>
<author>
<name>Uzair Nawaz</name>
<email>uzairnawaz@google.com</email>
</author>
<published>2025-06-30T17:41:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7a33b709b1e2bd3032593b259a741905dce874f8'/>
<id>7a33b709b1e2bd3032593b259a741905dce874f8</id>
<content type='text'>
Implemented wcstok and added tests</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implemented wcstok and added tests</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] implement sigsetjmp for thumb/thumb2/armv7-a (#138147)</title>
<updated>2025-06-30T16:32:14+00:00</updated>
<author>
<name>Schrodinger ZHU Yifan</name>
<email>yifanzhu@rochester.edu</email>
</author>
<published>2025-06-30T16:32:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a8f460d1dcc246319870c7bf4ab86c19e779578c'/>
<id>a8f460d1dcc246319870c7bf4ab86c19e779578c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Efficiently implement 'realloc' for AMDGPU devices (#145960)</title>
<updated>2025-06-30T13:39:40+00:00</updated>
<author>
<name>Joseph Huber</name>
<email>huberjn@outlook.com</email>
</author>
<published>2025-06-30T13:39:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=10445acfa64a80800272e09f70be4799877a237f'/>
<id>10445acfa64a80800272e09f70be4799877a237f</id>
<content type='text'>
Summary:
Now that we have `malloc` we can implement `realloc` efficiently. This
uses the known chunk sizes to avoid unnecessary allocations. We just
return nullptr for NVPTX. I'd remove the list for the entrypoint but
then the libc++ code would stop working. When someone writes the NVPTX
support this will be trivial.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
Now that we have `malloc` we can implement `realloc` efficiently. This
uses the known chunk sizes to avoid unnecessary allocations. We just
return nullptr for NVPTX. I'd remove the list for the entrypoint but
then the libc++ code would stop working. When someone writes the NVPTX
support this will be trivial.</pre>
</div>
</content>
</entry>
</feed>
