@@ -60,7 +60,7 @@ def AttrSizedOperandsOp : TestOp<"attr_sized_operands",
60
60
}
61
61
62
62
// CHECK: def attr_sized_operands(variadic1, non_variadic, *, variadic2=None, loc=None, ip=None)
63
- // CHECK: return _get_op_result_or_op_results( AttrSizedOperandsOp(variadic1=variadic1, non_variadic=non_variadic, variadic2=variadic2, loc=loc, ip=ip) )
63
+ // CHECK: return AttrSizedOperandsOp(variadic1=variadic1, non_variadic=non_variadic, variadic2=variadic2, loc=loc, ip=ip)
64
64
65
65
// CHECK: @_ods_cext.register_operation(_Dialect)
66
66
// CHECK: class AttrSizedResultsOp(_ods_ir.OpView):
@@ -157,7 +157,7 @@ def AttributedOp : TestOp<"attributed_op"> {
157
157
}
158
158
159
159
// CHECK: def attributed_op(i32attr, in_, *, optional_f32_attr=None, unit_attr=None, loc=None, ip=None)
160
- // CHECK: return _get_op_result_or_op_results( AttributedOp(i32attr=i32attr, in_=in_, optionalF32Attr=optional_f32_attr, unitAttr=unit_attr, loc=loc, ip=ip) )
160
+ // CHECK: return AttributedOp(i32attr=i32attr, in_=in_, optionalF32Attr=optional_f32_attr, unitAttr=unit_attr, loc=loc, ip=ip)
161
161
162
162
// CHECK: @_ods_cext.register_operation(_Dialect)
163
163
// CHECK: class AttributedOpWithOperands(_ods_ir.OpView):
@@ -193,7 +193,7 @@ def AttributedOpWithOperands : TestOp<"attributed_op_with_operands"> {
193
193
}
194
194
195
195
// CHECK: def attributed_op_with_operands(_gen_arg_0, _gen_arg_2, *, in_=None, is_=None, loc=None, ip=None)
196
- // CHECK: return _get_op_result_or_op_results( AttributedOpWithOperands(_gen_arg_0=_gen_arg_0, _gen_arg_2=_gen_arg_2, in_=in_, is_=is_, loc=loc, ip=ip) )
196
+ // CHECK: return AttributedOpWithOperands(_gen_arg_0=_gen_arg_0, _gen_arg_2=_gen_arg_2, in_=in_, is_=is_, loc=loc, ip=ip)
197
197
198
198
// CHECK: @_ods_cext.register_operation(_Dialect)
199
199
// CHECK: class DefaultValuedAttrsOp(_ods_ir.OpView):
@@ -217,7 +217,7 @@ def DefaultValuedAttrsOp : TestOp<"default_valued_attrs"> {
217
217
}
218
218
219
219
// CHECK: def default_valued_attrs(*, arr=None, unsupported=None, loc=None, ip=None)
220
- // CHECK: return _get_op_result_or_op_results( DefaultValuedAttrsOp(arr=arr, unsupported=unsupported, loc=loc, ip=ip) )
220
+ // CHECK: return DefaultValuedAttrsOp(arr=arr, unsupported=unsupported, loc=loc, ip=ip)
221
221
222
222
// CHECK-LABEL: OPERATION_NAME = "test.derive_result_types_op"
223
223
def DeriveResultTypesOp : TestOp<"derive_result_types_op", [FirstAttrDerivedResultType]> {
@@ -235,7 +235,7 @@ def DeriveResultTypesOp : TestOp<"derive_result_types_op", [FirstAttrDerivedResu
235
235
}
236
236
237
237
// CHECK: def derive_result_types_op(type_, *, loc=None, ip=None)
238
- // CHECK: return _get_op_result_or_op_results( DeriveResultTypesOp(type_=type_, loc=loc, ip=ip))
238
+ // CHECK: return DeriveResultTypesOp(type_=type_, loc=loc, ip=ip).results
239
239
240
240
// CHECK-LABEL: OPERATION_NAME = "test.derive_result_types_variadic_op"
241
241
def DeriveResultTypesVariadicOp : TestOp<"derive_result_types_variadic_op", [FirstAttrDerivedResultType]> {
@@ -262,7 +262,7 @@ def EmptyOp : TestOp<"empty">;
262
262
// CHECK: successors=_ods_successors, regions=regions, loc=loc, ip=ip))
263
263
264
264
// CHECK: def empty(*, loc=None, ip=None)
265
- // CHECK: return _get_op_result_or_op_results( EmptyOp(loc=loc, ip=ip) )
265
+ // CHECK: return EmptyOp(loc=loc, ip=ip)
266
266
267
267
// CHECK-LABEL: OPERATION_NAME = "test.infer_result_types_implied_op"
268
268
def InferResultTypesImpliedOp : TestOp<"infer_result_types_implied_op"> {
@@ -275,7 +275,7 @@ def InferResultTypesImpliedOp : TestOp<"infer_result_types_implied_op"> {
275
275
}
276
276
277
277
// CHECK: def infer_result_types_implied_op(*, loc=None, ip=None)
278
- // CHECK: return _get_op_result_or_op_results( InferResultTypesImpliedOp(loc=loc, ip=ip))
278
+ // CHECK: return InferResultTypesImpliedOp(loc=loc, ip=ip).results
279
279
280
280
// CHECK-LABEL: OPERATION_NAME = "test.infer_result_types_op"
281
281
def InferResultTypesOp : TestOp<"infer_result_types_op", [InferTypeOpInterface]> {
@@ -288,7 +288,7 @@ def InferResultTypesOp : TestOp<"infer_result_types_op", [InferTypeOpInterface]>
288
288
}
289
289
290
290
// CHECK: def infer_result_types_op(*, loc=None, ip=None)
291
- // CHECK: return _get_op_result_or_op_results( InferResultTypesOp(loc=loc, ip=ip))
291
+ // CHECK: return InferResultTypesOp(loc=loc, ip=ip).results
292
292
293
293
// CHECK: @_ods_cext.register_operation(_Dialect)
294
294
// CHECK: class MissingNamesOp(_ods_ir.OpView):
@@ -326,7 +326,7 @@ def MissingNamesOp : TestOp<"missing_names"> {
326
326
}
327
327
328
328
// CHECK: def missing_names(i32, _gen_res_1, i64, _gen_arg_0, f32, _gen_arg_2, *, loc=None, ip=None)
329
- // CHECK: return _get_op_result_or_op_results( MissingNamesOp(i32=i32, _gen_res_1=_gen_res_1, i64=i64, _gen_arg_0=_gen_arg_0, f32=f32, _gen_arg_2=_gen_arg_2, loc=loc, ip=ip))
329
+ // CHECK: return MissingNamesOp(i32=i32, _gen_res_1=_gen_res_1, i64=i64, _gen_arg_0=_gen_arg_0, f32=f32, _gen_arg_2=_gen_arg_2, loc=loc, ip=ip).results
330
330
331
331
// CHECK: @_ods_cext.register_operation(_Dialect)
332
332
// CHECK: class OneOptionalOperandOp(_ods_ir.OpView):
@@ -357,7 +357,7 @@ def OneOptionalOperandOp : TestOp<"one_optional_operand"> {
357
357
}
358
358
359
359
// CHECK: def one_optional_operand(non_optional, *, optional=None, loc=None, ip=None)
360
- // CHECK: return _get_op_result_or_op_results( OneOptionalOperandOp(non_optional=non_optional, optional=optional, loc=loc, ip=ip) )
360
+ // CHECK: return OneOptionalOperandOp(non_optional=non_optional, optional=optional, loc=loc, ip=ip)
361
361
362
362
// CHECK: @_ods_cext.register_operation(_Dialect)
363
363
// CHECK: class OneVariadicOperandOp(_ods_ir.OpView):
@@ -389,7 +389,7 @@ def OneVariadicOperandOp : TestOp<"one_variadic_operand"> {
389
389
}
390
390
391
391
// CHECK: def one_variadic_operand(non_variadic, variadic, *, loc=None, ip=None)
392
- // CHECK: return _get_op_result_or_op_results( OneVariadicOperandOp(non_variadic=non_variadic, variadic=variadic, loc=loc, ip=ip) )
392
+ // CHECK: return OneVariadicOperandOp(non_variadic=non_variadic, variadic=variadic, loc=loc, ip=ip)
393
393
394
394
// CHECK: @_ods_cext.register_operation(_Dialect)
395
395
// CHECK: class OneVariadicResultOp(_ods_ir.OpView):
@@ -446,7 +446,7 @@ def PythonKeywordOp : TestOp<"python_keyword"> {
446
446
}
447
447
448
448
// CHECK: def python_keyword(in_, *, loc=None, ip=None)
449
- // CHECK: return _get_op_result_or_op_results( PythonKeywordOp(in_=in_, loc=loc, ip=ip) )
449
+ // CHECK: return PythonKeywordOp(in_=in_, loc=loc, ip=ip)
450
450
451
451
// CHECK-LABEL: OPERATION_NAME = "test.same_results"
452
452
def SameResultsOp : TestOp<"same_results", [SameOperandsAndResultType]> {
@@ -460,7 +460,7 @@ def SameResultsOp : TestOp<"same_results", [SameOperandsAndResultType]> {
460
460
}
461
461
462
462
// CHECK: def same_results(in1, in2, *, loc=None, ip=None)
463
- // CHECK: return _get_op_result_or_op_results( SameResultsOp(in1=in1, in2=in2, loc=loc, ip=ip) )
463
+ // CHECK: return SameResultsOp(in1=in1, in2=in2, loc=loc, ip=ip)
464
464
465
465
// CHECK-LABEL: OPERATION_NAME = "test.same_results_variadic"
466
466
def SameResultsVariadicOp : TestOp<"same_results_variadic", [SameOperandsAndResultType]> {
@@ -497,7 +497,7 @@ def SameVariadicOperandSizeOp : TestOp<"same_variadic_operand",
497
497
}
498
498
499
499
// CHECK: def same_variadic_operand(variadic1, non_variadic, variadic2, *, loc=None, ip=None)
500
- // CHECK: return _get_op_result_or_op_results( SameVariadicOperandSizeOp(variadic1=variadic1, non_variadic=non_variadic, variadic2=variadic2, loc=loc, ip=ip) )
500
+ // CHECK: return SameVariadicOperandSizeOp(variadic1=variadic1, non_variadic=non_variadic, variadic2=variadic2, loc=loc, ip=ip)
501
501
502
502
// CHECK: @_ods_cext.register_operation(_Dialect)
503
503
// CHECK: class SameVariadicResultSizeOp(_ods_ir.OpView):
@@ -563,7 +563,7 @@ def SimpleOp : TestOp<"simple"> {
563
563
}
564
564
565
565
// CHECK: def simple(i64, f64, i32, f32, *, loc=None, ip=None)
566
- // CHECK: return _get_op_result_or_op_results( SimpleOp(i64=i64, f64=f64, i32=i32, f32=f32, loc=loc, ip=ip))
566
+ // CHECK: return SimpleOp(i64=i64, f64=f64, i32=i32, f32=f32, loc=loc, ip=ip).results
567
567
568
568
// CHECK: class VariadicAndNormalRegionOp(_ods_ir.OpView):
569
569
// CHECK-LABEL: OPERATION_NAME = "test.variadic_and_normal_region"
@@ -590,7 +590,7 @@ def VariadicAndNormalRegionOp : TestOp<"variadic_and_normal_region"> {
590
590
}
591
591
592
592
// CHECK: def variadic_and_normal_region(num_variadic, *, loc=None, ip=None)
593
- // CHECK: return _get_op_result_or_op_results( VariadicAndNormalRegionOp(num_variadic=num_variadic, loc=loc, ip=ip) )
593
+ // CHECK: return VariadicAndNormalRegionOp(num_variadic=num_variadic, loc=loc, ip=ip)
594
594
595
595
// CHECK: class VariadicRegionOp(_ods_ir.OpView):
596
596
// CHECK-LABEL: OPERATION_NAME = "test.variadic_region"
@@ -613,7 +613,7 @@ def VariadicRegionOp : TestOp<"variadic_region"> {
613
613
}
614
614
615
615
// CHECK: def variadic_region(num_variadic, *, loc=None, ip=None)
616
- // CHECK: return _get_op_result_or_op_results( VariadicRegionOp(num_variadic=num_variadic, loc=loc, ip=ip) )
616
+ // CHECK: return VariadicRegionOp(num_variadic=num_variadic, loc=loc, ip=ip)
617
617
618
618
// CHECK: @_ods_cext.register_operation(_Dialect)
619
619
// CHECK: class WithSpecialCharactersOp(_ods_ir.OpView):
@@ -622,7 +622,7 @@ def WithSpecialCharactersOp : TestOp<"123with--special.characters"> {
622
622
}
623
623
624
624
// CHECK: def _123with__special_characters(*, loc=None, ip=None)
625
- // CHECK: return _get_op_result_or_op_results( WithSpecialCharactersOp(loc=loc, ip=ip) )
625
+ // CHECK: return WithSpecialCharactersOp(loc=loc, ip=ip)
626
626
627
627
// CHECK: @_ods_cext.register_operation(_Dialect)
628
628
// CHECK: class WithSuccessorsOp(_ods_ir.OpView):
@@ -637,4 +637,4 @@ def WithSuccessorsOp : TestOp<"with_successors"> {
637
637
}
638
638
639
639
// CHECK: def with_successors(successor, successors, *, loc=None, ip=None)
640
- // CHECK: return _get_op_result_or_op_results( WithSuccessorsOp(successor=successor, successors=successors, loc=loc, ip=ip) )
640
+ // CHECK: return WithSuccessorsOp(successor=successor, successors=successors, loc=loc, ip=ip)
0 commit comments