brintos

brintos / llvm-project-archived public Read only

0
0
Text · 779 B · d8380fa Raw
21 lines · cpp
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-exception6//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 16using namespace mlir;17using namespace mlir::tblgen;18 19// Returns true if this region is variadic.20bool Region::isVariadic() const { return def->isSubClassOf("VariadicRegion"); }21