Author: Letu Ren Date: 2025-12-04T12:45:13-08:00 New Revision: 00c51ecc934b3b81a4c99efd7b8a5c5c01ad802b
URL: https://github.com/llvm/llvm-project/commit/00c51ecc934b3b81a4c99efd7b8a5c5c01ad802b DIFF: https://github.com/llvm/llvm-project/commit/00c51ecc934b3b81a4c99efd7b8a5c5c01ad802b.diff LOG: [CIR][NFC] Add an example to FloorOp (#170709) Added: Modified: clang/include/clang/CIR/Dialect/IR/CIROps.td Removed: ################################################################################ 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 + ``` }]; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
