[Workflow] Roll back some settings since they caused more issues
[llvm-project.git] / mlir / lib / Interfaces / ParallelCombiningOpInterface.cpp
blob2b6703543bbd3f5def23a4b077431cb8324cf900
1 //===- ParallelCombiningOpInterface.cpp - Parallel combining op interface -===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "mlir/Interfaces/ParallelCombiningOpInterface.h"
11 using namespace mlir;
13 //===----------------------------------------------------------------------===//
14 // ParallelCombiningOpInterface
15 //===----------------------------------------------------------------------===//
17 // TODO: Single region single block interface on interfaces ?
18 LogicalResult mlir::detail::verifyParallelCombiningOpInterface(Operation *op) {
19 if (op->getNumRegions() != 1)
20 return op->emitError("expected single region op");
21 if (!op->getRegion(0).hasOneBlock())
22 return op->emitError("expected single block op region");
23 return success();
26 /// Include the definitions of the interface.
27 #include "mlir/Interfaces/ParallelCombiningOpInterface.cpp.inc"