[all-commits] [llvm/llvm-project] 4b8580: [OpenCL] Set external linkage for block enqueue ke...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Wed Jan 12 05:30:58 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b85800bfd6ca6c3ecedf68ffbba6c3f2bc9c8ae
      https://github.com/llvm/llvm-project/commit/4b85800bfd6ca6c3ecedf68ffbba6c3f2bc9c8ae
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2022-01-12 (Wed, 12 Jan 2022)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl

  Log Message:
  -----------
  [OpenCL] Set external linkage for block enqueue kernels

All kernels can be called from the host as per the SPIR_KERNEL calling
convention.  As such, all kernels should have external linkage, but
block enqueue kernels were created with internal linkage.

Reported-by: Pedro Olsen Ferreira

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




More information about the All-commits mailing list