This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Add nameloc getter
ClosedPublic

Authored by jpienaar on Oct 12 2021, 10:57 AM.

Details

Summary

Expose the nameloc getter to Python API.

Diff Detail

Event Timeline

jpienaar created this revision.Oct 12 2021, 10:57 AM
jpienaar requested review of this revision.Oct 12 2021, 10:57 AM
ftynse accepted this revision.Oct 12 2021, 11:53 AM
ftynse added a subscriber: ftynse.
ftynse added inline comments.
mlir/lib/Bindings/Python/IRCore.cpp
1989

Nit: maybe using childLoc ? childLoc->get() : mlirLocationUnknownGet(context->get()) as the last argument for mlirLocationNameGet would make this more concise.

This revision is now accepted and ready to land.Oct 12 2021, 11:53 AM
This revision was automatically updated to reflect the committed changes.
jpienaar marked an inline comment as done.