[all-commits] [llvm/llvm-project] f3dab1: [mlir] Add a _get_default_loc_context utility to P...

ftynse via All-commits all-commits at lists.llvm.org
Tue Nov 17 08:56:07 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f3dab16dc721feee669947d4cb95e88ab90c78f5
      https://github.com/llvm/llvm-project/commit/f3dab16dc721feee669947d4cb95e88ab90c78f5
  Author: Alex Zinenko <zinenko at google.com>
  Date:   2020-11-17 (Tue, 17 Nov 2020)

  Changed paths:
    M mlir/lib/Bindings/Python/mlir/dialects/__init__.py
    M mlir/test/mlir-tblgen/op-python-bindings.td
    M mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list