diff --git a/clang/include/clang/CIR/Dialect/IR/CIROps.td b/clang/include/clang/CIR/Dialect/IR/CIROps.td index ae199f35cb10e..d720b97b2e378 100644 --- a/clang/include/clang/CIR/Dialect/IR/CIROps.td +++ b/clang/include/clang/CIR/Dialect/IR/CIROps.td @@ -4764,6 +4764,13 @@ def CIR_FloorOp : CIR_UnaryFPToFPBuiltinOp<"floor", "FloorOp"> { a result of the same type. Floating-point exceptions are ignored, and it does not set `errno`. + + Example: + + ```mlir + // $x : !cir.double + %y = cir.floor %x : !cir.double + ``` }]; }