brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 69d8cd8 Raw
32 lines · c
1//===- CppGenUtilities.h - MLIR cpp gen utilities ---------------*- 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 common utilities for generating cpp files from tablegen10// structures.11//12//===----------------------------------------------------------------------===//13 14#ifndef MLIR_TOOLS_MLIRTBLGEN_CPPGENUTILITIES_H_15#define MLIR_TOOLS_MLIRTBLGEN_CPPGENUTILITIES_H_16 17#include "llvm/ADT/StringRef.h"18#include "llvm/Support/raw_ostream.h"19 20namespace mlir {21namespace tblgen {22 23// Emit the summary and description as a C++ comment. If `terminateComment` is24// true, terminates the comment with a `\n`.25void emitSummaryAndDescComments(llvm::raw_ostream &os, llvm::StringRef summary,26                                llvm::StringRef description,27                                bool terminateComment = true);28} // namespace tblgen29} // namespace mlir30 31#endif // MLIR_TOOLS_MLIRTBLGEN_CPPGENUTILITIES_H_32