[all-commits] [llvm/llvm-project] 5d8d99: [OpenMP] Make sure classes work on the device as t...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu May 6 00:10:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d8d994dfbe38fe86b1d883daa9fd8e47cdc1376
      https://github.com/llvm/llvm-project/commit/5d8d994dfbe38fe86b1d883daa9fd8e47cdc1376
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2021-05-06 (Thu, 06 May 2021)

  Changed paths:
    M clang/lib/Headers/openmp_wrappers/__clang_openmp_device_functions.h
    M clang/lib/Headers/openmp_wrappers/new
    A clang/test/Headers/Inputs/include/new
    M clang/test/Headers/Inputs/include/stdlib.h
    A clang/test/Headers/target_include_new.cpp

  Log Message:
  -----------
  [OpenMP] Make sure classes work on the device as they do on the host

We do provide `operator delete(void*)` in `<new>` but it should be
available by default. This is mostly boilerplate to test it and the
unconditional include of `<new>` in the header we always in include
on the device.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list