HomePhabricator

[mlir] Expose affine expression to C API

Authored by zhanghb97 on Oct 21 2020, 12:32 AM.

Description

[mlir] Expose affine expression to C API

This patch provides C API for MLIR affine expression.

  • Implement C API for methods of AffineExpr class.
  • Implement C API for methods of derived classes (AffineBinaryOpExpr, AffineDimExpr, AffineSymbolExpr, and AffineConstantExpr).

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