xref: /llvm-project/mlir/lib/TableGen/Argument.cpp (revision 308571074c13ea2a0758aa085aa02f72150f891e)
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 
14 bool tblgen::NamedTypeConstraint::hasPredicate() const {
15   return !constraint.getPredicate().isNull();
16 }
17 
18 bool tblgen::NamedTypeConstraint::isVariadic() const {
19   return constraint.isVariadic();
20 }
21