[mlir][scf] Add insideMutuallyExclusiveBranches helper
authorMatthias Springer <springerm@google.com>
Tue, 19 Oct 2021 00:08:38 +0000 (09:08 +0900)
committerMatthias Springer <springerm@google.com>
Tue, 19 Oct 2021 00:09:07 +0000 (09:09 +0900)
commitfd26ca4e7515e7dd32ae02e777bd21693afc68ff
tree3316489d9fc3f2c3a36bfffa989ba33259c5f39b
parent252386ac81f944ab713dfd5158e67cd547fba53c
[mlir][scf] Add insideMutuallyExclusiveBranches helper

This helper function checks if two given ops are in mutually exclusive branches of the same scf::IfOp.

Differential Revision: https://reviews.llvm.org/D111957
mlir/include/mlir/Dialect/SCF/SCF.h
mlir/lib/Dialect/SCF/SCF.cpp