[sanitizer][msan] The LLVM part of the LoongArch memory sanitizer implementation
authorzhanglimin <zhanglimin@loongson.cn>
Thu, 29 Jun 2023 03:40:22 +0000 (11:40 +0800)
committerzhanglimin <zhanglimin@loongson.cn>
Thu, 29 Jun 2023 03:41:27 +0000 (11:41 +0800)
commit3749292e508b92f6a355e6a6e5f3456bbdd43c8e
tree43f189c27e0231d55c59bab4a82d65a7225b647f
parenta806ec4857c2c662c89755edba56d893ae1beeb4
[sanitizer][msan] The LLVM part of the LoongArch memory sanitizer implementation

This patch enabled msan in LLVM and fixed all failing tests in
check-msan.

It does not add VarArgHelper implementation on LoongArch, which
will be done separately later. And it adds a test for VarArgNoOpHelper,
which is based on the X86 one.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D152692
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
llvm/test/Instrumentation/MemorySanitizer/LoongArch/vararg.ll [new file with mode: 0644]