This method allows for removing multiple disjoint operands at once, reducing the need to erase operands individually (which results in shifting the operand list).
Depends On D98071
Paths
| Differential D98290
[mlir][IR] Add an Operation::eraseOperands that supports batch erasure ClosedPublic Authored by rriddle on Mar 9 2021, 1:13 PM.
Details Summary This method allows for removing multiple disjoint operands at once, reducing the need to erase operands individually (which results in shifting the operand list). Depends On D98071
Diff Detail
Event TimelineComment Actions Nice, thanks
This revision is now accepted and ready to land.Mar 9 2021, 1:25 PM rriddle added inline comments.
This revision was landed with ongoing or failed builds.Mar 9 2021, 3:08 PM Closed by commit rGa776ecb6c2b8: [mlir][IR] Add an Operation::eraseOperands that supports batch erasure (authored by rriddle). · Explain Why This revision was automatically updated to reflect the committed changes. rriddle marked an inline comment as done.
Revision Contents
Diff 329480 mlir/include/mlir/IR/Operation.h
mlir/include/mlir/IR/OperationSupport.h
mlir/lib/IR/OperationSupport.cpp
mlir/unittests/IR/OperationSupportTest.cpp
|
This is to avoid needing to disambiguate between only prefix specified or not? (meaning, alternative could have been considering indexes from one end and this is up to the Nth operand, instead require all operands to be specified).
Did you consider a list of indices? esp for wher you have large number of operands but small number of operands to remove