//===- Constraint.h - MLIR PDLL ODS Constraints -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file contains a PDLL description of ODS constraints. These are used to // support the import of constraints defined outside of PDLL. // //===----------------------------------------------------------------------===// #ifndef MLIR_TOOLS_PDLL_ODS_CONSTRAINT_H_ #define MLIR_TOOLS_PDLL_ODS_CONSTRAINT_H_ #include <string> #include "mlir/Support/LLVM.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringMap.h" namespace mlir { namespace pdll { namespace ods { //===----------------------------------------------------------------------===// // Constraint //===----------------------------------------------------------------------===// /// This class represents a generic ODS constraint. class Constraint { … }; //===----------------------------------------------------------------------===// // AttributeConstraint //===----------------------------------------------------------------------===// /// This class represents a generic ODS Attribute constraint. class AttributeConstraint : public Constraint { … }; //===----------------------------------------------------------------------===// // TypeConstraint //===----------------------------------------------------------------------===// /// This class represents a generic ODS Type constraint. class TypeConstraint : public Constraint { … }; } // namespace ods } // namespace pdll } // namespace mlir #endif // MLIR_TOOLS_PDLL_ODS_CONSTRAINT_H_