[Mlir-commits] [mlir] [MLIR][Math] Add erfc to math dialect (PR #126439)

Prashant Kumar llvmlistbot at llvm.org
Thu Feb 13 10:46:34 PST 2025


================
@@ -543,6 +543,28 @@ def Math_ErfOp : Math_FloatUnaryOp<"erf"> {
   let hasFolder = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// ErfcOp
+//===----------------------------------------------------------------------===//
+
+def Math_ErfcOp : Math_FloatUnaryOp<"erfc"> {
+  let summary = "complementary error function of the specified value";
+  let description = [{
+    The `erfc` operation computes the complementary error function.
+    It takes one operand of floating point type (i.e., scalar, tensor or
+    vector) and returns one result of the same type.
+    It has no standard attributes.
----------------
pashu123 wrote:

Could you add a detailed description of erfc op here.

https://github.com/llvm/llvm-project/pull/126439


More information about the Mlir-commits mailing list