[Mlir-commits] [mlir] [mlir][IR] Fix symbol visibility API (PR #218910)

Mehdi Amini llvmlistbot at llvm.org
Wed Aug 26 05:02:03 PDT 2026


================
@@ -45,10 +45,13 @@ following properties:
 *   A `StringAttr` attribute named
     'SymbolTable::getSymbolAttrName()'(`sym_name`).
     -   This attribute defines the symbolic 'name' of the operation.
-*   An optional `StringAttr` attribute named
-    'SymbolTable::getVisibilityAttrName()'(`sym_visibility`)
-    -   This attribute defines the [visibility](#symbol-visibility) of the
-        symbol, or more specifically in-which scopes it may be accessed.
+*   A [visibility](#symbol-visibility) (`getVisibility`/`setVisibility`)
+    -   The visibility defines in which scopes the symbol may be accessed.
+    -   By default this is stored in an optional `StringAttr` attribute named
----------------
joker-eph wrote:

```suggestion
    -   By default this is stored in an optional inherent `StringAttr` attribute named
```

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


More information about the Mlir-commits mailing list