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//===----------------------------------------------------------------------===//
8
9#ifndef MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_
10#define MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_
11
12#include "mlir/TableGen/Class.h"
13
14namespace mlir {
15namespace tblgen {
16class AttrOrTypeDef;
17
18/// Generate a parser and printer based on a custom assembly format for an
19/// attribute or type.
20void generateAttrOrTypeFormat(const AttrOrTypeDef &def, MethodBody &parser,
21 MethodBody &printer);
22
23} // namespace tblgen
24} // namespace mlir
25
26#endif // MLIR_TOOLS_MLIRTBLGEN_ATTRORTYPEFORMATGEN_H_
27

source code of mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.h