1. [libc++] Remove unused variable (details)
  2. [HIP] Add support functions for C++ polymorphic types (details)
  3. RegisterCoalescer: Fix iterating through use operands. (details)
  4. [lldb] Enable Rust v0 symbol demangling (details)
  5. [OpaquePtr] Return opaque pointer from opaque pointer GEP (details)
  6. Revert "[mlir][NFC] Move SubTensorOp and SubTensorInsertOp to TensorDialect" (details)
  7. [flang] Fold more reduction intrinsic function calls (details)
  8. Revert "[LoopDeletion] Handle Phis with similar inputs from different blocks" (details)
  9. Remove ML inlining model artifacts. (details)
  10. [lldb] Skip TestLimitDebugInfo for Clang<7 (details)
  11. [lldb] Add support for escaping zsh arguments (details)
  12. Revert "[lldb-vscode] attempt to fix flakiness" (details)
  13. Split a test for ease of auto update (details)
  14. [OpaquePtr] Support opaque constant expression GEP (details)
  15. [InstCombine] Remove unnecessary addres space check (NFC) (details)
Commit c02160c17b7fc770e57d5b065d8d28a7b2416443 by fanbo.meng
[libc++] Remove unused variable

Removing  `__current` as it becomes unused-but-set after 2cf78d4ead4a2ab5375bd6087724211d04119a28.

Reviewed By: ldionne, abhina.sreeskantharajan, #libc

Differential Revision:
The file was modifiedlibcxx/include/regex
Commit 186f2ac612ad3cd551dee649e3097f4284774ba0 by Yaxun.Liu
[HIP] Add support functions for C++ polymorphic types

Add runtime functions to detect invalid calls to pure or deleted virtual

Patch by: Siu Chi Chan

Reviewed by: Yaxun Liu

Differential Revision:
The file was modifiedclang/lib/Headers/__clang_hip_runtime_wrapper.h
The file was modifiedclang/test/Headers/hip-header.hip
Commit 96994427f2426e895c301be4e6002dc0ba3c4890 by hgreving
RegisterCoalescer: Fix iterating through use operands.

Fixes a minor bug when trying to iterate through use operands when
updating debug use operands.

Extends a test to include above.

Differential Revision:
The file was modifiedllvm/test/DebugInfo/MIR/X86/regcoalescer.mir
The file was modifiedllvm/lib/CodeGen/RegisterCoalescer.cpp
Commit 0a2d4f3f24a377dc7d3cbed16d30603dc27554a8 by Raphael Isemann
[lldb] Enable Rust v0 symbol demangling

Rust's v0 name mangling scheme [1] is easy to disambiguate from other
name mangling schemes because symbols always start with `_R`. The llvm
Demangle library supports demangling the Rust v0 scheme. Use it to
demangle Rust symbols.

Added unit tests that check simple symbols. Ran LLDB built with this
patch to debug some Rust programs compiled with the v0 name mangling
scheme. Confirmed symbol names were demangled as expected.

Note: enabling the new name mangling scheme requires a nightly

