brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1011 B · 8dec21d Raw
29 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9#include "mlir/TableGen/Argument.h"10 11using namespace mlir;12using namespace mlir::tblgen;13 14//===----------------------------------------------------------------------===//15// NamedTypeConstraint16//===----------------------------------------------------------------------===//17 18bool NamedTypeConstraint::hasPredicate() const {19  return !constraint.getPredicate().isNull();20}21 22bool NamedTypeConstraint::isOptional() const { return constraint.isOptional(); }23 24bool NamedTypeConstraint::isVariadic() const { return constraint.isVariadic(); }25 26bool NamedTypeConstraint::isVariadicOfVariadic() const {27  return constraint.isVariadicOfVariadic();28}29