//===- Type.h - Type class --------------------------------------*- 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 // //===----------------------------------------------------------------------===// // // Type wrapper to simplify using TableGen Record defining a MLIR Type. // //===----------------------------------------------------------------------===// #ifndef MLIR_TABLEGEN_TYPE_H_ #define MLIR_TABLEGEN_TYPE_H_ #include "mlir/Support/LLVM.h" #include "mlir/TableGen/Constraint.h" #include "mlir/TableGen/Dialect.h" namespace llvm { class DefInit; class Record; } // namespace llvm namespace mlir { namespace tblgen { // Wrapper class with helper methods for accessing Type constraints defined in // TableGen. class TypeConstraint : public Constraint { … }; // Wrapper class with helper methods for accessing Types defined in TableGen. class Type : public TypeConstraint { … }; } // namespace tblgen } // namespace mlir #endif // MLIR_TABLEGEN_TYPE_H_