[all-commits] [llvm/llvm-project] d89602: Add `mlirModuleFromOperation` to C API

Adam Paszke via All-commits all-commits at lists.llvm.org
Mon May 17 03:18:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d89602ed62f3e5f47781659059db6a8cc11122fe
      https://github.com/llvm/llvm-project/commit/d89602ed62f3e5f47781659059db6a8cc11122fe
  Author: Adam Paszke <apaszke at google.com>
  Date:   2021-05-17 (Mon, 17 May 2021)

  Changed paths:
    M mlir/include/mlir-c/IR.h
    M mlir/lib/CAPI/IR/IR.cpp
    M mlir/test/CAPI/ir.c

  Log Message:
  -----------
  Add `mlirModuleFromOperation` to C API

At the moment `MlirModule`s can be converted to `MlirOperation`s, but not
the other way around (at least not without going around the C API). This
makes it impossible to e.g. run passes over a `ModuleOp` created through
`mlirOperationCreate`.

Reviewed By: nicolasvasilache, mehdi_amini

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




More information about the All-commits mailing list