[llvm] [Support][BLAKE3] Prefix blake3_xof_many_avx512 (PR #148607)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 14 03:43:33 PDT 2025


https://github.com/nikic created https://github.com/llvm/llvm-project/pull/148607

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

>From 57d6102ab4bfc8bdd7146e49c98e089559c15e52 Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Mon, 14 Jul 2025 12:41:54 +0200
Subject: [PATCH] [Support][BLAKE3] Prefix blake3_xof_many_avx512

This symbol was introduced in #147948, but not prefixed, resulting
in conflicts if libblake3 and LLVM are both linked statically
into the same binary.
---
 llvm/lib/Support/BLAKE3/llvm_blake3_prefix.h | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the llvm-commits mailing list