[all-commits] [llvm/llvm-project] 35bc75: [OpenCL] Add as_size/ptrdiff/intptr/uintptr_t oper...

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Wed Apr 7 02:17:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35bc7569f8ad8e76d36560386bbc45ca40716410
      https://github.com/llvm/llvm-project/commit/35bc7569f8ad8e76d36560386bbc45ca40716410
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2021-04-07 (Wed, 07 Apr 2021)

  Changed paths:
    M clang/lib/Headers/opencl-c-base.h
    M clang/test/SemaOpenCL/as_type.cl

  Log Message:
  -----------
  [OpenCL] Add as_size/ptrdiff/intptr/uintptr_t operators

size_t and friends are built-in scalar data types and s6.4.4.2 of the
OpenCL C Specification says the as_type() operator must be available
for these data types.

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




More information about the All-commits mailing list