[Mlir-commits] [mlir] [MLIR] Add method to invalidate cached symbol table (PR #138014)
River Riddle
llvmlistbot at llvm.org
Wed Apr 30 12:09:58 PDT 2025
================
@@ -998,6 +998,13 @@ SymbolTable &SymbolTableCollection::getSymbolTable(Operation *op) {
return *it.first->second;
}
+void SymbolTableCollection::invalidateSymbolTable(Operation *op) {
+ auto it = symbolTables.find(op);
+
+ if (it != symbolTables.end())
+ symbolTables.erase(it);
----------------
River707 wrote:
```suggestion
symbolTables.erase(op);
```
?
https://github.com/llvm/llvm-project/pull/138014
More information about the Mlir-commits
mailing list