This range allows for performing many different operations on successor operands, including erasing/adding/setting. This removes the need for the explicit canEraseSuccessorOperand and eraseSuccessorOperand methods.
Depends On D79030
Paths
| Differential D79077
[mlir] Simplify BranchOpInterface by using MutableOperandRange ClosedPublic Authored by rriddle on Apr 29 2020, 2:59 AM.
Details Summary This range allows for performing many different operations on successor operands, including erasing/adding/setting. This removes the need for the explicit canEraseSuccessorOperand and eraseSuccessorOperand methods. Depends On D79030
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 29 2020, 1:50 PM Closed by commit rG0752d98ccf87: [mlir] Simplify BranchOpInterface by using MutableOperandRange (authored by rriddle). · Explain WhyApr 29 2020, 5:18 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 261104 flang/include/flang/Optimizer/Dialect/FIROps.td
flang/lib/Optimizer/Dialect/FIROps.cpp
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/include/mlir/IR/OperationSupport.h
mlir/include/mlir/Interfaces/ControlFlowInterfaces.h
mlir/include/mlir/Interfaces/ControlFlowInterfaces.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/lib/IR/OperationSupport.cpp
mlir/lib/Interfaces/ControlFlowInterfaces.cpp
mlir/lib/Transforms/Utils/RegionUtils.cpp
mlir/test/lib/Dialect/Test/TestDialect.cpp
mlir/tools/mlir-tblgen/OpInterfacesGen.cpp
|