[all-commits] [llvm/llvm-project] 9a8d47: [OpenCL] Add builtin function attribute handling

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Tue Nov 5 02:27:26 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a8d477a0e00c15d6d33a52486fa931483b7f2ea
      https://github.com/llvm/llvm-project/commit/9a8d477a0e00c15d6d33a52486fa931483b7f2ea
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2019-11-05 (Tue, 05 Nov 2019)

  Changed paths:
    M clang/lib/Sema/OpenCLBuiltins.td
    M clang/lib/Sema/SemaLookup.cpp
    A clang/test/CodeGenOpenCL/fdeclare-opencl-builtins.cl
    M clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp

  Log Message:
  -----------
  [OpenCL] Add builtin function attribute handling

Add handling for the "pure", "const" and "convergent" function
attributes for OpenCL builtin functions.

Patch by Pierre Gondois and Sven van Haastregt.

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


  Commit: 0e56b0f94bfc683c5a95e96784cfc9229a730bc8
      https://github.com/llvm/llvm-project/commit/0e56b0f94bfc683c5a95e96784cfc9229a730bc8
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2019-11-05 (Tue, 05 Nov 2019)

  Changed paths:
    M clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp

  Log Message:
  -----------
  [OpenCL] Group builtin functions by prototype

The TableGen-generated file containing the function definitions can be
reorganized to save some memory in the Clang binary.  Functions having
the same prototype(s) will point to a shared list of prototype(s).

Patch by Pierre Gondois and Sven van Haastregt.

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


Compare: https://github.com/llvm/llvm-project/compare/4ecff91ed1df...0e56b0f94bfc


More information about the All-commits mailing list