Fix build error v8.2-a-sve
* bf16 instrinsics should be used when __ARM_FEATURE_SVE_BF16 is present
* Fixed NDK14 compiler warning declaring copy ctor for Window explicitly
* Resolves MLCE-867
Change-Id: I84ac5f213d9700e2fda7da55d83bba7cf79ad52c
Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7728
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/src/core/NEON/wrapper/svtraits.h b/src/core/NEON/wrapper/svtraits.h
index 1d599a2..5ccd0ba 100644
--- a/src/core/NEON/wrapper/svtraits.h
+++ b/src/core/NEON/wrapper/svtraits.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021 Arm Limited.
+ * Copyright (c) 2021-2022 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -59,7 +59,10 @@
DEFINE_TYPES(float16_t)
DEFINE_TYPES(float32_t)
DEFINE_TYPES(float64_t)
+
+#if __ARM_FEATURE_SVE_BF16
DEFINE_TYPES(bfloat16_t)
+#endif // #if __ARM_FEATURE_SVE_BF16
#undef DEFINE_TYPES