Skip to content

Commit 00c51ec

Browse files
authored
[CIR][NFC] Add an example to FloorOp (llvm#170709)
1 parent 097e0e1 commit 00c51ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4764,6 +4764,13 @@ def CIR_FloorOp : CIR_UnaryFPToFPBuiltinOp<"floor", "FloorOp"> {
47644764
a result of the same type.
47654765

47664766
Floating-point exceptions are ignored, and it does not set `errno`.
4767+
4768+
Example:
4769+
4770+
```mlir
4771+
// $x : !cir.double
4772+
%y = cir.floor %x : !cir.double
4773+
```
47674774
}];
47684775
}
47694776

0 commit comments

Comments
 (0)