[all-commits] [llvm/llvm-project] 612d0e: [OpenCL] Move remaining defines to opencl-c-base.h

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Tue Feb 23 02:19:01 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 612d0ef1732f491ceec22249dc2dbf50df4353c0
      https://github.com/llvm/llvm-project/commit/612d0ef1732f491ceec22249dc2dbf50df4353c0
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M clang/lib/Headers/opencl-c-base.h
    M clang/lib/Headers/opencl-c.h

  Log Message:
  -----------
  [OpenCL] Move remaining defines to opencl-c-base.h

Move any remaining preprocessor defines from `opencl-c.h` to
`opencl-c-base.h`, such that they are shared with
`-fdeclare-opencl-builtins` too.

In particular, move:
 - the `as_type` and `as_typen` definitions, and
 - the `kernel_exec` and `__kernel_exec` definitions.

Also clang-format the changes.

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




More information about the All-commits mailing list