================ @@ -1643,17 +1644,31 @@ def GlobalOp : CIR_Op<"global"> { described by the type of the variable. The `linkage` tracks C/C++ linkage types, currently very similar to LLVM's. + Symbol visibility in `sym_visibility` is defined in terms of MLIR's visibility + and verified to be in accordance to `linkage`. }]; + // Note that both sym_name and sym_visibility are tied to Symbol trait. + // TODO: sym_visibility can possibly be represented by implementing the + // necessary Symbol's interface in terms of linkage instead. let arguments = (ins SymbolNameAttr:$sym_name, + DefaultValuedAttr< + VisibilityAttr, ---------------- xlauko wrote:
```suggestion CIR_VisibilityAttr, ``` https://github.com/llvm/llvm-project/pull/141973 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits