Unverified Commit 7d055af1 authored by Joshua Cao's avatar Joshua Cao Committed by GitHub
Browse files

[mlir][Symbol] Add verification that symbol's parent is a SymbolTable (#80590)

Following the discussion in
https://discourse.llvm.org/t/symboltable-and-symbol-parent-child-relationship/75446

,
we should enforce that a symbol's immediate parent is a symbol table.

I changed some tests to pass the verification. In most cases, we can
wrap the func with a module, change the func to another op with regions
i.e. scf.if, or change the expected error message.

---------

Co-authored-by: default avatarMehdi Amini <joker.eph@gmail.com>
parent d53043fa
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment