[llvm] 0bfa1ab - [gn build] (manually) port 9aa701984d39 (BLAKE3)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 24 11:51:33 PDT 2022
Author: Nico Weber
Date: 2022-03-24T14:51:24-04:00
New Revision: 0bfa1ab025e33662960363d2cddd4254eb609cf4
URL: https://github.com/llvm/llvm-project/commit/0bfa1ab025e33662960363d2cddd4254eb609cf4
DIFF: https://github.com/llvm/llvm-project/commit/0bfa1ab025e33662960363d2cddd4254eb609cf4.diff
LOG: [gn build] (manually) port 9aa701984d39 (BLAKE3)
Added:
llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
Modified:
llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
new file mode 100644
index 0000000000000..6ecc0f620e45a
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/lib/Support/BLAKE3/BUILD.gn
@@ -0,0 +1,15 @@
+static_library("BLAKE3") {
+ output_name = "LLVMSupportBlake3"
+ sources = [
+ "blake3.c",
+ "blake3_dispatch.c",
+ "blake3_portable.c",
+ ]
+ defines = [
+ "BLAKE3_NO_AVX512",
+ "BLAKE3_NO_AVX2",
+ "BLAKE3_NO_SSE41",
+ "BLAKE3_NO_SSE2",
+ "BLAKE3_USE_NEON=0",
+ ]
+}
diff --git a/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
index a1ae977868f30..65b094ea5c80d 100644
--- a/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
@@ -1,6 +1,7 @@
static_library("Support") {
output_name = "LLVMSupport"
deps = [
+ "BLAKE3",
"//llvm/include/llvm/Config:config",
"//llvm/lib/Demangle",
"//llvm/utils/gn/build/libs/pthread",
diff --git a/llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn b/llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
index 81564ee40c069..a5f9e7ab197a7 100644
--- a/llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
@@ -12,11 +12,14 @@ unittest("SupportTests") {
"AllocatorTest.cpp",
"AnnotationsTest.cpp",
"ArrayRecyclerTest.cpp",
+ "BLAKE3Test.cpp",
"Base64Test.cpp",
"BinaryStreamTest.cpp",
"BlockFrequencyTest.cpp",
"BranchProbabilityTest.cpp",
"CRCTest.cpp",
+ "CSKYAttributeParserTest.cpp",
+ "CSKYTargetParserTest.cpp",
"CachePruningTest.cpp",
"Casting.cpp",
"CheckedArithmeticTest.cpp",
@@ -25,8 +28,6 @@ unittest("SupportTests") {
"CompressionTest.cpp",
"ConvertUTFTest.cpp",
"CrashRecoveryTest.cpp",
- "CSKYAttributeParserTest.cpp",
- "CSKYTargetParserTest.cpp",
"DJBTest.cpp",
"DataExtractorTest.cpp",
"DebugCounterTest.cpp",
More information about the llvm-commits
mailing list