aboutsummaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorMatthew Bentham <Matthew.Bentham@arm.com>2023-05-31 13:18:33 +0000
committerMatthew Bentham <matthew.bentham@arm.com>2023-06-26 12:44:15 +0000
commit7d9a78ebfb3553b95421a0da5e2686a3923748db (patch)
tree666915383e31a9da81f2605f7023c0e85e8226b3 /support
parenta2bb80ea7111509c24caad8629533089decef430 (diff)
downloadComputeLibrary-7d9a78ebfb3553b95421a0da5e2686a3923748db.tar.gz
Remove dependency on fp16 definitions from some core include files
This significantly improves the compilation times for parts of the core library that just need a definition of float16_t rather than access to all of the fp16 intrinsics. Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com> Change-Id: I5da1c6b0df0dd87d1d17948cd2e9b7375874f455 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/529385 Tested-by: bsgcomp <bsgcomp@arm.com> Reviewed-by: Pablo Tello <pablo.tello@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9781 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gunes Bayir <gunes.bayir@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'support')
-rw-r--r--support/ToolchainSupport.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/support/ToolchainSupport.h b/support/ToolchainSupport.h
index 0557d1d775..96826dad5e 100644
--- a/support/ToolchainSupport.h
+++ b/support/ToolchainSupport.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2022 Arm Limited.
+ * Copyright (c) 2017-2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -33,10 +33,6 @@
#include <string>
#include <type_traits>
-#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
-#include <arm_neon.h>
-#endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
-
#include "support/Bfloat16.h"
#include "support/Half.h"
@@ -46,6 +42,10 @@
namespace arm_compute
{
+#ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
+typedef __fp16 float16_t;
+#endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC
+
namespace support
{
namespace cpp11