[all-commits] [llvm/llvm-project] 5c9513: [NVPTX] cap param alignment at 128 (max supported ...

Alex MacLean via All-commits all-commits at lists.llvm.org
Tue Jun 25 10:05:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5c9513ac752fe33976a0a16a9e6d188b8200d3ae
      https://github.com/llvm/llvm-project/commit/5c9513ac752fe33976a0a16a9e6d188b8200d3ae
  Author: Alex MacLean <amaclean at nvidia.com>
  Date:   2024-06-25 (Tue, 25 Jun 2024)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
    A llvm/test/CodeGen/NVPTX/max-align.ll

  Log Message:
  -----------
  [NVPTX] cap param alignment at 128 (max supported by ptx) (#96117)

Cap the alignment to 128 bytes as that is the maximum alignment
supported by PTX. The restriction is mentioned in the parameter passing
section (Note D) of the [PTX Writer's Guide to Interoperability]
(https://docs.nvidia.com/cuda/ptx-writers-guide-to-interoperability/index.html#parameter-passing)

> D. The alignment must be 1, 2, 4, 8, 16, 32, 64, or 128 bytes.



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