[llvm] [mlir] [mlir][EmitC] Add MathToEmitC pass for math function lowering to EmitC (PR #113799)
Tomer Solomon via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 02:44:35 PDT 2024
================
@@ -780,6 +780,23 @@ def ConvertMathToSPIRV : Pass<"convert-math-to-spirv"> {
let dependentDialects = ["spirv::SPIRVDialect"];
}
+//===----------------------------------------------------------------------===//
+// MathToEmitC
+//===----------------------------------------------------------------------===//
+
+def ConvertMathToEmitC : Pass<"convert-math-to-emitc", "ModuleOp"> {
+ let summary = "Convert some Math operations to EmitC Call_opaque";
+ let description = [{
+ This pass converts supported Math ops to call_opaque calls to compiler generated
+ functions implementing these operations in software.
----------------
recursion-man wrote:
I changed to what you suggested.
We might add new targets as suggested in [this thread](https://github.com/llvm/llvm-project/pull/113799#discussion_r1820643325)
https://github.com/llvm/llvm-project/pull/113799
More information about the llvm-commits
mailing list