[MLIR] Add InferShapedTypeOpInterface bindings
authorArash Taheri-Dezfouli <ataheridezfouli@groq.com>
Thu, 11 May 2023 19:29:16 +0000 (14:29 -0500)
committermax <maksim.levental@gmail.com>
Thu, 11 May 2023 21:20:47 +0000 (16:20 -0500)
commitf22008ed89eac028cd70f91de3adf41a481f6d22
treef277becf263a740d6c3058f0d802ba196dceb291
parent62c4c614eea8078918d04cb33ce54ef8f9987766
[MLIR] Add InferShapedTypeOpInterface bindings

Add C and python bindings for InferShapedTypeOpInterface
and ShapedTypeComponents. This allows users to invoke
InferShapedTypeOpInterface for ops that implement it.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D149494
mlir/include/mlir-c/Interfaces.h
mlir/lib/Bindings/Python/IRInterfaces.cpp
mlir/lib/CAPI/Interfaces/Interfaces.cpp
mlir/python/mlir/_mlir_libs/_mlir/ir.pyi
mlir/test/python/dialects/python_test.py
mlir/test/python/python_test_ops.td