[Openmp-commits] [openmp] [llvm] [compiler-rt] [TSan] Add instrumentation of AVX2 and AVX512 instructions (PR #74636)

Dmitry Vyukov via Openmp-commits openmp-commits at lists.llvm.org
Mon Dec 11 23:53:02 PST 2023


================
@@ -0,0 +1,43 @@
+#include "tsan_interface_avx512.h"
+
+#include <immintrin.h>
+#include <inttypes.h>
+#include <stdint.h>
+#include <unistd.h>
+
+#include "sanitizer_common/sanitizer_internal_defs.h"
+#include "sanitizer_common/sanitizer_ptrauth.h"
+#include "tsan_interface_ann.h"
+#include "tsan_rtl.h"
+
+#define CALLERPC ((uptr)__builtin_return_address(0))
+
+using namespace __tsan;
+
+#ifdef __AVX512F__
----------------
dvyukov wrote:

Won't it be better to always compile this file with -mavx512f?

https://github.com/llvm/llvm-project/pull/74636


More information about the Openmp-commits mailing list