@@ -80,21 +80,21 @@ def AOp : NS_Op<"a_op", []> {
80
80
// ---
81
81
82
82
// DEF: some-attr-kind AOp::aAttrAttr()
83
- // DEF-NEXT: (*this)->getAttr(aAttrAttrName()).template cast<some-attr-kind>()
83
+ // DEF-NEXT: (*this)->getAttr(aAttrAttrName()).cast<some-attr-kind>()
84
84
// DEF: some-return-type AOp::aAttr() {
85
85
// DEF-NEXT: auto attr = aAttrAttr()
86
86
// DEF-NEXT: return attr.some-convert-from-storage();
87
87
88
88
// DEF: some-attr-kind AOp::bAttrAttr()
89
- // DEF-NEXT: return (*this)->getAttr(bAttrAttrName()).template dyn_cast_or_null<some-attr-kind>()
89
+ // DEF-NEXT: return (*this)->getAttr(bAttrAttrName()).dyn_cast_or_null<some-attr-kind>()
90
90
// DEF: some-return-type AOp::bAttr() {
91
91
// DEF-NEXT: auto attr = bAttrAttr();
92
92
// DEF-NEXT: if (!attr)
93
93
// DEF-NEXT: return some-const-builder-call(::mlir::Builder((*this)->getContext()), 4.2).some-convert-from-storage();
94
94
// DEF-NEXT: return attr.some-convert-from-storage();
95
95
96
96
// DEF: some-attr-kind AOp::cAttrAttr()
97
- // DEF-NEXT: return (*this)->getAttr(cAttrAttrName()).template dyn_cast_or_null<some-attr-kind>()
97
+ // DEF-NEXT: return (*this)->getAttr(cAttrAttrName()).dyn_cast_or_null<some-attr-kind>()
98
98
// DEF: ::llvm::Optional<some-return-type> AOp::cAttr() {
99
99
// DEF-NEXT: auto attr = cAttrAttr()
100
100
// DEF-NEXT: return attr ? ::llvm::Optional<some-return-type>(attr.some-convert-from-storage()) : (::llvm::None);
@@ -194,21 +194,21 @@ def AgetOp : Op<Test2_Dialect, "a_get_op", []> {
194
194
// ---
195
195
196
196
// DEF: some-attr-kind AgetOp::getAAttrAttr()
197
- // DEF-NEXT: (*this)->getAttr(getAAttrAttrName()).template cast<some-attr-kind>()
197
+ // DEF-NEXT: (*this)->getAttr(getAAttrAttrName()).cast<some-attr-kind>()
198
198
// DEF: some-return-type AgetOp::getAAttr() {
199
199
// DEF-NEXT: auto attr = getAAttrAttr()
200
200
// DEF-NEXT: return attr.some-convert-from-storage();
201
201
202
202
// DEF: some-attr-kind AgetOp::getBAttrAttr()
203
- // DEF-NEXT: return (*this)->getAttr(getBAttrAttrName()).template dyn_cast_or_null<some-attr-kind>()
203
+ // DEF-NEXT: return (*this)->getAttr(getBAttrAttrName()).dyn_cast_or_null<some-attr-kind>()
204
204
// DEF: some-return-type AgetOp::getBAttr() {
205
205
// DEF-NEXT: auto attr = getBAttrAttr();
206
206
// DEF-NEXT: if (!attr)
207
207
// DEF-NEXT: return some-const-builder-call(::mlir::Builder((*this)->getContext()), 4.2).some-convert-from-storage();
208
208
// DEF-NEXT: return attr.some-convert-from-storage();
209
209
210
210
// DEF: some-attr-kind AgetOp::getCAttrAttr()
211
- // DEF-NEXT: return (*this)->getAttr(getCAttrAttrName()).template dyn_cast_or_null<some-attr-kind>()
211
+ // DEF-NEXT: return (*this)->getAttr(getCAttrAttrName()).dyn_cast_or_null<some-attr-kind>()
212
212
// DEF: ::llvm::Optional<some-return-type> AgetOp::getCAttr() {
213
213
// DEF-NEXT: auto attr = getCAttrAttr()
214
214
// DEF-NEXT: return attr ? ::llvm::Optional<some-return-type>(attr.some-convert-from-storage()) : (::llvm::None);
0 commit comments