[all-commits] [llvm/llvm-project] d999cb: [OpenMP] Initial support for std::complex in targe...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Jul 8 15:36:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d999cbc98832154e15e786b98281211d5c1b9f5d
      https://github.com/llvm/llvm-project/commit/d999cbc98832154e15e786b98281211d5c1b9f5d
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-07-08 (Wed, 08 Jul 2020)

  Changed paths:
    M clang/lib/Headers/CMakeLists.txt
    M clang/lib/Headers/__clang_cuda_complex_builtins.h
    M clang/lib/Headers/__clang_cuda_math.h
    A clang/lib/Headers/openmp_wrappers/complex
    A clang/lib/Headers/openmp_wrappers/complex.h
    M clang/test/Headers/Inputs/include/cmath
    A clang/test/Headers/Inputs/include/complex
    M clang/test/Headers/Inputs/include/cstdlib
    M clang/test/Headers/nvptx_device_math_complex.c
    A clang/test/Headers/nvptx_device_math_complex.cpp

  Log Message:
  -----------
  [OpenMP] Initial support for std::complex in target regions

This simply follows the scheme we have for other wrappers. It resolves
the current link problem, e.g., `__muldc3 not found`, when std::complex
operations are used on a device.

This will not allow complex make math function calls to work properly,
e.g., sin, but that is more complex (pan intended) anyway.

Reviewed By: tra, JonChesterfield

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




More information about the All-commits mailing list