[all-commits] [llvm/llvm-project] 18834d: [OpenCL] Mark kernel arguments as ABI aligned

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Feb 8 07:17:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18834dca2d787fb46532c0b688e396613e132020
      https://github.com/llvm/llvm-project/commit/18834dca2d787fb46532c0b688e396613e132020
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-02-08 (Tue, 08 Feb 2022)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/test/CodeGenOpenCL/amdgpu-call-kernel.cl
    M clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl
    A clang/test/CodeGenOpenCL/kernel-param-alignment.cl
    M clang/test/CodeGenOpenCL/kernels-have-spir-cc-by-default.cl
    M clang/test/CodeGenOpenCL/spir-calling-conv.cl

  Log Message:
  -----------
  [OpenCL] Mark kernel arguments as ABI aligned

Following the discussion on D118229, this marks all pointer-typed
kernel arguments as having ABI alignment, per section 6.3.5 of
the OpenCL spec:

> For arguments to a __kernel function declared to be a pointer to
> a data type, the OpenCL compiler can assume that the pointee is
> always appropriately aligned as required by the data type.

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




More information about the All-commits mailing list