[llvm] [mlir] [mlir][EmitC] Add MathToEmitC pass for math function lowering to EmitC (PR #113799)
Simon Camphausen via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 13 05:38:48 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"
----------------
simon-camp wrote:
I would define it right here for now. If/when this get's used by other passes it can move to `Dialect/EmitC/IR/EmitC.h`
https://github.com/llvm/llvm-project/pull/113799
More information about the llvm-commits
mailing list