| 1 | //===- Region.cpp - Region class ------------------------------------------===// |
| 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 | //===----------------------------------------------------------------------===// |
| 8 | // |
| 9 | // Region wrapper to simplify using TableGen Record defining a MLIR Region. |
| 10 | // |
| 11 | //===----------------------------------------------------------------------===// |
| 12 | |
| 13 | #include "mlir/TableGen/Region.h" |
| 14 | #include "llvm/TableGen/Record.h" |
| 15 | |
| 16 | using namespace mlir; |
| 17 | using namespace mlir::tblgen; |
| 18 | |
| 19 | // Returns true if this region is variadic. |
| 20 | bool Region::isVariadic() const { return def->isSubClassOf(Name: "VariadicRegion" ); } |
| 21 | |