[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / mlir / tools / mlir-tblgen / OpFormatGen.h
blob5e43f38498664bcce5af406db9a06b944a41392c
1 //===- OpFormatGen.h - MLIR operation format generator ----------*- C++ -*-===//
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 // This file defines the interface for generating parsers and printers from the
10 // declarative format.
12 //===----------------------------------------------------------------------===//
14 #ifndef MLIR_TOOLS_MLIRTBLGEN_OPFORMATGEN_H_
15 #define MLIR_TOOLS_MLIRTBLGEN_OPFORMATGEN_H_
17 namespace mlir {
18 namespace tblgen {
19 class OpClass;
20 class Operator;
22 // Generate the assembly format for the given operator.
23 void generateOpFormat(const Operator &constOp, OpClass &opClass,
24 bool hasProperties);
26 } // namespace tblgen
27 } // namespace mlir
29 #endif // MLIR_TOOLS_MLIRTBLGEN_OPFORMATGEN_H_