[Mlir-commits] [mlir] [MLIR][NVGPU] Add convert.fpext and convert.fptrunc Ops (PR #199700)

Guray Ozen llvmlistbot at llvm.org
Tue Jun 30 04:42:12 PDT 2026


================
@@ -1709,6 +1711,685 @@ struct NVGPURcpOpLowering : public ConvertOpToLLVMPattern<nvgpu::RcpOp> {
         rewriter);
   }
 };
+
+//===----------------------------------------------------------------------===//
+// NVGPUConvertFPTruncOp Lowering
+//===----------------------------------------------------------------------===//
+
+enum class FPKind { F32, BF16, F16, F8, F6, F4 };
+
+static int getEffectiveBitWidth(int bitWidth) {
----------------
grypp wrote:

add doc-string on function, maybe move the comment out

https://github.com/llvm/llvm-project/pull/199700


More information about the Mlir-commits mailing list