$ cat
fn main() {
    println!("Hello world!");
$ $(rustup which --toolchain nightly rustc) -Z symbol-mangling-version=v0 -g
$ /home/asm/hacking/llvm/build/bin/lldb ./main --one-line 'b'
(lldb) target create "./main"
Current executable set to '/home/asm/hacking/llvm/rust/main' (x86_64).
(lldb) b
Breakpoint 1: where = main`main::main + 4 at, address = 0x00000000000076a4
(lldb) r
Process 948449 launched: '/home/asm/hacking/llvm/rust/main' (x86_64)
warning: (x86_64) /lib64/ No LZMA support found for reading .gnu_debugdata section
Process 948449 stopped
* thread #1, name = 'main', stop reason = breakpoint 1.1
    frame #0: 0x000055555555b6a4 main`main::main at
   1    fn main() {
-> 2        println!("Hello world!");
   3    }
(lldb) bt
error: need to add support for DW_TAG_base_type '()' encoded with DW_ATE = 0x7, bit_size = 0
* thread #1, name = 'main', stop reason = breakpoint 1.1
  * frame #0: 0x000055555555b6a4 main`main::main at
    frame #1: 0x000055555555b78b main`<fn() as core::ops::function::FnOnce<()>>::call_once((null)=(main`main::main at, (null)=<unavailable>) at
    frame #2: 0x000055555555b66e main`std::sys_common::backtrace::__rust_begin_short_backtrace::<fn(), ()>(f=(main`main::main at at
    frame #3: 0x000055555555b851 main`std::rt::lang_start::<()>::{closure#0} at
    frame #4: 0x000055555556c9f9 main`std::rt::lang_start_internal::hc51399759a90501a [inlined] core::ops::function::impls::_$LT$impl$u20$core..ops..function..FnOnce$LT$A$GT$$u20$for$u20$$RF$F$GT$::call_once::h04259e4a34d07c2f at
    frame #5: 0x000055555556c9f2 main`std::rt::lang_start_internal::hc51399759a90501a [inlined] std::panicking::try::do_call::hb8da45704d5cfbbf at
    frame #6: 0x000055555556c9f2 main`std::rt::lang_start_internal::hc51399759a90501a [inlined] std::panicking::try::h4beadc19a78fec52 at
    frame #7: 0x000055555556c9f2 main`std::rt::lang_start_internal::hc51399759a90501a [inlined] std::panic::catch_unwind::hc58016cd36ba81a4 at
    frame #8: 0x000055555556c9f2 main`std::rt::lang_start_internal::hc51399759a90501a at
    frame #9: 0x000055555555b830 main`std::rt::lang_start::<()>(main=(main`main::main at, argc=1, argv=0x00007fffffffcb18) at
    frame #10: 0x000055555555b6fc main`main + 28
    frame #11: 0x00007ffff73f2493`__libc_start_main + 243
    frame #12: 0x000055555555b59e main`_start + 46


Reviewed By: clayborg, teemperor

Differential Revision:
The file was modifiedlldb/include/lldb/Core/Mangled.h
The file was modifiedlldb/unittests/Core/MangledTest.cpp
The file was modifiedlldb/source/Core/Mangled.cpp
The file was modifiedlldb/source/Symbol/Symtab.cpp
Commit 9f779195d311c983031271d0243d6e6af988ce55 by nikita.ppv
[OpaquePtr] Return opaque pointer from opaque pointer GEP

For a GEP on an opaque pointer, also return an opaque pointer (or
vector of opaque pointer) result.

This requires explicitly enumerating the GEP source element type,
because it is now no longer implicitly enumerated as part of either
the source or result pointer types.

Differential Revision:
The file was modifiedllvm/lib/Bitcode/Writer/ValueEnumerator.cpp
The file was modifiedllvm/include/llvm/IR/Instructions.h
The file was modifiedllvm/test/Assembler/opaque-ptr.ll
Commit 60d97fb4cfa6164919f5ef5222b2afdd0ee04b1c by joker.eph
Revert "[mlir][NFC] Move SubTensorOp and SubTensorInsertOp to TensorDialect"

This reverts commit 83bf801f5f266c788f025a3efbb0c83817137c3b.

This breaks the build with -DBUILD_SHARED_LIBS=ON
The file was modifiedmlir/test/Dialect/Linalg/fusion-tensor-pattern.mlir
The file was modifiedmlir/test/Dialect/Tensor/canonicalize.mlir
The file was modifiedmlir/lib/Conversion/TosaToStandard/TosaToStandardPass.cpp
The file was modifiedmlir/test/Dialect/Linalg/hoist-padding.mlir
The file was modifiedmlir/test/Dialect/Linalg/hoisting.mlir
The file was modifiedmlir/test/Conversion/TosaToStandard/tosa-to-standard.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
The file was modifiedmlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
The file was modifiedmlir/test/IR/core-ops.mlir
The file was modifiedmlir/test/Integration/Dialect/Linalg/CPU/test-subtensor-insert.mlir
The file was modifiedmlir/test/IR/invalid-ops.mlir
The file was modifiedmlir/test/Dialect/MemRef/canonicalize.mlir
The file was modifiedmlir/include/mlir/Dialect/Shape/IR/
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Utils/Utils.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/
The file was modifiedmlir/test/Integration/Dialect/Linalg/CPU/test-subtensor-insert-multiple-uses.mlir
The file was modifiedmlir/include/mlir/Dialect/Linalg/Utils/Utils.h
The file was modifiedmlir/test/Dialect/Linalg/vectorization.mlir
The file was modifiedmlir/test/Dialect/Linalg/tile-tensors.mlir
The file was modifiedmlir/include/mlir/Dialect/Linalg/Transforms/Hoisting.h
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
The file was modifiedmlir/include/mlir/Conversion/
The file was modifiedmlir/test/Dialect/Linalg/canonicalize.mlir
The file was modifiedmlir/test/Dialect/Linalg/fusion-sequence.mlir
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-func-bufferize-analysis.mlir
The file was modifiedmlir/test/Dialect/Linalg/tile-and-pad-tensors.mlir
The file was modifiedmlir/test/Dialect/Linalg/subtensor-of-padtensor.mlir
The file was modifiedmlir/test/Dialect/SCF/canonicalize.mlir
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
The file was modifiedmlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
The file was modifiedmlir/include/mlir/Dialect/Tensor/IR/Tensor.h
The file was modifiedmlir/test/Dialect/Linalg/roundtrip.mlir
The file was modifiedmlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
The file was modifiedmlir/test/Dialect/Linalg/tile-and-fuse-tensors.mlir
The file was modifiedmlir/include/mlir/Dialect/Tosa/IR/
The file was modifiedmlir/lib/Dialect/Tensor/IR/TensorOps.cpp
The file was modifiedmlir/include/mlir/Dialect/Tensor/IR/
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
The file was modifiedmlir/include/mlir/Dialect/Shape/IR/Shape.h
The file was modifiedmlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir
The file was modifiedmlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp
The file was modifiedmlir/lib/Conversion/TosaToStandard/TosaToStandard.cpp
The file was modifiedmlir/test/Dialect/Standard/canonicalize.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/Ops.h
The file was modifiedmlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
The file was modifiedmlir/test/Dialect/Linalg/bufferize.mlir
The file was modifiedmlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-func-bufferize.mlir
The file was modifiedmlir/test/Transforms/canonicalize.mlir
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/
The file was modifiedmlir/test/Dialect/Linalg/tile-and-distribute.mlir
Commit 503c085e3bcd0a031a363ee89c91b1f1e41bfa4b by pklausler
[flang] Fold more reduction intrinsic function calls

Refactor the recently-implemented MAXVAL/MINVAL folding so
that the parts that can be used to implement other reduction
transformational intrinsic function folding are exposed.

Use them to implement folding of IALL, IANY, IPARITY,
SUM. and PRODUCT.  Replace the folding of ALL & ANY to
use the new infrastructure and become able to handle DIM=

Differential Revision:
The file was modifiedflang/lib/Evaluate/fold-character.cpp
The file was modifiedflang/lib/Evaluate/fold-reduction.h
The file was modifiedflang/lib/Evaluate/fold-complex.cpp
The file was modifiedflang/lib/Evaluate/fold-logical.cpp
The file was modifiedflang/lib/Evaluate/fold-integer.cpp
The file was modifiedflang/test/Evaluate/folding20.f90
The file was modifiedflang/include/flang/Evaluate/real.h
The file was modifiedflang/lib/Evaluate/fold-real.cpp
Commit f52666985d7011b539f26f54e09a5c89b62dad56 by nathan
Revert "[LoopDeletion] Handle Phis with similar inputs from different blocks"

This reverts commit bb1dc876ebb8a2eef38d5183d00c2db1437f1c91.

This patch causes an assertion failure when building an arm64 defconfig
Linux kernel.

See for a link to the original bug
report and a reduced reproducer.
The file was modifiedllvm/test/Transforms/LoopDeletion/eval_first_iteration.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopDeletion.cpp
Commit f86d1f99b3e9c4819ee0a7b6b785b1ea5feb1627 by jacobhegna
Remove ML inlining model artifacts.

They are not conducive to being stored in git. Instead, we autogenerate
mock model artifacts for use in tests. Production models can be
specified with the cmake flag LLVM_INLINER_MODEL_PATH.

LLVM_INLINER_MODEL_PATH has two sentinel values:
- download, which will download the most recent compatible model.
- autogenerate, which will autogenerate a "fake" model for testing the
model uptake infrastructure.

Differential Revision:
The file was modifiedllvm/test/Transforms/Inline/ML/bounds-checks-rewards.ll
The file was removedllvm/lib/Analysis/models/inliner/README.txt
The file was modifiedllvm/test/Transforms/Inline/ML/development-training-log.ll
The file was modifiedllvm/cmake/modules/TensorFlowCompile.cmake
The file was removedllvm/lib/Analysis/models/inliner/variables/
The file was removedllvm/lib/Analysis/models/inliner/saved_model.pbtxt
The file was modifiedllvm/test/Transforms/Inline/ML/ml-test-development-mode.ll
The file was addedllvm/lib/Analysis/models/
The file was removedllvm/lib/Analysis/models/inliner/output_spec.json
The file was modifiedllvm/lib/Analysis/CMakeLists.txt
The file was removedllvm/lib/Analysis/models/inliner/variables/variables.index
The file was addedllvm/lib/Analysis/models/inlining/
Commit 1265f05c268f09c74a2ecaa3e2b3cea83ec10627 by Raphael Isemann
[lldb] Skip TestLimitDebugInfo for Clang<7

Without DW_CC_pass_by_* attributes that Clang 7 started to emit in this test
we don't properly read back the return value of the `get_*` functions and just
read bogus memory.

See also the test.
The file was modifiedlldb/test/API/functionalities/limit-debug-info/
Commit c197cddb16b3ed0de98f80566f8fc47f78aee64c by Raphael Isemann
[lldb] Add support for escaping zsh arguments

LLDB supports having globbing regexes in the process launch arguments that will
be resolved using the user's shell. This requires that we pass the launch args
to the shell and then read back the expanded arguments using LLDB's argdumper

As the shell will not just expand the globbing regexes but all special
characters, we need to escape all non-globbing charcters such as $, &, <, >,
etc. as those otherwise are interpreted and removed in the step where we expand
the globbing characters. Also because the special characters are shell-specific,
LLDB needs to maintain a list of all the characters that need to be escaped for
each specific shell.

This patch adds the list of special characters that need to be escaped for
`zsh`. Without this patch on systems where `zsh` is the user's shell (like on
all macOS systems) having any of these special characters in your arguments or
path to the binary will cause the process launch to fail. E.g., `lldb -- ./calc
1<2` is failing without this patch. The same happens if the absolute path to
`calc` is in a directory that contains for example parentheses or other special

