[Mlir-commits] [mlir] [MLIR][NVVM] Add div Ops (PR #198744)
Guray Ozen
llvmlistbot at llvm.org
Wed May 20 04:18:25 PDT 2026
================
@@ -6579,6 +6579,62 @@ def NVVM_SqrtApproxOp : NVVM_F32UnaryApproxOp<"sqrt.approx"> {
}];
}
+//===----------------------------------------------------------------------===//
+// NVVM div op definitions
+//===----------------------------------------------------------------------===//
+
+def NVVM_DivFOp
+ : NVVM_SingleResultIntrinsicOp<"divf", [Pure, SameOperandsAndResultType]> {
+ let summary = "Divide one value by another";
+ let description = [{
+ Divides lhs by rhs, stores result in res (`res = lhs / rhs`).
+
+ For more information, see PTX ISA:
+ [div](https://docs.nvidia.com/cuda/parallel-thread-execution/#floating-point-instructions-div)
----------------
grypp wrote:
```suggestion
[For more information, see PTX ISA](https://docs.nvidia.com/cuda/parallel-thread-execution/#floating-point-instructions-div)
```
https://github.com/llvm/llvm-project/pull/198744
More information about the Mlir-commits
mailing list