<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/lib/Support/SHA256.cpp, branch users/nico/python-1</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>[Support] Use llvm::byteswap instead of sys::getSwappedBytes (NFC)</title>
<updated>2023-09-23T20:17:46+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2023-09-23T20:17:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=10dff21f2b87ad0fd25f55353cd3c2397686c45c'/>
<id>10dff21f2b87ad0fd25f55353cd3c2397686c45c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Support] Reduce Dependence on Host.h</title>
<updated>2022-11-21T18:28:07+00:00</updated>
<author>
<name>Archibald Elliott</name>
<email>archibald.elliott@arm.com</email>
</author>
<published>2022-11-21T18:26:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=53d234eab637307955f562974f76742b906024f5'/>
<id>53d234eab637307955f562974f76742b906024f5</id>
<content type='text'>
The intention behind this commit is to reduce the use of Host.h/Host.cpp
in Support, to where it is only necessary.

In this case, the endian-detection and support functionality needed by
these implementations can be provided by `Support/SwapByteOrder.h` in a
cleaner manner.

This patch also changes the byte swap in SHA256.cpp to use the byte swap
function from that header, rather than an inlined implementation.

Differential Revision: https://reviews.llvm.org/D137834
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The intention behind this commit is to reduce the use of Host.h/Host.cpp
in Support, to where it is only necessary.

In this case, the endian-detection and support functionality needed by
these implementations can be provided by `Support/SwapByteOrder.h` in a
cleaner manner.

This patch also changes the byte swap in SHA256.cpp to use the byte swap
function from that header, rather than an inlined implementation.

Differential Revision: https://reviews.llvm.org/D137834
</pre>
</div>
</content>
</entry>
<entry>
<title>Drop empty string literals from static_assert (NFC)</title>
<updated>2022-09-03T18:17:47+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2022-09-03T18:17:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=32aa35b50406165b395a5033daf2eacf57a439eb'/>
<id>32aa35b50406165b395a5033daf2eacf57a439eb</id>
<content type='text'>
Identified with modernize-unary-static-assert.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Identified with modernize-unary-static-assert.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Support/Hash functions] Change the `final()` and `result()` of the hashing functions to return an array of bytes</title>
<updated>2022-04-06T04:38:06+00:00</updated>
<author>
<name>Argyrios Kyrtzidis</name>
<email>kyrtzidis@apple.com</email>
</author>
<published>2022-04-04T23:48:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=330268ba346b679af786879d8f696c8c412a40eb'/>
<id>330268ba346b679af786879d8f696c8c412a40eb</id>
<content type='text'>
Returning `std::array&lt;uint8_t, N&gt;` is better ergonomics for the hashing functions usage, instead of a `StringRef`:

* When returning `StringRef`, client code is "jumping through hoops" to do string manipulations instead of dealing with fixed array of bytes directly, which is more natural
* Returning `std::array&lt;uint8_t, N&gt;` avoids the need for the hasher classes to keep a field just for the purpose of wrapping it and returning it as a `StringRef`

As part of this patch also:

* Introduce `TruncatedBLAKE3` which is useful for using BLAKE3 as the hasher type for `HashBuilder` with non-default hash sizes.
* Make `MD5Result` inherit from `std::array&lt;uint8_t, 16&gt;` which improves &amp; simplifies its API.

Differential Revision: https://reviews.llvm.org/D123100
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Returning `std::array&lt;uint8_t, N&gt;` is better ergonomics for the hashing functions usage, instead of a `StringRef`:

* When returning `StringRef`, client code is "jumping through hoops" to do string manipulations instead of dealing with fixed array of bytes directly, which is more natural
* Returning `std::array&lt;uint8_t, N&gt;` avoids the need for the hasher classes to keep a field just for the purpose of wrapping it and returning it as a `StringRef`

As part of this patch also:

* Introduce `TruncatedBLAKE3` which is useful for using BLAKE3 as the hasher type for `HashBuilder` with non-default hash sizes.
* Make `MD5Result` inherit from `std::array&lt;uint8_t, 16&gt;` which improves &amp; simplifies its API.

Differential Revision: https://reviews.llvm.org/D123100
</pre>
</div>
</content>
</entry>
<entry>
<title>[Support] Use static_assert instead of assert (NFC)</title>
<updated>2021-02-19T06:46:41+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2021-02-19T06:46:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2d5eb67235c763898f7c3327fb97b1ae1307d8e4'/>
<id>2d5eb67235c763898f7c3327fb97b1ae1307d8e4</id>
<content type='text'>
Identified with misc-static-assert.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Identified with misc-static-assert.
</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Ensure newlines at the end of files (NFC)</title>
<updated>2021-02-18T07:58:44+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2021-02-18T07:58:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e54579307b15ac0adfe96c5422e9cdd228ed1a76'/>
<id>e54579307b15ac0adfe96c5422e9cdd228ed1a76</id>
<content type='text'>
This patch eliminates pesky "No newline at end of file" messages from
git diff.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch eliminates pesky "No newline at end of file" messages from
git diff.
</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm/Support] Add SHA256 implementation</title>
<updated>2021-02-14T19:01:01+00:00</updated>
<author>
<name>cynecx</name>
<email>me@cynecx.net</email>
</author>
<published>2021-02-14T17:31:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=656ead1fb7db0afc4927446e5b604491efbba08c'/>
<id>656ead1fb7db0afc4927446e5b604491efbba08c</id>
<content type='text'>
Adds an *unaudited* SHA-256 implementation to `llvm/Support`. The ongoing lld-macho effort needs this to emit an adhoc code signature for macho files on macOS Big Sur.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D96540
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adds an *unaudited* SHA-256 implementation to `llvm/Support`. The ongoing lld-macho effort needs this to emit an adhoc code signature for macho files on macOS Big Sur.

Reviewed By: mehdi_amini

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