[all-commits] [llvm/llvm-project] ac88f7: [mlir][python] Support Arbitrary Precision Integer...
Ryan Kim via All-commits
all-commits at lists.llvm.org
Sat Jan 24 23:05:24 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ac88f7bcd41a358a7d47946e2896b03c1aade44f
https://github.com/llvm/llvm-project/commit/ac88f7bcd41a358a7d47946e2896b03c1aade44f
Author: Ryan Kim <chokobole33 at gmail.com>
Date: 2026-01-24 (Sat, 24 Jan 2026)
Changed paths:
M mlir/include/mlir-c/BuiltinAttributes.h
M mlir/include/mlir/Bindings/Python/IRAttributes.h
M mlir/lib/Bindings/Python/IRAttributes.cpp
M mlir/lib/CAPI/IR/BuiltinAttributes.cpp
M mlir/test/python/ir/attributes.py
Log Message:
-----------
[mlir][python] Support Arbitrary Precision Integers in MLIR C API and Python Bindings (#177733)
This PR extends the MLIR C API and Python bindings to support
**arbitrary-precision integers (`APInt`)**, overcoming the previous
limitation where `IntegerAttr` values were restricted to 64 bits.
Cryptographic applications often require integer types much larger than
standard machine words (e.g., the 256-bit modulus for the BN254 curve).
Previously, attempting to bind these values resulted in truncation or
errors. This PR exposes the underlying word-based `APInt` structure via
the C API and updates the Python bindings to seamlessly handle Python's
arbitrary-precision integers.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list