This revision add support in ODS for specifying the successors of an operation. Successors are specified via the successors list:
let successors = (successor AnySuccessor:$target, AnySuccessor:$otherTarget);
Depends On D74683
Paths
| Differential D74783
[mlir][ODS] Add support for specifying the successors of an operation. ClosedPublic Authored by rriddle on Feb 18 2020, 11:33 AM.
Details Summary This revision add support in ODS for specifying the successors of an operation. Successors are specified via the successors list: let successors = (successor AnySuccessor:$target, AnySuccessor:$otherTarget); Depends On D74683
Diff Detail
Event TimelineComment Actions NIce
This revision is now accepted and ready to land.Feb 18 2020, 2:37 PM
Comment Actions Cool! Thanks River for adding this! Can we also update the doc ?
Closed by commit rGb1de971ba8c8: [mlir][ODS] Add support for specifying the successors of an operation. (authored by rriddle). · Explain WhyFeb 21 2020, 3:25 PM This revision was automatically updated to reflect the committed changes. bondhugula added inline comments.
Revision Contents
Diff 245974 mlir/docs/OpDefinitions.md
mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVControlFlowOps.td
mlir/include/mlir/Dialect/StandardOps/Ops.td
mlir/include/mlir/IR/OpBase.td
mlir/include/mlir/TableGen/Constraint.h
mlir/include/mlir/TableGen/Operator.h
mlir/include/mlir/TableGen/Successor.h
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/lib/TableGen/CMakeLists.txt
mlir/lib/TableGen/Constraint.cpp
mlir/lib/TableGen/Operator.cpp
mlir/lib/TableGen/Successor.cpp
mlir/test/Dialect/SPIRV/control-flow-ops.mlir
mlir/test/lib/TestDialect/TestOps.td
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
|
I've default to 0. I think typically ops don't have successors anyway.