llvm/bolt/lib
Argyrios Kyrtzidis 330268ba34 [Support/Hash functions] Change the final() and result() of the hashing functions to return an array of bytes
Returning `std::array<uint8_t, N>` 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<uint8_t, N>` 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<uint8_t, 16>` which improves & simplifies its API.

Differential Revision: https://reviews.llvm.org/D123100
2022-04-05 21:38:06 -07:00
..
Core [Support/Hash functions] Change the final() and result() of the hashing functions to return an array of bytes 2022-04-05 21:38:06 -07:00
Passes [BOLT] LongJmp: Check for shouldEmit 2022-03-31 22:33:09 +03:00
Profile Cleanup LLVMDWARFDebugInfo 2022-02-15 09:16:03 +01:00
Rewrite [BOLT] Fix plt relocations symbol match 2022-04-05 15:57:26 +03:00
RuntimeLibs [BOLT][NFC] Fix braces usage in the rest of the codebase 2021-12-28 18:43:53 -08:00
Target [BOLT][NFC] Move isADD64rr and isADDri out of MCPlusBuilder class 2022-04-05 14:32:07 -07:00
Utils [BOLT] Set cold sections alignment explicitly 2022-03-15 22:12:17 +03:00
CMakeLists.txt