Skip to content

Commit a5212e4

Browse files
committed
update
1 parent 6efcee3 commit a5212e4

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

libc/src/__support/CPP/simd.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
#ifndef LLVM_LIBC_SRC___SUPPORT_CPP_SIMD_H
2626
#define LLVM_LIBC_SRC___SUPPORT_CPP_SIMD_H
2727

28+
#if LIBC_HAS_VECTOR_TYPE
29+
2830
namespace LIBC_NAMESPACE_DECL {
2931
namespace cpp {
3032

31-
static_assert(LIBC_HAS_VECTOR_TYPE, "compiler does not support vector types");
32-
3333
namespace internal {
3434

3535
template <typename T>
@@ -223,4 +223,5 @@ LIBC_INLINE constexpr simd<T, N> select(simd<bool, N> m, simd<T, N> x,
223223
} // namespace cpp
224224
} // namespace LIBC_NAMESPACE_DECL
225225

226+
#endif // LIBC_HAS_VECTOR_TYPE
226227
#endif

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,18 @@ libc_support_library(
677677
],
678678
)
679679

680+
libc_support_library(
681+
name = "__support_cpp_simd",
682+
hdrs = ["src/__support/CPP/simd.h"],
683+
deps = [
684+
":__support_cpp_algorithm",
685+
":__support_cpp_bit",
686+
":__support_cpp_type_traits",
687+
":__support_macros_attributes",
688+
":hdr_stdint_proxy",
689+
],
690+
)
691+
680692
libc_support_library(
681693
name = "__support_cpp_span",
682694
hdrs = ["src/__support/CPP/span.h"],
@@ -4938,6 +4950,7 @@ libc_support_library(
49384950
"src/string/memory_utils/arm/inline_memset.h",
49394951
"src/string/memory_utils/generic/aligned_access.h",
49404952
"src/string/memory_utils/generic/byte_per_byte.h",
4953+
"src/string/memory_utils/generic/inline_strlen.h",
49414954
"src/string/memory_utils/inline_bcmp.h",
49424955
"src/string/memory_utils/inline_bzero.h",
49434956
"src/string/memory_utils/inline_memcmp.h",
@@ -4964,6 +4977,7 @@ libc_support_library(
49644977
":__support_cpp_array",
49654978
":__support_cpp_bit",
49664979
":__support_cpp_cstddef",
4980+
":__support_cpp_simd",
49674981
":__support_cpp_type_traits",
49684982
":__support_macros_attributes",
49694983
":__support_macros_optimization",

0 commit comments

Comments
 (0)