[all-commits] [llvm/llvm-project] b89b42: [tsan] Add tsan support for loongarch64

Lu Weining via All-commits all-commits at lists.llvm.org
Wed Dec 7 18:12:27 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b89b42b31c4590bb01076ed52f1c781ff787e0ef
      https://github.com/llvm/llvm-project/commit/b89b42b31c4590bb01076ed52f1c781ff787e0ef
  Author: Youling Tang <tangyouling at loongson.cn>
  Date:   2022-12-08 (Thu, 08 Dec 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Linux.cpp
    M compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
    M compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_linux.h
    M compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp
    M compiler-rt/lib/tsan/rtl/CMakeLists.txt
    M compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
    M compiler-rt/lib/tsan/rtl/tsan_platform.h
    M compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
    M compiler-rt/lib/tsan/rtl/tsan_rtl.h
    A compiler-rt/lib/tsan/rtl/tsan_rtl_loongarch64.S
    M compiler-rt/test/sanitizer_common/print_address.h
    M compiler-rt/test/tsan/map32bit.cpp
    M compiler-rt/test/tsan/mmap_large.cpp

  Log Message:
  -----------
  [tsan] Add tsan support for loongarch64

This patch enabled tsan for loongarch64 with 47-bit VMA layout. All
tests are passing.

Also adds assembly routines to enable setjmp/longjmp for loongarch64
on linux.

Reviewed By: dvyukov, SixWeining, #sanitizers

Differential Revision: https://reviews.llvm.org/D138489




More information about the All-commits mailing list