diff --git a/mlir/include/mlir/Dialect/Math/IR/MathOps.td b/mlir/include/mlir/Dialect/Math/IR/MathOps.td --- a/mlir/include/mlir/Dialect/Math/IR/MathOps.td +++ b/mlir/include/mlir/Dialect/Math/IR/MathOps.td @@ -668,6 +668,10 @@ The `round` operation returns the operand rounded to the nearest integer value in floating-point format. It takes one operand of floating point type (i.e., scalar, tensor or vector) and produces one result of the same type. + Currently, the operation lowers to an llvm intrinsics (llvm.round.*) or to Libm + calls. In both cases, the operation rounds the argument to the nearest integer + value in floating-point format, rounding halfway cases away from zero, + regardless of the current rounding direction. Example: