//===- Property.h - Property wrapper 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 // //===----------------------------------------------------------------------===// // // Property wrapper to simplify using TableGen Record defining a MLIR // Property. // //===----------------------------------------------------------------------===// #ifndef MLIR_TABLEGEN_PROPERTY_H_ #define MLIR_TABLEGEN_PROPERTY_H_ #include "mlir/Support/LLVM.h" #include "mlir/TableGen/Constraint.h" #include "llvm/ADT/StringRef.h" namespace llvm { class DefInit; class Record; } // namespace llvm namespace mlir { namespace tblgen { class Dialect; class Type; // Wrapper class providing helper methods for accessing MLIR Property defined // in TableGen. This class should closely reflect what is defined as class // `Property` in TableGen. class Property { … }; // A struct wrapping an op property and its name together struct NamedProperty { … }; } // namespace tblgen } // namespace mlir #endif // MLIR_TABLEGEN_PROPERTY_H_