Reviewed By: JDevlieghere

Differential Revision:
The file was modifiedlldb/source/Utility/Args.cpp
The file was modifiedlldb/unittests/Utility/ArgsTest.cpp
Commit 28d9fd00d4b5711fb029e3e642e2d81eaf9fd510 by walter erquinigo
Revert "[lldb-vscode] attempt to fix flakiness"
Revert "[lldb-vscode] only report long running progress events"

This reverts commit f2c009dbcfd11fd1e8941513dcf49fffe43565a1.
This reverts commit aa4685c0fb3aab5acb90be5fd3eb5ba8bf1e3211.
The file was modifiedlldb/tools/lldb-vscode/VSCode.cpp
The file was modifiedlldb/tools/lldb-vscode/ProgressEvent.cpp
The file was modifiedlldb/tools/lldb-vscode/VSCode.h
The file was modifiedlldb/tools/lldb-vscode/ProgressEvent.h
The file was modifiedlldb/tools/lldb-vscode/lldb-vscode.cpp
Commit 0c09e5bd74db90497a272e723213293981633a18 by listmail
Split a test for ease of auto update
The file was addedllvm/test/Transforms/LoopVersioning/wrapping-pointer-versioning.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/wrapping-pointer-versioning.ll
Commit d9fe96fe264e72c0a5c58cdd40b4efa14d18f475 by nikita.ppv
[OpaquePtr] Support opaque constant expression GEP

Adjust assertions to use isOpaqueOrPointeeTypeMatches() and make
it return an opaque pointer result for an opaque base pointer. We
also need to enumerate the element type, as it is no longer
implicitly enumerated through the pointer type.

Differential Revision:
The file was modifiedllvm/lib/Bitcode/Writer/ValueEnumerator.cpp
The file was modifiedllvm/lib/AsmParser/LLParser.cpp
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
The file was modifiedllvm/test/Assembler/opaque-ptr.ll
The file was modifiedllvm/lib/IR/Constants.cpp
Commit a969bdc56f66a3c059f6d70e574d11fda8354e2a by nikita.ppv
[InstCombine] Remove unnecessary addres space check (NFC)

It's not possible to bitcast between different address spaces,
and this is ensured by the IR verifier. As such, this bitcast to
addrspacecast canonicalization can never be hit.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCasts.cpp