1. [compiler-rt] Add shared_cxxabi requirement to some tests (details)
  2. [TargetLibraryInfo] Correctly handle sqrt*_finite (details)
  3. [DSE] Add additional capture tests (NFC) (details)
  4. [NFC] Replace hard-coded usages of SystemZ::R15D with SpecialRegisters API (details)
  5. [libc] Add an implementation of qsort. (details)
  6. [mlir][tosa] Add some transpose folders (details)
  7. [ThinLTO] Update combined index for SamplePGO indirect calls to locals (details)
  8. [mlir:MemRef] Move DmaStartOp/DmaWaitOp to ODS (details)
  9. Fix bot failure by adding needed dependence (details)
  10. [InstCombine] match variable names and code comments; NFC (details)
  11. [InstCombine] fold lshr(trunc(lshr X, C1)) C2 (details)
  12. [Polly] Fix wrong redirect in test case. (details)
  13. [flang][fir] Add support to mangle/deconstruct namelist group name (details)
  14. [mlir:OpAsm] Factor out the common bits of (Op/Dialect)Asm(Parser/Printer) (details)
  15. [IR] Handle large element size when calculating GEP indices (details)
  16. [SystemZ][z/OS] Introduce the GOFFMCAsmInfo Interface for z/OS (details)
  17. [ORC] Add 'contains' and 'overlaps' operations to ExecutorAddrRange. (details)
  18. [gn build] Port a9ae2436fc0d (details)
  19. [gn build] Port c0d889995e70 (details)
  20. [AMDGPU] Limit promote alloca max size in functions (details)
  21. [llvm-profgen] Ignore invalid perf line in LBR record (details)
  22. [mlir] Create a generic reduction detection utility (details)
  23. [AutoFDO][llvm-profgen] Profile generation for LBR(non-CS) sample (details)
  24. [mlir][tosa] Do not fold transpose with quantized types (details)
  25. [AutoFDO][llvm-profgen] Report zero count for unexecuted part of function code (details)
  26. [llvm-profgen] Unify output format of different unsymbolized profiles (details)
  27. [dsymutil] Track incompleteness across unions (details)
  28. WIP: Verify -gsimple-template-names=mangled values (details)
  29. [ORC] Allow construction of an ExecutorAddrRange from an addr and a size. (details)
  30. [lldb] Copy the system debugserver in LLDB.framework (details)
  31. [dsymutil] Update union-fwd-decl.test for Windows (details)
  32. [RISCV] Add another isel optimization for (and (shl X, c2), c1). (details)
  33. Fixed a bug in (details)
  34. Add "REQUIRES: zlib" in forward-compatible.test since it handles compressed file. (details)
  35. [llvm] Improve with help and snapshot (details)
Commit f8da95cd7e68ea66010843ef44adbe8d2807170c by leonardchan
[compiler-rt] Add shared_cxxabi requirement to some tests

This adds REQUIRES: shared_cxxabi to a bunch of tests that would fail if this
weak reference in sanitizer common was undefined. This is necessary in cases
where libc++abi.a is statically linked in. Because there is no strong reference
to __cxa_demangle in compiler-rt, then if libc++abi is linked in via a static
archive, then the linker will not extract the archive member that would define
that weak symbol. This causes a handful of tests to fail because this leads to
the symbolizer printing mangled symbols where tests expect them demangled.

Technically, this feature is WAI since sanitizer runtimes shouldn't fail if
this symbol isn't resolved, and linking statically means you wouldn't need to
link in all of libc++abi. As a workaround, we can simply make it a requirement
that these tests use shared libc++abis.

Differential Revision:
The file was modifiedcompiler-rt/test/asan/TestCases/Linux/odr-vtable.cpp
The file was modifiedcompiler-rt/test/ubsan/TestCases/TypeCheck/vptr-virtual-base.cpp
Commit 6185ad03f1085911812e8244a4994a04c62e19b6 by paul.robinson
[TargetLibraryInfo] Correctly handle sqrt*_finite

Other <math>_finite calls are marked as unavailable except on GNU/Linux;
it looks like the sqrt set was just overlooked.

