[clang] [llvm] [mlir] [clang][NVPTX][MLIR][NVVM] Add overloaded fadd intrinsics (PR #217336)

Srinivasa Ravi via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 09:47:26 PDT 2026


================
@@ -1826,6 +1849,21 @@ static bool upgradeIntrinsicFunction1(Function *F, Function *&NewFn,
         return NewFn != F;
       }
 
+      // Upgrade the FP add intrinsics, which are overloaded on the operand type
+      // and take the rounding mode as an operand:
+      // llvm.nvvm.add.<rnd>{.ftz}{.sat}.<type> =>
+      //     llvm.nvvm.fadd{.sat}{.ftz}.<mangled type>
----------------
Wolfram70 wrote:

Nothing in particular. It seems better to revert back to the earlier `ftz.sat` order to avoid confusion. Thanks!

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


More information about the cfe-commits mailing list