summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/thirdparty/ittnotify
diff options
context:
space:
mode:
authorAndrey Churbanov <Andrey.Churbanov@intel.com>2015-01-13 14:43:35 +0000
committerAndrey Churbanov <Andrey.Churbanov@intel.com>2015-01-13 14:43:35 +0000
commitcbda868206d5fd866c1e1a193c2f92273d3c46ee (patch)
tree6ad7988377772afa1adc5ea07f05fae9ff21c12e /openmp/runtime/src/thirdparty/ittnotify
parenta168ef753f8b1d25208a9a5415a36a6b374f0f8a (diff)
downloadbcm5719-llvm-cbda868206d5fd866c1e1a193c2f92273d3c46ee.tar.gz
bcm5719-llvm-cbda868206d5fd866c1e1a193c2f92273d3c46ee.zip
aarch64 port sent by C. Bergstrom
llvm-svn: 225792
Diffstat (limited to 'openmp/runtime/src/thirdparty/ittnotify')
-rw-r--r--openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h b/openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h
index 863ab956d63..1323254f18b 100644
--- a/openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h
+++ b/openmp/runtime/src/thirdparty/ittnotify/ittnotify_config.h
@@ -128,6 +128,11 @@
# define ITT_ARCH_IA32E 2
#endif /* ITT_ARCH_IA32E */
+/* Was there a magical reason we didn't have 3 here before? */
+#ifndef ITT_ARCH_AARCH64
+# define ITT_ARCH_AARCH64 3
+#endif /* ITT_ARCH_AARCH64 */
+
#ifndef ITT_ARCH_ARM
# define ITT_ARCH_ARM 4
#endif /* ITT_ARCH_ARM */
@@ -148,6 +153,8 @@
# define ITT_ARCH ITT_ARCH_ARM
# elif defined __powerpc64__
# define ITT_ARCH ITT_ARCH_PPC64
+# elif defined __aarch64__
+# define ITT_ARCH ITT_ARCH_AARCH64
# endif
#endif
@@ -281,7 +288,7 @@ ITT_INLINE long __TBB_machine_fetchadd4(volatile void* ptr, long addend)
: "memory");
return result;
}
-#elif ITT_ARCH==ITT_ARCH_ARM || ITT_ARCH==ITT_ARCH_PPC64
+#elif ITT_ARCH==ITT_ARCH_ARM || ITT_ARCH==ITT_ARCH_PPC64 || ITT_ARCH==ITT_ARCH_AARCH64
#define __TBB_machine_fetchadd4(addr, val) __sync_fetch_and_add(addr, val)
#endif /* ITT_ARCH==ITT_ARCH_IA64 */
#ifndef ITT_SIMPLE_INIT
OpenPOWER on IntegriCloud