[mlir] Add msan memory unpoisoning macros to mlir ExecutionEngine
authorEugene Zhulenev <ezhulenev@google.com>
Tue, 12 Apr 2022 00:28:51 +0000 (17:28 -0700)
committerEugene Zhulenev <ezhulenev@google.com>
Tue, 12 Apr 2022 01:58:28 +0000 (18:58 -0700)
commitb35b9e307fdd2b44b0481198aefc311c706d2366
tree0e6139d2ada72460e76aa660a5a07d99eb666b7a
parentfa4b4f0fcb38e8f49e635ff486cb99d55daa07e0
[mlir] Add msan memory unpoisoning macros to mlir ExecutionEngine

Adding annotations on as-needed bases, currently only for memrefCopy, but in general all C API functions that take pointers to memory allocated/initialized inside the jit-compiled code must be annotated, to be able to run with msan.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D123557
mlir/include/mlir/ExecutionEngine/Msan.h [new file with mode: 0644]
mlir/lib/ExecutionEngine/CRunnerUtils.cpp
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel