HomePhabricator

[mlir] Add a _get_default_loc_context utility to Python bindings

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

Description

[mlir] Add a _get_default_loc_context utility to Python bindings

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.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D91623

Details

Committed
ftynseNov 17 2020, 8:55 AM
Reviewer
stellaraccident
Differential Revision
D91623: [mlir] Add a _get_default_loc_context utility to Python bindings
Parents
rG4cadb66b490e: [AST] Update matchers to be traverse-aware
Branches
Unknown
Tags
Unknown