Differential Revision:
The file was modifiedllvm/lib/Analysis/TargetLibraryInfo.cpp
The file was modifiedllvm/test/CodeGen/X86/sqrt-fastmath.ll
Commit 7774166499d6db7fd5b246a1a694e7fe930ebcba by nikita.ppv
[DSE] Add additional capture tests (NFC)

These test other escape sources and the case of multiple
underlying objects.
The file was modifiedllvm/test/Transforms/DeadStoreElimination/captures-before-load.ll
Commit ebe06910ce2623f525e458a91d7e5a1858163226 by anirudh_prasad
[NFC] Replace hard-coded usages of SystemZ::R15D with SpecialRegisters API

This patch changes hard-coded usages of SystemZ::R15D with calls to the getStackPointerRegister function. Uses in the LowerCall function are avoided to avoid merge conflicts with an expected upcoming patch.

Reviewed By: uweigand

Differential Revision:
The file was modifiedllvm/lib/Target/SystemZ/SystemZISelLowering.cpp
Commit 5eb6b8272931473f3b279db5d2c0006993fda21a by sivachandra
[libc] Add an implementation of qsort.

A fuzzer for qsort has also been added.

Reviewed By: michaelrj

Differential Revision:
The file was modifiedlibc/spec/
The file was addedlibc/test/src/stdlib/qsort_test.cpp
The file was modifiedlibc/config/linux/aarch64/entrypoints.txt
The file was addedlibc/src/stdlib/qsort.cpp
The file was modifiedlibc/test/src/stdlib/CMakeLists.txt
The file was modifiedlibc/src/stdlib/CMakeLists.txt
The file was modifiedlibc/fuzzing/CMakeLists.txt
The file was modifiedlibc/config/linux/
The file was addedlibc/fuzzing/stdlib/qsort_fuzz.cpp
The file was addedlibc/fuzzing/stdlib/CMakeLists.txt
The file was modifiedlibc/spec/
The file was modifiedlibc/config/linux/x86_64/entrypoints.txt
The file was addedlibc/src/stdlib/qsort.h
Commit e325ebb9c70bbdd48866926a42d4c4373b832035 by antiagainst
[mlir][tosa] Add some transpose folders

* If the input is a constant splat value, we just
  need to reshape it.
* If the input is a general constant with one user,
  we can also constant fold it, without bloating
  the IR.

Reviewed By: rsuderman

Differential Revision:
The file was modifiedmlir/test/Dialect/Tosa/canonicalize.mlir
The file was modifiedmlir/include/mlir/Dialect/Tosa/IR/
The file was modifiedmlir/lib/Dialect/Tosa/IR/TosaOps.cpp
Commit 96cb97c4533a0a02c2d62ffb1121cd275aa43dd5 by tejohnson
[ThinLTO] Update combined index for SamplePGO indirect calls to locals

In ThinLTO for locals we normally compute the GUID from the name after
prepending the source path to get a unique global id. SamplePGO indirect
call profiles contain the target GUID without this uniquification,
however (unless compiling with -funique-internal-linkage-names).

In order to correctly handle the call edges added to the combined index
for these indirect calls, during importing and bitcode writing we
consult a map of original to full GUID to identify the actual callee.
However, for a large application this was consuming a lot of compile
time as we need to do this repeatedly (especially during importing where
we may traverse call edges multiple times).

To fix this implement a suggestion in one of the FIXME comments, and
actually modify the call edges during a single traversal after the index
is built to perform the fixups once. I combined this fixup with the dead
code analysis performed on the index in order to avoid adding an
additional walk of the index. The dead code analysis is the first
analysis performed on the index.

This reduced the time required for a large thin link with SamplePGO by
about 20%.

No new test added, but I confirmed that there are existing tests that
will fail when no fixup is performed.

Differential Revision:
The file was modifiedllvm/tools/llvm-lto/llvm-lto.cpp
The file was modifiedllvm/include/llvm/Transforms/IPO/FunctionImport.h
The file was modifiedllvm/lib/Transforms/IPO/FunctionImport.cpp
The file was modifiedllvm/lib/IR/ModuleSummaryIndex.cpp
The file was modifiedllvm/lib/Bitcode/Writer/BitcodeWriter.cpp
The file was modifiedllvm/include/llvm/IR/ModuleSummaryIndex.h
Commit aca9bea1992ce270d094105ae8968c703b8ffb65 by riddleriver
[mlir:MemRef] Move DmaStartOp/DmaWaitOp to ODS

