[all-commits] [llvm/llvm-project] 8d8738: [MLIR] Add block detach func to CAPI and use it in...

John Demme via All-commits all-commits at lists.llvm.org
Wed Apr 6 13:21:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d8738f6fed389e63efd6ad4f8c198828acfc604
      https://github.com/llvm/llvm-project/commit/8d8738f6fed389e63efd6ad4f8c198828acfc604
  Author: John Demme <john.demme at microsoft.com>
  Date:   2022-04-06 (Wed, 06 Apr 2022)

  Changed paths:
    M mlir/include/mlir-c/IR.h
    M mlir/lib/Bindings/Python/IRCore.cpp
    M mlir/lib/CAPI/IR/IR.cpp
    M mlir/test/CAPI/ir.c
    M mlir/test/python/ir/blocks.py

  Log Message:
  -----------
  [MLIR] Add block detach func to CAPI and use it in Python bindings

Adds `mlirBlockDetach` to the CAPI to remove a block from its parent
region. Use it in the Python bindings to implement
`Block.append_to(region)`.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list