forked from rust-lang/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Support/BLAKE3] Rename blake3_* -> llvm_blake3_* to avoid symbol col…
…lisions While some blake3 symbols are already prefixed, a number of symbols with hidden visibility have been left without an `llvm_` prefix. This results in symbol collisions when statically linking llvm into a binary that also uses the external blake3 library. Reviewed By: akyrtzi, MaskRay Differential Revision: https://reviews.llvm.org/D143981
- Loading branch information
Showing
14 changed files
with
118 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#include "llvm_blake3_prefix.h" | ||
|
||
.intel_syntax noprefix | ||
|
||
.global _blake3_hash_many_avx512 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#ifndef LLVM_BLAKE3_PREFIX_H | ||
#define LLVM_BLAKE3_PREFIX_H | ||
|
||
#define BLAKE3_VERSION_STRING LLVM_BLAKE3_VERSION_STRING | ||
#define BLAKE3_KEY_LEN LLVM_BLAKE3_KEY_LEN | ||
#define BLAKE3_OUT_LEN LLVM_BLAKE3_OUT_LEN | ||
#define BLAKE3_BLOCK_LEN LLVM_BLAKE3_BLOCK_LEN | ||
#define BLAKE3_CHUNK_LEN LLVM_BLAKE3_CHUNK_LEN | ||
#define BLAKE3_MAX_DEPTH LLVM_BLAKE3_MAX_DEPTH | ||
#define blake3_hasher llvm_blake3_hasher | ||
#define blake3_chunk_state llvm_blake3_chunk_state | ||
#define blake3_compress_in_place llvm_blake3_compress_in_place | ||
#define blake3_compress_xof llvm_blake3_compress_xof | ||
#define blake3_hash_many llvm_blake3_hash_many | ||
#define blake3_simd_degree llvm_blake3_simd_degree | ||
#define blake3_compress_in_place_portable llvm_blake3_compress_in_place_portable | ||
#define blake3_compress_xof_portable llvm_blake3_compress_xof_portable | ||
#define blake3_hash_many_portable llvm_blake3_hash_many_portable | ||
#define blake3_compress_in_place_sse2 llvm_blake3_compress_in_place_sse2 | ||
#define _blake3_compress_in_place_sse2 _llvm_blake3_compress_in_place_sse2 | ||
#define blake3_compress_xof_sse2 llvm_blake3_compress_xof_sse2 | ||
#define _blake3_compress_xof_sse2 _llvm_blake3_compress_xof_sse2 | ||
#define blake3_hash_many_sse2 llvm_blake3_hash_many_sse2 | ||
#define _blake3_hash_many_sse2 _llvm_blake3_hash_many_sse2 | ||
#define blake3_compress_in_place_sse41 llvm_blake3_compress_in_place_sse41 | ||
#define _blake3_compress_in_place_sse41 _llvm_blake3_compress_in_place_sse41 | ||
#define blake3_compress_xof_sse41 llvm_blake3_compress_xof_sse41 | ||
#define _blake3_compress_xof_sse41 _llvm_blake3_compress_xof_sse41 | ||
#define blake3_hash_many_sse41 llvm_blake3_hash_many_sse41 | ||
#define _blake3_hash_many_sse41 _llvm_blake3_hash_many_sse41 | ||
#define blake3_hash_many_avx2 llvm_blake3_hash_many_avx2 | ||
#define _blake3_hash_many_avx2 _llvm_blake3_hash_many_avx2 | ||
#define blake3_compress_in_place_avx512 llvm_blake3_compress_in_place_avx512 | ||
#define _blake3_compress_in_place_avx512 _llvm_blake3_compress_in_place_avx512 | ||
#define blake3_compress_xof_avx512 llvm_blake3_compress_xof_avx512 | ||
#define _blake3_compress_xof_avx512 _llvm_blake3_compress_xof_avx512 | ||
#define blake3_hash_many_avx512 llvm_blake3_hash_many_avx512 | ||
#define _blake3_hash_many_avx512 _llvm_blake3_hash_many_avx512 | ||
#define blake3_hash_many_neon llvm_blake3_hash_many_neon | ||
|
||
#endif /* LLVM_BLAKE3_PREFIX_H */ |