[all-commits] [llvm/llvm-project] 2fc0d4: [mlir] Add Float Attribute, Integer Attribute and ...

zhanghb97 via All-commits all-commits at lists.llvm.org
Fri Oct 2 09:34:50 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fc0d4a8e83807d57f8d586af82934f94dead5e3
      https://github.com/llvm/llvm-project/commit/2fc0d4a8e83807d57f8d586af82934f94dead5e3
  Author: zhanghb97 <zhanghb97 at 126.com>
  Date:   2020-10-03 (Sat, 03 Oct 2020)

  Changed paths:
    M mlir/include/mlir-c/StandardAttributes.h
    M mlir/lib/Bindings/Python/IRModules.cpp
    M mlir/lib/CAPI/IR/StandardAttributes.cpp
    M mlir/test/Bindings/Python/ir_attributes.py

  Log Message:
  -----------
  [mlir] Add Float Attribute, Integer Attribute and Bool Attribute subclasses to python bindings.

Based on PyAttribute and PyConcreteAttribute classes, this patch implements the bindings of Float Attribute, Integer Attribute and Bool Attribute subclasses.
This patch also defines the `mlirFloatAttrDoubleGetChecked` C API which is bound with the `FloatAttr.get_typed` python method.

Differential Revision: https://reviews.llvm.org/D88531




More information about the All-commits mailing list