These are among the last operations still defined explicitly in C++. I've
tried to keep this commit as NFC as possible, but these ops
definitely need a non-NFC cleanup at some point.

Differential Revision:
The file was modifiedmlir/include/mlir/Dialect/MemRef/IR/MemRef.h
The file was modifiedmlir/lib/Dialect/MemRef/IR/MemRefDialect.cpp
The file was modifiedmlir/include/mlir/Dialect/MemRef/IR/
The file was modifiedmlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
The file was modifiedmlir/test/Dialect/MemRef/invalid.mlir
The file was modifiedmlir/test/IR/invalid-ops.mlir
Commit b5bfbb4da252e1d6b0cefadf1809e88e33bb96c1 by tejohnson
Fix bot failure by adding needed dependence

Fix bot failure from 96cb97c4533a0a02c2d62ffb1121cd275aa43dd5, e.g.:

llvm-lto now needs to link in IPO.
The file was modifiedllvm/tools/llvm-lto/CMakeLists.txt
Commit 29c09c76539f6171fa84811e9b4b6d2a244e2d53 by spatel
[InstCombine] match variable names and code comments; NFC
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Commit a47c8e40c734429903d4000285ca45a1c3299321 by spatel
[InstCombine] fold lshr(trunc(lshr X, C1)) C2

Only the multi-use cases are changing here because there's
another fold that catches the simpler patterns.

But that other fold is the source of infinite loops when we
try to add D110170, so removing that is planned as a follow-up.

Attempt to show the general proof in Alive2:

Note that the overshift fold-to-zero tests are not
currently handled by instsimplify. If they were, we
could assert that the shift amount sum is less than
the source bitwidth.
The file was modifiedllvm/test/Transforms/InstCombine/lshr.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Commit a5d47b3fa02da6a17828083654b79d5d15d310f3 by llvm-project
[Polly] Fix wrong redirect in test case.
The file was modifiedpolly/test/ScheduleOptimizer/ManualOptimization/distribute_illegal_pragmaloc.ll
Commit 62cc6b0da2912d770c125fc9ea0949f3a7b75fb9 by clementval
[flang][fir] Add support to mangle/deconstruct namelist group name

Add support to create unique name for namelist group and be able to
deconstruct them.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: jeanPerier

Differential Revision:

Co-authored-by: Jean Perier <>
Co-authored-by: Eric Schweitz <>
The file was modifiedflang/unittests/Optimizer/InternalNamesTest.cpp
The file was modifiedflang/lib/Lower/Mangler.cpp
The file was modifiedflang/lib/Optimizer/Support/InternalNames.cpp
The file was modifiedflang/include/flang/Optimizer/Support/InternalNames.h
Commit 531206310a27477f088f672f5e6fd688d77d9292 by riddleriver
[mlir:OpAsm] Factor out the common bits of (Op/Dialect)Asm(Parser/Printer)

This has a few benefits:
* It allows for defining parsers/printer code blocks that
  can be shared between operations and attribute/types.
* It removes the weird duplication of generic parser/printer hooks,
  which means that newly added hooks only require touching one class.

Differential Revision:
The file was modifiedmlir/include/mlir/IR/DialectImplementation.h
The file was modifiedmlir/lib/IR/AsmPrinter.cpp
The file was modifiedmlir/lib/IR/Dialect.cpp
The file was modifiedmlir/lib/IR/Operation.cpp
The file was modifiedmlir/include/mlir/IR/OpImplementation.h
The file was modifiedmlir/lib/Parser/DialectSymbolParser.cpp
The file was addedmlir/lib/Parser/AsmParserImpl.h
The file was modifiedmlir/lib/Parser/Parser.cpp
Commit 5969e5743ae9cd17d08436a4b1139b8c4a24cc4d by nikita.ppv
[IR] Handle large element size when calculating GEP indices

