Skip to content

[Support][BLAKE3] Prefix blake3_xof_many_avx512 #148607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2025
Merged

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Jul 14, 2025

This symbol was introduced in #147948, but not prefixed, resulting in conflicts if libblake3 and LLVM are both linked statically into the same binary.

This symbol was introduced in llvm#147948, but not prefixed, resulting
in conflicts if libblake3 and LLVM are both linked statically
into the same binary.
@llvmbot
Copy link
Member

llvmbot commented Jul 14, 2025

@llvm/pr-subscribers-llvm-support

Author: Nikita Popov (nikic)

Changes

This symbol was introduced in #147948, but not prefixed, resulting in conflicts if libblake3 and LLVM are both linked statically into the same binary.


Full diff: https://github.com/llvm/llvm-project/pull/148607.diff

1 Files Affected:

  • (modified) llvm/lib/Support/BLAKE3/llvm_blake3_prefix.h (+2)
diff --git a/llvm/lib/Support/BLAKE3/llvm_blake3_prefix.h b/llvm/lib/Support/BLAKE3/llvm_blake3_prefix.h
index 3cee3691e4cf7..d5be360815add 100644
--- a/llvm/lib/Support/BLAKE3/llvm_blake3_prefix.h
+++ b/llvm/lib/Support/BLAKE3/llvm_blake3_prefix.h
@@ -34,6 +34,8 @@
 #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_xof_many_avx512 llvm_blake3_xof_many_avx512
+#define _blake3_xof_many_avx512 _llvm_blake3_xof_many_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

@nikic nikic mentioned this pull request Jul 14, 2025
5 tasks
@akyrtzi
Copy link
Contributor

akyrtzi commented Jul 14, 2025

Thank you for the catch and fix!

Copy link
Contributor

@slydiman slydiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@aeubanks
Copy link
Contributor

(merging since this should fix our CI)

@aeubanks aeubanks merged commit 4b52d22 into llvm:main Jul 14, 2025
11 checks passed
rust-bors bot added a commit to rust-lang/rust that referenced this pull request Jul 15, 2025
rupprecht added a commit to rupprecht/llvm-project that referenced this pull request Jul 16, 2025
Added by llvm#147948, blake3_xof_many and blake3_compress_subtree_wide cause conflicts when linking llvm and blake3 statically into the same binary. Similar to llvm#148607.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants