[Mlir-commits] [mlir] 367d502 - [mlir][python] Fix attribute registration in ir.py (#94615)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Jun 9 20:06:50 PDT 2024


Author: Egor Ospadov
Date: 2024-06-09T22:06:46-05:00
New Revision: 367d50278aa1808cd2a2213ff1ae3c5f861667b5

URL: https://github.com/llvm/llvm-project/commit/367d50278aa1808cd2a2213ff1ae3c5f861667b5
DIFF: https://github.com/llvm/llvm-project/commit/367d50278aa1808cd2a2213ff1ae3c5f861667b5.diff

LOG: [mlir][python] Fix attribute registration in ir.py (#94615)

This PR fixes attribute registration for `SI8Attr` and `UI8Attr` in
`ir.py`.

Added: 
    

Modified: 
    mlir/python/mlir/ir.py

Removed: 
    


################################################################################
diff  --git a/mlir/python/mlir/ir.py b/mlir/python/mlir/ir.py
index 80c965b2d0eb2..a9ac765fe1c17 100644
--- a/mlir/python/mlir/ir.py
+++ b/mlir/python/mlir/ir.py
@@ -68,7 +68,7 @@ def _si1Attr(x, context):
 
 
 @register_attribute_builder("SI8Attr")
-def _i8Attr(x, context):
+def _si8Attr(x, context):
     return IntegerAttr.get(IntegerType.get_signed(8, context=context), x)
 
 
@@ -93,7 +93,7 @@ def _ui1Attr(x, context):
 
 
 @register_attribute_builder("UI8Attr")
-def _i8Attr(x, context):
+def _ui8Attr(x, context):
     return IntegerAttr.get(IntegerType.get_unsigned(8, context=context), x)
 
 


        


More information about the Mlir-commits mailing list