MLIR
20.0.0git
lib
TableGen
Argument.cpp
Go to the documentation of this file.
1
//===- Argument.cpp - Argument definitions --------------------------------===//
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
#include "
mlir/TableGen/Argument.h
"
10
#include "llvm/TableGen/Record.h"
11
12
using namespace
mlir
;
13
using namespace
mlir::tblgen
;
14
15
//===----------------------------------------------------------------------===//
16
// NamedTypeConstraint
17
//===----------------------------------------------------------------------===//
18
19
bool
NamedTypeConstraint::hasPredicate
()
const
{
20
return
!
constraint
.
getPredicate
().
isNull
();
21
}
22
23
bool
NamedTypeConstraint::isOptional
()
const
{
return
constraint
.
isOptional
(); }
24
25
bool
NamedTypeConstraint::isVariadic
()
const
{
return
constraint
.
isVariadic
(); }
26
27
bool
NamedTypeConstraint::isVariadicOfVariadic
()
const
{
28
return
constraint
.
isVariadicOfVariadic
();
29
}
Argument.h
mlir::tblgen::Constraint::getPredicate
Pred getPredicate() const
Definition:
Constraint.cpp:39
mlir::tblgen::Pred::isNull
bool isNull() const
Definition:
Predicate.h:46
mlir::tblgen::TypeConstraint::isVariadic
bool isVariadic() const
Definition:
Type.cpp:30
mlir::tblgen::TypeConstraint::isOptional
bool isOptional() const
Definition:
Type.cpp:26
mlir::tblgen::TypeConstraint::isVariadicOfVariadic
bool isVariadicOfVariadic() const
Definition:
Type.cpp:34
mlir::tblgen
Definition:
Argument.h:35
mlir
Include the generated interface declarations.
Definition:
LocalAliasAnalysis.h:20
mlir::tblgen::NamedTypeConstraint::isVariadicOfVariadic
bool isVariadicOfVariadic() const
Definition:
Argument.cpp:27
mlir::tblgen::NamedTypeConstraint::hasPredicate
bool hasPredicate() const
Definition:
Argument.cpp:19
mlir::tblgen::NamedTypeConstraint::isVariadic
bool isVariadic() const
Definition:
Argument.cpp:25
mlir::tblgen::NamedTypeConstraint::isOptional
bool isOptional() const
Definition:
Argument.cpp:23
mlir::tblgen::NamedTypeConstraint::constraint
TypeConstraint constraint
Definition:
Argument.h:59
Generated on Tue Dec 24 2024 16:31:55 for MLIR by
1.9.1