[all-commits] [llvm/llvm-project] d747a1: [MLIR] [Python] Fix `Value.owner` to handle BlockArgs

John Demme via All-commits all-commits at lists.llvm.org
Tue Aug 9 19:40:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d747a170a47dce64aefb906211e8aaed0c6bd6f6
      https://github.com/llvm/llvm-project/commit/d747a170a47dce64aefb906211e8aaed0c6bd6f6
  Author: John Demme <john.demme at microsoft.com>
  Date:   2022-08-09 (Tue, 09 Aug 2022)

  Changed paths:
    M mlir/lib/Bindings/Python/IRCore.cpp
    M mlir/test/python/ir/value.py

  Log Message:
  -----------
  [MLIR] [Python] Fix `Value.owner` to handle BlockArgs

Previously, calling `Value.owner()` would C++ assert in debug builds if
`Value` was a block argument. Additionally, the behavior was just wrong
in release builds. This patch adds support for BlockArg Values.




More information about the All-commits mailing list