[clang] [CIR][NFC] Add an example to FloorOp (PR #170709)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 4 10:00:56 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Letu Ren (FantasqueX)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/170709.diff
1 Files Affected:
- (modified) clang/include/clang/CIR/Dialect/IR/CIROps.td (+7)
``````````diff
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
+ ```
}];
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/170709
More information about the cfe-commits
mailing list