[Mlir-commits] [mlir] [mlir][SymbolTable] Handle unknown symbol users in SymbolUserMap (PR #227918)

Mehdi Amini llvmlistbot at llvm.org
Tue Oct 6 02:36:38 PDT 2026


================
@@ -1076,6 +1081,16 @@ SymbolUserMap::SymbolUserMap(SymbolTableCollection &symbolTable,
 }
 
 bool SymbolUserMap::areAllUsesVisible(Operation *symbol) const {
+
+  if (!symbolTablesWithUnknownUsers.empty()) {
+    for (Operation *parent = symbol->getParentOp(); parent;
+         parent = parent->getParentOp()) {
+      if (symbolTablesWithUnknownUsers.contains(parent)) {
+        return false;
+      }
----------------
joker-eph wrote:

```suggestion
      if (symbolTablesWithUnknownUsers.contains(parent))
        return false;
```

https://github.com/llvm/llvm-project/pull/227918


More information about the Mlir-commits mailing list