SuccessChanges

Summary

  1. [mlir] Make Python bindings installable. (details)
  2. [Coroutine] Rename coro-semmetric-transfer.cpp and possibly fix test failure (details)
  3. [BitCodeAnalyzer] Add a few missing TYPE_CODES and MODULE_CODE_COMDAT to GetCodeName (details)
  4. [lldb] Alphabetically sort test categories (NFC) (details)
  5. [lldb] Add instrumentation runtime category (details)
  6. [clangd] Try harder to get accurate ranges for documentSymbols in macros (details)
  7. [lldb] Handle alternative output in TestAbortExitCode (details)
  8. [lldb] Remove unused code in GetVersion (NFC) (details)
  9. [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation (details)
  10. [llvm] Export LLVM_USE_SPLIT_DWARF in LLVMConfig.cmake (details)
  11. [AMDGPU] Update LiveVariables in convertToThreeAddress() (details)
  12. [lld][WebAssembly] Add support for -Bsymbolic flag (details)
  13. [llc] -filetype=null: don't create .null if -o is not specified (details)
  14. Add accessors. (NFC) (details)
Commit 75ae846de69cccd6ed66357f3ee3ad3301849d95 by stellaraccident
[mlir] Make Python bindings installable.

* Links against libMLIR.so if the project is built for DYLIBs.
* Puts things in the right place in build and install time python/ trees so that RPaths line up.
* Adds install actions to install both the extension and sources.
* Copies py source files to the build directory to match (consistent layout between build/install time and one place to point a PYTHONPATH for tests and interactive use).
* Finally, "import mlir" from an installed LLVM just works.

Differential Revision: https://reviews.llvm.org/D89167
The file was removedmlir/lib/Bindings/Python/unix_version.lds
The file was modifiedmlir/lib/Bindings/Python/CMakeLists.txt
The file was modifiedmlir/test/lit.cfg.py
Commit d80ecdf27faf2c45a4264064ddfd5c4524dadce4 by xun
[Coroutine] Rename coro-semmetric-transfer.cpp and possibly fix test failure

Some tests start to fail after https://reviews.llvm.org/D89066.
It's because the size of pointers are different on different targets.
Limit the target in the command so there is no confusion.
Also noticed I had typo in the test name.
Adding disable-llvm-passes option to make the test more stable as well.

Differential Revision: https://reviews.llvm.org/D89269
The file was removedclang/test/CodeGenCoroutines/coro-semmetric-transfer.cpp
The file was addedclang/test/CodeGenCoroutines/coro-symmetric-transfer.cpp
Commit a184c758b77dd6849eab2d46baa6a719780dd539 by craig.topper
[BitCodeAnalyzer] Add a few missing TYPE_CODES and MODULE_CODE_COMDAT to GetCodeName

Happened to notice some of these printing as UnknownCode while running llvm-bcanalyzer on a bc file I had.

Differential Revision: https://reviews.llvm.org/D86900
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
The file was addedllvm/test/Bitcode/bcanalyzer-comdat.ll
The file was addedllvm/test/Bitcode/bcanalyzer-types.ll
Commit e465ddac880228b879b5a6549adbb9c8a7f335bf by Jonas Devlieghere
[lldb] Alphabetically sort test categories (NFC)
The file was modifiedlldb/packages/Python/lldbsuite/test/test_categories.py
Commit 360ab009e2b95629388cef132ebe639c120ed35e by Jonas Devlieghere
[lldb] Add instrumentation runtime category
The file was addedlldb/test/API/functionalities/asan/.categories
The file was addedlldb/test/API/functionalities/mtc/.categories
The file was modifiedlldb/packages/Python/lldbsuite/test/test_categories.py
The file was addedlldb/test/API/functionalities/tsan/.categories
The file was addedlldb/test/API/functionalities/ubsan/.categories
Commit b764edc59ff7768e052bc2b9e76e3bb69dd5147b by zeratul976
[clangd] Try harder to get accurate ranges for documentSymbols in macros

Fixes https://github.com/clangd/clangd/issues/500

Differential Revision: https://reviews.llvm.org/D88463
The file was modifiedclang-tools-extra/clangd/unittests/FindSymbolsTests.cpp
The file was modifiedclang-tools-extra/clangd/FindSymbols.cpp
Commit a52cc9b4be362b12ca261000b723374d4b772a45 by davelee.com
[lldb] Handle alternative output in TestAbortExitCode

This test

On macOS, this test can instead return `status = 0 (0x00000000) Terminated due to signal 6`. This updates the `CHECK` accordingly.

Differential Revision: https://reviews.llvm.org/D89273
The file was modifiedlldb/test/Shell/Process/TestAbortExitCode.test
Commit 08924b54debcfd47bcf22a8213308cec7d22b975 by davelee.com
[lldb] Remove unused code in GetVersion (NFC)

Small cleanup to `lldb_private::GetVersion()`.

Differential Revision: https://reviews.llvm.org/D88939
The file was modifiedlldb/source/lldb.cpp
Commit cffb0dd54d41d8e249d2009467c4beb5b681ba26 by bruno.cardoso
[SemaTemplate] Stop passing insertion position around during VarTemplate instantiation

They can get stale at use time because of updates from other recursive
specializations. Instead, rely on the existence of previous declarations to add
the specialization.

Differential Revision: https://reviews.llvm.org/D87853
The file was modifiedclang/test/SemaTemplate/instantiate-var-template.cpp
The file was modifiedclang/include/clang/Sema/Template.h
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/lib/Sema/SemaTemplateInstantiateDecl.cpp
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
Commit 7f8dc347c9552f339b4410b679d91bceb2cc456e by Jonas Devlieghere
[llvm] Export LLVM_USE_SPLIT_DWARF in LLVMConfig.cmake

Export LLVM_USE_SPLIT_DWARF in LLVMConfig.cmake so that it can be used
from standalone builds of clang and lldb. Currently, there is no way for
standalone builds to know whether this option was set which means that
it only applies to LLVM.

Differential revision: https://reviews.llvm.org/D89282
The file was modifiedllvm/cmake/modules/LLVMConfig.cmake.in
Commit b215a26628feae349d663f687efe475d622970b7 by ruiling.song
[AMDGPU] Update LiveVariables in convertToThreeAddress()

This can fix an asan failure like below.
==15856==ERROR: AddressSanitizer: use-after-poison on address ...
READ of size 8 at 0x6210001a3cb0 thread T0
    #0 llvm::MachineInstr::getParent()
    #1 llvm::LiveVariables::VarInfo::findKill()
    #2 TwoAddressInstructionPass::rescheduleMIBelowKill()
    #3 TwoAddressInstructionPass::tryInstructionTransform()
    #4 TwoAddressInstructionPass::runOnMachineFunction()

We need to update the Kills if we replace instructions. The Kills
may be later accessed within TwoAddressInstruction pass.

Differential Revision: https://reviews.llvm.org/D89092
The file was modifiedllvm/lib/Target/AMDGPU/SIInstrInfo.cpp
The file was addedllvm/test/CodeGen/AMDGPU/stale-livevar-in-twoaddr-pass.mir
Commit 2513407d39506edf2a98f647088a9e1789f8c418 by sbc
[lld][WebAssembly] Add support for -Bsymbolic flag

This flag works in a similar way to the ELF linker in that it
will resolve any defined symbols to their local definition with
a shared library or -pie executable.

This flag has no effect on static linking.

Differential Revision: https://reviews.llvm.org/D89152
The file was modifiedlld/wasm/Writer.cpp
The file was modifiedlld/wasm/Driver.cpp
The file was modifiedlld/wasm/SyntheticSections.cpp
The file was addedlld/test/wasm/bsymbolic.s
The file was modifiedlld/wasm/Relocations.cpp
The file was modifiedlld/wasm/SyntheticSections.h
The file was modifiedlld/wasm/Options.td
The file was modifiedlld/wasm/Config.h
Commit 85c779d256207fe82ba876d19724c497ee904be7 by i
[llc] -filetype=null: don't create .null if -o is not specified

The new behavior is consistent with llvm-mc -filetype=null.
The file was modifiedllvm/tools/llc/llc.cpp
The file was modifiedllvm/test/CodeGen/X86/null-streamer.ll
Commit ec2c2ad2a2dddf24b052625b5ff434704ea43e24 by Adrian Prantl
Add accessors. (NFC)

There's a place in swift-lldb where it is useful to create a copy of
an lldb_private::Variable. Adding these two accessors makes this
possible.
The file was modifiedlldb/include/lldb/Symbol/Type.h
The file was modifiedlldb/include/lldb/Symbol/Variable.h