Speed up deferred diagnostic emitter
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Thu, 2 Apr 2020 03:26:56 +0000 (23:26 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Mon, 6 Apr 2020 17:07:43 +0000 (13:07 -0400)
commit2c31aa2de13a23a00ced87123b92e905f2929c7b
tree9d817d728515acd1d805b2b451b9d01563e9ef87
parente1730cfeb3588f20dcf4a96b181ad52761666e52
Speed up deferred diagnostic emitter

Move function emitDeferredDiags from Sema to DeferredDiagsEmitter since it
is only used by DeferredDiagsEmitter.

Also skip visited functions to avoid exponential compile time.

Differential Revision: https://reviews.llvm.org/D77028
clang/include/clang/Sema/Sema.h
clang/lib/Sema/Sema.cpp
clang/test/CodeGenCUDA/deferred-diag.cu [new file with mode: 0644]
clang/test/SemaCUDA/deferred-diags-limit.cu [new file with mode: 0644]
clang/test/SemaCUDA/deferred-diags.cu [new file with mode: 0644]