This is a fix for the issue reported at
The ElementSize is a uint64_t and as such may be larger than the
index space, or be negative in the index space. This is UB, but
shouldn't cause assertion failures.

We address this by detecting whether the size is too large and
use a zero index in that case (which is always conservatively

Differential Revision:
The file was modifiedllvm/lib/IR/DataLayout.cpp
The file was addedllvm/test/Transforms/GlobalOpt/large-element-size.ll
Commit a9ae2436fc0dcb68ef8a478948e46d0a9998b0c9 by anirudh_prasad
[SystemZ][z/OS] Introduce the GOFFMCAsmInfo Interface for z/OS

- This patch adds in the GOFFMCAsmInfo interfaces for the z/OS target.
- This patch decouples the previously existing SystemZMCAsmInfo interface for the ELF target and the z/OS target.
- This patch also removes a small test in the SystemZAsmLexerTest.cpp. The reason for this is because, the test is set up for the s390x-ibm-linux (SystemZ ELF triple), and the test checks a function which is overridden only for the z/OS target. The reason we can't change the test to use a z/OS triple outright is because there is still missing support which prevents the successful running of a test (assert in AsmParser.cpp due to missing GOFFAsmParser support)

Reviewed By: uweigand, abhina.sreeskantharajan

Differential Revision:
The file was modifiedllvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
The file was modifiedllvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
The file was addedllvm/lib/MC/MCAsmInfoGOFF.cpp
The file was modifiedllvm/unittests/MC/SystemZ/SystemZAsmLexerTest.cpp
The file was modifiedllvm/lib/MC/CMakeLists.txt
The file was addedllvm/include/llvm/MC/MCAsmInfoGOFF.h
The file was modifiedllvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.h
Commit c0d889995e708f8bcb0fd688f63d031ee06b5874 by Lang Hames
[ORC] Add 'contains' and 'overlaps' operations to ExecutorAddrRange.

Also includes unit tests for not-yet tested operations like comparison and
to/from pointer conversion.
The file was addedllvm/unittests/ExecutionEngine/Orc/ExecutorAddressTest.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h
The file was modifiedllvm/unittests/ExecutionEngine/Orc/CMakeLists.txt
Commit 5f9802401145a56d16c5712bf25b0a3894e68cb2 by llvmgnsyncbot
[gn build] Port a9ae2436fc0d
The file was modifiedllvm/utils/gn/secondary/llvm/lib/MC/
Commit 70a48697d5f547ca72053b5dcf0d10756f6f2477 by llvmgnsyncbot
[gn build] Port c0d889995e70
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/
Commit cf74ef134c9a8089d8997144d54628952c6d4552 by Stanislav.Mekhanoshin
[AMDGPU] Limit promote alloca max size in functions

Non-entry functions have 32 caller saved VGPRs available. If we
promote alloca to consume more registers we will have to spill
CSRs. There is no reason to eliminate scratch access to get
another scratch access instead.

Differential Revision:
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/vector-alloca-limits.ll
Commit a7cdcf25c17e169eedba276791299c3b2b78fbf1 by wlei
[llvm-profgen] Ignore invalid perf line in LBR record

Similar to, there is a whole invalid line of message in perfscript.

warning: Invalid address in LBR record at line 14118674: Processed 14138923 events and lost 1 chunks!
warning: Invalid address in LBR record at line 14118676: Check IO/CPU overload!

This only happened for LBR only perfscript, hybridperfscript have a check of " 0x" to make sure it's the LBR perf line.

Reviewed By: hoy, wenlei

Differential Revision:
The file was modifiedllvm/test/tools/llvm-profgen/Inputs/noprobe.perfscript
The file was modifiedllvm/tools/llvm-profgen/PerfReader.cpp
Commit 2a876a711dc7c644936017daf20e78f48bfd2270 by diegocaballero
[mlir] Create a generic reduction detection utility

This patch introduces a generic reduction detection utility that works
across different dialecs. It is mostly a generalization of the reduction
detection algorithm in Affine. The reduction detection logic in Affine,
Linalg and SCFToOpenMP have been replaced with this new generic utility.

The utility takes some basic components of the potential reduction and
returns: 1) the reduced value, and 2) a list with the combiner operations.
The logic to match reductions involving multiple combiner operations disabled
until we can properly test it.

