[mlir][SCF] Disallow multiple blocks in scf.if "else" region
authorMatthias Springer <springerm@google.com>
Sat, 4 Feb 2023 14:44:20 +0000 (15:44 +0100)
committerMatthias Springer <springerm@google.com>
Sat, 4 Feb 2023 14:45:28 +0000 (15:45 +0100)
commitd0a7bb9b1ad768dfd9b08f66a0e744584b49181f
treea1e22e7d3f215b83adb85b69514f7ee4c2fbc054
parentcfba328183f56765721b59e7fe8eb2a261bff340
[mlir][SCF] Disallow multiple blocks in scf.if "else" region

The "then" region allows only a single block. The same should be the case for the "else" region.

Differential Revision: https://reviews.llvm.org/D143253
mlir/include/mlir/Dialect/SCF/IR/SCFOps.td
mlir/include/mlir/IR/OpBase.td