MLIR
21.0.0git
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Variables
a
c
f
h
i
k
m
n
o
p
r
s
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
v
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
f
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
Related Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Variables
_
a
b
c
d
e
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
h
i
m
n
o
r
s
t
u
v
y
Enumerations
Enumerator
a
b
c
e
f
g
i
m
n
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
y
z
include
mlir
TableGen
Region.h
Go to the documentation of this file.
1
//===- TGRegion.h - TableGen region definitions -----------------*- C++ -*-===//
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
#ifndef MLIR_TABLEGEN_REGION_H_
10
#define MLIR_TABLEGEN_REGION_H_
11
12
#include "
mlir/Support/LLVM.h
"
13
#include "
mlir/TableGen/Constraint.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
:
22
using
Constraint::Constraint
;
23
24
static
bool
classof
(
const
Constraint
*c) {
return
c->
getKind
() ==
CK_Region
; }
25
26
// Returns true if this region is variadic.
27
bool
isVariadic
()
const
;
28
};
29
30
// A struct bundling a region's constraint and its name.
31
struct
NamedRegion
{
32
// Returns true if this region is variadic.
33
bool
isVariadic
()
const
{
return
constraint
.
isVariadic
(); }
34
35
StringRef
name
;
36
Region
constraint
;
37
};
38
39
}
// namespace tblgen
40
}
// namespace mlir
41
42
#endif
// MLIR_TABLEGEN_REGION_H_
Constraint.h
mlir::tblgen::Constraint
Definition:
Constraint.h:30
mlir::tblgen::Constraint::CK_Region
@ CK_Region
Definition:
Constraint.h:33
mlir::tblgen::Constraint::getKind
Kind getKind() const
Definition:
Constraint.h:76
mlir::tblgen::Constraint::Constraint
Constraint(const llvm::Record *record, Kind kind)
Definition:
Constraint.h:36
mlir::tblgen::Region
Definition:
Region.h:20
mlir::tblgen::Region::classof
static bool classof(const Constraint *c)
Definition:
Region.h:24
mlir::tblgen::Region::isVariadic
bool isVariadic() const
Definition:
Region.cpp:20
LLVM.h
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
mlir::tblgen::NamedRegion
Definition:
Region.h:31
mlir::tblgen::NamedRegion::name
StringRef name
Definition:
Region.h:35
mlir::tblgen::NamedRegion::isVariadic
bool isVariadic() const
Definition:
Region.h:33
mlir::tblgen::NamedRegion::constraint
Region constraint
Definition:
Region.h:36
Generated on Sat May 3 2025 16:32:27 for MLIR by
1.9.1