MLIR  20.0.0git
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 
10 #include "llvm/TableGen/Record.h"
11 
12 using namespace mlir;
13 using namespace mlir::tblgen;
14 
15 //===----------------------------------------------------------------------===//
16 // NamedTypeConstraint
17 //===----------------------------------------------------------------------===//
18 
20  return !constraint.getPredicate().isNull();
21 }
22 
24 
26 
29 }
Pred getPredicate() const
Definition: Constraint.cpp:39
bool isNull() const
Definition: Predicate.h:46
bool isVariadic() const
Definition: Type.cpp:30
bool isOptional() const
Definition: Type.cpp:26
bool isVariadicOfVariadic() const
Definition: Type.cpp:34
Include the generated interface declarations.