aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorMarcel Koester <marcel.koester@dfki.de>2021-07-23 11:59:21 +0200
committerMarcel Koester <marcel.koester@dfki.de>2021-07-26 06:39:31 +0200
commit0425332015f479a89226c684c33659aa9cfff4b5 (patch)
treecdd4813cb5b08d935e4cfbdea9e3ef4a80c5b651 /llvm/lib/CodeGen/MachineFunction.cpp
parentae6b40000238e5faaaa319ffcfc713a15e459be8 (diff)
downloadllvm-0425332015f479a89226c684c33659aa9cfff4b5.zip
llvm-0425332015f479a89226c684c33659aa9cfff4b5.tar.gz
llvm-0425332015f479a89226c684c33659aa9cfff4b5.tar.bz2
[mlir] Added new RegionBranchTerminatorOpInterface and adapted uses of hasTrait<ReturnLike>.
This CL adds a new RegionBranchTerminatorOpInterface to query information about operands that can be passed to successor regions. Similar to the BranchOpInterface, it allows to freely define the involved operands. However, in contrast to the BranchOpInterface, it expects an additional region number to distinguish between various use cases which might require different operands passed to different regions. Moreover, we added new utility functions (namely getMutableRegionBranchSuccessorOperands and getRegionBranchSuccessorOperands) to query (mutable) operand ranges for operations equiped with the ReturnLike trait and/or implementing the newly added interface. This simplifies reasoning about terminators in the scope of the nested regions. We also adjusted the SCF.ConditionOp to benefit from the newly added capabilities. Differential Revision: https://reviews.llvm.org/D105018
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions