diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2021-01-06 15:13:08 +0000 |
---|---|---|
committer | Giorgio Arena <giorgio.arena@arm.com> | 2021-01-07 09:56:31 +0000 |
commit | c5a613982c12977cef2e2e16aaf9c50fa1629a88 (patch) | |
tree | 6686d4f27083d23cc598abd60d8d75921a86ea4d /arm_compute/core/TracePoint.h | |
parent | ee82d349a53d8f70cc2481581849575291872842 (diff) | |
download | ComputeLibrary-c5a613982c12977cef2e2e16aaf9c50fa1629a88.tar.gz |
Clean up macro definitions in arm_compute headers
- Expose loose macros by prefixing "ARM_COMPUTE_"
Resolves: COMPMID-3701
Signed-off-by: Giorgio Arena <giorgio.arena@arm.com>
Change-Id: I4334b01c1a5cd8585f4a1ba2d870be956c61a83d
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4769
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/TracePoint.h')
-rw-r--r-- | arm_compute/core/TracePoint.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/arm_compute/core/TracePoint.h b/arm_compute/core/TracePoint.h index 799d62ec2c..508c86acff 100644 --- a/arm_compute/core/TracePoint.h +++ b/arm_compute/core/TracePoint.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Arm Limited. + * Copyright (c) 2020-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -31,7 +31,7 @@ namespace arm_compute { #ifdef ARM_COMPUTE_TRACING_ENABLED -#define CREATE_TRACEPOINT(...) TracePoint __tp(__VA_ARGS__) +#define ARM_COMPUTE_CREATE_TRACEPOINT(...) TracePoint __tp(__VA_ARGS__) /** Class used to dump configuration values in functions and kernels */ class TracePoint final @@ -77,7 +77,7 @@ TracePoint::Args &&operator<<(typename std::enable_if < !std::is_pointer<T>::val template <typename T> TracePoint::Args &&operator<<(TracePoint::Args &&tp, const T *arg); -#define CONST_REF_CLASS(type) \ +#define ARM_COMPUTE_CONST_REF_CLASS(type) \ template <> \ TracePoint::Args &&operator<<(TracePoint::Args &&tp, const type &arg) \ { \ @@ -86,7 +86,7 @@ TracePoint::Args &&operator<<(TracePoint::Args &&tp, const T *arg); return std::move(tp); \ } -#define CONST_PTR_ADDRESS(type) \ +#define ARM_COMPUTE_CONST_PTR_ADDRESS(type) \ template <> \ TracePoint::Args &&operator<<(TracePoint::Args &&tp, const type *arg) \ { \ @@ -94,7 +94,7 @@ TracePoint::Args &&operator<<(TracePoint::Args &&tp, const T *arg); tp.args.push_back(#type "*(" + to_ptr_string(arg) + ")"); \ return std::move(tp); \ } -#define CONST_PTR_CLASS(type) \ +#define ARM_COMPUTE_CONST_PTR_CLASS(type) \ template <> \ TracePoint::Args &&operator<<(TracePoint::Args &&tp, const type *arg) \ { \ @@ -106,7 +106,7 @@ TracePoint::Args &&operator<<(TracePoint::Args &&tp, const T *arg); return std::move(tp); \ } -#define CONST_REF_SIMPLE(type) \ +#define ARM_COMPUTE_CONST_REF_SIMPLE(type) \ template <> \ TracePoint::Args &&operator<<(TracePoint::Args &&tp, const type &arg) \ { \ @@ -115,19 +115,19 @@ TracePoint::Args &&operator<<(TracePoint::Args &&tp, const T *arg); return std::move(tp); \ } -#define TRACE_TO_STRING(type) \ +#define ARM_COMPUTE_TRACE_TO_STRING(type) \ std::string to_string(const type &arg) \ { \ ARM_COMPUTE_UNUSED(arg); \ return ""; \ } #else /* ARM_COMPUTE_TRACING_ENABLED */ -#define CREATE_TRACEPOINT(...) -#define CONST_REF_CLASS(type) -#define CONST_PTR_ADDRESS(type) -#define CONST_PTR_CLASS(type) -#define CONST_REF_SIMPLE(type) -#define TRACE_TO_STRING(type) +#define ARM_COMPUTE_CREATE_TRACEPOINT(...) +#define ARM_COMPUTE_CONST_REF_CLASS(type) +#define ARM_COMPUTE_CONST_PTR_ADDRESS(type) +#define ARM_COMPUTE_CONST_PTR_CLASS(type) +#define ARM_COMPUTE_CONST_REF_SIMPLE(type) +#define ARM_COMPUTE_TRACE_TO_STRING(type) #endif /* ARM_COMPUTE_TRACING_ENABLED */ } //namespace arm_compute |