[clang] [llvm] [clang][NVPTX] Add missing half-precision add/mul/fma intrinsics (PR #170079)

Alex MacLean via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 08:45:40 PST 2025


================
@@ -1567,6 +1576,15 @@ let TargetPrefix = "nvvm" in {
   //
   // Add
   //
+  foreach ftz = ["", "_ftz"] in {
+    def int_nvvm_add_rn # ftz # _sat_f16 : NVVMBuiltin,
----------------
AlexMaclean wrote:

Since these intrinsics are also "commutative" we don't want to use `PureIntrinsic` instead move these into the `let IntrProperties = [IntrNoMem, IntrSpeculatable, Commutative]` below and use `DefaultAttrsIntrinsic`

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


More information about the llvm-commits mailing list