[all-commits] [llvm/llvm-project] 155e18: [NVPTX] Add intrinsics and clang builtins for conv...

Srinivasa Ravi via All-commits all-commits at lists.llvm.org
Wed May 14 02:10:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 155e188d94c95b9f389912db2fb180ac8dd75a28
      https://github.com/llvm/llvm-project/commit/155e188d94c95b9f389912db2fb180ac8dd75a28
  Author: Srinivasa Ravi <srinivasar at nvidia.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M clang/include/clang/Basic/BuiltinsNVPTX.td
    M clang/test/CodeGen/builtins-nvptx.c
    M llvm/include/llvm/IR/IntrinsicsNVVM.td
    M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
    M llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
    M llvm/test/CodeGen/NVPTX/convert-sm100a.ll

  Log Message:
  -----------
  [NVPTX] Add intrinsics and clang builtins for conversions of f4x2 type (#139244)

This change adds intrinsics and clang builtins for the cvt instruction
variants of type (FP4) `.e2m1x2`. introduced in PTX 8.6 for `sm_100a`,
`sm_101a`, and `sm_120a`.

Tests are added in `NVPTX/convert-sm100a.ll` and
`clang/test/CodeGen/builtins-nvptx.c` and verified through ptxas 12.8.0.

PTX Spec Reference:
https://docs.nvidia.com/cuda/parallel-thread-execution/#data-movement-and-conversion-instructions-cvt



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list