MLIR 22.0.0git
MathToEmitC.h
Go to the documentation of this file.
1//===- MathToEmitC.h - Math to EmitC Patterns -------------------*- 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#ifndef MLIR_CONVERSION_MATHTOEMITC_MATHTOEMITC_H
10#define MLIR_CONVERSION_MATHTOEMITC_MATHTOEMITC_H
11namespace mlir {
13namespace emitc {
14
15/// Enum to specify the language target for EmitC code generation.
16enum class LanguageTarget { c99, cpp11 };
17
18} // namespace emitc
19
20void populateConvertMathToEmitCPatterns(RewritePatternSet &patterns,
21 emitc::LanguageTarget languageTarget);
22} // namespace mlir
23
24#endif // MLIR_CONVERSION_MATHTOEMITC_MATHTOEMITC_H
LanguageTarget
Enum to specify the language target for EmitC code generation.
Definition MathToEmitC.h:16
Include the generated interface declarations.
void populateConvertMathToEmitCPatterns(RewritePatternSet &patterns, emitc::LanguageTarget languageTarget)
const FrozenRewritePatternSet & patterns