https://github.com/FantasqueX created https://github.com/llvm/llvm-project/pull/170709
None >From 7e9ebf3033fc6569a0cd7bf213377d009ac6ef23 Mon Sep 17 00:00:00 2001 From: Letu Ren <[email protected]> Date: Fri, 5 Dec 2025 01:59:27 +0800 Subject: [PATCH] [CIR][NFC] Add an example to FloorOp --- clang/include/clang/CIR/Dialect/IR/CIROps.td | 7 +++++++ 1 file changed, 7 insertions(+) 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
