[all-commits] [llvm/llvm-project] cf6cc6: [OpenMP][SYCL] Improve diagnosing of unsupported t...

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Fri May 29 08:01:13 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cf6cc662eeee2b1416430f517850be9032788e39
      https://github.com/llvm/llvm-project/commit/cf6cc662eeee2b1416430f517850be9032788e39
  Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
  Date:   2020-05-29 (Fri, 29 May 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/CMakeLists.txt
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    A clang/lib/Sema/SemaSYCL.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/test/Headers/nvptx_device_math_sin.c
    M clang/test/Headers/nvptx_device_math_sin.cpp
    M clang/test/OpenMP/nvptx_unsupported_type_codegen.cpp
    M clang/test/OpenMP/nvptx_unsupported_type_messages.cpp
    A clang/test/SemaSYCL/float128.cpp

  Log Message:
  -----------
  [OpenMP][SYCL] Improve diagnosing of unsupported types usage

Summary:
Diagnostic is emitted if some declaration of unsupported type
declaration is used inside device code.
Memcpy operations for structs containing member with unsupported type
are allowed. Fixed crash on attempt to emit diagnostic outside of the
functions.

The approach is generalized between SYCL and OpenMP.
CUDA/OMP deferred diagnostic interface is going to be used for SYCL device.

Reviewers: rsmith, rjmccall, ABataev, erichkeane, bader, jdoerfert, aaron.ballman

Reviewed By: jdoerfert

Subscribers: guansong, sstefan1, yaxunl, mgorny, bader, ebevhan, Anastasia, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list