[MLIR] [Python] Allow 'operation.parent' to return 'None'
authorJohn Demme <john.demme@microsoft.com>
Tue, 17 Aug 2021 05:37:14 +0000 (22:37 -0700)
committerJohn Demme <john.demme@microsoft.com>
Tue, 17 Aug 2021 05:38:07 +0000 (22:38 -0700)
commit1689dade4218945db175f7916c2261667f9bf371
tree7f469cdfacde40a7ccd1ea58bbf2cf71a8656cdc
parent198e6771e24fb5d8d9f3b155445ecc2a4f211004
[MLIR] [Python] Allow 'operation.parent' to return 'None'

This is more Pythonic and better matches the C++ and C APIs.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D108183
mlir/lib/Bindings/Python/IRCore.cpp
mlir/lib/Bindings/Python/IRModule.h