1 //===- AttrOrTypeFormatGen.h - MLIR attribute and type format generator ---===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_
10 #define MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_
12 #include "mlir/TableGen/Class.h"
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
,
26 #endif // MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_