<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/lib/Support/Unix/Unix.h, 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>Remove unused &lt;algorithm&gt; inclusion (#166942)</title>
<updated>2025-11-10T10:30:37+00:00</updated>
<author>
<name>serge-sans-paille</name>
<email>sguelton@mozilla.com</email>
</author>
<published>2025-11-10T10:30:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=898d6fecf6636521321af17fcd69a19f30fa8cf8'/>
<id>898d6fecf6636521321af17fcd69a19f30fa8cf8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[CMake] Remove HAVE_DLFCN_H and HAVE_DLADDR (#123879)</title>
<updated>2025-01-22T16:15:10+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2025-01-22T16:15:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=58c6d440f8c24ef1532d12e50302e290e1907a87'/>
<id>58c6d440f8c24ef1532d12e50302e290e1907a87</id>
<content type='text'>
It is sufficient to just use `HAVE_DLOPEN`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is sufficient to just use `HAVE_DLOPEN`.</pre>
</div>
</content>
</entry>
<entry>
<title>[CMake] Remove some unneeded HAVE_*_H</title>
<updated>2025-01-17T05:37:24+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2025-01-17T05:37:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f999b11e68c6377f718d0f05988af9852ca386ba'/>
<id>f999b11e68c6377f718d0f05988af9852ca386ba</id>
<content type='text'>
Pull Request: https://github.com/llvm/llvm-project/pull/123282
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull Request: https://github.com/llvm/llvm-project/pull/123282
</pre>
</div>
</content>
</entry>
<entry>
<title>[CMake] Remove some always-true HAVE_XXX_H</title>
<updated>2025-01-15T17:53:21+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2025-01-15T17:53:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1e53f9523d3d5fcb2993b4b6540f1ed8d743380b'/>
<id>1e53f9523d3d5fcb2993b4b6540f1ed8d743380b</id>
<content type='text'>
These are unneeded even on AIX, PURE_WINDOWS, and ZOS (per #104706)

* HAVE_ERRNO_H: introduced by 1a93330ffa2ae2aa0b49461f05e6f0d51e8443f8 (2009) but unneeded.
  The guarded ABI is unconditionally used by lldb.
* HAVE_FCNTL_H
* HAVE_FENV_H
* HAVE_SYS_STAT_H

Pull Request: https://github.com/llvm/llvm-project/pull/123087
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are unneeded even on AIX, PURE_WINDOWS, and ZOS (per #104706)

* HAVE_ERRNO_H: introduced by 1a93330ffa2ae2aa0b49461f05e6f0d51e8443f8 (2009) but unneeded.
  The guarded ABI is unconditionally used by lldb.
* HAVE_FCNTL_H
* HAVE_FENV_H
* HAVE_SYS_STAT_H

Pull Request: https://github.com/llvm/llvm-project/pull/123087
</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Unix.h - Replace report_fatal_error(std::string) with report_fatal_error(Twine)</title>
<updated>2021-10-06T11:13:40+00:00</updated>
<author>
<name>Simon Pilgrim</name>
<email>llvm-dev@redking.me.uk</email>
</author>
<published>2021-10-06T11:13:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e9f4fa75ed19a075593928644de92b398345772a'/>
<id>e9f4fa75ed19a075593928644de92b398345772a</id>
<content type='text'>
As described on D111049, we're trying to remove the &lt;string&gt; dependency from error handling and replace uses of report_fatal_error(const std::string&amp;) with the Twine() variant which can be forward declared.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As described on D111049, we're trying to remove the &lt;string&gt; dependency from error handling and replace uses of report_fatal_error(const std::string&amp;) with the Twine() variant which can be forward declared.
</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Replace LLVM_ATTRIBUTE_NORETURN with C++11 [[noreturn]]</title>
<updated>2021-07-28T16:31:14+00:00</updated>
<author>
<name>Fangrui Song</name>
<email>i@maskray.me</email>
</author>
<published>2021-07-28T16:31:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6da3d8b19c32c76bb503b1a71fc167a0487ef200'/>
<id>6da3d8b19c32c76bb503b1a71fc167a0487ef200</id>
<content type='text'>
[[noreturn]] can be used since Oct 2016 when the minimum compiler requirement was bumped to GCC 4.8/MSVC 2015.

Note: the definition of LLVM_ATTRIBUTE_NORETURN is kept for now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[[noreturn]] can be used since Oct 2016 when the minimum compiler requirement was bumped to GCC 4.8/MSVC 2015.

Note: the definition of LLVM_ATTRIBUTE_NORETURN is kept for now.
</pre>
</div>
</content>
</entry>
<entry>
<title>Stop including sys/param.h from Unix.h</title>
<updated>2020-02-25T14:35:04+00:00</updated>
<author>
<name>Joerg Sonnenberger</name>
<email>joerg@bec.de</email>
</author>
<published>2020-02-25T14:22:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=dc383f07b080aa3a5725628691163850bc50ae89'/>
<id>dc383f07b080aa3a5725628691163850bc50ae89</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Reland "[Support] Add a way to run a function on a detached thread""</title>
<updated>2019-10-23T13:51:44+00:00</updated>
<author>
<name>Sam McCall</name>
<email>sammccall@google.com</email>
</author>
<published>2019-10-23T13:34:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a9c3c176ad741b9c2b915abc59dd977d0299c53f'/>
<id>a9c3c176ad741b9c2b915abc59dd977d0299c53f</id>
<content type='text'>
This reverts commit 7bc7fe6b789d25d48d6dc71d533a411e9e981237.
The immediate callers have been fixed to pass nullopt where appropriate.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 7bc7fe6b789d25d48d6dc71d533a411e9e981237.
The immediate callers have been fixed to pass nullopt where appropriate.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[Support] Add a way to run a function on a detached thread"</title>
<updated>2019-10-23T13:10:35+00:00</updated>
<author>
<name>Sam McCall</name>
<email>sammccall@google.com</email>
</author>
<published>2019-10-23T13:10:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7bc7fe6b789d25d48d6dc71d533a411e9e981237'/>
<id>7bc7fe6b789d25d48d6dc71d533a411e9e981237</id>
<content type='text'>
This reverts commit 40668abca4d307e02b33345cfdb7271549ff48d0.
This causes clang tests to fail, as stacksize=0 is being explicitly passed and
is no longer a no-op.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 40668abca4d307e02b33345cfdb7271549ff48d0.
This causes clang tests to fail, as stacksize=0 is being explicitly passed and
is no longer a no-op.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Support] Add a way to run a function on a detached thread</title>
<updated>2019-10-23T10:48:38+00:00</updated>
<author>
<name>Sam McCall</name>
<email>sammccall@google.com</email>
</author>
<published>2019-10-23T10:36:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=40668abca4d307e02b33345cfdb7271549ff48d0'/>
<id>40668abca4d307e02b33345cfdb7271549ff48d0</id>
<content type='text'>
This roughly mimics `std::thread(...).detach()` except it allows to
customize the stack size. Required for https://reviews.llvm.org/D50993.

I've decided against reusing the existing `llvm_execute_on_thread` because
it's not obvious what to do with the ownership of the passed
function/arguments:

1. If we pass possibly owning functions data to `llvm_execute_on_thread`,
   we'll lose the ability to pass small non-owning non-allocating functions
   for the joining case (as it's used now). Is it important enough?
2. If we use the non-owning interface in the new use case, we'll force
   clients to transfer ownership to the spawned thread manually, but
   similar code would still have to exist inside
   `llvm_execute_on_thread(_async)` anyway (as we can't just pass the same
   non-owning pointer to pthreads and Windows implementations, and would be
   forced to wrap it in some structure, and deal with its ownership.

Patch by Dmitry Kozhevnikov!

Differential Revision: https://reviews.llvm.org/D51103
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This roughly mimics `std::thread(...).detach()` except it allows to
customize the stack size. Required for https://reviews.llvm.org/D50993.

I've decided against reusing the existing `llvm_execute_on_thread` because
it's not obvious what to do with the ownership of the passed
function/arguments:

1. If we pass possibly owning functions data to `llvm_execute_on_thread`,
   we'll lose the ability to pass small non-owning non-allocating functions
   for the joining case (as it's used now). Is it important enough?
2. If we use the non-owning interface in the new use case, we'll force
   clients to transfer ownership to the spawned thread manually, but
   similar code would still have to exist inside
   `llvm_execute_on_thread(_async)` anyway (as we can't just pass the same
   non-owning pointer to pthreads and Windows implementations, and would be
   forced to wrap it in some structure, and deal with its ownership.

Patch by Dmitry Kozhevnikov!

Differential Revision: https://reviews.llvm.org/D51103
</pre>
</div>
</content>
</entry>
</feed>
