MLIR 22.0.0git
Region.cpp
Go to the documentation of this file.
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
14#include "llvm/TableGen/Record.h"
15
16using namespace mlir;
17using namespace mlir::tblgen;
18
19// Returns true if this region is variadic.
20bool Region::isVariadic() const { return def->isSubClassOf("VariadicRegion"); }
const llvm::Record * def
Definition Constraint.h:90
bool isVariadic() const
Definition Region.cpp:20
Include the generated interface declarations.