[Mlir-commits] [mlir] [MLIR][Python] Add python-side adaptor class codegen in mlir-tblgen (PR #176640)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Jan 18 03:14:58 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 3419 tests passed
* 412 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### MLIR
<details>
<summary>MLIR.mlir-tblgen/op-python-bindings.td</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\mlir-tblgen.exe -gen-python-op-bindings -bind-dialect=test -I C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen/../../include C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\mlir-tblgen.exe' -gen-python-op-bindings -bind-dialect=test -I 'C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen/../../include' 'C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:18:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:21:28: note: scanning from here
# |  DIALECT_NAMESPACE = "test"
# |                            ^
# | <stdin>:24:19: note: possible intended match here
# |  OPERATION_NAME = "test.attr_sized_operands"
# |                   ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:42:12: error: CHECK: expected string not found in input
# |  // CHECK: self.operation.attributes["operandSegmentSizes"], 0)
# |            ^
# | <stdin>:71:26: note: scanning from here
# |  self.operation.operands,
# |                          ^
# | <stdin>:72:2: note: possible intended match here
# |  self.attributes["operandSegmentSizes"], 0)
# |  ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:90:12: error: CHECK: expected string not found in input
# |  // CHECK: self.operation.attributes["resultSegmentSizes"], 0)
# |            ^
# | <stdin>:119:25: note: scanning from here
# |  self.operation.results,
# |                         ^
# | <stdin>:120:2: note: possible intended match here
# |  self.attributes["resultSegmentSizes"], 0)
# |  ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:166:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:227:118: note: scanning from here
# |  return AttributedOp(i32attr=i32attr, in_=in_, optionalF32Attr=optional_f32_attr, unitAttr=unit_attr, loc=loc, ip=ip)
# |                                                                                                                      ^
# | <stdin>:230:34: note: possible intended match here
# |  OPERATION_NAME = "test.attributed_op_with_operands"
# |                                  ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:203:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:289:113: note: scanning from here
# |  return AttributedOpWithOperands(_gen_arg_0=_gen_arg_0, _gen_arg_2=_gen_arg_2, in_=in_, is_=is_, loc=loc, ip=ip)
# |                                                                                                                 ^
# | <stdin>:291:34: note: possible intended match here
# | class DefaultValuedAttrsOpAdaptor(_ods_OpAdaptor):
# |                                  ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:285:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:446:5: note: scanning from here
# |  """
# |     ^
# | <stdin>:457:17: note: possible intended match here
# |  _ods_context = _ods_get_default_loc_context(loc)
# |                 ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:331:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:535:68: note: scanning from here
# |  return InferResultTypesOp(results=results, loc=loc, ip=ip).results
# |                                                                    ^
# | <stdin>:538:14: note: possible intended match here
# |  OPERATION_NAME = "test.missing_names"
# |              ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:370:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:579:143: note: scanning from here
# |  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
# |                                                                                                                                               ^
# | <stdin>:582:14: note: possible intended match here
# |  OPERATION_NAME = "test.one_optional_operand"
# |              ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:402:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:619:91: note: scanning from here
# |  return OneOptionalOperandOp(non_optional=non_optional, optional=optional, loc=loc, ip=ip)
# |                                                                                           ^
# | <stdin>:622:23: note: possible intended match here
# |  OPERATION_NAME = "test.one_variadic_operand"
# |                       ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:435:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:661:91: note: scanning from here
# |  return OneVariadicOperandOp(non_variadic=non_variadic, variadic=variadic, loc=loc, ip=ip)
# |                                                                                           ^
# | <stdin>:664:14: note: possible intended match here
# |  OPERATION_NAME = "test.one_variadic_result"
# |              ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:470:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:696:83: note: scanning from here
# |  return results if len(results) > 1 else (results[0] if len(results) == 1 else op)
# |                                                                                   ^
# | <stdin>:699:10: note: possible intended match here
# |  OPERATION_NAME = "test.python_keyword"
# |          ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:520:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:818:83: note: scanning from here
# |  return results if len(results) > 1 else (results[0] if len(results) == 1 else op)
# |                                                                                   ^
# | <stdin>:821:21: note: possible intended match here
# |  OPERATION_NAME = "test.same_variadic_operand"
# |                     ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:546:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:873:119: note: scanning from here
# |  return SameVariadicOperandSizeOp(variadic1=variadic1, non_variadic=non_variadic, variadic2=variadic2, loc=loc, ip=ip)
# |                                                                                                                       ^
# | <stdin>:876:14: note: possible intended match here
# |  OPERATION_NAME = "test.same_variadic_result"
# |              ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:573:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:914:83: note: scanning from here
# |  return results if len(results) > 1 else (results[0] if len(results) == 1 else op)
# |                                                                                   ^
# | <stdin>:916:22: note: possible intended match here
# | class SimpleOpAdaptor(_ods_OpAdaptor):
# |                      ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:614:11: error: CHECK: expected string not found in input
# | // CHECK: class VariadicAndNormalRegionOp(_ods_ir.OpView):
# |           ^
# | <stdin>:964:77: note: scanning from here
# |  return SimpleOp(i64=i64, f64=f64, i32=i32, f32=f32, loc=loc, ip=ip).results
# |                                                                             ^
# | <stdin>:966:1: note: possible intended match here
# | class VariadicAndNormalRegionOpAdaptor(_ods_OpAdaptor):
# | ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:642:11: error: CHECK: expected string not found in input
# | // CHECK: class VariadicRegionOp(_ods_ir.OpView):
# |           ^
# | <stdin>:995:77: note: scanning from here
# |  return VariadicAndNormalRegionOp(num_variadic=num_variadic, loc=loc, ip=ip)
# |                                                                             ^
# | <stdin>:997:1: note: possible intended match here
# | class VariadicRegionOpAdaptor(_ods_OpAdaptor):
# | ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:666:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:1022:68: note: scanning from here
# |  return VariadicRegionOp(num_variadic=num_variadic, loc=loc, ip=ip)
# |                                                                    ^
# | <stdin>:1024:8: note: possible intended match here
# | class WithSpecialCharactersOpAdaptor(_ods_OpAdaptor):
# |        ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:675:11: error: CHECK: expected string not found in input
# | // CHECK: @_ods_cext.register_operation(_Dialect)
# |           ^
# | <stdin>:1044:48: note: scanning from here
# |  return WithSpecialCharactersOp(loc=loc, ip=ip)
# |                                                ^
# | <stdin>:1046:1: note: possible intended match here
# | class WithSuccessorsOpAdaptor(_ods_OpAdaptor):
# | ^
# | C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td:690:11: error: CHECK: expected string not found in input
# | // CHECK: class snake_case(_ods_ir.OpView):
# |           ^
# | <stdin>:1068:85: note: scanning from here
# |  return WithSuccessorsOp(successor=successor, successors=successors, loc=loc, ip=ip)
# |                                                                                     ^
# | <stdin>:1070:1: note: possible intended match here
# | class snake_caseAdaptor(_ods_OpAdaptor):
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\mlir\test\mlir-tblgen\op-python-bindings.td
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |             16: from typing import Sequence as _Sequence, Union as _Union, Optional as _Optional 
# |             17:  
# |             18:  
# |             19: @_ods_cext.register_dialect 
# |             20: class _Dialect(_ods_ir.Dialect): 
# |             21:  DIALECT_NAMESPACE = "test" 
# | check:18'0                                 X error: no match found
# |             22:  
# | check:18'0      ~
# |             23: class AttrSizedOperandsOpAdaptor(_ods_OpAdaptor): 
# | check:18'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             24:  OPERATION_NAME = "test.attr_sized_operands" 
# | check:18'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:18'1                        ?                           possible intended match
# |             25:  
# |             26:  @builtins.property 
# |             27:  def variadic1(self) -> _ods_ir.OpOperandList: 
# |             28:  operand_range = _ods_segmented_accessor( 
# |             29:  self.operands, 
# |              .
# |              .
# |              .
# |             66:  super().__init__(self.OPERATION_NAME, self._ODS_REGIONS, self._ODS_OPERAND_SEGMENTS, self._ODS_RESULT_SEGMENTS, attributes=attributes, results=results, operands=operands, successors=_ods_successors, regions=regions, loc=loc, ip=ip) 
# |             67:  
# |             68:  @builtins.property 
# |             69:  def variadic1(self) -> _ods_ir.OpOperandList: 
# |             70:  operand_range = _ods_segmented_accessor( 
# |             71:  self.operation.operands, 
# | check:42'0                               X error: no match found
# |             72:  self.attributes["operandSegmentSizes"], 0) 
# | check:42'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:42'1       ?                                           possible intended match
# |             73:  return operand_range 
# | check:42'0      ~~~~~~~~~~~~~~~~~~~~~~
# |             74:  
# | check:42'0      ~
# |             75:  @builtins.property 
# | check:42'0      ~~~~~~~~~~~~~~~~~~~~
# |             76:  def non_variadic(self) -> _ods_ir.Value: 
# | check:42'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             77:  operand_range = _ods_segmented_accessor( 
# | check:42'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            114:  super().__init__(self.OPERATION_NAME, self._ODS_REGIONS, self._ODS_OPERAND_SEGMENTS, self._ODS_RESULT_SEGMENTS, attributes=attributes, results=results, operands=operands, successors=_ods_successors, regions=regions, loc=loc, ip=ip) 
# |            115:  
# |            116:  @builtins.property 
# |            117:  def variadic1(self) -> _Optional[_ods_ir.OpResult]: 
# |            118:  result_range = _ods_segmented_accessor( 
# |            119:  self.operation.results, 
# | check:90'0                              X error: no match found
# |            120:  self.attributes["resultSegmentSizes"], 0) 
# | check:90'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:90'1       ?                                          possible intended match
# |            121:  return result_range[0] if len(result_range) > 0 else None 
# | check:90'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            122:  
# | check:90'0      ~
# |            123:  @builtins.property 
# | check:90'0      ~~~~~~~~~~~~~~~~~~~~
# |            124:  def non_variadic(self) -> _ods_ir.OpResult: 
# | check:90'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            125:  result_range = _ods_segmented_accessor( 
# | check:90'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            222:  if value is None: 
# |            223:  raise ValueError("'None' not allowed as value for mandatory attributes") 
# |            224:  self.operation.attributes["in"] = value 
# |            225:  
# |            226: def attributed_op(i32attr, in_, *, optional_f32_attr=None, unit_attr=None, loc=None, ip=None) -> AttributedOp: 
# |            227:  return AttributedOp(i32attr=i32attr, in_=in_, optionalF32Attr=optional_f32_attr, unitAttr=unit_attr, loc=loc, ip=ip) 
# | check:166'0                                                                                                                          X error: no match found
# |            228:  
# | check:166'0     ~
# |            229: class AttributedOpWithOperandsAdaptor(_ods_OpAdaptor): 
# | check:166'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            230:  OPERATION_NAME = "test.attributed_op_with_operands" 
# | check:166'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:166'1                                      ?                    possible intended match
# |            231:  
# |            232: @_ods_cext.register_operation(_Dialect) 
# |            233: class AttributedOpWithOperands(_ods_ir.OpView): 
# |            234:  OPERATION_NAME = "test.attributed_op_with_operands" 
# |            235:  Adaptor = AttributedOpWithOperandsAdaptor 
# |              .
# |              .
# |              .
# |            284:  @is_.deleter 
# |            285:  def is_(self): 
# |            286:  del self.operation.attributes["is"] 
# |            287:  
# |            288: def attributed_op_with_operands(_gen_arg_0, _gen_arg_2, *, in_=None, is_=None, loc=None, ip=None) -> AttributedOpWithOperands: 
# |            289:  return AttributedOpWithOperands(_gen_arg_0=_gen_arg_0, _gen_arg_2=_gen_arg_2, in_=in_, is_=is_, loc=loc, ip=ip) 
# | check:203'0                                                                                                                     X error: no match found
# |            290:  
# | check:203'0     ~
# |            291: class DefaultValuedAttrsOpAdaptor(_ods_OpAdaptor): 
# | check:203'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:203'1                                      ?                  possible intended match
# |            292:  OPERATION_NAME = "test.default_valued_attrs" 
# | check:203'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            293:  
# |            294: @_ods_cext.register_operation(_Dialect) 
# |            295: class DefaultValuedAttrsOp(_ods_ir.OpView): 
# |            296:  OPERATION_NAME = "test.default_valued_attrs" 
# |              .
# |              .
# |              .
# |            441:  test.loop { 
# |            442:  test.yield 
# |            443:  } 
# |            444:  ``` 
# |            445:  Add \"\"\" will not terminate the description. 
# |            446:  """ 
# | check:285'0         X error: no match found
# |            447:  
# | check:285'0     ~
# |            448:  OPERATION_NAME = "test.description" 
# | check:285'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            449:  Adaptor = DescriptionOpAdaptor 
# | check:285'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            450:  
# | check:285'0     ~
# |            451:  _ODS_REGIONS = (0, True) 
# | check:285'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            452:  
# | check:285'0     ~
# |            453:  def __init__(self, *, loc=None, ip=None): 
# | check:285'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            454:  operands = [] 
# | check:285'0     ~~~~~~~~~~~~~~~
# |            455:  attributes = {} 
# | check:285'0     ~~~~~~~~~~~~~~~~~
# |            456:  regions = None 
# | check:285'0     ~~~~~~~~~~~~~~~~
# |            457:  _ods_context = _ods_get_default_loc_context(loc) 
# | check:285'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:285'1                     ?                                  possible intended match
# |            458:  results = [] 
# | check:285'0     ~~~~~~~~~~~~~~
# |            459:  _ods_successors = None 
# | check:285'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |            460:  super().__init__(self.OPERATION_NAME, self._ODS_REGIONS, self._ODS_OPERAND_SEGMENTS, self._ODS_RESULT_SEGMENTS, attributes=attributes, results=results, operands=operands, successors=_ods_successors, regions=regions, loc=loc, ip=ip) 
# | check:285'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            461:  
# | check:285'0     ~
# |            462: def description(*, loc=None, ip=None) -> DescriptionOp: 
# | check:285'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            530:  _ods_context = _ods_get_default_loc_context(loc) 
# |            531:  _ods_successors = None 
# |            532:  super().__init__(self.OPERATION_NAME, self._ODS_REGIONS, self._ODS_OPERAND_SEGMENTS, self._ODS_RESULT_SEGMENTS, attributes=attributes, results=results, operands=operands, successors=_ods_successors, regions=regions, loc=loc, ip=ip) 
# |            533:  
# |            534: def infer_result_types_op(*, results=None, loc=None, ip=None) -> _ods_ir.OpResultList: 
# |            535:  return InferResultTypesOp(results=results, loc=loc, ip=ip).results 
# | check:331'0                                                                        X error: no match found
# |            536:  
# | check:331'0     ~
# |            537: class MissingNamesOpAdaptor(_ods_OpAdaptor): 
# | check:331'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            538:  OPERATION_NAME = "test.missing_names" 
# | check:331'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:331'1                  ?                          possible intended match
# |            539:  
# |            540:  @builtins.property 
# |            541:  def f32(self) -> _ods_ir.Value[_ods_ir.FloatType]: 
# |            542:  return self.operands[1] 
# |            543:  
# |              .
# |              .
# |              .
# |            574:  @builtins.property 
# |            575:  def i64(self) -> _ods_ir.OpResult[_ods_ir.IntegerType]: 
# |            576:  return self.operation.results[2] 
# |            577:  
# |            578: def missing_names(i32, _gen_res_1, i64, _gen_arg_0, f32, _gen_arg_2, *, loc=None, ip=None) -> _ods_ir.OpResultList: 
# |            579:  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 
# | check:370'0                                                                                                                                                   X error: no match found
# |            580:  
# | check:370'0     ~
# |            581: class OneOptionalOperandOpAdaptor(_ods_OpAdaptor): 
# | check:370'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            582:  OPERATION_NAME = "test.one_optional_operand" 
# | check:370'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:370'1                  ?                                 possible intended match
# |            583:  
# |            584:  @builtins.property 
# |            585:  def non_optional(self) -> _ods_ir.Value: 
# |            586:  return self.operands[0] 
# |            587:  
# |              .
# |              .
# |              .
# |            614:  @builtins.property 
# |            615:  def optional(self) -> _Optional[_ods_ir.Value]: 
# |            616:  return None if len(self.operation.operands) < 2 else self.operation.operands[1] 
# |            617:  
# |            618: def one_optional_operand(non_optional, *, optional=None, loc=None, ip=None) -> OneOptionalOperandOp: 
# |            619:  return OneOptionalOperandOp(non_optional=non_optional, optional=optional, loc=loc, ip=ip) 
# | check:402'0                                                                                               X error: no match found
# |            620:  
# | check:402'0     ~
# |            621: class OneVariadicOperandOpAdaptor(_ods_OpAdaptor): 
# | check:402'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            622:  OPERATION_NAME = "test.one_variadic_operand" 
# | check:402'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:402'1                           ?                        possible intended match
# |            623:  
# |            624:  @builtins.property 
# |            625:  def non_variadic(self) -> _ods_ir.Value: 
# |            626:  return self.operands[0] 
# |            627:  
# |              .
# |              .
# |              .
# |            656:  def variadic(self) -> _ods_ir.OpOperandList: 
# |            657:  _ods_variadic_group_length = len(self.operation.operands) - 2 + 1 
# |            658:  return self.operation.operands[1:1 + _ods_variadic_group_length] 
# |            659:  
# |            660: def one_variadic_operand(non_variadic, variadic, *, loc=None, ip=None) -> OneVariadicOperandOp: 
# |            661:  return OneVariadicOperandOp(non_variadic=non_variadic, variadic=variadic, loc=loc, ip=ip) 
# | check:435'0                                                                                               X error: no match found
# |            662:  
# | check:435'0     ~
# |            663: class OneVariadicResultOpAdaptor(_ods_OpAdaptor): 
# | check:435'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            664:  OPERATION_NAME = "test.one_variadic_result" 
# | check:435'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:435'1                  ?                                possible intended match
# |            665:  
# |            666: @_ods_cext.register_operation(_Dialect) 
# |            667: class OneVariadicResultOp(_ods_ir.OpView): 
# |            668:  OPERATION_NAME = "test.one_variadic_result" 
# |            669:  Adaptor = OneVariadicResultOpAdaptor 
# |              .
# |              .
# |              .
# |            691:  _ods_variadic_group_length = len(self.operation.results) - 2 + 1 
# |            692:  return self.operation.results[1 + _ods_variadic_group_length - 1] 
# |            693:  
# |            694: def one_variadic_result(variadic, non_variadic, *, loc=None, ip=None) -> _Union[_ods_ir.OpResult, _ods_ir.OpResultList, OneVariadicResultOp]: 
# |            695:  op = OneVariadicResultOp(variadic=variadic, non_variadic=non_variadic, loc=loc, ip=ip); results = op.results 
# |            696:  return results if len(results) > 1 else (results[0] if len(results) == 1 else op) 
# | check:470'0                                                                                       X error: no match found
# |            697:  
# | check:470'0     ~
# |            698: class PythonKeywordOpAdaptor(_ods_OpAdaptor): 
# | check:470'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            699:  OPERATION_NAME = "test.python_keyword" 
# | check:470'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:470'1              ?                               possible intended match
# |            700:  
# |            701:  @builtins.property 
# |            702:  def in_(self) -> _ods_ir.Value: 
# |            703:  return self.operands[0] 
# |            704:  
# |              .
# |              .
# |              .
# |            813:  _ods_variadic_group_length = len(self.operation.results) - 1 + 1 
# |            814:  return self.operation.results[0:0 + _ods_variadic_group_length] 
# |            815:  
# |            816: def same_results_variadic(res, in1, in2, *, loc=None, ip=None) -> _Union[_ods_ir.OpResult, _ods_ir.OpResultList, SameResultsVariadicOp]: 
# |            817:  op = SameResultsVariadicOp(res=res, in1=in1, in2=in2, loc=loc, ip=ip); results = op.results 
# |            818:  return results if len(results) > 1 else (results[0] if len(results) == 1 else op) 
# | check:520'0                                                                                       X error: no match found
# |            819:  
# | check:520'0     ~
# |            820: class SameVariadicOperandSizeOpAdaptor(_ods_OpAdaptor): 
# | check:520'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            821:  OPERATION_NAME = "test.same_variadic_operand" 
# | check:520'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:520'1                         ?                           possible intended match
# |            822:  
# |            823:  @builtins.property 
# |            824:  def variadic1(self) -> _ods_ir.OpOperandList: 
# |            825:  start, elements_per_group = _ods_equally_sized_accessor(self.operands, 1, 2, 0, 0) 
# |            826:  return self.operands[start:start + elements_per_group] 
# |              .
# |              .
# |              .
# |            868:  def variadic2(self) -> _ods_ir.OpOperandList: 
# |            869:  start, elements_per_group = _ods_equally_sized_accessor(self.operation.operands, 1, 2, 1, 1) 
# |            870:  return self.operation.operands[start:start + elements_per_group] 
# |            871:  
# |            872: def same_variadic_operand(variadic1, non_variadic, variadic2, *, loc=None, ip=None) -> SameVariadicOperandSizeOp: 
# |            873:  return SameVariadicOperandSizeOp(variadic1=variadic1, non_variadic=non_variadic, variadic2=variadic2, loc=loc, ip=ip) 
# | check:546'0                                                                                                                           X error: no match found
# |            874:  
# | check:546'0     ~
# |            875: class SameVariadicResultSizeOpAdaptor(_ods_OpAdaptor): 
# | check:546'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            876:  OPERATION_NAME = "test.same_variadic_result" 
# | check:546'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:546'1                  ?                                 possible intended match
# |            877:  
# |            878: @_ods_cext.register_operation(_Dialect) 
# |            879: class SameVariadicResultSizeOp(_ods_ir.OpView): 
# |            880:  OPERATION_NAME = "test.same_variadic_result" 
# |            881:  Adaptor = SameVariadicResultSizeOpAdaptor 
# |              .
# |              .
# |              .
# |            909:  start, elements_per_group = _ods_equally_sized_accessor(self.operation.results, 1, 2, 1, 1) 
# |            910:  return self.operation.results[start:start + elements_per_group] 
# |            911:  
# |            912: def same_variadic_result(variadic1, non_variadic, variadic2, *, loc=None, ip=None) -> _Union[_ods_ir.OpResult, _ods_ir.OpResultList, SameVariadicResultSizeOp]: 
# |            913:  op = SameVariadicResultSizeOp(variadic1=variadic1, non_variadic=non_variadic, variadic2=variadic2, loc=loc, ip=ip); results = op.results 
# |            914:  return results if len(results) > 1 else (results[0] if len(results) == 1 else op) 
# | check:573'0                                                                                       X error: no match found
# |            915:  
# | check:573'0     ~
# |            916: class SimpleOpAdaptor(_ods_OpAdaptor): 
# | check:573'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:573'1                          ?                  possible intended match
# |            917:  OPERATION_NAME = "test.simple" 
# | check:573'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            918:  
# |            919:  @builtins.property 
# |            920:  def i32(self) -> _ods_ir.Value[_ods_ir.IntegerType]: 
# |            921:  return self.operands[0] 
# |              .
# |              .
# |              .
# |            959:  @builtins.property 
# |            960:  def f64(self) -> _ods_ir.OpResult[_ods_ir.FloatType]: 
# |            961:  return self.operation.results[1] 
# |            962:  
# |            963: def simple(i64, f64, i32, f32, *, loc=None, ip=None) -> _ods_ir.OpResultList: 
# |            964:  return SimpleOp(i64=i64, f64=f64, i32=i32, f32=f32, loc=loc, ip=ip).results 
# | check:614'0                                                                                 X error: no match found
# |            965:  
# | check:614'0     ~
# |            966: class VariadicAndNormalRegionOpAdaptor(_ods_OpAdaptor): 
# | check:614'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:614'1     ?                                                        possible intended match
# |            967:  OPERATION_NAME = "test.variadic_and_normal_region" 
# | check:614'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            968:  
# |            969: @_ods_cext.register_operation(_Dialect) 
# |            970: class VariadicAndNormalRegionOp(_ods_ir.OpView): 
# |            971:  OPERATION_NAME = "test.variadic_and_normal_region" 
# |              .
# |              .
# |              .
# |            990:  @builtins.property 
# |            991:  def variadic(self) -> _ods_ir.RegionSequence: 
# |            992:  return self.regions[2:] 
# |            993:  
# |            994: def variadic_and_normal_region(num_variadic, *, loc=None, ip=None) -> VariadicAndNormalRegionOp: 
# |            995:  return VariadicAndNormalRegionOp(num_variadic=num_variadic, loc=loc, ip=ip) 
# | check:642'0                                                                                 X error: no match found
# |            996:  
# | check:642'0     ~
# |            997: class VariadicRegionOpAdaptor(_ods_OpAdaptor): 
# | check:642'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:642'1     ?                                               possible intended match
# |            998:  OPERATION_NAME = "test.variadic_region" 
# | check:642'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            999:  
# |           1000: @_ods_cext.register_operation(_Dialect) 
# |           1001: class VariadicRegionOp(_ods_ir.OpView): 
# |           1002:  OPERATION_NAME = "test.variadic_region" 
# |              .
# |              .
# |              .
# |           1017:  @builtins.property 
# |           1018:  def Variadic(self) -> _ods_ir.RegionSequence: 
# |           1019:  return self.regions[0:] 
# |           1020:  
# |           1021: def variadic_region(num_variadic, *, loc=None, ip=None) -> VariadicRegionOp: 
# |           1022:  return VariadicRegionOp(num_variadic=num_variadic, loc=loc, ip=ip) 
# | check:666'0                                                                        X error: no match found
# |           1023:  
# | check:666'0     ~
# |           1024: class WithSpecialCharactersOpAdaptor(_ods_OpAdaptor): 
# | check:666'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:666'1            ?                                               possible intended match
# |           1025:  OPERATION_NAME = "test.123with--special.characters" 
# | check:666'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1026:  
# |           1027: @_ods_cext.register_operation(_Dialect) 
# |           1028: class WithSpecialCharactersOp(_ods_ir.OpView): 
# |           1029:  OPERATION_NAME = "test.123with--special.characters" 
# |              .
# |              .
# |              .
# |           1039:  results = [] 
# |           1040:  _ods_successors = None 
# |           1041:  super().__init__(self.OPERATION_NAME, self._ODS_REGIONS, self._ODS_OPERAND_SEGMENTS, self._ODS_RESULT_SEGMENTS, attributes=attributes, results=results, operands=operands, successors=_ods_successors, regions=regions, loc=loc, ip=ip) 
# |           1042:  
# |           1043: def _123with__special_characters(*, loc=None, ip=None) -> WithSpecialCharactersOp: 
# |           1044:  return WithSpecialCharactersOp(loc=loc, ip=ip) 
# | check:675'0                                                    X error: no match found
# |           1045:  
# | check:675'0     ~
# |           1046: class WithSuccessorsOpAdaptor(_ods_OpAdaptor): 
# | check:675'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:675'1     ?                                               possible intended match
# |           1047:  OPERATION_NAME = "test.with_successors" 
# | check:675'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1048:  
# |           1049: @_ods_cext.register_operation(_Dialect) 
# |           1050: class WithSuccessorsOp(_ods_ir.OpView): 
# |           1051:  OPERATION_NAME = "test.with_successors" 
# |              .
# |              .
# |              .
# |           1063:  _ods_successors.append(successor) 
# |           1064:  _ods_successors.extend(successors) 
# |           1065:  super().__init__(self.OPERATION_NAME, self._ODS_REGIONS, self._ODS_OPERAND_SEGMENTS, self._ODS_RESULT_SEGMENTS, attributes=attributes, results=results, operands=operands, successors=_ods_successors, regions=regions, loc=loc, ip=ip) 
# |           1066:  
# |           1067: def with_successors(successor, successors, *, loc=None, ip=None) -> WithSuccessorsOp: 
# |           1068:  return WithSuccessorsOp(successor=successor, successors=successors, loc=loc, ip=ip) 
# | check:690'0                                                                                         X error: no match found
# |           1069:  
# | check:690'0     ~
# |           1070: class snake_caseAdaptor(_ods_OpAdaptor): 
# | check:690'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:690'1     ?                                         possible intended match
# |           1071:  OPERATION_NAME = "test.snake_case" 
# | check:690'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           1072:  
# |           1073: @_ods_cext.register_operation(_Dialect) 
# |           1074: class snake_case(_ods_ir.OpView): 
# |           1075:  OPERATION_NAME = "test.snake_case" 
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/176640


More information about the Mlir-commits mailing list