Skip to content

[Support][BLAKE3] Restore static on blake3_hash4_neon #149046

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 2 commits into from
Jul 16, 2025

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Jul 16, 2025

This was dropped in #147948 and causes symbol conflicts if libblake3 is also linked.

This was dropped in llvm#147948 and causes symbol conflicts if
libblake3 is also linked.
@nikic nikic requested review from akyrtzi and slydiman July 16, 2025 09:34
@llvmbot
Copy link
Member

llvmbot commented Jul 16, 2025

@llvm/pr-subscribers-llvm-support

Author: Nikita Popov (nikic)

Changes

This was dropped in #147948 and causes symbol conflicts if libblake3 is also linked.


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

1 Files Affected:

  • (modified) llvm/lib/Support/BLAKE3/blake3_neon.c (+1)
diff --git a/llvm/lib/Support/BLAKE3/blake3_neon.c b/llvm/lib/Support/BLAKE3/blake3_neon.c
index 9629e10836864..a8e723499792a 100644
--- a/llvm/lib/Support/BLAKE3/blake3_neon.c
+++ b/llvm/lib/Support/BLAKE3/blake3_neon.c
@@ -245,6 +245,7 @@ INLINE void load_counters4(uint64_t counter, bool increment_counter,
       counter_high(counter + (mask & 2)), counter_high(counter + (mask & 3)));
 }
 
+static
 void blake3_hash4_neon(const uint8_t *const *inputs, size_t blocks,
                        const uint32_t key[8], uint64_t counter,
                        bool increment_counter, uint8_t flags,

@nikic
Copy link
Contributor Author

nikic commented Jul 16, 2025

Also upstreamed in BLAKE3-team/BLAKE3#497 to avoid this in the future.

@nikic nikic mentioned this pull request Jul 16, 2025
8 tasks
rust-bors bot added a commit to rust-lang/rust that referenced this pull request Jul 16, 2025
Update to LLVM 21

Depends on:
 * [x] llvm/llvm-project#147781
 * [x] llvm/llvm-project#147935
 * [x] llvm/llvm-project#139443
 * [x] llvm/llvm-project#148207
 * [x] llvm/llvm-project#148607
 * [ ] llvm/llvm-project#149046

r? `@ghost`
try-job: aarch64-gnu
try-job: aarch64-gnu-debug
try-job: dist-aarch64-linux
rust-bors bot added a commit to rust-lang/rust that referenced this pull request Jul 16, 2025
Update to LLVM 21

Depends on:
 * [x] llvm/llvm-project#147781
 * [x] llvm/llvm-project#147935
 * [x] llvm/llvm-project#139443
 * [x] llvm/llvm-project#148207
 * [x] llvm/llvm-project#148607
 * [ ] llvm/llvm-project#149046

r? `@ghost`
try-job: dist-x86_64-apple
try-job: dist-apple-various
try-job: x86_64-apple-1
try-job: x86_64-apple-2
try-job: dist-aarch64-apple
try-job: aarch64-apple
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!

@nikic nikic merged commit 1754a7d into llvm:main Jul 16, 2025
9 checks passed
@nikic nikic deleted the blake3-hash-neon branch July 16, 2025 15:49
@nikic nikic added this to the LLVM 21.x Release milestone Jul 16, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in LLVM Release Status Jul 16, 2025
@nikic
Copy link
Contributor Author

nikic commented Jul 16, 2025

/cherry-pick 1754a7d

@llvmbot

This comment was marked as outdated.

@llvmbot
Copy link
Member

llvmbot commented Jul 16, 2025

/pull-request #149126

@llvmbot llvmbot moved this from Needs Triage to Done in LLVM Release Status Jul 16, 2025
rust-bors bot added a commit to rust-lang/rust that referenced this pull request Jul 16, 2025
Update to LLVM 21

Depends on:
 * [x] llvm/llvm-project#147781
 * [x] llvm/llvm-project#147935
 * [x] llvm/llvm-project#139443
 * [x] llvm/llvm-project#148207
 * [x] llvm/llvm-project#148607
 * [ ] llvm/llvm-project#149046
 * [ ] llvm/llvm-project#149097

r? `@ghost`
try-job: x86_64-mingw-1
try-job: x86_64-mingw-2
try-job: dist-i686-mingw
try-job: dist-x86_64-mingw
try-job: aarch64-msvc-1
try-job: aarch64-msvc-2
try-job: dist-aarch64-msvc
rust-bors bot added a commit to rust-lang/rust that referenced this pull request Jul 17, 2025
Update to LLVM 21

Depends on:
 * [x] llvm/llvm-project#147781
 * [x] llvm/llvm-project#147935
 * [x] llvm/llvm-project#139443
 * [x] llvm/llvm-project#148207
 * [x] llvm/llvm-project#148607
 * [x] llvm/llvm-project#149046
 * [ ] llvm/llvm-project#149097

r? `@ghost`
try-job: x86_64-msvc-1
try-job: x86_64-msvc-2
try-job: i686-msvc-1
try-job: i686-msvc-2
try-job: x86_64-msvc-ext1
try-job: x86_64-msvc-ext2
try-job: x86_64-msvc-ext3
try-job: dist-x86_64-msvc
try-job: dist-i686-msvc
try-job: dist-x86_64-msvc-alt
tru pushed a commit to llvmbot/llvm-project that referenced this pull request Jul 17, 2025
This was dropped in llvm#147948 and causes symbol conflicts if libblake3 is
also linked.

(cherry picked from commit 1754a7d)
rust-bors bot added a commit to rust-lang/rust that referenced this pull request Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants