HomePhabricator

[mlir] expose affine map to C API

Authored by zhanghb97 on Mon, Sep 14, 7:52 AM.

Description

[mlir] expose affine map to C API

This patch provides C API for MLIR affine map.

  • Implement C API for AffineMap class.
  • Add Utils.h to include/mlir/CAPI/, and move the definition of the CallbackOstream to Utils.h to make sure mlirAffineMapPrint work correct.
  • Add TODO for exposing the C API related to AffineExpr and mutable affine map.

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

Details

Committed
zhanghb97Wed, Sep 16, 6:50 PM
Differential Revision
D87617: [mlir] expose affine map to C API
Parents
rGb04c1a9d3127: [IRSim] Adding IR Instruction Mapper
Branches
Unknown
Tags
Unknown