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

ftynse via All-commits all-commits at lists.llvm.org
Wed Mar 6 10:31:18 PST 2024


  Branch: refs/heads/revert-84103-revert-83259-arith-const
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c81122420979a28d16beddaed85413fd533c324
      https://github.com/llvm/llvm-project/commit/0c81122420979a28d16beddaed85413fd533c324
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2024-03-06 (Wed, 06 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