diff options
author | Alex Zinenko <zinenko@google.com> | 2022-05-25 15:57:22 +0200 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2022-05-26 12:28:41 +0200 |
commit | 73c3dff1b3e42c278f4c675418b0cb5e8784174b (patch) | |
tree | 3bbab30f175884236f8c128c531fbba165db9069 /llvm/lib/FileCheck/FileCheck.cpp | |
parent | b45e04685894a9d8467a291e2d9e8298330a5ab7 (diff) | |
download | llvm-73c3dff1b3e42c278f4c675418b0cb5e8784174b.zip llvm-73c3dff1b3e42c278f4c675418b0cb5e8784174b.tar.gz llvm-73c3dff1b3e42c278f4c675418b0cb5e8784174b.tar.bz2 |
[mlir] Use-after-free checker for the Transform dialect
The Transform dialect uses the side effect modeling mechanism to record the
effects of the transform ops on the mapping between Transform IR values and
Payload IR ops. Introduce a checker pass that warns if a Transform IR value is
used after it has been freed (consumed). This pass is mostly intended as a
debugging aid in addition to the verification/assertion mechanisms in the
transform interpreter. It reports all potential use-after-free situations.
The implementation makes a series of simplifying assumptions to be simple and
conservative. A more advanced implementation would rely on the data flow-like
analysis associated with a side-effect resource rather than a value, which is
currently not supported by the analysis infrastructure.
Reviewed By: springerm
Differential Revision: https://reviews.llvm.org/D126381
Diffstat (limited to 'llvm/lib/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions