SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [gn build] Port 54e91a3c701 (details)
  2. [lldb/Reproducers] Skip lldb-vscode category when lldb-run-with-repro is set. (details)
  3. [clang] Add nomerge function attribute to clang (details)
  4. [WebAssembly] Warn on exception spec only when Wasm EH is used (details)
  5. [lldb/Test] Cleanup TestSymbolContext.py (details)
  6. [AMDGPU] Correct formatting typos in documentation (details)
  7. Handle the case where a thread exits while we are running a function on it. (details)
  8. [llvm-extract] Fix basic block extraction by delaying search until the function is materialized (details)
  9. This very simple .c file is failing on the Debian bot wit the error (details)
  10. Maybe I need ENABLE_THREADS in the Makefile. (details)
  11. [libc] Make clang-tidy use host compiler's resource dir. (details)
  12. [AArch64][GlobalISel] Add a post-legalizer combiner with a very simple combine. (details)
Commit bb7fb6d7b2ff1af5fbcacf4fdf9f5878c033c9e0 by llvmgnsyncbot
[gn build] Port 54e91a3c701
The file was modifiedllvm/utils/gn/secondary/clang/lib/StaticAnalyzer/Checkers/BUILD.gn
Commit 1d64d69ab701d9524ee6871e93a2a2f8195fa798 by Jonas Devlieghere
[lldb/Reproducers] Skip lldb-vscode category when lldb-run-with-repro is set.

This skips all the lldb-vscode tests when running the test suite with
reproducers.
The file was modifiedlldb/test/API/lit.cfg.py
Commit e36076ee3a2ebc6013372d9b71e6bb09e8612366 by zequanwu
[clang] Add nomerge function attribute to clang
Differential Revision: https://reviews.llvm.org/D79121
The file was modifiedclang/lib/CodeGen/CGCall.cpp
The file was addedclang/test/CodeGen/attr-nomerge.cpp
The file was addedclang/test/Sema/attr-nomerge.cpp
The file was modifiedclang/include/clang/Basic/Attr.td
The file was modifiedclang/include/clang/Basic/AttrDocs.td
The file was modifiedclang/lib/Sema/SemaStmtAttr.cpp
The file was modifiedclang/lib/CodeGen/CGStmt.cpp
The file was modifiedclang/lib/CodeGen/CodeGenFunction.h
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
Commit 48acac36293805cef10b448d49d336da7db7bfa9 by aheejin
[WebAssembly] Warn on exception spec only when Wasm EH is used

Summary:
In D80061 we added warning for exception specifications with types (such
as `throw(int)`), but it was enabled every time the target was wasm,
which means it warned (and ignored) exception specifications even if
wasm EH was not used. This fixes it and we only have the warning when we
enable `-fwasm-exceptions`.

Reviewers: dschuff

Subscribers: sbc100, jgravelle-google, sunfish, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80362
The file was modifiedclang/test/CodeGenCXX/wasm-eh.cpp
The file was modifiedclang/lib/CodeGen/CGException.cpp
Commit 9e391d4faa839c6aedf8729bb027adf5e2cd7735 by Jonas Devlieghere
[lldb/Test] Cleanup TestSymbolContext.py

Remove commented out code, fix the indentation and always use the full
path to the executable. The latter is necessary for the test to pass
from reproducer replay.
The file was modifiedlldb/test/API/python_api/symbol-context/TestSymbolContext.py
Commit e36be90c82c44f2631d1e2d1148af3f8a8c5b772 by Tony.Tye
[AMDGPU] Correct formatting typos in documentation

Summary:
- Correct missing space in some "note" and "TODO" directives in
  AMDGPUUsage.rst
- Correct warning for heading underline being too short in
  BitCodeFormat.rst

Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, kerbowa, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80407
The file was modifiedllvm/docs/AMDGPUUsage.rst
Commit dbbed971e3a282f44242297b75a527256eb862dc by jingham
Handle the case where a thread exits while we are running a function on it.
The file was modifiedlldb/source/Target/Process.cpp
The file was modifiedlldb/source/Expression/LLVMUserExpression.cpp
The file was addedlldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py
The file was addedlldb/test/API/functionalities/thread/exit_during_expression/main.c
The file was modifiedlldb/source/Expression/FunctionCaller.cpp
The file was addedlldb/test/API/functionalities/thread/exit_during_expression/Makefile
The file was modifiedlldb/include/lldb/lldb-enumerations.h
Commit abf02d978854a06f60ab8fcfb9b5528d25db6a94 by d.c.ddcc
[llvm-extract] Fix basic block extraction by delaying search until the function is materialized

Summary: When I try to extract a basic block using llvm-extract, it erroneously reports that the named basic block doesn't exist. After digging into the code, it appears to be iterating over an unmaterialized function, which will fail to match any basic blocks.

Reviewers: volkan, qcolombet

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80346
The file was modifiedllvm/tools/llvm-extract/llvm-extract.cpp
Commit 1583766ed23b707898e872728783f054ede47ca8 by jingham
This very simple .c file is failing on the Debian bot wit the error

undefined reference to pthread_create

I skipped the test till I can figure out why this didn't build.
The file was modifiedlldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py
Commit 54c2c2add7ad42ce1910a276cd1cd2912af4cddd by jingham
Maybe I need ENABLE_THREADS in the Makefile.
The file was modifiedlldb/test/API/functionalities/thread/exit_during_expression/Makefile
The file was modifiedlldb/test/API/functionalities/thread/exit_during_expression/TestExitDuringExpression.py
Commit 2a4c30985ded329d64357f5535d2ff2a3f955c81 by paulatoth
[libc] Make clang-tidy use host compiler's resource dir.

Summary: When building llvm-libc with linting enabled, clang-tidy would use the resource dir of the monorepo rather then the host compiler's resource dir. This presented issues when including headers from the host compiler e.g. for sanitizers. Therefore this patch explicitly tells clang-tidy to use the host compiler's resource dir.

Reviewers: sivachandra

Reviewed By: sivachandra

Subscribers: mgorny, tschuett, ecnelises, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D80265
The file was modifiedlibc/cmake/modules/LLVMLibCObjectRules.cmake
The file was modifiedlibc/cmake/modules/LLVMLibCHeaderRules.cmake
The file was modifiedlibc/CMakeLists.txt
Commit 49a4f3f7d88f61a81279de3d4e1c734ab0363228 by Amara Emerson
[AArch64][GlobalISel] Add a post-legalizer combiner with a very simple combine.

(This patch is by Jessica, I'm just committing it on her behalf because I need
a post-legalizer combiner for something else).

This supersedes D77250, which did equivalent work in the selector. This can be
done pre-legalization or post-legalization. Post-legalization is more likely to
hit, since G_IMPLICIT_DEFs tend to appear during legalization. There's no reason
to not do it pre-legalization though-- if it can be caught earlier, great.

(I also think that it might be worth reimplementing D78769 using a
target-specific post-legalization combine too after thinking about it for a
while.)

Differential Revision: https://reviews.llvm.org/D78852
The file was modifiedllvm/lib/Target/AArch64/AArch64.h
The file was modifiedllvm/lib/Target/AArch64/AArch64Combine.td
The file was modifiedllvm/lib/Target/AArch64/AArch64PreLegalizerCombiner.cpp
The file was modifiedllvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetMachine.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/gisel-commandline-option.ll
The file was modifiedllvm/include/llvm/Target/GlobalISel/Combine.td
The file was modifiedllvm/lib/Target/AArch64/CMakeLists.txt
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-combiner-store-undef.mir
The file was addedllvm/lib/Target/AArch64/AArch64PostLegalizerCombiner.cpp