[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / mlir / tools / mlir-tblgen / AttrOrTypeFormatGen.h
blobd4711532a79bb30ab58b93a3cc86a426c1419b8f
1 //===- AttrOrTypeFormatGen.h - MLIR attribute and type format generator ---===//
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 #ifndef MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_
10 #define MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_
12 #include "mlir/TableGen/Class.h"
14 namespace mlir {
15 namespace tblgen {
16 class AttrOrTypeDef;
18 /// Generate a parser and printer based on a custom assembly format for an
19 /// attribute or type.
20 void generateAttrOrTypeFormat(const AttrOrTypeDef &def, MethodBody &parser,
21 MethodBody &printer);
23 } // namespace tblgen
24 } // namespace mlir
26 #endif // MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_