MLIR 24.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 {
12class DialectRegistry;
14namespace emitc {
15
16/// Enum to specify the language target for EmitC code generation.
17enum class LanguageTarget { c99, cpp11 };
18
19} // namespace emitc
20
21void populateConvertMathToEmitCPatterns(RewritePatternSet &patterns,
22 emitc::LanguageTarget languageTarget);
23
24void registerConvertMathToEmitCInterface(DialectRegistry &registry);
25} // namespace mlir
26
27#endif // MLIR_CONVERSION_MATHTOEMITC_MATHTOEMITC_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
LanguageTarget
Enum to specify the language target for EmitC code generation.
Definition MathToEmitC.h:17
Include the generated interface declarations.
void registerConvertMathToEmitCInterface(DialectRegistry &registry)
void populateConvertMathToEmitCPatterns(RewritePatternSet &patterns, emitc::LanguageTarget languageTarget)