[all-commits] [llvm/llvm-project] 3e649f: [openmp][nfc] Simplify macros guarding math comple...

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Sun Jul 18 15:31:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e649f8ef1875f943537b5fcecdb132c9442cb7d
      https://github.com/llvm/llvm-project/commit/3e649f8ef1875f943537b5fcecdb132c9442cb7d
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2021-07-18 (Sun, 18 Jul 2021)

  Changed paths:
    M clang/lib/Headers/openmp_wrappers/complex
    M clang/lib/Headers/openmp_wrappers/complex.h

  Log Message:
  -----------
  [openmp][nfc] Simplify macros guarding math complex headers

The `__CUDA__` macro is already defined for openmp/nvptx and is not used by
`__clang_cuda_complex_builtins.h`, so dropping that macro slightly simplifies
nvptx and avoids defining it on amdgcn (where it is likely to be harmful).

Also dropped a cplusplus test from a C++ header as compilation will have
failed on cmath earlier if it was included from C.

Reviewed By: jdoerfert, fodinabor

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




More information about the All-commits mailing list