HomePhabricator

[mlir] support interfaces in Python bindings

Authored by ftynse on Oct 14 2021, 8:18 AM.

Description

[mlir] support interfaces in Python bindings

Introduce the initial support for operation interfaces in C API and Python
bindings. Interfaces are a key component of MLIR's extensibility and should be
available in bindings to make use of full potential of MLIR.

This initial implementation exposes InferTypeOpInterface all the way to the
Python bindings since it can be later used to simplify the operation
construction methods by inferring their return types instead of requiring the
user to do so. The general infrastructure for binding interfaces is defined and
InferTypeOpInterface can be used as an example for binding other interfaces.

Reviewed By: gysit

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

Details

Committed
ftynseOct 25 2021, 3:50 AM
Reviewer
gysit
Differential Revision
D111656: [mlir] support interfaces in Python bindings
Parents
rG1f49b71fe5fa: [SVE][CodeGen] Enable reciprocal estimates for scalable fdiv/fsqrt
Branches
Unknown
Tags
Unknown