@@ -55,19 +55,19 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
55
55
InterfaceMethod<"Returns true if this symbol has nested visibility.",
56
56
"bool", "isNested", (ins), [{}],
57
57
/*defaultImplementation=*/[{
58
- return getVisibility() == mlir::SymbolTable::Visibility::Nested;
58
+ return $_op. getVisibility() == mlir::SymbolTable::Visibility::Nested;
59
59
}]
60
60
>,
61
61
InterfaceMethod<"Returns true if this symbol has private visibility.",
62
62
"bool", "isPrivate", (ins), [{}],
63
63
/*defaultImplementation=*/[{
64
- return getVisibility() == mlir::SymbolTable::Visibility::Private;
64
+ return $_op. getVisibility() == mlir::SymbolTable::Visibility::Private;
65
65
}]
66
66
>,
67
67
InterfaceMethod<"Returns true if this symbol has public visibility.",
68
68
"bool", "isPublic", (ins), [{}],
69
69
/*defaultImplementation=*/[{
70
- return getVisibility() == mlir::SymbolTable::Visibility::Public;
70
+ return $_op. getVisibility() == mlir::SymbolTable::Visibility::Public;
71
71
}]
72
72
>,
73
73
InterfaceMethod<"Sets the visibility of this symbol.",
@@ -79,19 +79,19 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
79
79
InterfaceMethod<"Sets the visibility of this symbol to be nested.",
80
80
"void", "setNested", (ins), [{}],
81
81
/*defaultImplementation=*/[{
82
- setVisibility(mlir::SymbolTable::Visibility::Nested);
82
+ $_op. setVisibility(mlir::SymbolTable::Visibility::Nested);
83
83
}]
84
84
>,
85
85
InterfaceMethod<"Sets the visibility of this symbol to be private.",
86
86
"void", "setPrivate", (ins), [{}],
87
87
/*defaultImplementation=*/[{
88
- setVisibility(mlir::SymbolTable::Visibility::Private);
88
+ $_op. setVisibility(mlir::SymbolTable::Visibility::Private);
89
89
}]
90
90
>,
91
91
InterfaceMethod<"Sets the visibility of this symbol to be public.",
92
92
"void", "setPublic", (ins), [{}],
93
93
/*defaultImplementation=*/[{
94
- setVisibility(mlir::SymbolTable::Visibility::Public);
94
+ $_op. setVisibility(mlir::SymbolTable::Visibility::Public);
95
95
}]
96
96
>,
97
97
InterfaceMethod<[{
@@ -144,7 +144,7 @@ def Symbol : OpInterface<"SymbolOpInterface"> {
144
144
// By default, base this on the visibility alone. A symbol can be
145
145
// discarded as long as it is not public. Only public symbols may be
146
146
// visible from outside of the IR.
147
- return getVisibility() != ::mlir::SymbolTable::Visibility::Public;
147
+ return $_op. getVisibility() != ::mlir::SymbolTable::Visibility::Public;
148
148
}]
149
149
>,
150
150
InterfaceMethod<[{
0 commit comments