[all-commits] [llvm/llvm-project] 63d16d: [mlir] Support setting operand values in C and Pyt...

mikeurbach via All-commits all-commits at lists.llvm.org
Tue Apr 27 19:18:05 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63d16d06f5b8f71382033b5ea4aa668f8150817a
      https://github.com/llvm/llvm-project/commit/63d16d06f5b8f71382033b5ea4aa668f8150817a
  Author: Mike Urbach <mikeurbach at gmail.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

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

  Log Message:
  -----------
  [mlir] Support setting operand values in C and Python APIs.

This adds `mlirOperationSetOperand` to the IR C API, similar to the
function to get an operand.

In the Python API, this adds `operands[index] = value` syntax, similar
to the syntax to get an operand with `operands[index]`.

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list