commit | c0733a534523cb82d5f0f30a7de50e8d5c91d4db | [log] [tgz] |
---|---|---|
author | Stella Laurenzo <stellaraccident@gmail.com> | Sun Nov 28 20:30:18 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 29 20:36:11 2021 -0800 |
tree | 48a8a4a784237a78d6cd69a0bdf6e069fb724b8d | |
parent | 8994e58a70418a903ed04aec65af261e99509dd7 [diff] |
[mlir][python] Implement more SymbolTable methods. * set_symbol_name, get_symbol_name, set_visibility, get_visibility, replace_all_symbol_uses, walk_symbol_tables * In integrations I've been doing, I've been reaching for all of these to do both general IR manipulation and module merging. * I don't love the replace_all_symbol_uses underlying APIs since they necessitate SYMBOL_COUNT walks and have various sharp edges. I'm hoping that whatever emerges eventually for this can still retain this simple API as a one-shot. Differential Revision: https://reviews.llvm.org/D114687 GitOrigin-RevId: bdc3183742f1e996d58bdf23b91966e64ad5e9a3
See https://mlir.llvm.org/ for more information.