[mlir][Python] Sync Python bindings with C API MlirStringRef modification.
authorzhanghb97 <hongbin2019@iscas.ac.cn>
Tue, 24 Nov 2020 18:35:22 +0000 (18:35 +0000)
committerStella Laurenzo <stellaraccident@gmail.com>
Tue, 24 Nov 2020 19:33:48 +0000 (19:33 +0000)
commit5f0c1e380661f5a28fb8e87d70a68fa31e923436
tree135fc5672d25f13c13bf70154509c271259fe0d5
parent1e821217cb3619449d536978bae7c9f05bdf0fa5
[mlir][Python] Sync Python bindings with C API MlirStringRef modification.

MLIR C API use the `MlirStringRef` instead of `const char *` for the string type now. This patch sync the Python bindings with the C API modification.

Differential Revision: https://reviews.llvm.org/D92007
mlir/lib/Bindings/Python/IRModules.cpp
mlir/lib/Bindings/Python/PybindUtils.h