[mlir][python] Add nameloc getter
authorJacques Pienaar <jpienaar@google.com>
Tue, 12 Oct 2021 19:45:57 +0000 (12:45 -0700)
committerJacques Pienaar <jpienaar@google.com>
Tue, 12 Oct 2021 19:45:57 +0000 (12:45 -0700)
commit04d76d36948cf298914155f787d5f7d2e2264624
treecd771e8ba0dc4f58ba6039cc4786e9534472191f
parent357b8d7ddba0b4258063cda132ad03473f28b7e1
[mlir][python] Add nameloc getter

Expose the nameloc getter to Python API.

Differential Revision: https://reviews.llvm.org/D111663
mlir/lib/Bindings/Python/IRCore.cpp
mlir/test/python/ir/location.py