[all-commits] [llvm/llvm-project] 1c729d: [NVPTX] Use align attribute for kernel pointer arg...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Feb 10 02:57:04 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c729d719a344c1dbe8c507118fcfbf2eeab85fd
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-10 (Thu, 10 Feb 2022)

  Changed paths:
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/test/CodeGen/NVPTX/nvcl-param-align.ll

  Log Message:
  [NVPTX] Use align attribute for kernel pointer arg alignment

Instead of determining the alignment based on the pointer element
type (which is incompatible with opaque pointers), make use of
alignment annotations added by the frontend.

In particular, clang will add alignment attributes to OpenCL kernels
since D118894. Other frontends might need to be adjusted to add
the attribute as well.

Differential Revision: https://reviews.llvm.org/D119247

More information about the All-commits mailing list