[llvm-commits] [compiler-rt] r172216 - /compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
Dmitry Vyukov
dvyukov at google.com
Fri Jan 11 08:40:24 PST 2013
Author: dvyukov
Date: Fri Jan 11 10:40:24 2013
New Revision: 172216
URL: http://llvm.org/viewvc/llvm-project?rev=172216&view=rev
Log:
asan: add memory prefetch to quarantine recycle
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=172216&r1=172215&r2=172216&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Fri Jan 11 10:40:24 2013
@@ -38,6 +38,7 @@
# define UNLIKELY(x) (x)
# define UNUSED
# define USED
+# define PREFETCH(x) /* _mm_prefetch(x, _MM_HINT_NTA) */
#else // _MSC_VER
# define ALWAYS_INLINE __attribute__((always_inline))
# define ALIAS(x) __attribute__((alias(x)))
@@ -51,6 +52,7 @@
# define UNLIKELY(x) __builtin_expect(!!(x), 0)
# define UNUSED __attribute__((unused))
# define USED __attribute__((used))
+# define PREFETCH(x) __builtin_prefetch(x)
#endif // _MSC_VER
#if defined(_WIN32)
More information about the llvm-commits
mailing list