Reviewed By: ftynse, bondhugula, nicolasvasilache, pifon2a

Differential Revision:
The file was modifiedmlir/lib/Conversion/SCFToOpenMP/CMakeLists.txt
The file was modifiedmlir/tools/mlir-opt/mlir-opt.cpp
The file was modifiedmlir/include/mlir/Analysis/LoopAnalysis.h
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
The file was modifiedutils/bazel/llvm-project-overlay/mlir/BUILD.bazel
The file was modifiedmlir/test/lib/Analysis/CMakeLists.txt
The file was addedmlir/test/lib/Analysis/TestMatchReduction.cpp
The file was modifiedmlir/include/mlir/IR/Diagnostics.h
The file was addedmlir/test/Analysis/test-match-reduction.mlir
The file was modifiedmlir/lib/Analysis/LoopAnalysis.cpp
The file was modifiedmlir/lib/Analysis/AffineAnalysis.cpp
The file was modifiedmlir/lib/Conversion/SCFToOpenMP/SCFToOpenMP.cpp
The file was modifiedmlir/lib/IR/Diagnostics.cpp
Commit d5f2013004ef8d2d9995fd45a154744bf7c264e9 by wlei
[AutoFDO][llvm-profgen] Profile generation for LBR(non-CS) sample

This patch introduces non-CS AutoFDO profile generation into LLVM. The profile is supposed to be well consumed by compiler using `-fprofile-sample-use=[profile]`.

After range and branch counters are extracted from the LBR sample, here we go through each addresses for symbolization, create FunctionSamples and populate its sub fields like TotalSamples, BodySamples and HeadSamples etc. For inlined code, as we need to map back to original code, so we always add body samples to the leaf frame's function sample.

Reviewed By: wenlei, hoy

Differential Revision:
The file was addedllvm/test/tools/llvm-profgen/Inputs/inline-noprobe2.perfbin
The file was addedllvm/test/tools/llvm-profgen/inline-noprobe.test
The file was modifiedllvm/tools/llvm-profgen/llvm-profgen.cpp
The file was removedllvm/test/tools/llvm-profgen/noprobe.test
The file was addedllvm/test/tools/llvm-profgen/inline-noprobe2.test
The file was addedllvm/test/tools/llvm-profgen/Inputs/inline-noprobe2.perfscript
The file was modifiedllvm/tools/llvm-profgen/ProfileGenerator.cpp
The file was addedllvm/test/tools/llvm-profgen/Inputs/inline-noprobe.perfscript
The file was modifiedllvm/tools/llvm-profgen/ProfiledBinary.h
The file was addedllvm/test/tools/llvm-profgen/Inputs/inline-noprobe.perfbin
The file was addedllvm/test/tools/llvm-profgen/noinline-noprobe.test
The file was modifiedllvm/tools/llvm-profgen/ProfileGenerator.h
Commit b45476c94ce8ea94e2ad4d93ceda00eb4078e682 by antiagainst
[mlir][tosa] Do not fold transpose with quantized types

For such cases, the type of the constant DenseElementsAttr is
different from the transpose op return type.

Reviewed By: rsuderman

Differential Revision:
The file was modifiedmlir/lib/Dialect/Tosa/IR/TosaOps.cpp
The file was modifiedmlir/test/Dialect/Tosa/canonicalize.mlir
Commit 28277e9b48601dee7027ba6ed50554db821ba09b by wlei
[AutoFDO][llvm-profgen] Report zero count for unexecuted part of function code

In order to be consistent with compiler that interprets zero count as unexecuted(cold), this change reports zero-value count for unexecuted part of function code. For the implementation, it leverages the range counter, initializes all the executed function range with the zero-value. After all ranges are merged and converted into disjoint ranges, the remaining zero count will indicates the unexecuted(cold) part of the function.

This change also extends the current `findDisjointRanges` method which now can support adding zero-value range.

Reviewed By: hoy, wenlei

