clang: Allow backend unsupported warnings
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 22 Apr 2020 21:17:59 +0000 (17:17 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 27 Apr 2020 16:14:51 +0000 (12:14 -0400)
commit5c03beefa720bddb3e3f53c595a76bce7ad50f37
treeebf85c5572bb16dfe1427d4d77fcc482a437a430
parent8a4013ed38c6eee730dd6781a7c3dfd2b39e7e80
clang: Allow backend unsupported warnings

Currently this asserts on anything other than errors. In one
workaround scenario, AMDGPU emits DiagnosticInfoUnsupported as a
warning for functions that can't be correctly codegened, but should
never be executed.
clang/include/clang/Basic/DiagnosticFrontendKinds.td
clang/lib/CodeGen/CodeGenAction.cpp
clang/test/CodeGenOpenCL/backend-unsupported-warning.ll [new file with mode: 0644]