[all-commits] [llvm/llvm-project] 6f912a: [OpenCL] Set calling convention for -fdeclare-open...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Wed Mar 10 02:05:17 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f912a2cd49150813ee467c079201b5ce3dfbbca
      https://github.com/llvm/llvm-project/commit/6f912a2cd49150813ee467c079201b5ce3dfbbca
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2021-03-10 (Wed, 10 Mar 2021)

  Changed paths:
    M clang/lib/Sema/SemaLookup.cpp
    M clang/test/CodeGenOpenCL/fdeclare-opencl-builtins.cl

  Log Message:
  -----------
  [OpenCL] Set calling convention for -fdeclare-opencl-builtins

IR produced using TableGen builtin function declarations
(`fdeclare-opencl-builtins.cl`) did not have the target's calling
convention applied to builtin calls.

Fix this, and update the codegen test to check that IR produced using
opencl-c.h and `-fdeclare-opencl-builtins` is identical with respect
to the builtin calls.

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




More information about the All-commits mailing list