@@ -55,19 +55,19 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
5555 InterfaceMethod<"Returns true if this symbol has nested visibility.",
5656 "bool", "isNested", (ins), [{}],
5757 /*defaultImplementation=*/[{
58- return getVisibility() == mlir::SymbolTable::Visibility::Nested;
58+ return $_op. getVisibility() == mlir::SymbolTable::Visibility::Nested;
5959 }]
6060 >,
6161 InterfaceMethod<"Returns true if this symbol has private visibility.",
6262 "bool", "isPrivate", (ins), [{}],
6363 /*defaultImplementation=*/[{
64- return getVisibility() == mlir::SymbolTable::Visibility::Private;
64+ return $_op. getVisibility() == mlir::SymbolTable::Visibility::Private;
6565 }]
6666 >,
6767 InterfaceMethod<"Returns true if this symbol has public visibility.",
6868 "bool", "isPublic", (ins), [{}],
6969 /*defaultImplementation=*/[{
70- return getVisibility() == mlir::SymbolTable::Visibility::Public;
70+ return $_op. getVisibility() == mlir::SymbolTable::Visibility::Public;
7171 }]
7272 >,
7373 InterfaceMethod<"Sets the visibility of this symbol.",
@@ -79,19 +79,19 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
7979 InterfaceMethod<"Sets the visibility of this symbol to be nested.",
8080 "void", "setNested", (ins), [{}],
8181 /*defaultImplementation=*/[{
82- setVisibility(mlir::SymbolTable::Visibility::Nested);
82+ $_op. setVisibility(mlir::SymbolTable::Visibility::Nested);
8383 }]
8484 >,
8585 InterfaceMethod<"Sets the visibility of this symbol to be private.",
8686 "void", "setPrivate", (ins), [{}],
8787 /*defaultImplementation=*/[{
88- setVisibility(mlir::SymbolTable::Visibility::Private);
88+ $_op. setVisibility(mlir::SymbolTable::Visibility::Private);
8989 }]
9090 >,
9191 InterfaceMethod<"Sets the visibility of this symbol to be public.",
9292 "void", "setPublic", (ins), [{}],
9393 /*defaultImplementation=*/[{
94- setVisibility(mlir::SymbolTable::Visibility::Public);
94+ $_op. setVisibility(mlir::SymbolTable::Visibility::Public);
9595 }]
9696 >,
9797 InterfaceMethod<[{
@@ -144,7 +144,7 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
144144 // By default, base this on the visibility alone. A symbol can be
145145 // discarded as long as it is not public. Only public symbols may be
146146 // visible from outside of the IR.
147- return getVisibility() != ::mlir::SymbolTable::Visibility::Public;
147+ return $_op. getVisibility() != ::mlir::SymbolTable::Visibility::Public;
148148 }]
149149 >,
150150 InterfaceMethod<[{
0 commit comments