Recommit: Handle diagnostic warnings in Frontend diagnostic handler.
Clang uses a diagnostic handler to grab diagnostic messages so it can print them with the line of source code they refer to. This patch extends this to handle optimization failures that were added to llvm to produce a warning when loop vectorization is explicitly specified (using a pragma clang loop directive) but fails. Update renames warning flag name to avoid indicating the flag's severity and adds a test. Reviewed by Alp Toker git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213400 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticFrontendKinds.td 2 additions, 0 deletionsinclude/clang/Basic/DiagnosticFrontendKinds.td
- include/clang/Basic/DiagnosticGroups.td 1 addition, 0 deletionsinclude/clang/Basic/DiagnosticGroups.td
- lib/CodeGen/CodeGenAction.cpp 25 additions, 12 deletionslib/CodeGen/CodeGenAction.cpp
- test/Misc/backend-optimization-failure.cpp 20 additions, 0 deletionstest/Misc/backend-optimization-failure.cpp
Loading
Please register or sign in to comment