<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc/src/time, 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>[libc] Move libc_errno.h to libc/src/__support and make LIBC_ERRNO_MODE_SYSTEM to be header-only. (#143187)</title>
<updated>2025-06-11T20:25:27+00:00</updated>
<author>
<name>lntue</name>
<email>lntue@google.com</email>
</author>
<published>2025-06-11T20:25:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d87eea35fac5a34a841c637db8908128409a184e'/>
<id>d87eea35fac5a34a841c637db8908128409a184e</id>
<content type='text'>
This is the first step in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the first step in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][time] Fix -Wshorten-64-to-32 warning (#132947)</title>
<updated>2025-03-25T15:53:08+00:00</updated>
<author>
<name>Paul Kirth</name>
<email>paulkirth@google.com</email>
</author>
<published>2025-03-25T15:53:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9fb792496687df1136d78e828cffe4f7f04a7043'/>
<id>9fb792496687df1136d78e828cffe4f7f04a7043</id>
<content type='text'>
This breaks builds of libc with top of tree clang under -Werror.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This breaks builds of libc with top of tree clang under -Werror.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] change the return value type of mktime_internal to time_t (#132231)</title>
<updated>2025-03-25T14:09:15+00:00</updated>
<author>
<name>Leslie</name>
<email>Wse1714401046@gmail.com</email>
</author>
<published>2025-03-25T14:09:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ba46c37f9c56cb207c0c7189246456edef563340'/>
<id>ba46c37f9c56cb207c0c7189246456edef563340</id>
<content type='text'>
This pr is to resovle #126948

---------

Co-authored-by: Joseph Huber &lt;huberjn@outlook.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This pr is to resovle #126948

---------

Co-authored-by: Joseph Huber &lt;huberjn@outlook.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Template the writing mode for the writer class (#111559)</title>
<updated>2025-03-12T18:51:44+00:00</updated>
<author>
<name>Joseph Huber</name>
<email>huberjn@outlook.com</email>
</author>
<published>2025-03-12T18:51:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=598e882ee88a1e3349fb6d8dcd68f6d3b1c6334f'/>
<id>598e882ee88a1e3349fb6d8dcd68f6d3b1c6334f</id>
<content type='text'>
Summary:
Currently we dispatch the writing mode off of a runtime enum passed in
by the constructor. This causes very unfortunate codegen for the GPU
targets where we get worst-case codegen because of the unused function
pointer for `sprintf`. Instead, this patch moves all of this to a
template so it can be masked out. This results in no dynamic stack and
uses 60 VGPRs instead of 117. It also compiles about 5x as fast.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
Currently we dispatch the writing mode off of a runtime enum passed in
by the constructor. This causes very unfortunate codegen for the GPU
targets where we get worst-case codegen because of the unused function
pointer for `sprintf`. Instead, this patch moves all of this to a
template so it can be masked out. This results in no dynamic stack and
uses 60 VGPRs instead of 117. It also compiles about 5x as fast.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add strftime_l (#127767)</title>
<updated>2025-02-21T18:50:32+00:00</updated>
<author>
<name>Petr Hosek</name>
<email>phosek@google.com</email>
</author>
<published>2025-02-21T18:50:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=00637b7dfb15b6e4f94a29ac8ab9226d1e9c0788'/>
<id>00637b7dfb15b6e4f94a29ac8ab9226d1e9c0788</id>
<content type='text'>
This is a (no-op) locale version of strftime.

Fixes: https://github.com/llvm/llvm-project/issues/106630</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a (no-op) locale version of strftime.

Fixes: https://github.com/llvm/llvm-project/issues/106630</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[libc] Add strftime_l" (#127766)</title>
<updated>2025-02-19T08:39:33+00:00</updated>
<author>
<name>Petr Hosek</name>
<email>phosek@google.com</email>
</author>
<published>2025-02-19T08:39:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a2b4d4e756ff2710e15a6378e337fb5888e5ac36'/>
<id>a2b4d4e756ff2710e15a6378e337fb5888e5ac36</id>
<content type='text'>
Reverts llvm/llvm-project#127708</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverts llvm/llvm-project#127708</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Add strftime_l (#127708)</title>
<updated>2025-02-19T07:54:45+00:00</updated>
<author>
<name>Petr Hosek</name>
<email>phosek@google.com</email>
</author>
<published>2025-02-19T07:54:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9072ba71cac6d518b4164615c609e358d49c4ed2'/>
<id>9072ba71cac6d518b4164615c609e358d49c4ed2</id>
<content type='text'>
This is a (no-op) locale version of strftime.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a (no-op) locale version of strftime.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Fix implicit cast warning in strftime (#127282)</title>
<updated>2025-02-15T00:06:02+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-02-15T00:06:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=60af83506a3aa379c59e0f9793ce7815d726aee1'/>
<id>60af83506a3aa379c59e0f9793ce7815d726aee1</id>
<content type='text'>
Forgot to change a size_t to an int, which caused warnings on gcc but
not clang for some reason. Regardless, this patch fixes the issue.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Forgot to change a size_t to an int, which caused warnings on gcc but
not clang for some reason. Regardless, this patch fixes the issue.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Implement strftime (#122556)</title>
<updated>2025-02-14T23:56:55+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-02-14T23:56:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=398f865499e6d7c35df2496cdff29ed0239423de'/>
<id>398f865499e6d7c35df2496cdff29ed0239423de</id>
<content type='text'>
Implements the posix-specified strftime conversions for the default
locale, along with comprehensive unit tests. This reuses a lot of design
from printf, as well as the printf writer.

Roughly based on #111305, but with major rewrites.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implements the posix-specified strftime conversions for the default
locale, along with comprehensive unit tests. This reuses a lot of design
from printf, as well as the printf writer.

Roughly based on #111305, but with major rewrites.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Fix implict cast to time_t warning (#126947)</title>
<updated>2025-02-12T18:08:06+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-02-12T18:08:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=16a5f7eb73f225544d29e613c84011f1e1ec53a4'/>
<id>16a5f7eb73f225544d29e613c84011f1e1ec53a4</id>
<content type='text'>
On some systems time_t is 32 bit, causing build errors (with -Werror)
in get_epoch which attempts to implicitly convert an int64_t to a
time_t.

Fixes:

error: implicit conversion loses integer precision: 'int64_t' (aka 'long
long') to 'time_t' (aka 'int') [-Werror,-Wshorten-64-to-32]
      332 |     return mktime_internal(timeptr);
          |     ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On some systems time_t is 32 bit, causing build errors (with -Werror)
in get_epoch which attempts to implicitly convert an int64_t to a
time_t.

Fixes:

error: implicit conversion loses integer precision: 'int64_t' (aka 'long
long') to 'time_t' (aka 'int') [-Werror,-Wshorten-64-to-32]
      332 |     return mktime_internal(timeptr);
          |     ~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~</pre>
</div>
</content>
</entry>
</feed>
