[hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls
authorEnna1 <xumingjie.enna1@bytedance.com>
Sat, 27 May 2023 02:35:18 +0000 (10:35 +0800)
committerEnna1 <xumingjie.enna1@bytedance.com>
Sat, 27 May 2023 02:35:52 +0000 (10:35 +0800)
commitba13e1b4381e87f80837f8215309af56a0da2c9c
tree3cf73bdf177de34c666ae23527b230e0433c0c97
parentb33dcc5b1eda6a564138b0e86f726abf269fb561
[hwasan] support hwasan-match-all-tag flag for hwasan meminstrinsic calls

This patch implements `__hwasan_memset_match_all`, `__hwasan_memcpy_match_all` and `__hwasan_memmove_match_all`, making hwasan-match-all-tag flag working for hwasan versions of memset, memcpy and memmove.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D149943
compiler-rt/lib/hwasan/hwasan_interface_internal.h
compiler-rt/lib/hwasan/hwasan_memintrinsics.cpp
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/test/Instrumentation/HWAddressSanitizer/mem-intrinsics.ll