[all-commits] [llvm/llvm-project] b246e0: [mlir][py] better support for arith.constant const...

ftynse via All-commits all-commits at lists.llvm.org
Thu Mar 7 02:45:03 PST 2024


  Branch: refs/heads/revert-84103-revert-83259-arith-const
  Home:   https://github.com/llvm/llvm-project
  Commit: b246e0d0bea735652274000fb73a7b2e46434612
      https://github.com/llvm/llvm-project/commit/b246e0d0bea735652274000fb73a7b2e46434612
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M mlir/python/mlir/dialects/arith.py
    M mlir/test/python/dialects/arith_dialect.py

  Log Message:
  -----------
  [mlir][py] better support for arith.constant construction

Arithmetic constants for vector types can be constructed from objects
implementing Python buffer protocol such as `array.array`. Note that
until Python 3.12, there is no typing support for buffer protocol
implementers, so the annotations use array explicitly.



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