[Mlir-commits] [mlir] 333d2cf - [MLIR][NFC] Fix std.copysign op documentation

Uday Bondhugula llvmlistbot at llvm.org
Mon Feb 8 16:29:24 PST 2021


Author: Uday Bondhugula
Date: 2021-02-09T05:59:05+05:30
New Revision: 333d2cfc707d3939f44b24f87e799a5b2fc7ca5a

URL: https://github.com/llvm/llvm-project/commit/333d2cfc707d3939f44b24f87e799a5b2fc7ca5a
DIFF: https://github.com/llvm/llvm-project/commit/333d2cfc707d3939f44b24f87e799a5b2fc7ca5a.diff

LOG: [MLIR][NFC] Fix std.copysign op documentation

Fix std.copysign op documentation. NFC.

Differential Revision: https://reviews.llvm.org/D96217

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/StandardOps/IR/Ops.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
index 516618502357..b9545e21d390 100644
--- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
+++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
@@ -1348,7 +1348,7 @@ def CopySignOp : FloatArithmeticOp<"copysign"> {
     Syntax:
 
     ```
-    operation ::= ssa-id `=` `std.copysign` ssa-use `:` type
+    operation ::= ssa-id `=` `std.copysign` ssa-use `,` ssa-use `:` type
     ```
 
     The `copysign` returns a value with the magnitude of the first operand and
@@ -1361,13 +1361,13 @@ def CopySignOp : FloatArithmeticOp<"copysign"> {
 
     ```mlir
     // Scalar copysign value.
-    %a = copysign %b %c : f64
+    %a = copysign %b, %c : f64
 
     // SIMD vector element-wise copysign value.
-    %f = copysign %g %h : vector<4xf32>
+    %f = copysign %g, %h : vector<4xf32>
 
     // Tensor element-wise copysign value.
-    %x = copysign %y %z : tensor<4x?xf8>
+    %x = copysign %y, %z : tensor<4x?xf8>
     ```
   }];
 }


        


More information about the Mlir-commits mailing list