brintos

brintos / llvm-project-archived public Read only

0
0
Text · 974 B · 5e43f38 Raw
30 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// This file defines the interface for generating parsers and printers from the10// declarative format.11//12//===----------------------------------------------------------------------===//13 14#ifndef MLIR_TOOLS_MLIRTBLGEN_OPFORMATGEN_H_15#define MLIR_TOOLS_MLIRTBLGEN_OPFORMATGEN_H_16 17namespace mlir {18namespace tblgen {19class OpClass;20class Operator;21 22// Generate the assembly format for the given operator.23void generateOpFormat(const Operator &constOp, OpClass &opClass,24                      bool hasProperties);25 26} // namespace tblgen27} // namespace mlir28 29#endif // MLIR_TOOLS_MLIRTBLGEN_OPFORMATGEN_H_30