Expose MlirOperationClone in Python bindings.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Bindings/Python/IRCore.cpp | ||
---|---|---|
1233 | Except the first line, this is all the same as the end of PyOperation::create(, I wonder if it is worth refactoring in a helper function? |
mlir/test/python/ir/operation.py | ||
---|---|---|
783 | Could we check that there are indeed two operations before erasing the original? |
mlir/lib/Bindings/Python/IRCore.cpp | ||
---|---|---|
1233 | I factored out the insertion logic as that seemed like a natural function to pull out and constituted the majority of the duplicated code. Ptal. |
Except the first line, this is all the same as the end of PyOperation::create(, I wonder if it is worth refactoring in a helper function?