Differential Revision:
The file was modifiedllvm/tools/llvm-profgen/ProfileGenerator.h
The file was modifiedllvm/tools/llvm-profgen/ProfiledBinary.cpp
The file was modifiedllvm/test/tools/llvm-profgen/inline-noprobe.test
The file was modifiedllvm/tools/llvm-profgen/ProfiledBinary.h
The file was modifiedllvm/test/tools/llvm-profgen/inline-noprobe2.test
The file was modifiedllvm/tools/llvm-profgen/ProfileGenerator.cpp
Commit 1422fa5fab369b0ec223b58788c68f91a4093076 by wlei
[llvm-profgen] Unify output format of different unsymbolized profiles

Differential Revision:
The file was modifiedllvm/test/tools/llvm-profgen/inline-cs-noprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/inline-cs-pseudoprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/noinline-cs-noprobe.test
The file was modifiedllvm/tools/llvm-profgen/PerfReader.cpp
The file was modifiedllvm/tools/llvm-profgen/PerfReader.h
The file was modifiedllvm/test/tools/llvm-profgen/cs-interrupt.test
The file was modifiedllvm/test/tools/llvm-profgen/recursion-compression-pseudoprobe.test
The file was modifiedllvm/test/tools/llvm-profgen/noinline-cs-pseudoprobe.test
Commit 62d6ff5e9e70dd11a4e9e6efc48ce174cd6849bd by Jonas Devlieghere
[dsymutil] Track incompleteness across unions

When determining the incompleteness of a DIE based on its children, make
sure we propagate it across union types. See test case for an example.
Without this patch we never emit the definition of Container_ivars.

Differential revision:
The file was modifiedllvm/lib/DWARFLinker/DWARFLinker.cpp
The file was addedllvm/test/tools/dsymutil/Inputs/private/tmp/union/container.o
The file was addedllvm/test/tools/dsymutil/Inputs/private/tmp/union/a.out
The file was addedllvm/test/tools/dsymutil/X86/union-fwd-decl.test
The file was addedllvm/test/tools/dsymutil/Inputs/private/tmp/union/use.o
Commit 9911af4b91c670477cf920f168b339bd2f3f307f by dblaikie
WIP: Verify -gsimple-template-names=mangled values

Clang will encode names that should be able to be simplified as
"_STNname|<template, args>" (eg: "_STNt1|<int>") - this verification
mode will detect these names, decode them, create the original name
("t1<int>") and the simple name ("t1") - letting the simple name run
through the usual rebuilding logic - then compare the two sources of the
full name - the rebuilt and the _STN encoding.

This helps ensure that -gsimple-template-names is lossless.
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDie.cpp
The file was modifiedllvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
The file was modifiedllvm/include/llvm/DebugInfo/DWARF/DWARFDie.h
The file was modifiedllvm/test/tools/llvm-dwarfdump/X86/prettyprint_types.s
Commit 37f1b7a3f35fd9edbb110a3845e79d46224ea79b by Lang Hames
[ORC] Allow construction of an ExecutorAddrRange from an addr and a size.
The file was modifiedllvm/unittests/ExecutionEngine/Orc/ExecutorAddressTest.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/ExecutorAddress.h
Commit c6288759296f808a2f7304bbd1bd5b18974e4ccc by Jonas Devlieghere
[lldb] Copy the system debugserver in LLDB.framework

When using the system debugserver for testing, copy the binary in the
LLDB.framework Resource directory instead of the build's bin directory.

The file was modifiedlldb/test/API/CMakeLists.txt
Commit d0649320bf39efddf10a430c1821911060d684b2 by Jonas Devlieghere
[dsymutil] Update union-fwd-decl.test for Windows

Remove path separators from CHECK-lines in union-fwd-decl.test
The file was modifiedllvm/test/tools/dsymutil/X86/union-fwd-decl.test
Commit 715cf6ffb9a0491aa8749bf024d741de520fa1f2 by craig.topper
[RISCV] Add another isel optimization for (and (shl X, c2), c1).

Where c1 is a shifted mask with 32-c2 leading zeros and c3 trailing
zeros and c3>c2. We can select it as (slli (srliw X, c3-c2), c3).
The file was modifiedllvm/test/CodeGen/RISCV/rv64zbp.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-bswap.ll
The file was modifiedllvm/test/CodeGen/RISCV/rv64zbb.ll
The file was modifiedllvm/test/CodeGen/RISCV/bswap-ctlz-cttz-ctpop.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Commit e8b376547b4b77671c36607ade025d3272699e7a by wmi
Fixed a bug in

