[Mlir-commits] [mlir] [mlir][arith] Add nneg to extui and uitofp. (PR #183165)

Jakub Kuderski llvmlistbot at llvm.org
Wed Feb 25 06:38:17 PST 2026


================
@@ -1477,13 +1490,35 @@ def Arith_ScalingTruncFOp
 // UIToFPOp
 //===----------------------------------------------------------------------===//
 
-def Arith_UIToFPOp : Arith_IToFCastOp<"uitofp"> {
+def Arith_UIToFPOp :
+    Arith_IToFCastOp<"uitofp", [DeclareOpInterfaceMethods<ArithNonNegFlagInterface>]> {
   let summary = "cast from unsigned integer type to floating-point";
   let description = [{
     Cast from a value interpreted as unsigned integer to the corresponding
     floating-point value. If the value cannot be exactly represented, it is
     rounded using the default rounding mode. When operating on vectors, casts
     elementwise.
+
+    This op supports an `nneg` flag. If the flag is present, the operand
----------------
kuhar wrote:

similar here

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


More information about the Mlir-commits mailing list