This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add a _get_default_loc_context utility to Python bindings
ClosedPublic

Authored by ftynse on Nov 17 2020, 5:19 AM.

Details

Summary

This utility function is helpful for dialect-specific builders that need
to access the context through location, and the location itself may be
either provided as an argument or expected to be recovered from the
implicit location stack.

Diff Detail

Event Timeline

ftynse created this revision.Nov 17 2020, 5:19 AM
ftynse requested review of this revision.Nov 17 2020, 5:19 AM
stellaraccident accepted this revision.Nov 17 2020, 7:45 AM
This revision is now accepted and ready to land.Nov 17 2020, 7:45 AM