MLIR
20.0.0git
lib
TableGen
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
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(
"VariadicRegion"
); }
Region.h
mlir::tblgen::Constraint::def
const llvm::Record * def
Definition:
Constraint.h:83
mlir::tblgen::Region::isVariadic
bool isVariadic() const
Definition:
Region.cpp:20
mlir::tblgen
Definition:
Argument.h:35
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
Generated on Sat Dec 21 2024 08:31:53 for MLIR by
1.9.1