My Project
Region.h
Go to the documentation of this file.
1 //===- TGRegion.h - TableGen region definitions -----------------*- C++ -*-===//
2 //
3 // Part of the MLIR 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 #ifndef MLIR_TABLEGEN_REGION_H_
10 #define MLIR_TABLEGEN_REGION_H_
11 
12 #include "mlir/Support/LLVM.h"
14 
15 namespace mlir {
16 namespace tblgen {
17 
18 // Wrapper class providing helper methods for accessing Region defined in
19 // TableGen.
20 class Region : public Constraint {
21 public:
23 
24  static bool classof(const Constraint *c) { return c->getKind() == CK_Region; }
25 };
26 
27 // A struct bundling a region's constraint and its name.
28 struct NamedRegion {
29  StringRef name;
31 };
32 
33 } // end namespace tblgen
34 } // end namespace mlir
35 
36 #endif // MLIR_TABLEGEN_REGION_H_
Definition: InferTypeOpInterface.cpp:20
Region constraint
Definition: Region.h:30
static bool classof(const Constraint *c)
Definition: Region.h:24
Definition: Region.h:28
Definition: Constraint.h:30
Constraint(const llvm::Record *record)
Definition: Constraint.cpp:18
StringRef name
Definition: Region.h:29
Definition: Region.h:20
Definition: Constraint.h:51
Kind getKind() const
Definition: Constraint.h:53