This is an archive of the discontinued LLVM Phabricator instance.

Surface clone APIs in CAPI
ClosedPublic

Authored by GeorgeLyon on May 23 2021, 10:50 AM.

Diff Detail

Event Timeline

GeorgeLyon created this revision.May 23 2021, 10:50 AM
GeorgeLyon requested review of this revision.May 23 2021, 10:50 AM

Fix comment

mehdi_amini added inline comments.May 23 2021, 6:36 PM
mlir/include/mlir-c/IR.h
199

Since we can turn a Module into an Operation, should we avoid duplicating every single method on operation to take directly a module as well?

332
333
mlir/test/CAPI/ir.c
1656
  • Address feedback
GeorgeLyon added inline comments.May 23 2021, 6:43 PM
mlir/include/mlir-c/IR.h
199

Generally I would agree, but in this case the issue is we cannot create a module from an operation.

mehdi_amini added inline comments.May 23 2021, 7:10 PM
mlir/include/mlir-c/IR.h
199

mlirModuleFromOperation line 217?

  • Remove mlirModuleClone
mlir/include/mlir-c/IR.h
199

Whoops, missed this API. Thanks!

mehdi_amini accepted this revision.May 24 2021, 11:35 AM
This revision is now accepted and ready to land.May 24 2021, 11:35 AM
  • Remove suprious function
This revision was landed with ongoing or failed builds.May 24 2021, 11:54 AM
This revision was automatically updated to reflect the committed changes.