For compressed profile when reading an unknown section, the data reader pointer
adjustment was incorrect. This patch fixed that.
The file was modifiedllvm/test/tools/llvm-profdata/forward-compatible.test
The file was addedllvm/test/tools/llvm-profdata/Inputs/unknown.section.compressed.extbin.profdata
The file was modifiedllvm/include/llvm/ProfileData/SampleProfReader.h
Commit 80865f7579d619dee4ffd5abb72f641ef74dedbb by wmi
Add "REQUIRES: zlib" in forward-compatible.test since it handles compressed file.
The file was modifiedllvm/test/tools/llvm-profdata/forward-compatible.test
Commit 6deaebe5fe00bfb69d9d007bae95fac70779398a by kkleine
[llvm] Improve with help and snapshot

This change adds the ability to create source tarballs for unreleased or untagged code by providing the `--git-ref <GIT_REF>` flag to the `llvm/utils/release/` script. This is useful for creating daily snapshot tarballs that can easily be consumed by packagers who want to build a daily snapshot.

The default behavior of `` hasn't changed.

You may also provide a `--template` argument to say how the artifacts
are supposed to be named (as suggested by @hans).

The `-help` output of `` was changed quite significantly to look like this:

Export the Git sources and build tarballs from them.

Usage: [-release|--release <major>.<minor>.<patch>]
                      [-rc|--rc <num>]
                      [-git-ref|--git-ref <git-ref>]
                      [-template|--template <template>]


  -release  | --release <major>.<minor>.<patch>    The version number of the release
  -rc       | --rc <num>                           The release candidate number
  -final    | --final                              When provided, this option will disable the rc flag
  -git-ref  | --git-ref <git-ref>                  (optional) Use <git-ref> to determine the release and don't export the test-suite files
  -template | --template <template>                (optional) Possible placeholders: $PROJECT $YYYYMMDD $GIT_REF $RELEASE $RC.
                                                   Defaults to '${PROJECT}-${RELEASE}${RC}.src.tar.xz'.

The following list shows the filenames (with <placeholders>) for the artifacts
that are being generated (given that you don't touch --template).

  * llvm-<RELEASE><RC>.src.tar.xz
  * clang-<RELEASE><RC>.src.tar.xz
  * compiler-rt-<RELEASE><RC>.src.tar.xz
  * libcxx-<RELEASE><RC>.src.tar.xz
  * libcxxabi-<RELEASE><RC>.src.tar.xz
  * libclc-<RELEASE><RC>.src.tar.xz
  * clang-tools-extra-<RELEASE><RC>.src.tar.xz
  * polly-<RELEASE><RC>.src.tar.xz
  * lldb-<RELEASE><RC>.src.tar.xz
  * lld-<RELEASE><RC>.src.tar.xz
  * openmp-<RELEASE><RC>.src.tar.xz
  * libunwind-<RELEASE><RC>.src.tar.xz
  * flang-<RELEASE><RC>.src.tar.xz

Additional files being generated:

  * llvm-project-<RELEASE><RC>.src.tar.xz    (the complete LLVM source project)
  * test-suite-<RELEASE><RC>.src.tar.xz      (only when not using --git-ref)

To ease the creation of snapshot builds, we also provide these files

  * llvm-release-<YYYYMMDD>.txt        (contains the <RELEASE> as a text)
  * llvm-rc-<YYYYMMDD>.txt             (contains the rc version passed to the invocation of
  * llvm-git-revision-<YYYYMMDD>.txt   (contains the current git revision sha1)

Example values for the placeholders:

  * <RELEASE>  -> 13.0.0
  * <YYYYMMDD> -> 20210414
  * <RC>       -> rc4        (will be empty when using --git-ref)

In order to generate snapshots of the upstream main branch you could do this for example: --git-ref upstream/main --template '${PROJECT}-${YYYYMMDD}.src.tar.xz'


Reviewed By: tstellar

Differential Revision:
The file was modifiedllvm/utils/release/