[Workflow] Roll back some settings since they caused more issues
[llvm-project.git] / mlir / lib / TableGen / Argument.cpp
blobc847760f8a46782c98c43cdeacde7c7994ea6b8c
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 //===----------------------------------------------------------------------===//
9 #include "mlir/TableGen/Argument.h"
10 #include "llvm/TableGen/Record.h"
12 using namespace mlir;
13 using namespace mlir::tblgen;
15 //===----------------------------------------------------------------------===//
16 // NamedTypeConstraint
17 //===----------------------------------------------------------------------===//
19 bool NamedTypeConstraint::hasPredicate() const {
20 return !constraint.getPredicate().isNull();
23 bool NamedTypeConstraint::isOptional() const { return constraint.isOptional(); }
25 bool NamedTypeConstraint::isVariadic() const { return constraint.isVariadic(); }
27 bool NamedTypeConstraint::isVariadicOfVariadic() const {
28 return constraint.isVariadicOfVariadic();