[ASAN] Support memory checks on vp.load/store.
authorYeting Kuo <yeting.kuo@sifive.com>
Sun, 7 May 2023 08:33:36 +0000 (16:33 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Sun, 7 May 2023 11:30:16 +0000 (19:30 +0800)
commit42601e116b662a2329f9bf6db9e16b561a9d7337
treeff3ff54453d103e5c080134542ceabd605ea7121
parentfbc6a2a3f6df46b4864fb45bc0c555a87c03dc06
[ASAN] Support memory checks on vp.load/store.

The patch adds new member MaybeEVL into InterestingMemoryOperand to represent
the effective vector length for vp intrinsics. It may be extended for some target intrinsics in the future.

Reviewed By: kito-cheng

Differential Revision: https://reviews.llvm.org/D146208
llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerCommon.h
llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
llvm/test/Instrumentation/AddressSanitizer/asan-vp-load-store.ll [new file with mode: 0644]