[MLIR] Add LocationAttr to the Python API
authorAndrew Young <youngar17@gmail.com>
Thu, 19 Jan 2023 23:01:46 +0000 (15:01 -0800)
committerAndrew Young <youngar17@gmail.com>
Thu, 26 Jan 2023 00:09:29 +0000 (16:09 -0800)
commit792f3c8141bc07140c08e5392edf58e43913d6b2
tree8b1cacf317660a809f4cdfb264ca93aafa53ed10
parente13179db7ac6cfc5a68facb89f7151ba516bbfb5
[MLIR] Add LocationAttr to the Python API

This is a follow up to D142182, to expose LocationAttrs through Python.

Reviewed By: ftynse

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