[llvm] [mlir] [mlir][EmitC] Add MathToEmitC pass for math function lowering to EmitC (PR #113799)
Marius Brehler via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 05:21:49 PST 2025
================
@@ -0,0 +1,21 @@
+//===- MathToEmitC.h - Math to EmitCPatterns -------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef MLIR_CONVERSION_MATHTOEMITC_MATHTOEMITC_H
+#define MLIR_CONVERSION_MATHTOEMITC_MATHTOEMITC_H
+#include "mlir/Dialect/EmitC/IR/EmitC.h"
+#include "mlir/Dialect/EmitC/Transforms/Passes.h"
----------------
marbre wrote:
I assume this include made was added as the enum is defined in that header. Actually, the header is only included in the two new `mlir/include/mlir/Conversion/MathToEmitC/{MathToEmitC,MathToEmitCPass}.h` header files. Maybe there is a better place to define the enum, `Transforms/Passes.h` seems not the best place. @simon-camp any suggestion?
https://github.com/llvm/llvm-project/pull/113799
More information about the llvm-commits
mailing list