diff options
author | Alex Zinenko <zinenko@google.com> | 2022-06-10 11:57:59 +0200 |
---|---|---|
committer | Alex Zinenko <zinenko@google.com> | 2022-06-10 13:05:34 +0200 |
commit | 6403e1b12a61dd7dd2682916afdec6b0a8049c10 (patch) | |
tree | cde195eb988808fc89b08520821b5d35275c544a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b73c2280f5f3596c65d6c145abc2c4a97a532fc6 (diff) | |
download | llvm-6403e1b12a61dd7dd2682916afdec6b0a8049c10.zip llvm-6403e1b12a61dd7dd2682916afdec6b0a8049c10.tar.gz llvm-6403e1b12a61dd7dd2682916afdec6b0a8049c10.tar.bz2 |
[mlir] add a dynamic user-after-parent-freed transform dialect check
In the transform dialect, a transform IR handle may be pointing to a payload IR
operation that is an ancestor of another payload IR operation pointed to by
another handle. If such a "parent" handle is consumed by a transformation, this
indicates that the associated operation is likely rewritten, which in turn
means that the "child" handle may now be associated with a dangling pointer or
a pointer to a different operation than originally. Add a handle invalidation
mechanism to guard against such situations by reporting errors at runtime.
Reviewed By: springerm
Differential Revision: https://reviews.llvm.org/D127480
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions