[all-commits] [llvm/llvm-project] 82f3cb: [MLIR][Python] Added a base class to all builtin f...

Sergei Lebedev via All-commits all-commits at lists.llvm.org
Wed Feb 14 04:03:01 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82f3cbc860bfd9f1e10e3605ae1b162b1f423cc7
      https://github.com/llvm/llvm-project/commit/82f3cbc860bfd9f1e10e3605ae1b162b1f423cc7
  Author: Sergei Lebedev <185856+superbobry at users.noreply.github.com>
  Date:   2024-02-14 (Wed, 14 Feb 2024)

  Changed paths:
    M mlir/include/mlir-c/BuiltinTypes.h
    M mlir/lib/Bindings/Python/IRTypes.cpp
    M mlir/lib/CAPI/IR/BuiltinTypes.cpp
    M mlir/python/mlir/_mlir_libs/_mlir/ir.pyi
    M mlir/test/python/ir/builtin_types.py

  Log Message:
  -----------
  [MLIR][Python] Added a base class to all builtin floating point types (#81720)

This allows to

* check if a given ir.Type is a floating point type via isinstance() or
issubclass()
* get the bitwidth of a floating point type

See motivation and discussion in
https://discourse.llvm.org/t/add-floattype-to-mlir-python-bindings/76959.




More information about the All-commits mailing list