[all-commits] [llvm/llvm-project] da5629: [mlir] expose standard attributes to C API

ftynse via All-commits all-commits at lists.llvm.org
Wed Aug 19 09:50:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: da562974628017ae92c451ca064fea5b59ad71a4
      https://github.com/llvm/llvm-project/commit/da562974628017ae92c451ca064fea5b59ad71a4
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-08-19 (Wed, 19 Aug 2020)

  Changed paths:
    M mlir/docs/CAPI.md
    M mlir/include/mlir-c/IR.h
    A mlir/include/mlir-c/StandardAttributes.h
    M mlir/lib/Bindings/Python/IRModules.cpp
    M mlir/lib/CAPI/IR/CMakeLists.txt
    M mlir/lib/CAPI/IR/IR.cpp
    A mlir/lib/CAPI/IR/StandardAttributes.cpp
    M mlir/test/CAPI/ir.c

  Log Message:
  -----------
  [mlir] expose standard attributes to C API

Provide C API for MLIR standard attributes. Since standard attributes live
under lib/IR in core MLIR, place the C APIs in the IR library as well (standard
ops will go in a separate library).

Affine map and integer set attributes are only exposed as placeholder types
with IsA support due to the lack of C APIs for the corresponding types.

Integer and floating point attribute APIs expecting APInt and APFloat are not
exposed pending decision on how to support APInt and APFloat.

Reviewed By: stellaraccident

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




More information about the All-commits mailing list