Skip to content

Commit 367d502

Browse files
authored
[mlir][python] Fix attribute registration in ir.py (#94615)
This PR fixes attribute registration for `SI8Attr` and `UI8Attr` in `ir.py`.
1 parent cbd7eab commit 367d502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/python/mlir/ir.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _si1Attr(x, context):
6868

6969

7070
@register_attribute_builder("SI8Attr")
71-
def _i8Attr(x, context):
71+
def _si8Attr(x, context):
7272
return IntegerAttr.get(IntegerType.get_signed(8, context=context), x)
7373

7474

@@ -93,7 +93,7 @@ def _ui1Attr(x, context):
9393

9494

9595
@register_attribute_builder("UI8Attr")
96-
def _i8Attr(x, context):
96+
def _ui8Attr(x, context):
9797
return IntegerAttr.get(IntegerType.get_unsigned(8, context=context), x)
9898

9999

0 commit comments

Comments
 (0)