[all-commits] [llvm/llvm-project] 1b978d: [CUDA][HIP][OpenMP] Emit deferred diagnostics by a...

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Sun Feb 16 19:45:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1b978ddba05cb15e22b4e75adb5e7362ad861987
      https://github.com/llvm/llvm-project/commit/1b978ddba05cb15e22b4e75adb5e7362ad861987
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2020-02-16 (Sun, 16 Feb 2020)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaCUDA.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOpenMP.cpp
    M clang/test/OpenMP/declare_target_messages.cpp
    M clang/test/OpenMP/nvptx_target_exceptions_messages.cpp
    M clang/test/SemaCUDA/bad-calls-on-same-line.cu
    M clang/test/SemaCUDA/call-device-fn-from-host.cu
    M clang/test/SemaCUDA/call-host-fn-from-device.cu
    M clang/test/SemaCUDA/openmp-target.cu
    M clang/test/SemaCUDA/trace-through-global.cu

  Log Message:
  -----------
  [CUDA][HIP][OpenMP] Emit deferred diagnostics by a post-parsing AST travese

This patch removes the explicit call graph for CUDA/HIP/OpenMP deferred
diagnostics generated during parsing since it is error prone due to
incomplete information about function declarations during parsing. In stead,
this patch does a post-parsing AST traverse and emits deferred diagnostics
based on the use graph implicitly generated during the traverse.

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




More information about the All-commits mailing list