[all-commits] [llvm/llvm-project] 310a6f: [MSan] Enable MSAN for loongarch64

Ami-zhang via All-commits all-commits at lists.llvm.org
Wed Jun 28 20:39:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 310a6f12b5b80f6b77d8551c53e0fc2a2844df07
      https://github.com/llvm/llvm-project/commit/310a6f12b5b80f6b77d8551c53e0fc2a2844df07
  Author: zhanglimin <zhanglimin at loongson.cn>
  Date:   2023-06-29 (Thu, 29 Jun 2023)

  Changed paths:
    M compiler-rt/cmake/Modules/AllSupportedArchDefs.cmake
    M compiler-rt/lib/msan/msan.h
    M compiler-rt/lib/msan/msan_allocator.cpp
    M compiler-rt/lib/msan/tests/msan_test.cpp
    M compiler-rt/test/msan/mmap.cpp
    M compiler-rt/test/msan/mmap_below_shadow.cpp
    M compiler-rt/test/msan/param_tls_limit.cpp
    M compiler-rt/test/msan/signal_stress_test.cpp
    M compiler-rt/test/msan/strlen_of_shadow.cpp
    M compiler-rt/test/msan/vararg.cpp

  Log Message:
  -----------
  [MSan] Enable MSAN for loongarch64

This patch adds basic memory sanitizer support for loongarch64
with 47-bit VMA, which memory layout is based on x86_64.

The LLVM part of the LoongArch memory sanitizer implementation will
be done separately, which will fix failing tests in check-msan.
These failing tests fail with the following same error: "error in
backend: unsupported architecture".

Reviewed By: #sanitizers, vitalybuka, MaskRay

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




More information about the All-commits mailing list