[all-commits] [llvm/llvm-project] 4c1b1f: [NVPTX] Add support for clamped funnel shift intri...

Alex MacLean via All-commits all-commits at lists.llvm.org
Tue Oct 22 16:40:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4c1b1f6d219d66feb4795fdbe80e8b380b53eade
      https://github.com/llvm/llvm-project/commit/4c1b1f6d219d66feb4795fdbe80e8b380b53eade
  Author: Alex MacLean <amaclean at nvidia.com>
  Date:   2024-10-22 (Tue, 22 Oct 2024)

  Changed paths:
    M llvm/docs/NVPTXUsage.rst
    M llvm/include/llvm/IR/IntrinsicsNVVM.td
    M llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
    M llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
    A llvm/test/CodeGen/NVPTX/funnel-shift-clamp.ll
    M llvm/test/Transforms/InstCombine/NVPTX/nvvm-intrins.ll

  Log Message:
  -----------
  [NVPTX] Add support for clamped funnel shift intrinsics (#113228)

Add support for ``llvm.nvvm.fshl.clamp`` and ``llvm.nvvm.fshr.clamp``
intrinsics. These intrinsics are similar to the generic llvm funnel
shift, except that the shift value is clamped to the integer width.
Currently only ``i32`` is supported and is implemented with the
`shf.[rl].clamp.b32` PTX instruction.



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