[Mlir-commits] [mlir] [MLIR][NVVM] Add div Ops (PR #198744)
Varad Rahul Kamthe
llvmlistbot at llvm.org
Wed May 20 07:04:31 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)
----------------
varadk27 wrote:
Addressed in latest commit
https://github.com/llvm/llvm-project/pull/198744
More information about the Mlir-commits
mailing list