[all-commits] [llvm/llvm-project] 6a69cf: [mlir][spirv] Add a generic `convert-to-spirv` pas...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Jun 24 10:44:56 PDT 2024


  Branch: refs/heads/users/MaskRay/spr/elf-make-startstop-symbols-retain-associated-discardable-output-sections
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a69cfb607bafe2bfe75818cc6290af2565a3198
      https://github.com/llvm/llvm-project/commit/6a69cfb607bafe2bfe75818cc6290af2565a3198
  Author: Angel Zhang <angel.zhang at amd.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    A mlir/include/mlir/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.h
    M mlir/include/mlir/Conversion/Passes.h
    M mlir/include/mlir/Conversion/Passes.td
    M mlir/lib/Conversion/CMakeLists.txt
    A mlir/lib/Conversion/ConvertToSPIRV/CMakeLists.txt
    A mlir/lib/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.cpp
    A mlir/test/Conversion/ConvertToSPIRV/arith.mlir
    A mlir/test/Conversion/ConvertToSPIRV/combined.mlir
    A mlir/test/Conversion/ConvertToSPIRV/index.mlir
    A mlir/test/Conversion/ConvertToSPIRV/scf.mlir
    A mlir/test/Conversion/ConvertToSPIRV/simple.mlir
    A mlir/test/Conversion/ConvertToSPIRV/ub.mlir
    A mlir/test/Conversion/ConvertToSPIRV/vector.mlir

  Log Message:
  -----------
  [mlir][spirv] Add a generic `convert-to-spirv` pass (#95942)

This PR implements a MVP version of an MLIR lowering pipeline to SPIR-V.
The goal of adding this pipeline is to have a better test coverage of
SPIR-V compilation upstream, and enable writing simple kernels by hand.
The dialects supported in this version include `arith`, `vector` (only
1-D vectors with size 2,3,4,8 or 16), `scf`, `ub`, `index`, `func` and
`math`. New test cases for the pass are also included in this PR.

**Relevant links**

- [Open MLIR Meeting - YouTube
Video](https://www.youtube.com/watch?v=csWPOQfgLMo)
- [Discussion on LLVM
Forum](https://discourse.llvm.org/t/open-mlir-meeting-12-14-2023-discussion-on-improving-handling-of-unit-dimensions-in-the-vector-dialect/75683)

**Future plans**

- Add conversion patterns for other dialects, e.g. `gpu`, `tensor`, etc.
- Include vector transformation to unroll vectors to 1-D, and handle
those with unsupported sizes.
- Implement multiple-return. SPIR-V does not support multiple return
values since a `spirv.func` can only return zero or one values. It might
be possible to wrap the return values in a `spirv.struct`.
- Add a conversion for `scf.parallel`.


  Commit: 35bfbb3b21e9874d03b730e8ce4eb98b1dcd2d28
      https://github.com/llvm/llvm-project/commit/35bfbb3b21e9874d03b730e8ce4eb98b1dcd2d28
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/lib/AST/QualTypeNames.cpp

  Log Message:
  -----------
  [clang][AST] createNestedNameSpecifierForScopeOf - don't use dyn_cast_or_null on never null DC argument

Fixes static analysis warning about later dereferencing the DC variable which might have been null (assumed due to dyn_cast_or_null) - getRedeclContext shouldn't ever return a null value so safe to use dyn_cast instead.


  Commit: f9fc6f6d7504e3c8eb6844a34a2ca988da9df21c
      https://github.com/llvm/llvm-project/commit/f9fc6f6d7504e3c8eb6844a34a2ca988da9df21c
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

  Log Message:
  -----------
  [SLP] Remove dead initialization noticed by static analyser. NFC.


  Commit: 2615e69ec2b373a38ffd4459609147f4c1ebe955
      https://github.com/llvm/llvm-project/commit/2615e69ec2b373a38ffd4459609147f4c1ebe955
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/IR/AutoUpgrade.cpp

  Log Message:
  -----------
  [IR] AutoUpgrade.cpp - don't directly dereference pointers from dyn_cast

Static analysis was reporting that dyn_cast<> can return null on failure - use cast<> instead


  Commit: 19470e72e4aadfe16d1b6b0e4df325d75dc7fd7c
      https://github.com/llvm/llvm-project/commit/19470e72e4aadfe16d1b6b0e4df325d75dc7fd7c
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/www/c_status.html

  Log Message:
  -----------
  [C99] Claim conformance to "more precise aliasing rules via effective type"

We don't have a document number to check our behavior against, but the
document title makes it clear that this is related to optimization
behavior, which doesn't require Clang to change.


  Commit: 1eddf3519f2e692d60a43204d862ea00a92f48f4
      https://github.com/llvm/llvm-project/commit/1eddf3519f2e692d60a43204d862ea00a92f48f4
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [bazel] Port #95942 (#96334)


  Commit: ecf2a53407f517a261ee296e1f922c647a13a503
      https://github.com/llvm/llvm-project/commit/ecf2a53407f517a261ee296e1f922c647a13a503
  Author: Angel Zhang <anzhouzhang913 at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    R mlir/include/mlir/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.h
    M mlir/include/mlir/Conversion/Passes.h
    M mlir/include/mlir/Conversion/Passes.td
    M mlir/lib/Conversion/CMakeLists.txt
    R mlir/lib/Conversion/ConvertToSPIRV/CMakeLists.txt
    R mlir/lib/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.cpp
    R mlir/test/Conversion/ConvertToSPIRV/arith.mlir
    R mlir/test/Conversion/ConvertToSPIRV/combined.mlir
    R mlir/test/Conversion/ConvertToSPIRV/index.mlir
    R mlir/test/Conversion/ConvertToSPIRV/scf.mlir
    R mlir/test/Conversion/ConvertToSPIRV/simple.mlir
    R mlir/test/Conversion/ConvertToSPIRV/ub.mlir
    R mlir/test/Conversion/ConvertToSPIRV/vector.mlir

  Log Message:
  -----------
  Revert "[mlir][spirv] Add a generic `convert-to-spirv` pass" (#96332)

Reverts llvm/llvm-project#95942 due to link failures.


  Commit: e23250ecb7e09170e584db60375100790f39fac9
      https://github.com/llvm/llvm-project/commit/e23250ecb7e09170e584db60375100790f39fac9
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Basic/PointerAuthOptions.h
    M clang/include/clang/Frontend/CompilerInvocation.h
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGCall.h
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CGExprConstant.cpp
    M clang/lib/CodeGen/CGPointerAuth.cpp
    A clang/lib/CodeGen/CGPointerAuthInfo.h
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Headers/ptrauth.h
    A clang/test/CodeGen/ptrauth-function-attributes.c
    A clang/test/CodeGen/ptrauth-function-init-fail.c
    A clang/test/CodeGen/ptrauth-function-init.c
    A clang/test/CodeGen/ptrauth-function-lvalue-cast.c
    A clang/test/CodeGen/ptrauth-function.c
    A clang/test/CodeGen/ptrauth-weak_import.c
    A clang/test/CodeGenCXX/ptrauth.cpp

  Log Message:
  -----------
  [clang] Implement function pointer signing and authenticated function calls (#93906)

The functions are currently always signed/authenticated with zero
discriminator.

Co-Authored-By: John McCall <rjmccall at apple.com>


  Commit: 131bc0390dba1bc21fb8af8e5e8afa78a17d39b9
      https://github.com/llvm/llvm-project/commit/131bc0390dba1bc21fb8af8e5e8afa78a17d39b9
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/www/c_status.html

  Log Message:
  -----------
  [C99] Claim partial conformance to IEC 60559 support

We intend to support Annex F but there are edge cases we don't handle
properly, such as raising an "invalid" exception when converting some
floating-point values to integers.

This does not add any test coverage as full conformance would require
sufficiently extensive testing that we should consider getting a
third-party test suite such as the one from http://tybor.com/


  Commit: f4cf15d225fdaf98c106a4adfae57dae509607ff
      https://github.com/llvm/llvm-project/commit/f4cf15d225fdaf98c106a4adfae57dae509607ff
  Author: Alexis Engelke <engelke at in.tum.de>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/CodeGen/RegAllocFast.cpp

  Log Message:
  -----------
  [RegAllocFast] Replace UsedInInstr with vector (#96323)

A SparseSet adds an avoidable layer of indirection and possibly looping
control flow. Avoid this overhead by using a vector to store
UsedInInstrs and PhysRegUses.

To avoid clearing the vector after every instruction, use a
monotonically increasing counter. The two maps are now merged and the
lowest bit indicates whether the use is relevant for the livethrough
handling code only.


  Commit: e9af6eeb9118a708ce806ab29f2f72de937fba47
      https://github.com/llvm/llvm-project/commit/e9af6eeb9118a708ce806ab29f2f72de937fba47
  Author: Gabriel Baraldi <baraldigabriel at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

  Log Message:
  -----------
  Enable building 16 bit floating point builtins in apple platforms if supported by the compiler (#84192)

Currently we will not build float16/bfloat16 builtins on apple
platforms, LLVM will include calls to those builtins and fail to link.

I copied the test code we perform for non apple platforms because oddly
we branch on it being apple for building builtins


  Commit: f0b93096690ebc98017c05b58202fa5a3a84d7ea
      https://github.com/llvm/llvm-project/commit/f0b93096690ebc98017c05b58202fa5a3a84d7ea
  Author: RoseZhang03 <rosezhang at google.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M libc/spec/linux.td

  Log Message:
  -----------
  [libc] Added const modifier to SigSetPtrType (#96252)

Function header files for epoll_pwait and epoll_pwait2 have const
modifier on
SigSetPtrType in function signature, but the linux.td file does not
reflect that.

.td file located in libc/spec/linux.td
epoll functions located in libc/src/sys/epoll


  Commit: 918ef312d1fda56ff783f3974b5a193542e5497c
      https://github.com/llvm/llvm-project/commit/918ef312d1fda56ff783f3974b5a193542e5497c
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/www/c_status.html

  Log Message:
  -----------
  [C99] Claim full conformance to C99

We now believe we know the status of all the proposals that went into
C99. There are three entries marked Partial:

N448 restricted pointers
------------------------
Clang fully conforms to the standard requirements, but LLVM support
could be improved to support more than just restricted pointers used
as function parameters.

N693 complex and imaginary support in <complex.h>
-------------------------------------------------
Clang supports _Complex but not _Imaginary. Clang does not attempt to
implement Annex G, so a lack of _Imaginary is not necessary for
conformance to C99. It's also worth noting that C2y is anticipated to
remove support for _Imaginary (see WG14 N3274 which was adopted at the
June 2024 meeting).

However, support for _Complex requires runtime support and compiler-rt
is not supported on all targets (notably, Windows).

(Doc # unknown) IEC 60559 support
---------------------------------
Clang largely conforms to the requirements in Annex F, but there are
edge cases that are incorrect. However, Clang does not predefine the
__STDC_IEC_559__ macro and so we don't claim to conform to Annex F yet.

Because all three of these partial entries are technically conforming,
it seems reasonable to claim full conformance for C99.


  Commit: af478c82a5f6e42ff5d1e67dcefbf9dd0fee501c
      https://github.com/llvm/llvm-project/commit/af478c82a5f6e42ff5d1e67dcefbf9dd0fee501c
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/runtimes/CMakeLists.txt

  Log Message:
  -----------
  [offload][runtimes] Forward user-provided system configuration (#96303)

In order for LLVM_ENABLE_RUNTIMES projects to find their requirements,
they need access to user-provided configuration options such as
`CMAKE_PREFIX_PATH`. Forward a selection of configuration options such
that runtimes uses the same system introspection as LLVM and
LLVM_ENABLE_PROJECTS do.

The concrete symptom this is solving is that the path to CUDA is
provided using `cmake -DCUDA_TOOLKIT_ROOT_DIR=/opt/cuda` or `CUDA_PATH`,
but is ignored by offload. Handling for this case already existed for
libc, but only when it was enabled and only `CUDAToolkit_ROOT` (The
former is for `find_package(CUDA)`, the latter for
`find_package(CUDAToolkit)`, `CUDA_PATH` is used by
`find_package(CUDAToolkit)` and `enable_language(CUDA)`).


  Commit: 8abb5ae1c250a488cef6e9b05074f95a722be9a9
      https://github.com/llvm/llvm-project/commit/8abb5ae1c250a488cef6e9b05074f95a722be9a9
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  Revert "[bazel] Port #95942" (#96340)

Original change was reverted

Reverts llvm/llvm-project#96334


  Commit: f82a595b7fbec408a2a22f4d9e45f28664d2ab07
      https://github.com/llvm/llvm-project/commit/f82a595b7fbec408a2a22f4d9e45f28664d2ab07
  Author: Keith Smiley <keithbsmiley at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel

  Log Message:
  -----------
  [bazel] Fix mpfr_wrapper build (#96341)


  Commit: fbf0ca64182baa5fac73fa012ed1fb6805fa3581
      https://github.com/llvm/llvm-project/commit/fbf0ca64182baa5fac73fa012ed1fb6805fa3581
  Author: Mariusz Sikora <mariusz.sikora at amd.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/FLATInstructions.td
    M llvm/lib/Target/AMDGPU/SIInstrInfo.td
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.td
    M llvm/test/MC/AMDGPU/gfx12_asm_vflat.s
    M llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vflat.txt

  Log Message:
  -----------
  [AMDGPU][GFX12] Add support for new block ls instructions (#96273)

Add MC layer support for new instructions:

GLOBAL_LOAD_BLOCK
GLOBAL_STORE_BLOCK
SCRATCH_LOAD_BLOCK
SCRATCH_STORE_BLOCK

Co-authored-by: Piotr Sobczak <piotr.sobczak at amd.com>


  Commit: f333fc5c9732a5b64ae0bca09ade6f0036e80c40
      https://github.com/llvm/llvm-project/commit/f333fc5c9732a5b64ae0bca09ade6f0036e80c40
  Author: Rose Zhang <rosezhang at google.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    A libc/spec/stdc_assert.yaml
    A libc/spec/stdc_ctype.yaml
    A libc/spec/stdc_string.yaml

  Log Message:
  -----------
  combined string and time functions


  Commit: c8ba4119acffa518355acc751233849b3e9e0712
      https://github.com/llvm/llvm-project/commit/c8ba4119acffa518355acc751233849b3e9e0712
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    R libc/spec/stdc_assert.yaml
    R libc/spec/stdc_ctype.yaml
    R libc/spec/stdc_string.yaml

  Log Message:
  -----------
  Revert "combined string and time functions"

This reverts commit f333fc5c9732a5b64ae0bca09ade6f0036e80c40.

Accidentally pushed, sorry!


  Commit: bf3e3289d67cb0fe136b0660cac39c24c9f65069
      https://github.com/llvm/llvm-project/commit/bf3e3289d67cb0fe136b0660cac39c24c9f65069
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M lldb/include/lldb/Target/Platform.h
    M lldb/include/lldb/Target/RemoteAwarePlatform.h
    M lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
    M lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h
    M lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
    M lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h
    M lldb/source/Target/Platform.cpp
    M lldb/source/Target/RemoteAwarePlatform.cpp
    M lldb/test/API/assert_messages_test/TestAssertMessages.py
    M lldb/test/API/tools/lldb-dap/launch/TestDAP_launch.py
    M lldb/unittests/Target/RemoteAwarePlatformTest.cpp

  Log Message:
  -----------
  [lldb] Unify Platform::ResolveExecutable (#96256)

The Platform class currently has two functions to resolve an executable:
`ResolveExecutable` and `ResolveRemoteExecutable`. The former strictly
deals with local files while the latter can handle potentially remote
files. I couldn't figure out why the distinction matters, at the latter
is a super-set of the former.

To make things even more confusion, we had a similar but not identical
implementation in RemoteAwarePlatform where its implementation of
`ResolveExecutable` could handle remote files. To top it all off, we had
copy-pasted implementation, dead code included in
`PlatformAppleSimulator` and `PlatformRemoteDarwinDevice`.

I went ahead and unified all the different implementation on the
original `ResolveRemoteExecutable` implementation. As far as I can tell,
it should work for every other platform, and the test suite (on macOS)
seems to agree with me, except for a small wording change.


  Commit: 39048b69b85e530b9b8a4226d9043a0bd340fe8a
      https://github.com/llvm/llvm-project/commit/39048b69b85e530b9b8a4226d9043a0bd340fe8a
  Author: Justin Bogner <mail at justinbogner.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    M clang/utils/TableGen/ClangAttrEmitter.cpp
    M llvm/include/llvm/Frontend/HLSL/HLSLResource.h
    M llvm/include/llvm/Support/DXILABI.h

  Log Message:
  -----------
  [DirectX] Move ResourceClass enum into DXILABI. NFC (#96335)

The resource class isn't HLSL specific, and we'll need to use it in the
DirectX backend as well.

I've also removed the "invalid" enum value since it isn't needed or
used, which necessitates fixing up the clang attr emitter to handle
external enum types that are fully covered by the attribute.


  Commit: f1f3c34b4770437bdb022737918603b4bbeb523e
      https://github.com/llvm/llvm-project/commit/f1f3c34b4770437bdb022737918603b4bbeb523e
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/lib/Transforms/Vectorize/VPlanValue.h
    M llvm/test/Transforms/LoopVectorize/RISCV/riscv-vector-reverse.ll
    R llvm/test/Transforms/LoopVectorize/WebAssembly/induction-branch-cost.ll
    R llvm/test/Transforms/LoopVectorize/WebAssembly/lit.local.cfg

  Log Message:
  -----------
  Revert "Recommit "[VPlan] First step towards VPlan cost modeling. (#92555)""

This reverts commit 242cc200ccb24e22eaf54aed7b0b0c84cfc54c0b and
eea150c84053035163f307b46549a2997a343ce9, as it is causing a build bot
failure and there have been a number of crashes reported at
https://github.com/llvm/llvm-project/pull/92555


  Commit: 5ece35df8586d0cb8c104a9f44eaae771de025f5
      https://github.com/llvm/llvm-project/commit/5ece35df8586d0cb8c104a9f44eaae771de025f5
  Author: Haopeng Liu <153236845+haopliu at users.noreply.github.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/AsmParser/LLParser.h
    M llvm/include/llvm/Bitcode/LLVMBitCodes.h
    M llvm/include/llvm/IR/Attributes.h
    M llvm/include/llvm/IR/Attributes.td
    A llvm/include/llvm/IR/ConstantRangeList.h
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/IR/AttributeImpl.h
    M llvm/lib/IR/Attributes.cpp
    M llvm/lib/IR/CMakeLists.txt
    A llvm/lib/IR/ConstantRangeList.cpp
    M llvm/lib/IR/LLVMContextImpl.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    A llvm/test/Assembler/initializes-attribute-invalid.ll
    M llvm/test/Bitcode/attributes.ll
    A llvm/test/Verifier/initializes-attr.ll
    M llvm/unittests/IR/CMakeLists.txt
    A llvm/unittests/IR/ConstantRangeListTest.cpp
    M llvm/utils/TableGen/Attributes.cpp

  Log Message:
  -----------
  Add the 'initializes' attribute langref and support (#84803)

We propose adding a new LLVM attribute,
`initializes((Lo1,Hi1),(Lo2,Hi2),...)`, which expresses the notion of
memory space (i.e., intervals, in bytes) that the argument pointing to
is initialized in the function.

Will commit the attribute inferring in the follow-up PRs.


https://discourse.llvm.org/t/rfc-llvm-new-initialized-parameter-attribute-for-improved-interprocedural-dse/77337


  Commit: b284ced06969a540e53bcf4103f22fa9be8f20b9
      https://github.com/llvm/llvm-project/commit/b284ced06969a540e53bcf4103f22fa9be8f20b9
  Author: Kelvin Li <kkwli at users.noreply.github.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M flang/test/Preprocessing/directive-contin-with-pp.F90

  Log Message:
  -----------
  [flang] Use %flang_fc1 to avoid options being inserted between %flang and -fc1 (NFC) (#96320)


  Commit: ad393151d30d573b14c0d5d6009deb971c2f3f85
      https://github.com/llvm/llvm-project/commit/ad393151d30d573b14c0d5d6009deb971c2f3f85
  Author: Aart Bik <ajcbik at google.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td

  Log Message:
  -----------
  [mlir][sparse] added some clarification on sparse tensors ABI (#96331)


  Commit: 9e6ea387c877a50394aca4b02f18a05e88cf2690
      https://github.com/llvm/llvm-project/commit/9e6ea387c877a50394aca4b02f18a05e88cf2690
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
    M lldb/test/API/lang/objcxx/objc-from-cpp-frames-without-debuginfo/TestObjCFromCppFramesWithoutDebugInfo.py
    M lldb/test/API/macosx/early-process-launch/TestEarlyProcessLaunch.py
    A lldb/test/Shell/Expr/TestObjCInCXXContext.test

  Log Message:
  -----------
  Reland "[lldb][ObjC] Don't query objective-c runtime for decls in C++ contexts"

This relands https://github.com/llvm/llvm-project/pull/95963. It had to
be reverted because the `TestEarlyProcessLaunch.py` test was failing
on the incremental macOS bots. The test failed because it was relying on
expression log output from the ObjC introspection routines (but was
the expression was called from a C++ context). The relanded patch
simply ensures that the test runs the expressions as `ObjC` expressions.

When LLDB isn't able to find a `clang::Decl` in response
to a `FindExternalVisibleDeclsByName`, it will fall-back
to looking into the Objective-C runtime for that decl. This
ends up doing a lot of work which isn't necessary when we're
debugging a C++ program. This patch makes the ObjC lookup
conditional on the language that the ExpressionParser deduced
(which can be explicitly set using the `expr --language` option
or is set implicitly if we're stopped in an ObjC frame or a
C++ frame without debug-info).

rdar://96236519


  Commit: 513644b5a3cb9ce3440731796b52ccab7c18278e
      https://github.com/llvm/llvm-project/commit/513644b5a3cb9ce3440731796b52ccab7c18278e
  Author: Fabio D'Urso <fdurso at google.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h
    M compiler-rt/lib/scudo/standalone/tests/strings_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/vector_test.cpp

  Log Message:
  -----------
  [scudo] Add TEST_SKIP macro to skip the current test (#96192)


  Commit: 60fa7c7690d65f23636c5ca51e0fbfc54ed09370
      https://github.com/llvm/llvm-project/commit/60fa7c7690d65f23636c5ca51e0fbfc54ed09370
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/lib/Driver/ToolChains/AMDGPU.h
    M clang/test/Driver/rocm-device-libs.cl

  Log Message:
  -----------
  Enable ASAN in amdgpu toolchain for OpenCL (#96262)


  Commit: bf824d98c06099c50413cd6c957a75b894a8ac26
      https://github.com/llvm/llvm-project/commit/bf824d98c06099c50413cd6c957a75b894a8ac26
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
    R clang-tools-extra/test/clang-doc/single-source-html.cpp

  Log Message:
  -----------
  Revert "[clang-doc] Add --asset option to clang-doc" (#96354)

Reverts llvm/llvm-project#94717

This breaks on some buildbots:
http://45.33.8.238/linux/141118/step_7.txt


  Commit: 7b57a1b4018db0c987fb5a67effbef4d7559c4f1
      https://github.com/llvm/llvm-project/commit/7b57a1b4018db0c987fb5a67effbef4d7559c4f1
  Author: Mohammed Keyvanzadeh <mohammadkeyvanzade94 at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/Analysis/CallGraphSCCPass.cpp
    M llvm/lib/Analysis/CallPrinter.cpp
    M llvm/lib/Analysis/CaptureTracking.cpp
    M llvm/lib/Analysis/CycleAnalysis.cpp
    M llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp
    M llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp
    M llvm/lib/Analysis/InlineAdvisor.cpp
    M llvm/lib/Analysis/LazyValueInfo.cpp
    M llvm/lib/Analysis/LoopAnalysisManager.cpp
    M llvm/lib/Analysis/LoopPass.cpp
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Analysis/ScalarEvolutionDivision.cpp

  Log Message:
  -----------
  [llvm] format and terminate namespaces with closing comment (#94917)

Namespaces are terminated with a closing comment in the majority of the
codebase so do the same here for consistency. Also format code within
some namespaces to make clang-format happy.


  Commit: 32d05db6e9a5650f87eedb5fe328fa9e1fcec76f
      https://github.com/llvm/llvm-project/commit/32d05db6e9a5650f87eedb5fe328fa9e1fcec76f
  Author: Nick Desaulniers (paternity leave) <nickdesaulniers at users.noreply.github.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M libc/startup/linux/CMakeLists.txt

  Log Message:
  -----------
  [libc][startup] set --target= for linker when cross compiling (#96342)

Otherwise the startup objects will fail to link since they were cross compiled,
but the linker is not informed of the intent to cross compile, which results in
linker errors when the host architecture does not match the target
architecture.


  Commit: e52016a2361a35773e8c1ad969b4b33a2b30d018
      https://github.com/llvm/llvm-project/commit/e52016a2361a35773e8c1ad969b4b33a2b30d018
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp

  Log Message:
  -----------
  [Clang] Replace `emitXXXBuiltin` with a unified interface (#96313)


  Commit: 09bc1e825068f314db71ee7eb32d9f93c5ac87a0
      https://github.com/llvm/llvm-project/commit/09bc1e825068f314db71ee7eb32d9f93c5ac87a0
  Author: lntue <35648136+lntue at users.noreply.github.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M libc/src/stdlib/CMakeLists.txt
    M libc/test/src/__support/CMakeLists.txt

  Log Message:
  -----------
  [libc][stdlib] Only use freelist_malloc for baremetal targets. (#96355)


  Commit: 31bbaf40afd9f8a230395ff45c9b79ff272fbc77
      https://github.com/llvm/llvm-project/commit/31bbaf40afd9f8a230395ff45c9b79ff272fbc77
  Author: LLVM GN Syncbot <llvmgnsyncbot at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
    M llvm/utils/gn/secondary/llvm/unittests/IR/BUILD.gn

  Log Message:
  -----------
  [gn build] Port 5ece35df8586


  Commit: 3984e58d0d467d93b39b03c34d36e40d14c9d7ba
      https://github.com/llvm/llvm-project/commit/3984e58d0d467d93b39b03c34d36e40d14c9d7ba
  Author: LLVM GN Syncbot <llvmgnsyncbot at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn

  Log Message:
  -----------
  [gn build] Port 7c814c13d0df


  Commit: df54be40af9fd1bf159459304c40f3a93ab6748a
      https://github.com/llvm/llvm-project/commit/df54be40af9fd1bf159459304c40f3a93ab6748a
  Author: LLVM GN Syncbot <llvmgnsyncbot at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/utils/gn/secondary/lldb/source/Utility/BUILD.gn

  Log Message:
  -----------
  [gn build] Port b8f0ca09b667


  Commit: 5d6d2fc0802e1a6fb9727d82571273c337c23629
      https://github.com/llvm/llvm-project/commit/5d6d2fc0802e1a6fb9727d82571273c337c23629
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/BUFInstructions.td

  Log Message:
  -----------
  AMDGPU: Fix overriding SubtargetPredicate in MUBUF_Real_gfx90a (#96351)


  Commit: b9c7d60a2f2c5b26f4a6543dd9472959a84c6d48
      https://github.com/llvm/llvm-project/commit/b9c7d60a2f2c5b26f4a6543dd9472959a84c6d48
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/BUFInstructions.td

  Log Message:
  -----------
  AMDGPU: Start fixing inconsistencies in usage of SubtargetPredicate (#96337)

SubtargetPredicate should be the primary "does this instruction exist"
predicate, with OtherPredicates used for other side pieces of information.

Changes like 856d1c4410 were backwards. The problematic usage is how
GFX12 is using HasRestrictedOffset. The multiclasses for buffers
should probably be split up instead of hiding OtherPredicates inside
the buffer atomic multiclasses. The two cases are mutually exclusive
and really need a negated predicate for the not-gfx12 case.

It's pretty terrible we have to manage this in the first place.
TableGen should be able to figure out the required predicates
from any instructions that appear in the pattern output.


  Commit: 781d5cf32a2512b8010831df750daa8003d6bf5a
      https://github.com/llvm/llvm-project/commit/781d5cf32a2512b8010831df750daa8003d6bf5a
  Author: Nick Desaulniers (paternity leave) <nickdesaulniers at users.noreply.github.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M libc/startup/linux/CMakeLists.txt

  Log Message:
  -----------
  [libc][startup] check that we're cross compiling and using LLD (#96357)

We only need to set `--target=` for LLD when cross compiling. This should fix
the host build using BFD or targeting the host.

Fixes: #96342


  Commit: 9b78ddf3b2abfb3e2063e3dad2a326f5eabc1618
      https://github.com/llvm/llvm-project/commit/9b78ddf3b2abfb3e2063e3dad2a326f5eabc1618
  Author: Jeff Niu <jeff at modular.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Support/ThreadLocalCache.h

  Log Message:
  -----------
  [mlir] Optimize ThreadLocalCache by removing atomic bottleneck (attempt #3) (#93315)

The ThreadLocalCache implementation is used by the MLIRContext (among
other things) to try to manage thread contention in the StorageUniquers.
There is a bunch of fancy shared pointer/weak pointer setups that
basically keeps everything alive across threads at the right time, but a
huge bottleneck is the `weak_ptr::lock` call inside the `::get` method.

This is because the `lock` method has to hit the atomic refcount several
times, and this is bottlenecking performance across many threads.
However, all this is doing is checking whether the storage is
initialized. Importantly, when the `PerThreadInstance` goes out of
scope, it does not remove all of its associated entries from the
thread-local hash map (it contains dangling `PerThreadInstance *` keys).
The `weak_ptr` also allows the thread local cache to synchronize with
the `PerThreadInstance`'s destruction:

1. if `ThreadLocalCache` destructs, the `weak_ptr`s that reference its
contained values are immediately invalidated
2. if `CacheType` destructs within a thread, any entries still live are
removed from the owning `PerThreadInstance`, and it locks the `weak_ptr`
first to ensure it's kept alive long enough for the removal.

This PR changes the TLC entries to contain a `shared_ptr<ValueT*>` and a
`weak_ptr<PerInstanceState>`. It gives the `PerInstanceState` entries a
`weak_ptr<ValueT*>` on top of the `unique_ptr<ValueT>`. This enables
`ThreadLocalCache::get` to check if the value is initialized by
dereferencing the `shared_ptr<ValueT*>` and check if the contained
pointer is null. When `PerInstanceState` destructs, the values inside
the TLC are written to nullptr. The TLC uses the
`weak_ptr<PerInstanceState>` to satisfy (2).

(1) is no longer the case. When `ThreadLocalCache` begins destruction,
the `weak_ptr<PerInstanceState>` are invalidated, but not the
`shared_ptr<ValueT*>`. This is OK: because the overall object is being
destroyed, `::get` cannot get called and because the
`shared_ptr<PerInstanceState>` finishes destruction before freeing the
pointer, it cannot get reallocated to another `ThreadLocalCache` during
destruction. I.e. the values inside the TLC associated with a
`PerInstanceState` cannot be read during destruction. The most important
thing is to make sure destruction of the TLC doesn't race with the
destructor of `PerInstanceState`. Because `PerInstanceState` carries
`weak_ptr` references into the TLC, we guarantee to not have any
use-after-frees.


  Commit: 73a2232720898acfee26588520f795b2d97d0000
      https://github.com/llvm/llvm-project/commit/73a2232720898acfee26588520f795b2d97d0000
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/add.v2i16.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.intersect_ray.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/sub.v2i16.ll
    M llvm/test/CodeGen/AMDGPU/bitreverse-inline-immediates.ll
    M llvm/test/CodeGen/AMDGPU/fsqrt.f32.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_i64.ll
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.intersect_ray.ll
    M llvm/test/CodeGen/AMDGPU/med3-knownbits.ll
    M llvm/test/CodeGen/AMDGPU/permute_i8.ll
    M llvm/test/CodeGen/AMDGPU/shrink-add-sub-constant.ll
    M llvm/test/CodeGen/AMDGPU/shrink-insts-scalar-bit-ops.mir
    M llvm/test/CodeGen/AMDGPU/udiv64.ll
    M llvm/test/CodeGen/AMDGPU/urem64.ll

  Log Message:
  -----------
  AMDGPU: Materialize bitwise not of inline immediates (#95960)

If we have a bitwise negated inline immediate, we can materialize
it with s_not_b32/v_not_b32. This mirrors the current bitreverse
handling.
    
As a side effect, we also now handle the bitreversed FP immediate
case.
    
One test shows some VOPD regressions on gfx11 which should
probably be fixed. Previously the 2 v_mov_b32 could be packed,
but now the mismatched opcode + mov can't. This problem already
already existed for the bfrev case, it just happens more often now.


  Commit: 435635652fd226fa292abcff6a10d3df9dbd74e3
      https://github.com/llvm/llvm-project/commit/435635652fd226fa292abcff6a10d3df9dbd74e3
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M flang/docs/Intrinsics.md
    M flang/runtime/execute.cpp
    M flang/unittests/Runtime/CommandTest.cpp

  Log Message:
  -----------
  Revert "[flang] Fix execute_command_line cmdstat is not set when error occurs" (#96365)

Reverts llvm/llvm-project#93023

Reverting due to buildbot failure.
https://lab.llvm.org/buildbot/#/builders/41/builds/227
test-suite ::
Fortran/gfortran/regression/gfortran-regression-execute-regression__execute_command_line_3_f90


  Commit: 7d2c2af0453c28d0902668523099a1f46a0bc348
      https://github.com/llvm/llvm-project/commit/7d2c2af0453c28d0902668523099a1f46a0bc348
  Author: Heejin Ahn <aheejin at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    A lld/test/wasm/Inputs/signature-mismatch-debug-info-a.s
    A lld/test/wasm/Inputs/signature-mismatch-debug-info-b.s
    A lld/test/wasm/Inputs/signature-mismatch-debug-info-main.s
    A lld/test/wasm/signature-mismatch-debug-info.test
    M lld/wasm/InputChunks.h

  Log Message:
  -----------
  [lld][WebAssembly] Return 0 for synthetic function offsets (#96134)

When two or more functions' signatures differ, one of them is selected
and for other signatures `unreachable` stubs are generated:
https://github.com/llvm/llvm-project/blob/57778ec36c9c7e96b76a167f19dccbe00d49c9d4/lld/wasm/SymbolTable.cpp#L975
https://github.com/llvm/llvm-project/blob/57778ec36c9c7e96b76a167f19dccbe00d49c9d4/lld/wasm/SymbolTable.cpp#L852-L870

And when these `SyntheticFunction`s are generated, this constructor is
used,

https://github.com/llvm/llvm-project/blob/57778ec36c9c7e96b76a167f19dccbe00d49c9d4/lld/wasm/InputChunks.h#L266-L269
which does not set its `function` field:

https://github.com/llvm/llvm-project/blob/57778ec36c9c7e96b76a167f19dccbe00d49c9d4/lld/wasm/InputChunks.h#L304
As a result, the `function` field contains a garbage value for these
stub functions.

`InputFunction::getFunctionCodeOffset()` is called when relocations are
resolved for `.debug_info` section to get functions' PC locations. But
because these stub functions don't have their `function` field set, this
function segfaults:

https://github.com/llvm/llvm-project/blob/57778ec36c9c7e96b76a167f19dccbe00d49c9d4/lld/wasm/InputChunks.h#L282

This bug seems to be triggered when these conditions are met:
- There is a signature mismatch warning with multiple different
definitions (one definition with other declarations is not sufficient)
with weak linkage with the same name
- The 'stub' function containing unreachable has a callsite, meaning it
isn't DCE'd
- .debug_info section is generated (i.e., DWARF is used)

This PR initializes the field with `nullptr`, and in
`InputFunction::getFunctionCodeOffset`, checks if `function` is
`nullptr`, and if so, just returns 0. This function is called only for
resolving relocations in the `.debug_info` section, and addresses of
these stub functions, which are not the functions users wrote in the
first place, are not really meaningful anyway.


  Commit: b515d9ea1e4365f156dad06a91e7b0f18b1b67c7
      https://github.com/llvm/llvm-project/commit/b515d9ea1e4365f156dad06a91e7b0f18b1b67c7
  Author: Tulio Magno Quites Machado Filho <tuliom at redhat.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M compiler-rt/lib/hwasan/CMakeLists.txt

  Log Message:
  -----------
  [hwasan][aarch64] Fix missing DT_AARCH64_BTI_PLT flag (#95796)

When building hwasan on aarch64, the DT_AARCH64_BTI_PLT flag is missing
from libclang_rt.hwasan.so because some object files without
DT_AARCH64_BTI_PLT are linked in the final DSO.
These files are specific to riscv64 and x86_64, ending up with no
aarch64 code in them.

Avoid building and linking architecture-specific files unless the
architecture is listed in HWASAN_SUPPORTED_ARCH.


  Commit: 91db7add6d72d411a50c1d7265e7d115d6e4a882
      https://github.com/llvm/llvm-project/commit/91db7add6d72d411a50c1d7265e7d115d6e4a882
  Author: LLVM GN Syncbot <llvmgnsyncbot at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn

  Log Message:
  -----------
  [gn build] Port b515d9ea1e43


  Commit: a0e1b4a2444181287b6434152d9361dd81049e73
      https://github.com/llvm/llvm-project/commit/a0e1b4a2444181287b6434152d9361dd81049e73
  Author: NAKAMURA Takumi <geek4civic at gmail.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
    M llvm/test/Instrumentation/InstrProfiling/mcdc.ll

  Log Message:
  -----------
  [MC/DC][Coverage] Split out Read-modfy-Write to rmw_or(ptr,i8) (#96040)

`rmw_or` is defined as "private alwaysinline". At the moment, it has
just only simple "Read, Or, and Write", which is just same as the
current implementation.


  Commit: ba2f4964e3c013dfac4f5eac0be652679b2faec3
      https://github.com/llvm/llvm-project/commit/ba2f4964e3c013dfac4f5eac0be652679b2faec3
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/test/MC/AArch64/ELF_ARM64_large-relocations.s

  Log Message:
  -----------
  [MC][AArch64][NFC] Re-enable a test (#96344)

Part of the test did not run due to an incorrect prefix.

The test was added in [D27629](https://reviews.llvm.org/D27629).


  Commit: a41a46c665ffb50f129daadc8c7b081ddf0b1e37
      https://github.com/llvm/llvm-project/commit/a41a46c665ffb50f129daadc8c7b081ddf0b1e37
  Author: paperchalice <liujunchang97 at outlook.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineDominators.h
    M llvm/include/llvm/Passes/MachinePassRegistry.def
    M llvm/lib/CodeGen/MachineDominators.cpp
    M llvm/lib/Passes/PassBuilder.cpp

  Log Message:
  -----------
  [CodeGen][NewPM] Port machine dominator tree analysis to new pass manager (#95879)

- Add `MachineDominatorTreeAnalysis`
- Add `MachineDominatorTreePrinterPass` There is no test for this
analysis in codebase.

Also, the pass name is renamed to `machine-dom-tree` instead of
`machinedomtree`.


  Commit: 38458144bf74417aa36bdd468ce3b3d482cdaf99
      https://github.com/llvm/llvm-project/commit/38458144bf74417aa36bdd468ce3b3d482cdaf99
  Author: lntue <35648136+lntue at users.noreply.github.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M libc/config/baremetal/arm/entrypoints.txt
    M libc/config/baremetal/riscv/entrypoints.txt
    M libc/src/stdlib/CMakeLists.txt

  Log Message:
  -----------
  [libc][stdlib] Fix skipped libc.src.stdlib.freelist_malloc target for baremetal. (#96372)

Downstream build issue reported:
https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-linux-x64/b8744479865106393873/overview


  Commit: d69050d614cc3348fb639f4a1862e8b9a9ad9885
      https://github.com/llvm/llvm-project/commit/d69050d614cc3348fb639f4a1862e8b9a9ad9885
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/TokenAnnotatorTest.cpp

  Log Message:
  -----------
  [clang-format] Annotate r_paren before braced list as TT_CastRParen (#96271)

Fixes #96096.


  Commit: c2735d2d5a66e42f004323c715bdefd5ef09882a
      https://github.com/llvm/llvm-project/commit/c2735d2d5a66e42f004323c715bdefd5ef09882a
  Author: lntue <35648136+lntue at users.noreply.github.com>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M libc/src/stdlib/CMakeLists.txt

  Log Message:
  -----------
  [libc][stdlib] Bring all GPU's alloc/free entrypoints under the same conditional. (#96373)


  Commit: 905e4ec747f917bb519a8229eb2dbe43743b1b3c
      https://github.com/llvm/llvm-project/commit/905e4ec747f917bb519a8229eb2dbe43743b1b3c
  Author: Poseydon42 <vvmposeydon at gmail.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    A llvm/test/Transforms/InstCombine/scmp.ll
    A llvm/test/Transforms/InstCombine/ucmp.ll

  Log Message:
  -----------
  [InstCombine] Implement folds of icmp of UCMP/SCMP call and a constant (#96118)

This patch handles various cases where an operation of the kind `icmp
(ucmp/scmp x, y), constant` folds to `icmp x, y`. Another patch with
cases where this operation folds to a constant (i.e. dumb cases like
`icmp eq (cmp x, y), 4` should be published in a couple of days.

I wasn't sure what negative tests should be added here, if any are
necessary at all. I'd love to hear your suggestions.

Proofs (ucmp): https://alive2.llvm.org/ce/z/qQ7ihz
Proofs (scmp): https://alive2.llvm.org/ce/z/cipKEn

---------

Co-authored-by: Nikita Popov <github at npopov.com>


  Commit: c5f5238a4aa385d4ae4ec1b509bd50e0a43b81ae
      https://github.com/llvm/llvm-project/commit/c5f5238a4aa385d4ae4ec1b509bd50e0a43b81ae
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/unittests/Target/SPIRV/SPIRVConvergenceRegionAnalysisTests.cpp

  Log Message:
  -----------
  [SPIRV] #include "llvm/IR/PassInstrumentation.h"


  Commit: 9486c35ecac59a451aaa923f47087e834f478dfb
      https://github.com/llvm/llvm-project/commit/9486c35ecac59a451aaa923f47087e834f478dfb
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp

  Log Message:
  -----------
  [ARM] Simplify ElfMappingSymbolInfo. NFC


  Commit: 87424778ef554e3d50a6b15f7a9c8b0d35368031
      https://github.com/llvm/llvm-project/commit/87424778ef554e3d50a6b15f7a9c8b0d35368031
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCFragment.h
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/MCSection.cpp
    M llvm/lib/MC/MCSymbol.cpp
    M llvm/lib/MC/MCWinCOFFStreamer.cpp

  Log Message:
  -----------
  [MC] Remove the Parent parameter from MCFragment ctor callers. NFC


  Commit: 9b44cfbdbf694e29d80bea688f3ecbfd1d764bfd
      https://github.com/llvm/llvm-project/commit/9b44cfbdbf694e29d80bea688f3ecbfd1d764bfd
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCFragment.h
    M llvm/lib/MC/MCFragment.cpp
    M llvm/lib/MC/MCWinCOFFStreamer.cpp

  Log Message:
  -----------
  [MC] Remove unused section parameters from MCFragment constructors


  Commit: 82f9b0fbda81232d1294aafa2611a84bba082da6
      https://github.com/llvm/llvm-project/commit/82f9b0fbda81232d1294aafa2611a84bba082da6
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCFragment.h
    M llvm/lib/MC/MCFragment.cpp

  Log Message:
  -----------
  [MC] Remove Parent initializer from MCFragment ctor


  Commit: bfd263a34df5d3916eb8425bb070618324acabfa
      https://github.com/llvm/llvm-project/commit/bfd263a34df5d3916eb8425bb070618324acabfa
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M lldb/include/lldb/Expression/ExpressionParser.h
    M lldb/source/Expression/CMakeLists.txt
    A lldb/source/Expression/ExpressionParser.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h
    M lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp

  Log Message:
  -----------
  [lldb][ExpressionParser][NFCI] Add new DoPrepareForExecution interface to be implemented by language plugins (#96290)

This patch adds a new `DoPrepareForExecution` API, which can be
implemented by the Clang and Swift language plugins. This also moves
`RunStaticInitializers` into `ExpressionParser::PrepareForExecution`, so
we call it consistently between language plugins.

This *should* be mostly NFC (the static initializers will still only run
after we finished parsing). We've been living on this patch downstream
for sometime now.

rdar://130267058


  Commit: 4684d0c0073669c1833be7bb127a149b1f7a5e65
      https://github.com/llvm/llvm-project/commit/4684d0c0073669c1833be7bb127a149b1f7a5e65
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCELFStreamer.h
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/include/llvm/MC/MCWasmStreamer.h
    M llvm/lib/MC/MCELFStreamer.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/MCWasmStreamer.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp

  Log Message:
  -----------
  [MC] emitLabelAtPos: change parameter to MCDataFragment &. NFC

emitLabelAtPos is only called by ARMELFStreamer with MCDataFragment.


  Commit: 369e24aa3852baccffe61c69ce891dc47fd5e176
      https://github.com/llvm/llvm-project/commit/369e24aa3852baccffe61c69ce891dc47fd5e176
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-21 (Fri, 21 Jun 2024)

  Changed paths:
    M llvm/lib/MC/MCWinCOFFStreamer.cpp

  Log Message:
  -----------
  [MC] Fix emitCOFFSafeSEH after 9b44cfbdbf694e29d80bea688f3ecbfd1d764bfd

Tested by lld/test/COFF/safeseh*.s but not by llvm/test/**


  Commit: c9c0c465a7bd0ce922da63410d79d04c663c6ffe
      https://github.com/llvm/llvm-project/commit/c9c0c465a7bd0ce922da63410d79d04c663c6ffe
  Author: LLVM GN Syncbot <llvmgnsyncbot at gmail.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/utils/gn/secondary/lldb/source/Expression/BUILD.gn

  Log Message:
  -----------
  [gn build] Port bfd263a34df5


  Commit: a89669cb6ba7d0fbda0785650f03390b55a7650f
      https://github.com/llvm/llvm-project/commit/a89669cb6ba7d0fbda0785650f03390b55a7650f
  Author: Alexis Engelke <engelke at in.tum.de>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86MCInstLower.cpp

  Log Message:
  -----------
  [X86][MC] Drop optional from LowerMachineOperand (#96338)

This caused the MCOperand to be returned in memory. An MCOperand is only
16 bytes and therefore can be returned in registers on x86-64 and
AArch64 (and others).


  Commit: a091bfe71fdde4358dbfc73926f875cb05121c00
      https://github.com/llvm/llvm-project/commit/a091bfe71fdde4358dbfc73926f875cb05121c00
  Author: Zhikai Zeng <backlight.zzk at gmail.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/CXX/expr/expr.prim/expr.prim.req/compound-requirement.cpp

  Log Message:
  -----------
  [Clang] fix access checking inside return-type-requirement of compound requirements (#95651)

fixes https://github.com/llvm/llvm-project/issues/93788 .


  Commit: 75006466296ed4b0f845cbbec4bf77c21de43b40
      https://github.com/llvm/llvm-project/commit/75006466296ed4b0f845cbbec4bf77c21de43b40
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCAsmLayout.h
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/include/llvm/MC/MCSection.h
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/MCSection.cpp
    M llvm/test/MC/MachO/pending-labels.s
    M llvm/tools/dsymutil/MachOUtils.cpp

  Log Message:
  -----------
  [MC] Remove pending labels

This commit removes the complexity introduced by pending labels in
https://reviews.llvm.org/D5915 by using a simpler approach. D5915 aimed
to ensure padding placement before `.Ltmp0` for the following code, but
at the cost of expensive per-instruction `flushPendingLabels`.

```
// similar to llvm/test/MC/X86/AlignedBundling/labeloffset.s
.bundle_lock align_to_end
  calll   .L0$pb
.bundle_unlock
.L0$pb:
  popl    %eax
.Ltmp0:   //// padding should be inserted before this label instead of after
  addl    $_GLOBAL_OFFSET_TABLE_+(.Ltmp0-.L0$pb), %eax
```

(D5915 was adjusted by https://reviews.llvm.org/D8072 and
https://reviews.llvm.org/D71368)

This patch achieves the same goal by setting the offset of the empty
MCDataFragment (`Prev`) in `layoutBundle`. This eliminates the need for
pending labels and simplifies the code.

llvm/test/MC/MachO/pending-labels.s (D71368): relocation symbols are
changed, but the result is still supported by linkers.


  Commit: b0ae923ada836fa2c9114ac2c5afb39466f49fe0
      https://github.com/llvm/llvm-project/commit/b0ae923ada836fa2c9114ac2c5afb39466f49fe0
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/ProfileData/InstrProf.h
    M llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
    M llvm/lib/ProfileData/InstrProf.cpp

  Log Message:
  -----------
  [ProfileData] Add a variant of getValueProfDataFromInst (#95993)

This patch adds a variant of getValueProfDataFromInst that returns
std::vector<InstrProfValueData> instead of
std::unique<InstrProfValueData[]>.  The new return type carries the
length with it, so we can drop out parameter ActualNumValueData.
Also, the caller can directly feed the return value into a range-based
for loop as shown in the patch.

I'm planning to migrate other callers of getValueProfDataFromInst to
the new variant in follow-up patches.


  Commit: 8e9c6bfb5075a498344521d5911b6bc9ab9c901f
      https://github.com/llvm/llvm-project/commit/8e9c6bfb5075a498344521d5911b6bc9ab9c901f
  Author: paperchalice <liujunchang97 at outlook.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachinePassManager.h
    M llvm/include/llvm/IR/PassManager.h
    M llvm/lib/CodeGen/RegAllocFast.cpp
    M llvm/lib/Passes/PassBuilder.cpp

  Log Message:
  -----------
  [CodeGen][NewPM] Extract MachineFunctionProperties modification part to an RAII class (#94854)

Modify MachineFunctionProperties in PassModel makes `PassT P;
P.run(...);` not work properly. This is a necessary compromise.


  Commit: 4a7bf42a9b83144db8a11ac06cce4da21166e6a2
      https://github.com/llvm/llvm-project/commit/4a7bf42a9b83144db8a11ac06cce4da21166e6a2
  Author: Emilia Kond <emilia at rymiel.space>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/TokenAnnotatorTest.cpp

  Log Message:
  -----------
  [clang-format] Don't count template template parameter as declaration (#95025)

In ContinuationIndenter::mustBreak, a break is required between a
template declaration and the function/class declaration it applies to,
if the template declaration spans multiple lines.

However, this also includes template template parameters, which can
cause extra erroneous line breaks in some declarations.

This patch makes template template parameters not be counted as template
declarations.

Fixes https://github.com/llvm/llvm-project/issues/93793
Fixes https://github.com/llvm/llvm-project/issues/48746


  Commit: 4145ad2bac4bb99d5034d60c74bb2789f6c6e802
      https://github.com/llvm/llvm-project/commit/4145ad2bac4bb99d5034d60c74bb2789f6c6e802
  Author: paperchalice <liujunchang97 at outlook.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachinePassManager.h

  Log Message:
  -----------
  [NewPM] Add deduction guide to `MFPropsModifier` to suppress warning (#96384)

Buildbot `clang-ppc64le-rhel` failed with:
```sh
error: 'MFPropsModifier' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
note: add a deduction guide to suppress this warning
```
after #94854. This PR adds deduction guide explicitly to suppress
warning.


  Commit: 34d44eb41dfbbbf01712719558b02763334fbeb3
      https://github.com/llvm/llvm-project/commit/34d44eb41dfbbbf01712719558b02763334fbeb3
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/TokenAnnotatorTest.cpp

  Log Message:
  -----------
  Revert "[clang-format] Don't count template template parameter as declaration" (#96388)

Reverts llvm/llvm-project#95025 ; many bots are broken


  Commit: c3fe1c4472e72a3832be911e8fa9098fa84762a0
      https://github.com/llvm/llvm-project/commit/c3fe1c4472e72a3832be911e8fa9098fa84762a0
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M lldb/include/lldb/Target/RemoteAwarePlatform.h
    M lldb/source/Target/RemoteAwarePlatform.cpp

  Log Message:
  -----------
  [lldb] Resolve executables more aggressively on the host

When unifying the ResolveExecutable implementations in #96256, I missed
that RemoteAwarePlatform was able to resolve executables more
aggressively. The host platform can rely on the current working
directory to make relative paths absolute and resolve things like home
directories.

This should fix command-target-create-resolve-exe.test.


  Commit: 0fccae9d8e64f3b0f415946000d6ca79ae1255db
      https://github.com/llvm/llvm-project/commit/0fccae9d8e64f3b0f415946000d6ca79ae1255db
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    R clang/utils/ClangDataFormat.py

  Log Message:
  -----------
  [clang][utils] Remove ClangDataFormat.py for now (#96385)

This formatter doesn't currently provide much value. It only formats
`SourceLocation` and `QualType`. The only formatting it does for
`QualType` is call `getAsString()` on it.

The main motivator for the removal however is that the formatter
implementation can be very slow (since it uses the expression evaluator
in non-trivial ways).

Not infrequently do we get reports about LLDB being slow when debugging
Clang, and it turns out the user was loading `ClangDataFormat.py` in
their `.lldbinit` by default.

We should eventually develop proper formatters for Clang data-types, but
these are currently not ready. So this patch removes them in the
meantime to avoid users shooting themselves in the foot, and giving the
wrong impression of these being reference implementations.


  Commit: 485d7eaefd93c4f6bc8c51c9a169ffb22ce3a898
      https://github.com/llvm/llvm-project/commit/485d7eaefd93c4f6bc8c51c9a169ffb22ce3a898
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/MCSection.cpp

  Log Message:
  -----------
  [MC] Remove remnant code related to pending labels


  Commit: a4ca22506c96cd8508bcfb93a26941f19c7179ef
      https://github.com/llvm/llvm-project/commit/a4ca22506c96cd8508bcfb93a26941f19c7179ef
  Author: Alex MacLean <amaclean at nvidia.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    A llvm/test/Transforms/InstCombine/fmul-bool.ll

  Log Message:
  -----------
  [InstCombine] (uitofp bool X) * Y --> X ? Y : 0 (#96216)

Fold `mul (uitofp i1 X), Y` to `select i1 X, Y, 0.0` when the `mul` is
`nnan` and `nsz`

Proof: https://alive2.llvm.org/ce/z/_stiPm


  Commit: 170c194ec19c76deee33d8aa8b288368c574f7a0
      https://github.com/llvm/llvm-project/commit/170c194ec19c76deee33d8aa8b288368c574f7a0
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/InterpBuiltin.cpp
    M clang/test/CodeGen/cfstring.c

  Log Message:
  -----------
  [clang][Interp] Fix CFStringMakeConstantString etc. evaluation

We're ultimately expected to return an APValue simply pointing to
the CallExpr, not any useful value. Do that by creating a global
variable for the call.


  Commit: 8fa4fe1f995a9bc85666d63e84c094f9a09686b5
      https://github.com/llvm/llvm-project/commit/8fa4fe1f995a9bc85666d63e84c094f9a09686b5
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/lib/MC/MCExpr.cpp

  Log Message:
  -----------
  [MC] AttemptToFoldSymbolOffsetDifference: remove MCDummyFragment check. NFC

This was added by 507efbcce03d8c2c5dbea3028bc39f02c88fea79
([MC] Fold A-B when A is a pending label or A/B are separated by a
MCFillFragment) to account for pending labels and is now unneeded after
the removal of pending labels (75006466296ed4b0f845cbbec4bf77c21de43b40).


  Commit: 2c9c22c6e295b1176225b63ae4cbbceb216da55e
      https://github.com/llvm/llvm-project/commit/2c9c22c6e295b1176225b63ae4cbbceb216da55e
  Author: Daniel Paoliello <danpao at microsoft.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
    M llvm/test/CodeGen/AArch64/arm64ec-entry-thunks.ll
    M llvm/test/CodeGen/AArch64/arm64ec-exit-thunks.ll

  Log Message:
  -----------
  [ARM64EC] Fix thunks for vector args (#96003)

The checks when building a thunk to decide if an arg needed to be cast
to/from an integer or redirected via a pointer didn't match how arg
types were changed in `canonicalizeThunkType`, this caused LLVM to ICE
when using vector types as args due to incorrect types in a call
instruction.

Instead of duplicating these checks, we should check if the arg type
differs between x64 and AArch64 and then cast or redirect as
appropriate.


  Commit: 6621505a1eb5428b13d2d29f377050624ef5531c
      https://github.com/llvm/llvm-project/commit/6621505a1eb5428b13d2d29f377050624ef5531c
  Author: Emilia Kond <emilia at rymiel.space>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/test/Index/overriding-ftemplate-comments.cpp
    M clang/unittests/Format/TokenAnnotatorTest.cpp

  Log Message:
  -----------
  [clang-format] Don't count template template parameter as declaration (#96396)

Reapply 4a7bf42a9b83144db8a11ac06cce4da21166e6a2
which was reverted in 34d44eb41dfbbbf01712719558b02763334fbeb3

Not sure why there are tests elsewhere in clang that rely on the output
of clang-format, but they were wrong


  Commit: ca5ba2e46445caf2c8063a53eb6351fb596190e8
      https://github.com/llvm/llvm-project/commit/ca5ba2e46445caf2c8063a53eb6351fb596190e8
  Author: Sven Verdoolaege <sven at cerebras.net>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/Support/FormatProviders.h

  Log Message:
  -----------
  [Support] Avoid warning about possibly uninitialized variable in format_provider (#95704)

The original implementation of HelperFunctions::consumeHexStyle always
sets Style when it returns true, but this is difficult for a compiler
to understand since it requires seeing that Str starts
with either an "x" or an "X" when starts_with_insensitive("x")
return true.
In particular, g++ 12 warns that HS may be used uninitialized
in the format_provider::format caller.

Change HelperFunctions::consumeHexStyle to return an optional
HexPrintStyle and to make the fact that Str necessarily starts
with an "X" when all other cases do not apply more explicit.
This helps both the compiler and the human reader of the code.

Co-authored-by: Sven Verdoolaege <sven.verdoolaege at gmail.com>


  Commit: fc23564c44f3eff1847462253d43c08b85489148
      https://github.com/llvm/llvm-project/commit/fc23564c44f3eff1847462253d43c08b85489148
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/Frontend/OpenMP/OMP.td

  Log Message:
  -----------
  [NFC][Clang][OMPX] Fix a typo in `OMP.td` (#96398)


  Commit: 8cb6e587fd40b97983e445ee3f17f4c6d7190df7
      https://github.com/llvm/llvm-project/commit/8cb6e587fd40b97983e445ee3f17f4c6d7190df7
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCContext.h
    M llvm/lib/MC/MCCodeView.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCFragment.cpp

  Log Message:
  -----------
  [MC] Allocate MCFragment with a bump allocator

#95197 and 75006466296ed4b0f845cbbec4bf77c21de43b40 eliminated all raw
`new MCXXXFragment`. We can now place fragments in a bump allocator.
In addition, remove the dead `Kind == FragmentType(~0)` condition.

~CodeViewContext may call `StrTabFragment->destroy()` and need to be
reset before `FragmentAllocator.Reset()`.
Tested by llvm/test/MC/COFF/cv-compiler-info.ll using asan.

Pull Request: https://github.com/llvm/llvm-project/pull/96402


  Commit: c9f6a5e49519f860f20f808b1af84dc3fc50ff91
      https://github.com/llvm/llvm-project/commit/c9f6a5e49519f860f20f808b1af84dc3fc50ff91
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCAssembler.h
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCFragment.cpp

  Log Message:
  -----------
  [MC] Move computeBundlePadding closer to its only caller. NFC

There is only one caller after #95188.


  Commit: f5b93ae5884dd72bd145576344e4effff685cf5e
      https://github.com/llvm/llvm-project/commit/f5b93ae5884dd72bd145576344e4effff685cf5e
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M clang/lib/Frontend/TextDiagnostic.cpp
    M clang/lib/Lex/PPDirectives.cpp

  Log Message:
  -----------
  [clang] Fix -Wsign-compare in 32-bit builds


  Commit: 3ba7599842be852abdad9db2ad75c35263ad517e
      https://github.com/llvm/llvm-project/commit/3ba7599842be852abdad9db2ad75c35263ad517e
  Author: Nico Weber <thakis at chromium.org>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/utils/gn/secondary/clang-tools-extra/clang-doc/tool/BUILD.gn

  Log Message:
  -----------
  [gn] port ade28a77ed1776 (clang-doc asset copy to share/clang)


  Commit: f3005d5b86ca947977f6056552b2a4648b9f0460
      https://github.com/llvm/llvm-project/commit/f3005d5b86ca947977f6056552b2a4648b9f0460
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTWriter.cpp

  Log Message:
  -----------
  [Serialization] Change input file content hash from size_t to uint64_t

https://reviews.llvm.org/D67249 added content hash (see
-fvalidate-ast-input-files-content) using llvm::hash_code (size_t).
The hash value is 32-bit on 32-bit systems, which was unintentional.

Fix #96379: #96136 switched the hash function to xxh3_64bit but did not
update the ContentHash type, leading to mismatch between ASTReader and
ASTWriter.


  Commit: f73ac218a666e2017565f2210b47332ddcf55f00
      https://github.com/llvm/llvm-project/commit/f73ac218a666e2017565f2210b47332ddcf55f00
  Author: Farzon Lotfi <1802579+farzonl at users.noreply.github.com>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/include/clang/Basic/Builtins.td
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/builtins-elementwise-math.c
    M clang/test/CodeGen/strictfp-elementwise-bulitins.cpp
    A clang/test/CodeGenHLSL/builtins/acos.hlsl
    A clang/test/CodeGenHLSL/builtins/asin.hlsl
    A clang/test/CodeGenHLSL/builtins/atan.hlsl
    A clang/test/CodeGenHLSL/builtins/cosh.hlsl
    A clang/test/CodeGenHLSL/builtins/sinh.hlsl
    A clang/test/CodeGenHLSL/builtins/tanh.hlsl
    M clang/test/Sema/aarch64-sve-vector-trig-ops.c
    M clang/test/Sema/builtins-elementwise-math.c
    M clang/test/Sema/riscv-rvv-vector-trig-ops.c
    M clang/test/SemaCXX/builtins-elementwise-math.cpp
    M clang/test/SemaHLSL/BuiltIns/half-float-only-errors.hlsl

  Log Message:
  -----------
  [HLSL][clang] Add elementwise builtins for trig intrinsics (#95999)

This change is part of this proposal:
https://discourse.llvm.org/t/rfc-all-the-math-intrinsics/78294

This is part 3 of 4 PRs. It sets the ground work for using the
intrinsics in HLSL.

Add HLSL frontend apis for `acos`, `asin`, `atan`, `cosh`, `sinh`, and
`tanh`
https://github.com/llvm/llvm-project/issues/70079
https://github.com/llvm/llvm-project/issues/70080
https://github.com/llvm/llvm-project/issues/70081
https://github.com/llvm/llvm-project/issues/70083
https://github.com/llvm/llvm-project/issues/70084
https://github.com/llvm/llvm-project/issues/95966


  Commit: 05ba5c0648ae5e80d5afce270495bf3b1eef9af4
      https://github.com/llvm/llvm-project/commit/05ba5c0648ae5e80d5afce270495bf3b1eef9af4
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCStreamer.h
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/lib/MC/MCStreamer.cpp

  Log Message:
  -----------
  [MC] MCSectionSubPair: replace const MCExpr * with uint32_t


  Commit: 61c4d7b9231d22f8cff7a6a6b3b52d401cba9f6f
      https://github.com/llvm/llvm-project/commit/61c4d7b9231d22f8cff7a6a6b3b52d401cba9f6f
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    A llvm/test/Transforms/InstCombine/select-cmp-eq-op-fold.ll

  Log Message:
  -----------
  [InstCombine] Add tests for expanding `foldSelectValueEquivalence`; NFC


  Commit: b37a4b9991a0a669594b53caa0eb75f489211d69
      https://github.com/llvm/llvm-project/commit/b37a4b9991a0a669594b53caa0eb75f489211d69
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/test/Transforms/InstCombine/select-cmp-eq-op-fold.ll

  Log Message:
  -----------
  [InstCombine] Improve coverage of `foldSelectValueEquivalence` for non-constants

If f(Y) simplifies to Y, replace with Y. This requires Y to be
non-undef.

Closes #94719


  Commit: 95f983f8239c071712cc42d0d54d3ebfa7c32a22
      https://github.com/llvm/llvm-project/commit/95f983f8239c071712cc42d0d54d3ebfa7c32a22
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCContext.h
    M llvm/include/llvm/MC/MCELFStreamer.h
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/include/llvm/MC/MCSection.h
    M llvm/include/llvm/MC/MCSectionCOFF.h
    M llvm/include/llvm/MC/MCSectionDXContainer.h
    M llvm/include/llvm/MC/MCSectionELF.h
    M llvm/include/llvm/MC/MCSectionGOFF.h
    M llvm/include/llvm/MC/MCSectionMachO.h
    M llvm/include/llvm/MC/MCSectionSPIRV.h
    M llvm/include/llvm/MC/MCSectionWasm.h
    M llvm/include/llvm/MC/MCSectionXCOFF.h
    M llvm/include/llvm/MC/MCStreamer.h
    M llvm/include/llvm/MC/MCWasmStreamer.h
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/MCAsmStreamer.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCELFStreamer.cpp
    M llvm/lib/MC/MCMachOStreamer.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/lib/MC/MCSectionCOFF.cpp
    M llvm/lib/MC/MCSectionDXContainer.cpp
    M llvm/lib/MC/MCSectionELF.cpp
    M llvm/lib/MC/MCSectionMachO.cpp
    M llvm/lib/MC/MCSectionWasm.cpp
    M llvm/lib/MC/MCSectionXCOFF.cpp
    M llvm/lib/MC/MCStreamer.cpp
    M llvm/lib/MC/MCWasmStreamer.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
    M llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
    M llvm/lib/Target/Mips/MipsAsmPrinter.cpp
    M llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
    M llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.h
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
    M llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVTargetStreamer.h

  Log Message:
  -----------
  [MC] Change Subsection parameters from const MCExpr * to uint32_t

Follow-up to 05ba5c0648ae5e80d5afce270495bf3b1eef9af4. uint32_t is
preferred over const MCExpr * in the section stack uses because it
should only be evaluated once. Change the paramter type to match.


  Commit: 6ec1ddfd72656cbf8e4185239175e52d50e0f4a3
      https://github.com/llvm/llvm-project/commit/6ec1ddfd72656cbf8e4185239175e52d50e0f4a3
  Author: ZhangYin <zhangyin2018 at iscas.ac.cn>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M libcxx/docs/Status/ParallelismProjects.csv
    M libcxx/include/experimental/__simd/reference.h
    M libcxx/include/experimental/simd
    A libcxx/test/std/experimental/simd/simd.reference/reference_swap.pass.cpp

  Log Message:
  -----------
  [libc++] <experimental/simd> Add swap functions of simd reference (#86478)


  Commit: e7622ab4721141d9e6af6041fa7f9bbc1029e9aa
      https://github.com/llvm/llvm-project/commit/e7622ab4721141d9e6af6041fa7f9bbc1029e9aa
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-22 (Sat, 22 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/lib/MC/MCObjectStreamer.cpp

  Log Message:
  -----------
  [MC] Remove unused MCObjectStreamer::CurSubsectionIdx. NFC


  Commit: 346c4a88afedcef3da40f68c83f0a5b3e0ac61ea
      https://github.com/llvm/llvm-project/commit/346c4a88afedcef3da40f68c83f0a5b3e0ac61ea
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
    M mlir/test/Target/LLVMIR/nvvmir.mlir

  Log Message:
  -----------
  [mlir][NVVM] Disallow results on kernel functions (#96399)

Functions that have the `nvvm.kernel` attribute should have 0 results.


  Commit: 3f33d2f3ca570f1e4e016a07f049724fdff6dad9
      https://github.com/llvm/llvm-project/commit/3f33d2f3ca570f1e4e016a07f049724fdff6dad9
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M mlir/lib/Conversion/GPUCommon/GPUOpsLowering.cpp
    M mlir/lib/Conversion/GPUCommon/GPUOpsLowering.h
    M mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir

  Log Message:
  -----------
  [mlir][GPUToNVVM] Fix memref function args/results (#96392)

The `gpu.func` op lowering accounts for memref arguments/results (both
"normal" and bare-pointer supported), but the `gpu.return` op lowering
did not. The lowering produced invalid IR that did not verify.

This commit uses the same lowering strategy as for `func.return` in the
`gpu.return` lowering. (The C++ implementation is copied. We may want to
share some code between `func` and `gpu` lowerings in the future.)


  Commit: a440a96ec2084985bca71e2b90b33bd07af3e65e
      https://github.com/llvm/llvm-project/commit/a440a96ec2084985bca71e2b90b33bd07af3e65e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M clang/test/CodeGenCUDA/amdgpu-atomic-ops.cu
    M llvm/lib/Target/AMDGPU/AMDGPU.td
    M llvm/lib/Target/AMDGPU/BUFInstructions.td
    M llvm/lib/Target/AMDGPU/FLATInstructions.td
    M llvm/lib/Target/AMDGPU/GCNSubtarget.h
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/flat-atomicrmw-fmax.ll
    M llvm/test/CodeGen/AMDGPU/flat-atomicrmw-fmin.ll
    M llvm/test/CodeGen/AMDGPU/global-atomicrmw-fmax.ll
    M llvm/test/CodeGen/AMDGPU/global-atomicrmw-fmin.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_scan_fmax.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_scan_fmin.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.fmax.f32.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.fmax.f64.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.fmin.f32.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.fmin.f64.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f32-agent.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f32-system.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f64-agent.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f64-system.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-rmw-fmax.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-rmw-fmin.ll

  Log Message:
  -----------
  AMDGPU: Start selecting flat/global atomicrmw fmin/fmax. (#95592)

Define subtarget features for atomic fmin/fmax support.

The flat/global support is a real messe. We had float/double support at
the beginning in gfx6 and gfx7. gfx8 removed these. gfx10 reintroduced them.
gfx11 removed the f64 versions again.

gfx9 partially reintroduced them, in gfx90a and gfx940 but only for f64.


  Commit: 414c74149c0085e3c11496af171217d5317481e1
      https://github.com/llvm/llvm-project/commit/414c74149c0085e3c11496af171217d5317481e1
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmax.ll
    M llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmin.ll

  Log Message:
  -----------
  AMDGPU: Start selecting buffer fat pointer atomicrmw fmin/fmax (#95593)


  Commit: 70c8b9c24a7cf2b7c6e65675cbdb42a65ff668ba
      https://github.com/llvm/llvm-project/commit/70c8b9c24a7cf2b7c6e65675cbdb42a65ff668ba
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M llvm/include/llvm/IR/IntrinsicsAMDGPU.td
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUSearchableTables.td
    M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
    M llvm/lib/Target/AMDGPU/DSInstructions.td
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/Bitcode/amdgcn-atomic.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fp-atomics-gfx940.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fp64-atomics-gfx90a.ll
    R llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.ds.fadd.ll
    M llvm/test/CodeGen/AMDGPU/fp-atomics-gfx1200.ll
    M llvm/test/CodeGen/AMDGPU/fp-atomics-gfx940.ll
    M llvm/test/CodeGen/AMDGPU/fp64-atomics-gfx90a.ll
    R llvm/test/CodeGen/AMDGPU/lds-atomic-fadd.ll

  Log Message:
  -----------
  AMDGPU: Remove ds atomic fadd intrinsics (#95396)

These have been replaced with atomicrmw fadd


  Commit: 3ae6755719c6dfc07761b4e9bdac8c86bcb41734
      https://github.com/llvm/llvm-project/commit/3ae6755719c6dfc07761b4e9bdac8c86bcb41734
  Author: Shan Huang <52285902006 at stu.ecnu.edu.cn>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Scalar/DivRemPairs.cpp
    A llvm/test/Transforms/DivRemPairs/X86/preserving-debugloc-frx-fry-mul-sub.ll
    A llvm/test/Transforms/DivRemPairs/X86/preserving-debugloc-realrem.ll

  Log Message:
  -----------
  [DebugInfo][DivRemPairs] Fix missing debug location updates (#96045)

Fix #96014 .


  Commit: f7fc72e281e26082d98b26c95c7ffc93393b3920
      https://github.com/llvm/llvm-project/commit/f7fc72e281e26082d98b26c95c7ffc93393b3920
  Author: Zain Jaffal <zain at jjaffal.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    A llvm/test/Transforms/InstCombine/fold-a-or-b-zero.ll

  Log Message:
  -----------
  [InstCombine] fold `(a == c && b != c) || (a != c && b == c))` to `(a == c) == (b != c)` (#94915)

resolves https://github.com/llvm/llvm-project/issues/92966

alive proof
https://alive2.llvm.org/ce/z/bLAQBS


  Commit: f372bb45e39b7eae94930fc419724e12596a8361
      https://github.com/llvm/llvm-project/commit/f372bb45e39b7eae94930fc419724e12596a8361
  Author: Kareem Ergawy <kareem.ergawy at amd.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/openmp-private.mlir

  Log Message:
  -----------
  [OpenMP][LLVM] Clone `omp.private` op in the parent module (#96024)

Fixes a crash uncovered by test 0007_0019.f90 in the Fujitsu test suite.

Previously, in the `PrivCB`, we cloned the `omp.private` op without
inserting it in the parent module of the original op. This causes issues
whenever there is an op that needs to lookup the parent module (e.g. for
symbol lookup). This PR fixes the issue by cloning in the parent module
instead of creating an orphaned op.


  Commit: eb76bc38ffc286e62fdb8f8d897b5de04b2575be
      https://github.com/llvm/llvm-project/commit/eb76bc38ffc286e62fdb8f8d897b5de04b2575be
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
    M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.ll
    M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll
    M llvm/test/Transforms/LoopStrengthReduce/RISCV/lsr-drop-solution.ll

  Log Message:
  -----------
  [RISCV] Relax RISCVInsertVSETVLI output VL peeking to cover registers (#96200)

If the AVL in a VSETVLIInfo is the output VL of a vsetvli with the same
VLMAX, we treat it as the AVL of said vsetvli.

This allows us to remove a true dependency as well as treating
VSETVLIInfos as equal in more places and avoid toggles.

We do this in two places, needVSETVLI and computeInfoForInstr. However
we don't do this in computeInfoForInstr's vsetvli equivalent,
getInfoForVSETVLI.

We also have a restriction only in computeInfoForInstr that the AVL
can't be a register as we want to avoid extending live ranges.

This patch does two interlinked things:

1) It adds this AVL "peeking" to getInfoForVSETVLI

2) It relaxes the constraint that the AVL can't be a register in
computeInfoForInstr, since it removes a use of the output VL which can
actually reduce register pressure. E.g. see the diff in
@vector_init_vsetvli_N and @test6

Now that getInfoForVSETVLI and computeInfoForInstr are consistent, we
can remove the check in needVSETVLI.

We also need to update how we update LiveIntervals in insertVSETVLI, as
we can now end up needing to extend the LiveRange of the AVL across
blocks.


  Commit: 8990763d2c974a179dd0ed42b0cfb7b8b60e9c0c
      https://github.com/llvm/llvm-project/commit/8990763d2c974a179dd0ed42b0cfb7b8b60e9c0c
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGExprConstant.cpp

  Log Message:
  -----------
  [clang][codegen][NFC] Improve const correctness


  Commit: c19028f364cceb4b2111c7956dcacbc257a96fd4
      https://github.com/llvm/llvm-project/commit/c19028f364cceb4b2111c7956dcacbc257a96fd4
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/include/llvm/Support/GenericDomTree.h
    M llvm/include/llvm/Support/GenericDomTreeConstruction.h

  Log Message:
  -----------
  [GenericDomTree] Use range-based for loops (NFC) (#96404)


  Commit: 48cf6b6bbe7a22bfcd98f82dc7afd21c9decd22f
      https://github.com/llvm/llvm-project/commit/48cf6b6bbe7a22bfcd98f82dc7afd21c9decd22f
  Author: Christian Sigg <csigg at google.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp

  Log Message:
  -----------
  [mlir] Fix use-after-free introduced in a9efcbf490d9b8f46ec37062ca8653b4068000e5.


  Commit: 6dc8de7a0abc7df8295273694fd9b951ed33708f
      https://github.com/llvm/llvm-project/commit/6dc8de7a0abc7df8295273694fd9b951ed33708f
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Utils/StaticValueUtils.h
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/test/Dialect/Linalg/promote.mlir
    M mlir/test/Dialect/Linalg/transform-promotion.mlir
    M mlir/test/Dialect/MemRef/canonicalize.mlir
    M mlir/test/Dialect/MemRef/subview.mlir
    M mlir/test/Dialect/Vector/vector-transfer-collapse-inner-most-dims.mlir
    M mlir/test/Dialect/Vector/vector-transferop-opt.mlir
    M mlir/test/Transforms/canonicalize.mlir

  Log Message:
  -----------
  [mlir][memref] Improve `memref.subview` type inference (#96421)

The `memref.subview` result type inference
(`SubViewOp::inferResultType`) sometimes used to produce a dynamic
offset when a static offset is possible.

When a dynamic value (stride, size, etc.) is multiplied with zero, the
result is always a "static 0". Based on this, the result type inference
implementation can be improved to produce more static type information
in memref types.


  Commit: 21fac2d1d060b0f9b11a746718e58d4cd1ee97e5
      https://github.com/llvm/llvm-project/commit/21fac2d1d060b0f9b11a746718e58d4cd1ee97e5
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCMachOStreamer.cpp
    M llvm/tools/dsymutil/MachOUtils.cpp

  Log Message:
  -----------
  [MC] Ensure all new sections have a MCDataFragment

MCAssembler::layout ensures that every section has at least one
fragment, which simplifies MCAsmLayout::getSectionAddressSize (see
e73353c7201a3080851d99a16f5fe2c17f7697c6 from 2010). It's better to
ensure the condition is satisfied at create time (COFF, GOFF, Mach-O) to
simplify more fragment processing.


  Commit: 05d167fc201b4f2e96108be0d682f6800a70c23d
      https://github.com/llvm/llvm-project/commit/05d167fc201b4f2e96108be0d682f6800a70c23d
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
    M llvm/lib/CodeGen/MLRegAllocEvictAdvisor.cpp
    M llvm/lib/DWARFLinker/Parallel/ArrayList.h
    M llvm/lib/ExecutionEngine/Orc/Core.cpp
    M llvm/lib/ExecutionEngine/Orc/Debugging/DebugInfoSupport.cpp
    M llvm/lib/ProfileData/InstrProfReader.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
    M llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
    M llvm/lib/Target/NVPTX/NVVMReflect.cpp
    M llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
    M llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
    M llvm/lib/Transforms/Utils/CodeLayout.cpp
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp
    M llvm/utils/TableGen/ARMTargetDefEmitter.cpp
    M llvm/utils/TableGen/ExegesisEmitter.cpp

  Log Message:
  -----------
  [llvm] Use llvm::sort (NFC) (#96434)


  Commit: ab9c2b1c54392e20d0b14d3b009146f8d68d192f
      https://github.com/llvm/llvm-project/commit/ab9c2b1c54392e20d0b14d3b009146f8d68d192f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

  Log Message:
  -----------
  [VPlan] Restructure code for BranchOnCond codegen. (NFCI)

Reoder code to exit early if the BranchOnCond isn't in an exiting block.
This delays retrieving the parent region, which may not be present.

Split off from https://github.com/llvm/llvm-project/pull/92651.


  Commit: 31a94bd783ae61f418bd730109992dfb30b70e87
      https://github.com/llvm/llvm-project/commit/31a94bd783ae61f418bd730109992dfb30b70e87
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.cpp

  Log Message:
  -----------
  [VPlan] Rename Preheader -> Entry in createInitialVPlan (NFCI).

Split off from https://github.com/llvm/llvm-project/pull/92651 as
suggested.


  Commit: ef1773ad57507727e4cafdb43b9c28ac03e01ae5
      https://github.com/llvm/llvm-project/commit/ef1773ad57507727e4cafdb43b9c28ac03e01ae5
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h

  Log Message:
  -----------
  [VPlan] Rewrite cloneSESE to use 2 depth-first passes (NFCI).

Rewrite cloneSESE to perform 2 depth-first passes with the first one
cloning blocks and the second one updating the predecessors and
successors.

This is needed to preserve the correct predecessor/successor ordering
with https://github.com/llvm/llvm-project/pull/92651 and has been split
off as suggested.


  Commit: de0d4827ee8fe440e6288c19cdcd5ffc9d3a4236
      https://github.com/llvm/llvm-project/commit/de0d4827ee8fe440e6288c19cdcd5ffc9d3a4236
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCWinCOFFStreamer.h
    M llvm/lib/MC/MCWinCOFFStreamer.cpp
    M llvm/lib/MC/WinCOFFObjectWriter.cpp

  Log Message:
  -----------
  [MC,COFF] Register .llvm.call-graph-profile in finalizeImpl

All sections should have been created before MCAssembler::layout so that
every section has an ordinal. Registering the section in
WinCOFFObjectWriter::executePostLayoutBinding is a hack.


  Commit: 1f98ac095e35f12a85d71101269df00279faa55c
      https://github.com/llvm/llvm-project/commit/1f98ac095e35f12a85d71101269df00279faa55c
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M libcxx/include/__atomic/atomic_base.h
    M libcxx/include/__charconv/chars_format.h
    M libcxx/include/__chrono/time_point.h
    M libcxx/include/__functional/function.h
    M libcxx/include/__iterator/data.h
    M libcxx/include/__iterator/size.h
    M libcxx/include/__numeric/gcd_lcm.h
    M libcxx/include/__random/discard_block_engine.h
    M libcxx/include/__string/char_traits.h
    M libcxx/include/__utility/pair.h
    M libcxx/include/deque
    M libcxx/include/experimental/propagate_const
    M libcxx/include/experimental/type_traits
    M libcxx/include/forward_list
    M libcxx/include/future
    M libcxx/include/list
    M libcxx/include/map
    M libcxx/include/queue
    M libcxx/include/set
    M libcxx/include/stack
    M libcxx/include/string
    M libcxx/include/string_view
    M libcxx/include/tuple

  Log Message:
  -----------
  [libc++][NFC] Replace _NOEXCEPT and _LIBCPP_CONSTEXPR macros with the keywords in C++11 code (#96387)


  Commit: b7048681675c2e953688837e9c1db4ec810d1166
      https://github.com/llvm/llvm-project/commit/b7048681675c2e953688837e9c1db4ec810d1166
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/test/MC/COFF/section-comdat.s

  Log Message:
  -----------
  [test] Use llvm-objdump for COFF/section-comdat.s


  Commit: f05fa6e0cfdc61f29bac94b157a56e048d10efd1
      https://github.com/llvm/llvm-project/commit/f05fa6e0cfdc61f29bac94b157a56e048d10efd1
  Author: antangelo <contact at antangelo.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M clang/include/clang/Basic/AttrDocs.td
    M llvm/lib/Target/AArch64/AArch64CallingConvention.td
    M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
    M llvm/test/CodeGen/AArch64/preserve_nonecc_call.ll

  Log Message:
  -----------
  [AArch64] Fix argument passing in reserved registers for preserve_nonecc (#96259)

These registers include:
- X19, used by LLVM as the base pointer
- X15 on Windows, where it is used for stack allocation. It can still be
used on Linux/Darwin.
- Adjust FrameLowering scratch register code to not assume X9 is
available if the calling convention is preserve_nonecc. The code will
then pick an unused register as scratch, and allow X9 to continue being
used for argument passing.


  Commit: abbf3bce94e0848f746e39186d36ebb938c1c5de
      https://github.com/llvm/llvm-project/commit/abbf3bce94e0848f746e39186d36ebb938c1c5de
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/lib/MC/MCMachOStreamer.cpp
    M llvm/lib/MC/MCWinCOFFStreamer.cpp

  Log Message:
  -----------
  [MC] Avoid some registerSection calls

changeSection is preferred to call the changeSectionImpl hook, which
registers the section symbol.


  Commit: 6082a50a9835907f5f90f1967e21dcd7f5ab30f1
      https://github.com/llvm/llvm-project/commit/6082a50a9835907f5f90f1967e21dcd7f5ab30f1
  Author: Francis Visoiu Mistrih <890283+francisvm at users.noreply.github.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp

  Log Message:
  -----------
  [RISCV] Mark all registers marked isConstant as reserved (#96002)

This makes use of the information from TableGen instead of duplicating
it in the code.


  Commit: 9d63506ddc6d60e220d967eb11779114075d401d
      https://github.com/llvm/llvm-project/commit/9d63506ddc6d60e220d967eb11779114075d401d
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp

  Log Message:
  -----------
  [MC] Move ELFWriter::createMemtagRelocs to AArch64ELFStreamer::finishImpl

Follow-up to https://reviews.llvm.org/D128958

* Move target-specific code away from the generic ELFWriter.
* All sections should have been created before MCAssembler::layout.
* Remove one `registerSection` use, which should be considered private to MCAssembler.


  Commit: cde799ff444b986e591a572b47765606c17c35a4
      https://github.com/llvm/llvm-project/commit/cde799ff444b986e591a572b47765606c17c35a4
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCELFStreamer.h
    M llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp

  Log Message:
  -----------
  [NC,MIPS] Avoid some registerSection calls

Similar to abbf3bce94e0848f746e39186d36ebb938c1c5de.

switchSection calls registerSection internally.


  Commit: 329e6b4fd5a995c7d8aa4d11aec1b901ca49e484
      https://github.com/llvm/llvm-project/commit/329e6b4fd5a995c7d8aa4d11aec1b901ca49e484
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/include/llvm/ProfileData/InstrProf.h

  Log Message:
  -----------
  [ProfileData] Use std::array for ValueProfData (#96440)

This patch uses std::array for ValueProfData.  Aside from reducing the
line count and code duplication, the use of std::array here makes it
easier to add a new type of value profiling without touching as many
places.


  Commit: a3cf14af77116c1395fe85b82200ab818e3fc5bc
      https://github.com/llvm/llvm-project/commit/a3cf14af77116c1395fe85b82200ab818e3fc5bc
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/MC/MCObjectFileInfo.cpp

  Log Message:
  -----------
  [MC,COFF] Remove unneeded BeginSymName

When `BeginSymName` is not null, `createTempSymbol` is called but the
created symbol is not attached to a fragment. This is used as a hack to
some DWARF tests to work. In the future, we should repurpose
`BeginSymbol` as the section symbol in ELF.


  Commit: 905c58f5aa33f1cd6370913bcadcd2e7dd8abbd0
      https://github.com/llvm/llvm-project/commit/905c58f5aa33f1cd6370913bcadcd2e7dd8abbd0
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp

  Log Message:
  -----------
  [MC] Remove unneeded setBeginSymbol. NFC

getELFSection ensures that the section symbol exists.


  Commit: 8f49dab19e861baeb0d87452e652ed97d3883d1a
      https://github.com/llvm/llvm-project/commit/8f49dab19e861baeb0d87452e652ed97d3883d1a
  Author: Enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Analysis/BranchProbabilityInfo.cpp

  Log Message:
  -----------
  [BPI] Use BasicBlock::isEHPad() to check exception handling block. (#95771)

There is no need to iterate all predecessors of current block, check if
current block is the invoke unwind destination of any predecessor. We
can directly call `BasicBlock::isEHPad()` to check if current block is
an exception handling block.


  Commit: 1ecc5ae13b9061cfb37ef0c409c8a4fc4bad42c9
      https://github.com/llvm/llvm-project/commit/1ecc5ae13b9061cfb37ef0c409c8a4fc4bad42c9
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/test/Modules/no-implicit-declarations.cppm
    A clang/test/Modules/no-transitive-decl-change-2.cppm

  Log Message:
  -----------
  [Serialization] Register Speical types before register decls

We will only regsiter top level types and decls in ASTWriter and
we will register the sub types and decls during the process of writing
types and decls. So that the ID for the types in the sub level can be
different if the writing decl process changes the order of the to-be-
emitted type queues. This is not ideal since it causes unnecessary
changes especially in no transitive changes model.

This patch migrates the issue by regsitering special types before
regsitering decls. This make sure that the special types in the 2nd
top level can be registered early than the decls. But it might still be
problematic if there are more levels in the special types. Luckily we
just don't have such special types.


  Commit: 4061354ab3157255238cf2664b9482bd6297dc83
      https://github.com/llvm/llvm-project/commit/4061354ab3157255238cf2664b9482bd6297dc83
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/AST/DeclID.h

  Log Message:
  -----------
  [Serialization] Revert specialization for DenseMapInfo<GlobalDeclID>::getHashValue

The FIXME says to revert this when the underlying issue got fixed. And
now the underlying issue got fixed in
https://github.com/llvm/llvm-project/pull/95734. So I think it should be
fine to rever that one now.


  Commit: 5997e7d748fdabe2abb7a19a5d9658622152e7d8
      https://github.com/llvm/llvm-project/commit/5997e7d748fdabe2abb7a19a5d9658622152e7d8
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp

  Log Message:
  -----------
  Revert "[MC] Move ELFWriter::createMemtagRelocs to AArch64ELFStreamer::finishImpl"

This reverts commit 9d63506ddc6d60e220d967eb11779114075d401d.

There is a heap-use-after-free.


  Commit: ffec31566c0acc341a3953ffc9b015f702c138ec
      https://github.com/llvm/llvm-project/commit/ffec31566c0acc341a3953ffc9b015f702c138ec
  Author: Poseydon42 <vvmposeydon at gmail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/Transforms/InstSimplify/uscmp.ll

  Log Message:
  -----------
  [InstSimplify] Provide information about the range of possible values that `ucmp`/`scmp` can return (#96410)

This makes it possible to fold dumb comparisons like `ucmp(x, y) == 7`.


  Commit: fec1b6f9d3cf5347b67ffb2078c995eb496acf47
      https://github.com/llvm/llvm-project/commit/fec1b6f9d3cf5347b67ffb2078c995eb496acf47
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h

  Log Message:
  -----------
  [MC] Move ELFWriter::createMemtagRelocs to AArch64TargetELFStreamer::finish

Follow-up to https://reviews.llvm.org/D128958

* Move target-specific code away from the generic ELFWriter.
* All sections should have been created before MCAssembler::layout.
* Remove one `registerSection` use, which should be considered private to MCAssembler.


  Commit: efdb91e1daba502481f8eab6116e3595766e2300
      https://github.com/llvm/llvm-project/commit/efdb91e1daba502481f8eab6116e3595766e2300
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp

  Log Message:
  -----------
  [ARM] Move ARMELFStreamer::finishImpl to ARMTargetELFStreamer::finish. NFC

ELFStreamer::finishImpl is not intended to be further overridden.


  Commit: a9ac31910db3975d5e92a6265ab29dafd6a4691d
      https://github.com/llvm/llvm-project/commit/a9ac31910db3975d5e92a6265ab29dafd6a4691d
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-23 (Sun, 23 Jun 2024)

  Changed paths:
    M llvm/include/llvm/MC/MCELFStreamer.h

  Log Message:
  -----------
  [MC] Make MCELFStreamer::finishImpl final

This function is final after efdb91e1daba502481f8eab6116e3595766e2300.
Target-specific code should override MCTargetStreamer::finish instead,
e.g. AArch64TargetELFStreamer::finish
(fec1b6f9d3cf5347b67ffb2078c995eb496acf47).


  Commit: b78883fc6db7ca0780ee287267f4c133a3b38201
      https://github.com/llvm/llvm-project/commit/b78883fc6db7ca0780ee287267f4c133a3b38201
  Author: Felix Schneider <fx.schn at gmail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/lib/Analysis/DataFlow/IntegerRangeAnalysis.cpp
    M mlir/test/Dialect/Arith/int-range-interface.mlir

  Log Message:
  -----------
  [mlir][intrange] Fix inference of zero-trip loop bound (#96429)

When lower bound and exclusive upper bound of a loop are the same, and
the zero-trip loop is not canonicalized away before the analysis, this
leads to a meaningless range for the induction variable being inferred.
This patch adds a check to make sure that the inferred range for the IV
is meaningful before updating the analysis state.

Fix https://github.com/llvm/llvm-project/issues/94423


  Commit: 79b0966f2f137869cabab42d094fc1ccbb58373c
      https://github.com/llvm/llvm-project/commit/79b0966f2f137869cabab42d094fc1ccbb58373c
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/AST/DeclID.h
    M clang/lib/Serialization/ASTReader.cpp

  Log Message:
  -----------
  [NFC] [Serialization] Refactor getLocalDeclID to 'LocalDeclID::get'

I just realized that the name `getLocalDeclID` looks like an member
function in ASTReader. It looks not good. So I decided to refactor this
into a static member function in LocalDeclID.


  Commit: 9e8ccf6b6410a598f94d2ce4c29d753b8609c907
      https://github.com/llvm/llvm-project/commit/9e8ccf6b6410a598f94d2ce4c29d753b8609c907
  Author: Matthias Springer <me at m-sp.org>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
    M mlir/lib/Conversion/GPUCommon/GPUOpsLowering.cpp
    M mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp

  Log Message:
  -----------
  [mlir][Conversion] `FuncToLLVM`: Simplify bare-pointer handling (#96393)

Before this commit, there used to be a workaround in the
`func.func`/`gpu.func` op lowering when the bare-pointer calling
convention is enabled. This workaround "patched up" the argument
materializations for memref arguments. This can be done directly in the
argument materialization functions (as the TODOs in the code base
indicate).

This commit effectively reverts back to the old implementation
(a664c14001fa2359604527084c91d0864aa131a4) and adds additional checks to
make sure that bare pointers are used only for function entry block
arguments.


  Commit: 1c025fb02d0fa15b76ca816d8414d532a687ebeb
      https://github.com/llvm/llvm-project/commit/1c025fb02d0fa15b76ca816d8414d532a687ebeb
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
    M llvm/test/tools/llvm-split/AMDGPU/address-taken-externalize-with-call.ll
    M llvm/test/tools/llvm-split/AMDGPU/address-taken-externalize.ll
    A llvm/test/tools/llvm-split/AMDGPU/debug-non-kernel-root.ll
    M llvm/test/tools/llvm-split/AMDGPU/large-kernels-merging.ll
    A llvm/test/tools/llvm-split/AMDGPU/non-kernels-dependencies.ll
    A llvm/test/tools/llvm-split/AMDGPU/non-kernels-dependency-indirect.ll

  Log Message:
  -----------
  [AMDGPU][SplitModule] Allow non-kernels to be treated as roots (#95902)

I initially assumed only kernels could be roots, but that is wrong. A
function with no callers also needs to be a root to ensure it is
correctly handled.
They're very rare because we usually internalize everything, and
internal functions with no callers would be deleted.

When they are present, we need to also consider their dependencies and
act accordingly. Previously, we could put a function "by default" in P0,
but it could call another function with internal linkage defined in
another module which was of course incorrect.

Fixes SWDEV-467695


  Commit: 599ca7165edcf7d226bd658c450801044b46ce7c
      https://github.com/llvm/llvm-project/commit/599ca7165edcf7d226bd658c450801044b46ce7c
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M lldb/include/lldb/lldb-private-enumerations.h
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    M lldb/source/Symbol/Type.cpp
    M lldb/test/Shell/SymbolFile/DWARF/clang-gmodules-type-lookup.c
    M lldb/test/Shell/SymbolFile/DWARF/x86/compilercontext.ll
    M lldb/test/Shell/SymbolFile/DWARF/x86/find-basic-function.cpp
    M lldb/test/Shell/SymbolFile/DWARF/x86/module-ownership.mm
    M lldb/tools/lldb-test/lldb-test.cpp
    M lldb/unittests/Symbol/TestType.cpp
    M lldb/unittests/SymbolFile/DWARF/DWARFDIETest.cpp

  Log Message:
  -----------
  [lldb] Merge CompilerContextKind::{Class,Struct} (#96145)

Our dwarf parsing code treats structures and classes as interchangable.
CompilerContextKind is used when looking DIEs for types. This makes sure
we always they're treated the same way.

See also
[#95905#discussion_r1645686628](https://github.com/llvm/llvm-project/pull/95905#discussion_r1645686628).


  Commit: c43d5f540fd43409e7997c9fec97a1d415855b7c
      https://github.com/llvm/llvm-project/commit/c43d5f540fd43409e7997c9fec97a1d415855b7c
  Author: Balázs Kéri <balazs.keri at ericsson.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp
    M clang/test/Analysis/casts.c
    A clang/test/Analysis/pointer-sub-notes.c
    M clang/test/Analysis/pointer-sub.c

  Log Message:
  -----------
  [clang][analyzer] Add notes to PointerSubChecker (#95899)

Notes are added to indicate the array declarations of the arrays in a
found invalid pointer subtraction.


  Commit: c2fc7f75f67039bb1ed577bc0edbd699a850cd9d
      https://github.com/llvm/llvm-project/commit/c2fc7f75f67039bb1ed577bc0edbd699a850cd9d
  Author: vg0204 <Vikash.Gupta at amd.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
    M llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
    M llvm/test/CodeGen/AMDGPU/preserve-wwm-copy-dst-reg.ll
    M llvm/test/CodeGen/AMDGPU/sgpr-regalloc-flags.ll
    M llvm/test/CodeGen/AMDGPU/si-lower-sgpr-spills-vgpr-lanes-usage.mir
    M llvm/test/CodeGen/AMDGPU/spill-scavenge-offset.ll

  Log Message:
  -----------
  Revert "[AMDGPU]Optimize SGPR spills (#93668)"

This reverts commit 4b9112e88a998ce620e4683548f2afd17cc5fe95. A separate
issue(#96353) describing it has been opened to further keep its track.


  Commit: f0c674f680e3e3301c7ccd429400690b128172c5
      https://github.com/llvm/llvm-project/commit/f0c674f680e3e3301c7ccd429400690b128172c5
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    A llvm/test/Transforms/LoopVectorize/RISCV/only-compute-cost-for-vplan-vfs.ll

  Log Message:
  -----------
  [LV] Add test showing cost is computed when there are no vector plans.

Add test showing unnecessary cost computations, as no vector VPlans are
generated.


  Commit: 45a7af7c993f66044a8492dce1d073380feafffc
      https://github.com/llvm/llvm-project/commit/45a7af7c993f66044a8492dce1d073380feafffc
  Author: Shengchen Kan <shengchen.kan at intel.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Basic/Targets/X86.cpp
    M clang/test/Driver/x86-target-features.c
    M clang/test/Preprocessor/x86_target_features.c

  Log Message:
  -----------
  [X86][Driver] Enable feature cf for -mapxf

This is follow-up for #78901 after validation.


  Commit: 9931ee61d99c101db653ae21706f1edce4b39781
      https://github.com/llvm/llvm-project/commit/9931ee61d99c101db653ae21706f1edce4b39781
  Author: Cullen Rhodes <cullen.rhodes at arm.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/LowerVectorGather.cpp
    M mlir/test/Dialect/Vector/vector-gather-lowering.mlir

  Log Message:
  -----------
  [mlir][vector] Fix FlattenGather for scalable vectors (#96074)

This pattern flattens vector.gather ops by unrolling the outermost
dimension for rank > 2 vectors. There's two issues with this pattern for
scalable vectors:

  1. The unrolling doesn't take vscale into account. A constraint is
     added to disable this pattern for vectors with leading scalable
     dims.
  2. The scalable dims are dropped when creating the new gather. Fixed
     by propagating the flags.

Depends on #96049.


  Commit: abf5969f76c6b4196b08fe5ea9c2890e97a61357
      https://github.com/llvm/llvm-project/commit/abf5969f76c6b4196b08fe5ea9c2890e97a61357
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/RISCV/only-compute-cost-for-vplan-vfs.ll

  Log Message:
  -----------
  [VPlan] Don't compute costs if there are no vector VPlans.

In some cases, no vector VPlans can be constructed due to failing VPlan
legality checks (e.g. unable to perform sinking for first order
recurrences or plans being incompatible with EVL).

There's no need to compute costs in those cases, so check directly if
there are no vector plans.


  Commit: 957dc4366dd2ce9d5d2991c3ad76bbf438e9954e
      https://github.com/llvm/llvm-project/commit/957dc4366dd2ce9d5d2991c3ad76bbf438e9954e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/include/llvm/IR/PassInstrumentation.h
    M llvm/include/llvm/Passes/TargetPassRegistry.inc
    M llvm/include/llvm/Target/TargetMachine.h
    M llvm/lib/IR/PassInstrumentation.cpp
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.h
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
    M llvm/lib/Target/BPF/BPFTargetMachine.cpp
    M llvm/lib/Target/BPF/BPFTargetMachine.h
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.h
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
    M llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
    M llvm/lib/Target/X86/X86TargetMachine.h

  Log Message:
  -----------
  [IR] Lazily initialize the class to pass name mapping (NFC) (#96321)

Initializing this map is somewhat expensive (especially for O0), so we
currently only do it if certain flags are used. I would like to make use
of it for crash dumps (#96078), where we don't know in advance whether
it will be needed or not.

This patch changes the initialization to a lazy approach, where a
callback is registered that does the actual initialization. The
callbacks will be run the first time the pass name is requested.

This way there is no compile-time impact if the mapping is not used.


  Commit: 57f79371a5c08e1328e85b68b757cd5547f2bf62
      https://github.com/llvm/llvm-project/commit/57f79371a5c08e1328e85b68b757cd5547f2bf62
  Author: Vyacheslav Levytskyy <vyacheslav.levytskyy at intel.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.td
    M llvm/lib/Target/SPIRV/SPIRVCommandLine.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
    M llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
    M llvm/lib/Target/SPIRV/SPIRVSymbolicOperands.td
    A llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_cooperative_matrix/cooperative_matrix.ll
    A llvm/test/CodeGen/SPIRV/transcoding/OpPtrCastToGeneric.ll

  Log Message:
  -----------
  [SPIR-V]: Add SPIR-V extension: SPV_KHR_cooperative_matrix (#96091)

This PR adds SPIR-V extension SPV_KHR_cooperative_matrix that "adds a
new set of types known as "cooperative matrix" types, where the storage
for and computations performed on the matrix are spread across a set of
invocations such as a subgroup" (see
https://github.com/KhronosGroup/SPIRV-Registry/blob/main/extensions/KHR/SPV_KHR_cooperative_matrix.asciidoc).

This PR also fixes https://github.com/llvm/llvm-project/issues/96170, a
new test cases is attached
(llvm/test/CodeGen/SPIRV/transcoding/OpPtrCastToGeneric.ll).


  Commit: 790f931886a03324714f31a626eef7e9c609ae97
      https://github.com/llvm/llvm-project/commit/790f931886a03324714f31a626eef7e9c609ae97
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaModule.cpp

  Log Message:
  -----------
  [NFC] [Modules] Extract the logic to decide whether the module units belongs to the same module

This patch extracts the logci to decide how we decide the module units
belongs to the same module into a member function of ASTContext. This is
helpful to refactor the implementation in the future.


  Commit: e7137f2fed5cfee822ae3c4c6d39188adb59a16c
      https://github.com/llvm/llvm-project/commit/e7137f2fed5cfee822ae3c4c6d39188adb59a16c
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/include/llvm/Passes/TargetPassRegistry.inc

  Log Message:
  -----------
  [Passes] Try to fix build on windows

Some passes reference *this (inside decltype) which fails with
MSVC. Fix this by not explicitly specifying the captures (otherwise
we would get an unused lambda capture warning for cases where this
is *not* used).


  Commit: 6eaf204dbb0a6a81cddfd02f625c130f7bb1aae5
      https://github.com/llvm/llvm-project/commit/6eaf204dbb0a6a81cddfd02f625c130f7bb1aae5
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    M llvm/lib/Target/DirectX/DirectXTargetMachine.h

  Log Message:
  -----------
  [DirectX] Fix DirectXTargetMachine after #96321


  Commit: 33676ba543737f8e286e28a9cae81a848bdd3f09
      https://github.com/llvm/llvm-project/commit/33676ba543737f8e286e28a9cae81a848bdd3f09
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeEmitter.h
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/ByteCodeExprGen.h
    M clang/lib/AST/Interp/EvalEmitter.h
    M clang/test/AST/Interp/c.c

  Log Message:
  -----------
  [clang][Interp] Fix variable initialization in inactive regions

When the EvalEmitter is inactive, it will simply not evaluate
any of the operations we emit via emit*. However, it will still
allocate variables. So the variables will be allocated, but we
won't evaluate their initializer, so later when we see the variable
again, it is uninitialized.

Stop creating variables in that case.


  Commit: 73cf014223fed1947f725f7debcf19b8f54448b5
      https://github.com/llvm/llvm-project/commit/73cf014223fed1947f725f7debcf19b8f54448b5
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M flang/include/flang/Evaluate/characteristics.h
    M flang/include/flang/Evaluate/shape.h
    M flang/lib/Evaluate/characteristics.cpp
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Evaluate/shape.cpp
    M flang/lib/Lower/CallInterface.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/pointer-assignment.cpp
    M flang/lib/Semantics/runtime-type-info.cpp
    M flang/test/Evaluate/rewrite06.f90

  Log Message:
  -----------
  [flang] harden TypeAndShape for assumed-ranks (#96234)

SIZEOF and C_SIZEOF were broken for assumed-ranks because
`TypeAndShape::MeasureSizeInBytes` behaved as a scalar because the
`TypeAndShape::shape_` member was the same for scalar and assumed-ranks.

The easy fix would have been to add special handling in
`MeasureSizeInBytes` for assumed-ranks using the TypeAndShape
attributes, but I think this solution would leave `TypeAndShape::shape_`
manipulation fragile to future developers. Hence, I went for the
solution that turn shape_ into a `std::optional<Shape>`.


  Commit: e5a41f0afc152cc24b8fef3aa177ef53b2e77c43
      https://github.com/llvm/llvm-project/commit/e5a41f0afc152cc24b8fef3aa177ef53b2e77c43
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/include/llvm/IR/PassInstrumentation.h
    M llvm/include/llvm/Passes/TargetPassRegistry.inc
    M llvm/include/llvm/Target/TargetMachine.h
    M llvm/lib/IR/PassInstrumentation.cpp
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.h
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
    M llvm/lib/Target/BPF/BPFTargetMachine.cpp
    M llvm/lib/Target/BPF/BPFTargetMachine.h
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    M llvm/lib/Target/DirectX/DirectXTargetMachine.h
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.h
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
    M llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
    M llvm/lib/Target/X86/X86TargetMachine.h

  Log Message:
  -----------
  Revert "[IR] Lazily initialize the class to pass name mapping (NFC) (#96321)"

My attempt to fix the Windows build made things worse,
revert entirely for now.

This reverts commit e7137f2fed5cfee822ae3c4c6d39188adb59a16c.
This reverts commit 6eaf204dbb0a6a81cddfd02f625c130f7bb1aae5.
This reverts commit 957dc4366dd2ce9d5d2991c3ad76bbf438e9954e.


  Commit: 64796044f4152c49e4b3c797390a83dcfd33bd46
      https://github.com/llvm/llvm-project/commit/64796044f4152c49e4b3c797390a83dcfd33bd46
  Author: Tim Creech <timothy.m.creech at intel.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M libclc/CMakeLists.txt
    M libclc/cmake/modules/AddLibclc.cmake

  Log Message:
  -----------
  [CMake][libclc] Improve dependencies to avoid build errors (#95018)

With the Makefile generator and particularly high build parallelism some
intermediate dependencies may be generated redundantly and concurrently,
leading to build failures.

To fix this, arrange for libclc's add_custom_commands to depend on
targets in addition to files.

This follows CMake documentation's[^1] guidance on add_custom_command:

> Do not list the output in more than one independent target that may
> build in parallel or the instances of the rule may conflict. Instead,
> use the add_custom_target() command to drive the command and make the
> other targets depend on that one.

Eliminating the redundant commands also improves build times.

[^1]: https://cmake.org/cmake/help/v3.29/command/add_custom_command.html


  Commit: 090e0c4f50ec39df2beafd98d0556f23e82f4bcd
      https://github.com/llvm/llvm-project/commit/090e0c4f50ec39df2beafd98d0556f23e82f4bcd
  Author: Ben Shi <2283975856 at qq.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AVR/AVRInstrInfo.td

  Log Message:
  -----------
  [AVR][NFC] Improve format of target description files (#96449)


  Commit: 2232881736f1a7e3e94ee1123dea1b6cd85a9c3a
      https://github.com/llvm/llvm-project/commit/2232881736f1a7e3e94ee1123dea1b6cd85a9c3a
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/lib/AST/ASTContext.cpp

  Log Message:
  -----------
  [C++20] [Modules] Avoid comparing primary module name to decide isInSameModule all the time

Previously, we decide if two module units are in the same module by
comparing name of the primary module interface. But it looks not
efficiency if we always compare the strings. It should be good to
avoid the expensive string operations if possible.

In this patch, we introduced a `llvm::StringMap` to map primary module
name to a Module* and a `llvm::DenseMap<Module*, Module*>` to map a
Module* to a representative Module *. The representative Module* is one
of the Module units belonging to a certain module. The module units have the
same representative Module* should belong to the same module.

We choose the representative Module* by the first module lookup for a
certain primary module name. So the following module units have the same
primary module name would get the same representative modules. So that
for every modules, there will be only one hash process for the primary
module name.


  Commit: 3b6462c5b5b38c2f329a2bf97734196610cb4a35
      https://github.com/llvm/llvm-project/commit/3b6462c5b5b38c2f329a2bf97734196610cb4a35
  Author: Adrian Kuegel <akuegel at google.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp

  Log Message:
  -----------
  [mlir] Apply ClangTidy fixes

Prefer to check .empty() instead of .size() == 0


  Commit: 2151ba036213705346553e759fc4e095547989d1
      https://github.com/llvm/llvm-project/commit/2151ba036213705346553e759fc4e095547989d1
  Author: A. Jiang <de34 at live.cn>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/www/cxx_status.html

  Log Message:
  -----------
  [Docs][Clang] Missing DR status for C++23-era papers in cxx_status.html (#68846)

List the following C++23-era WG21 papers as Defect Reports in
cxx_status.html as per WG21 meeting minutes.

- [P1949R7](https://wg21.link/p1949r7) (C++ Identifier Syntax using
Unicode Standard Annex 31)
 - [P2156R1](https://wg21.link/p2156r1) (Allow Duplicate Attributes)
- [P2036R3](https://wg21.link/p2036r3) (Change scope of lambda
_trailing-return-type_)
- [P2468R2](https://wg21.link/p2468r2) (The Equality Operator You Are
Looking For)
- [P2327R1](https://wg21.link/p2327r1) (De-deprecating `volatile`
compound operations)
- [P2493R0](https://wg21.link/p2493r0) (Missing feature test macros for
C++20 core papers)
- [P2513R3](https://wg21.link/p2513r3) (`char8_t` Compatibility and
Portability Fix)
- [P2460R2](https://wg21.link/p2460r2) (Relax requirements on `wchar_t`
to match existing practices)
- [P2579R0](https://wg21.link/p2579r0) (Mitigation strategies for
[P2036](https://wg21.link/p2036) ”Changing scope for lambda
_trailing-return-type_”)


  Commit: 137a7451f458cf7d8e1d88df93dbd8da6888886d
      https://github.com/llvm/llvm-project/commit/137a7451f458cf7d8e1d88df93dbd8da6888886d
  Author: Mubashar Ahmad <mubashar.ahmad at arm.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
    M mlir/test/Dialect/Vector/vector-rewrite-narrow-types.mlir

  Log Message:
  -----------
  [mlir][vector] Support n-D vectors in i8 to i4 trunci emulation (#94946)

Previously, this only supported 1-D vectors via vector.shuffle, with
the new vector.deinterleave this can be updated to support n-D vectors.


  Commit: b0bc2f691254adae7042052b8aff6aa728fd6a2d
      https://github.com/llvm/llvm-project/commit/b0bc2f691254adae7042052b8aff6aa728fd6a2d
  Author: Kareem Ergawy <kareem.ergawy at amd.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Target/LLVMIR/openmp-private.mlir

  Log Message:
  -----------
  [OpenMP][LLVM] Fix access to reduction args of `omp.parallel`. (#96426)

Fix for Fujitsu test suite test: 0275_0032.f90. The MLIR to LLVM
translation logic assumed that reduction arguments to an `omp.parallel`
op are always the last set of arguments to the op. However, this is a
wrong assumption since private args come afterward.


  Commit: f8ff9094711b74d3f695f7571f6390f8a481fc52
      https://github.com/llvm/llvm-project/commit/f8ff9094711b74d3f695f7571f6390f8a481fc52
  Author: Guray Ozen <guray.ozen at gmail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/include/mlir-c/Dialect/GPU.h
    M mlir/lib/Bindings/Python/DialectGPU.cpp
    M mlir/lib/CAPI/Dialect/GPU.cpp
    M mlir/test/Examples/NVGPU/Ch1.py
    M mlir/test/Examples/NVGPU/Ch2.py
    M mlir/test/Examples/NVGPU/Ch3.py
    M mlir/test/Examples/NVGPU/Ch4.py
    M mlir/test/Examples/NVGPU/Ch5.py
    M mlir/test/Integration/GPU/CUDA/sm90/python/tools/matmulBuilder.py

  Log Message:
  -----------
  [mlir][gpu] Add py binding for AsyncTokenType (#96466)

The PR adds py binding for `AsyncTokenType`


  Commit: dfbfb6c5c6dba8a25c7a9769e969d56ba19fc14d
      https://github.com/llvm/llvm-project/commit/dfbfb6c5c6dba8a25c7a9769e969d56ba19fc14d
  Author: Ilya Biryukov <ibiryukov at google.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/Basic/SourceManager.h
    M clang/lib/Basic/SourceManager.cpp

  Log Message:
  -----------
  [SourceManager] Expose max usage of source location space as a Statistic (#96292)

We have been running into source location exhaustion recently and want
to use the statistics to monitor the usage in various files to be able
to anticipate where the next problem will happen.

I picked `Statistic` because it can be written into a structured JSON
file and is easier to consume by further automation.

This commit does not change any existing per-source-manager metrics
exposed via `SourceManager::PrintStats()`. This does create some
redundancy, but I also expect to be non-controversial because it aligns
with the intended use of `Statistic`.


  Commit: 738533c84aeb56fff94b19c71714f54ae91c3670
      https://github.com/llvm/llvm-project/commit/738533c84aeb56fff94b19c71714f54ae91c3670
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
    M llvm/test/Transforms/LoopVectorize/AArch64/sme-vectorize.ll

  Log Message:
  -----------
  [AArch64] Consider streaming mode in TTI interfaces for vectorization. (#96305)

At the moment, vectorization is only enabled in streaming(-compatible)
mode when enabled through an option. But the interfaces should check
more than just 'hasSVE()', because a function with +sme in streaming
mode should also vectorize with the option enabled.

Additionally, a streaming-compatible function should only be able to use
fixed-length autovec if SVE is available, otherwise the vector code will
be scalarised by the backend.


  Commit: 1b64ed0e0c7fde1b65d55bfb7954beadc0f60e28
      https://github.com/llvm/llvm-project/commit/1b64ed0e0c7fde1b65d55bfb7954beadc0f60e28
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/ArmSME/Transforms/Passes.td
    M mlir/lib/Dialect/ArmSME/Transforms/EnableArmStreaming.cpp
    M mlir/test/Dialect/ArmSME/enable-arm-streaming-invalid.mlir
    M mlir/test/Dialect/ArmSME/enable-arm-streaming.mlir

  Log Message:
  -----------
  [mlir][ArmSME] Disallow streaming mode for gathers/scatters (#96209)

Ideally, this would be based on target information (but we don't really
have that), so this currently errs on the side of caution. If possible
gathers/scatters should be lowered regular vector loads/stores before
using invoking enable-arm-streaming.


  Commit: fd5a177ccb56ec2dbe1a313db54072f450aa1c29
      https://github.com/llvm/llvm-project/commit/fd5a177ccb56ec2dbe1a313db54072f450aa1c29
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    R llvm/test/CodeGen/X86/clz.ll
    A llvm/test/CodeGen/X86/ctlz.ll

  Log Message:
  -----------
  [X86] Rename clz.ll -> ctlz.ll to match the intrinsic naming

I'll be splitting the ctlz/cttz tests into separate test files shortly


  Commit: 145f36c2aa4ec9c4dc02699579c10e754a797997
      https://github.com/llvm/llvm-project/commit/145f36c2aa4ec9c4dc02699579c10e754a797997
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/test/CodeGen/X86/ctlz.ll
    A llvm/test/CodeGen/X86/cttz.ll

  Log Message:
  -----------
  [X86] Split scalar ctlz/cttz tests into their own files


  Commit: 53e577add0fb25e335d73376a906da7321182261
      https://github.com/llvm/llvm-project/commit/53e577add0fb25e335d73376a906da7321182261
  Author: Thomas Preud'homme <thomas.preudhomme at arm.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/Linalg/Utils/Utils.h

  Log Message:
  -----------
  Remove reference to removed method. (#96315)

Methodes were removed in dc37dc824aabbbe3d029519f43f0b348dcad7027.


  Commit: 5a997c1d83845cd891c1e4662cb7ddb02c1eaecc
      https://github.com/llvm/llvm-project/commit/5a997c1d83845cd891c1e4662cb7ddb02c1eaecc
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    A llvm/test/CodeGen/X86/ctlo.ll

  Log Message:
  -----------
  [X86] Add count leading ones test coverage based on #96455


  Commit: f03cb005eb4ba3c6fb645aca2228e907db8cd452
      https://github.com/llvm/llvm-project/commit/f03cb005eb4ba3c6fb645aca2228e907db8cd452
  Author: Doug Wyatt <doug at sonosphere.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/AbstractBasicReader.h
    M clang/include/clang/AST/AbstractBasicWriter.h
    M clang/include/clang/AST/Decl.h
    M clang/include/clang/AST/PropertiesBase.td
    M clang/include/clang/AST/Type.h
    M clang/include/clang/AST/TypeProperties.td
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/Type.cpp
    M clang/lib/AST/TypePrinter.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/lib/Sema/TreeTransform.h
    A clang/test/Sema/attr-nonblocking-sema.c
    A clang/test/Sema/attr-nonblocking-sema.cpp
    A clang/test/Sema/attr-nonblocking-syntax.cpp

  Log Message:
  -----------
  [Clang] Introduce `nonblocking`/`nonallocating` attributes (#84983)

Introduce `nonblocking` and `nonallocating` attributes. RFC is here:
https://discourse.llvm.org/t/rfc-nolock-and-noalloc-attributes/76837

This PR introduces the attributes, with some changes in Sema to deal
with them as extensions to function (proto)types.

There are some basic type checks, most importantly, a warning when
trying to spoof the attribute (implicitly convert a function without the
attribute to one that has it).

A second, follow-on pull request will introduce new caller/callee
verification.
---------
Co-authored-by: Doug Wyatt <dwyatt at apple.com>
Co-authored-by: Shafik Yaghmour <shafik.yaghmour at intel.com>
Co-authored-by: Aaron Ballman <aaron at aaronballman.com>
Co-authored-by: Sirraide <aeternalmail at gmail.com>


  Commit: a66900be7507eb0c68a6eff1e945e1823507d3e0
      https://github.com/llvm/llvm-project/commit/a66900be7507eb0c68a6eff1e945e1823507d3e0
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

  Log Message:
  -----------
  [RISCV] Pretty print AVL register in VSETVLIInfo::dump. NFC

Currently the AVLReg is printed raw like {AVLReg=2147483668, ...}, this
changes it to {AVLReg=%20, ...} which should be easier to read.


  Commit: 3d8079229e7571a5912e880bf7a960d809c8ee96
      https://github.com/llvm/llvm-project/commit/3d8079229e7571a5912e880bf7a960d809c8ee96
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGen/aarch64-mixed-target-attributes.c
    M clang/test/CodeGen/attr-target-clones-aarch64.c
    M clang/test/CodeGen/attr-target-version.c
    M clang/test/CodeGenCXX/attr-target-clones-aarch64.cpp
    M clang/test/CodeGenCXX/attr-target-version.cpp
    M clang/test/CodeGenCXX/fmv-namespace.cpp

  Log Message:
  -----------
  [clang][AArch64][FMV] Stop emitting alias to ifunc. (#96221)

Long story short the interaction of two optimizations happening in
GlobalOpt results in a crash. For more details look at the issue
https://github.com/llvm/llvm-project/issues/96197. I will be fixing this
in GlobalOpt but it is a conservative solution since it won't allow us
to optimize resolvers which return a pointer to a function whose
definition is in another TU when compiling without LTO:

```
__attribute__((target_version("simd"))) void bar(void);
__attribute__((target_version("default"))) void bar(void);
int foo() { bar(); }
```

fixes: #96197


  Commit: 4e6c8f1d30b8516fc7205bbcc97a78a728215512
      https://github.com/llvm/llvm-project/commit/4e6c8f1d30b8516fc7205bbcc97a78a728215512
  Author: Martin Storsjö <martin at martin.st>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/test/Preprocessor/predefined-win-macros.c

  Log Message:
  -----------
  [clang] [MinGW] Set a predefined __GXX_TYPEINFO_EQUALITY_INLINE=0 for MinGW targets (#96062)

libstdc++ requires this define to match what is predefined in GCC for
the ABI of this platform; GCC hardcodes this define for all mingw
configurations in gcc/config/i386/cygming.h.

(It also defines __GXX_MERGED_TYPEINFO_NAMES=0, but that happens to
match the defaults in libstdc++ headers, so there's no similar need to
define it in Clang.)

This fixes a Clang/libstdc++ interop issue discussed at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110572.


  Commit: 6b41de3605658069eb69b8684c2760e54bd1bea3
      https://github.com/llvm/llvm-project/commit/6b41de3605658069eb69b8684c2760e54bd1bea3
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/InterpBuiltin.cpp
    M clang/test/CodeGen/ptrauth-intrinsics.c

  Log Message:
  -----------
  [clang][Interp] Implement ptrauth builtins


  Commit: cc4ec6daf0d4f43110e8220d542c1155b8c1ef51
      https://github.com/llvm/llvm-project/commit/cc4ec6daf0d4f43110e8220d542c1155b8c1ef51
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/test/Modules/no-eager-load.cppm
    A clang/test/Modules/same-decl-in-different-modules.cppm

  Log Message:
  -----------
  [C++20] [Modules] Diagnose redeclarations from different modules

[basic.link]/p10:

> If two declarations of an entity are attached to different modules,
> the program is ill-formed

But we only implemented the check for ODR. In this patch, we tried to
diagnose the redeclarations from different modules.


  Commit: 17e51d5fc79fc1c9a2a33c13eb02cfbd70c9a221
      https://github.com/llvm/llvm-project/commit/17e51d5fc79fc1c9a2a33c13eb02cfbd70c9a221
  Author: Andarwinux <144242044+Andarwinux at users.noreply.github.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/include/clang/Driver/Options.td

  Log Message:
  -----------
  [Driver] Add winsysroot alias to the GNU driver (#95320)

fixes #91216


  Commit: 689c5c48294451461b936be2ea30444ecaf39182
      https://github.com/llvm/llvm-project/commit/689c5c48294451461b936be2ea30444ecaf39182
  Author: Mariusz Sikora <mariusz.sikora at amd.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPU.td
    M llvm/test/CodeGen/AMDGPU/llvm.maximum.f64.ll
    M llvm/test/CodeGen/AMDGPU/llvm.minimum.f64.ll
    M llvm/test/CodeGen/AMDGPU/load-constant-i1.ll
    M llvm/test/CodeGen/AMDGPU/load-constant-i16.ll
    M llvm/test/CodeGen/AMDGPU/load-constant-i8.ll
    M llvm/test/CodeGen/AMDGPU/occupancy-levels.ll

  Log Message:
  -----------
  [AMDGPU] Set total VGPRs to 1536 for gfx12 (#96272)

- Use Feature1_5xVGPRs


  Commit: 41a4db1ba6591169069dd2352e00364d9113fbeb
      https://github.com/llvm/llvm-project/commit/41a4db1ba6591169069dd2352e00364d9113fbeb
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp

  Log Message:
  -----------
  [lldb/DWARF] Optimize DIEToType handling (#96308)

- move type insertion from individual parse methods into
ParseTypeFromDWARF
- optimize sentinel (TYPE_IS_BEING_PARSED) insertion to avoid double map
lookup
- as this requires the map to not have nullptr values, I've replaced all
`operator[]` queries with calls to `lookup`.


  Commit: 9298e40f46e07bb348e310236c1b2f0359a224dc
      https://github.com/llvm/llvm-project/commit/9298e40f46e07bb348e310236c1b2f0359a224dc
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/test/CodeGen/X86/tailcc-ssp.ll

  Log Message:
  -----------
  [X86] tailcc-ssp.ll - regenerate test checks to simplify diff for #95904


  Commit: 284fbf91663b737be2ffb4785ad819c75d22797e
      https://github.com/llvm/llvm-project/commit/284fbf91663b737be2ffb4785ad819c75d22797e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/test/CodeGen/X86/stack-protector-msvc.ll

  Log Message:
  -----------
  [X86] stack-protector-msvc.ll - regenerate test checks to simplify diff for #95904


  Commit: efab4a380f36dcd23561633f8bba484036c500f3
      https://github.com/llvm/llvm-project/commit/efab4a380f36dcd23561633f8bba484036c500f3
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/Sema/SemaType.cpp

  Log Message:
  -----------
  [Sema] Fix -Wunused-variable in SemaType.cpp (NFC)

/llvm-project/clang/lib/Sema/SemaType.cpp:7625:8:
error: unused variable 'Success' [-Werror,-Wunused-variable]
  bool Success = FX.insert(NewEC, Errs);
       ^
1 error generated.


  Commit: 9cd6ef4b8a5c843ef491437c765d4cb2ff2f8fe3
      https://github.com/llvm/llvm-project/commit/9cd6ef4b8a5c843ef491437c765d4cb2ff2f8fe3
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/test/Driver/riscv-arch.c
    M clang/test/Preprocessor/riscv-target-features.c
    M llvm/docs/RISCVUsage.rst
    M llvm/docs/ReleaseNotes.rst
    M llvm/lib/Target/RISCV/RISCVFeatures.td
    M llvm/test/CodeGen/RISCV/GlobalISel/atomic-fence.ll
    M llvm/test/CodeGen/RISCV/atomic-cmpxchg.ll
    M llvm/test/CodeGen/RISCV/atomic-fence.ll
    M llvm/test/CodeGen/RISCV/atomic-load-store.ll
    M llvm/test/CodeGen/RISCV/atomic-rmw.ll
    M llvm/test/CodeGen/RISCV/atomicrmw-uinc-udec-wrap.ll
    M llvm/test/CodeGen/RISCV/attributes.ll
    M llvm/test/CodeGen/RISCV/module-elf-flags.ll
    M llvm/test/MC/RISCV/Ztso.s
    M llvm/test/MC/RISCV/attribute-arch.s
    M llvm/test/MC/RISCV/elf-flags.s
    M llvm/unittests/TargetParser/RISCVISAInfoTest.cpp

  Log Message:
  -----------
  [RISCV] Remove experimental from Ztso. (#96465)

Ztso 1.0 was ratified in January 2023.
Documentation:
https://github.com/riscv/riscv-isa-manual/blob/main/src/ztso-st-ext.adoc


  Commit: c053ec95f7e66ff212c8a867426cc7275a4dace6
      https://github.com/llvm/llvm-project/commit/c053ec95f7e66ff212c8a867426cc7275a4dace6
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M lldb/test/API/tools/lldb-dap/runInTerminal/TestDAP_runInTerminal.py

  Log Message:
  -----------
  [lldb] Fix TestDAP_runInTerminal for #96256

change the expected error msg.


  Commit: b8979c6b13e9d4cb5051dd6f8ca772a20b14b428
      https://github.com/llvm/llvm-project/commit/b8979c6b13e9d4cb5051dd6f8ca772a20b14b428
  Author: Kamau Bridgeman <kamau.bridgeman.ibm at gmail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/Basic/Targets/PPC.h
    A clang/test/CodeGen/PowerPC/inline-asm-constraints-error.c

  Log Message:
  -----------
  [PPC][InlineASM] Mark the 'a' constraint as unsupported (#96109)

'a' is an input/output constraint for restraining assembly variables
to an indexed or indirect address operand. It previously was marked
as supported but would throw an assertion for unknown constraint type
in the back-end when this test case was compiled. This change marks it
as unsupported until we can add full support for address operands
constraining to the compiler code generation.


  Commit: 6e3725d7f290d0180e8b5cfe073d0cc4c9bbafd0
      https://github.com/llvm/llvm-project/commit/6e3725d7f290d0180e8b5cfe073d0cc4c9bbafd0
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp

  Log Message:
  -----------
  [IndVars] Make pushIVUsers() a member function (NFC)

Make it easier to access additional state from it.


  Commit: 0cf1e662b13fb20d3897c5b9055c60b0de50beca
      https://github.com/llvm/llvm-project/commit/0cf1e662b13fb20d3897c5b9055c60b0de50beca
  Author: Jan Voung <jvoung at gmail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGDecl.cpp
    M clang/test/CodeGenCXX/auto-var-init-max-size.cpp
    M clang/test/CodeGenCXX/auto-var-init-stop-after.cpp
    M clang/test/CodeGenCXX/auto-var-init.cpp
    A clang/test/CodeGenCXX/trivial-auto-var-init-skip-scalar-with-nonconst-init.cpp

  Log Message:
  -----------
  [clang] Skip auto-init on scalar vars that have a non-constant Init and no self-ref (#94642)

In that scalar case, the Init should initialize the auto var before use. The Init might use uninitialized memory from other sources (e.g., heap) but auto-init did not help us in that case because the auto-init would have been overwritten by the Init before use.

For non-scalars e.g., classes, the Init expr might be a ctor call that leaves uninitialized members, so we leave the auto-init there.

The motivation is to have less IR for the optimizer to later remove, which may not be until a fairly late pass (DSE) or may not get optimized in lower optimization levels like O1 (no DSE) or sometimes due to derefinement.
This is ~10% less left-over auto-init in O1 in a few examples checked.


  Commit: 5cd0ba30f53d11835dbfd05ad4071d397387fb04
      https://github.com/llvm/llvm-project/commit/5cd0ba30f53d11835dbfd05ad4071d397387fb04
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/include/llvm/IR/PassInstrumentation.h
    M llvm/include/llvm/Passes/TargetPassRegistry.inc
    M llvm/include/llvm/Target/TargetMachine.h
    M llvm/lib/IR/PassInstrumentation.cpp
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.h
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
    M llvm/lib/Target/BPF/BPFTargetMachine.cpp
    M llvm/lib/Target/BPF/BPFTargetMachine.h
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    M llvm/lib/Target/DirectX/DirectXTargetMachine.h
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.h
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
    M llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
    M llvm/lib/Target/X86/X86TargetMachine.h

  Log Message:
  -----------
  Reapply [IR] Lazily initialize the class to pass name mapping (NFC) (#96321) (#96462)

On MSVC the `this` uses inside `decltype` require a lambda capture. On
clang they result in an unused capture warning instead. Add the capture
and suppress the warning with `(void)this`.

-----

Initializing this map is somewhat expensive (especially for O0), so we
currently only do it if certain flags are used. I would like to make use
of it for crash dumps (#96078), where we don't know in advance whether
it will be needed or not.

This patch changes the initialization to a lazy approach, where a
callback is registered that does the actual initialization. The
callbacks will be run the first time the pass name is requested.

This way there is no compile-time impact if the mapping is not used.


  Commit: c1bde0a2cb640b3607e9568b9a57b292e1f82666
      https://github.com/llvm/llvm-project/commit/c1bde0a2cb640b3607e9568b9a57b292e1f82666
  Author: Dan McArdle <zingermc at gmail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/docs/ThreadSafetyAnalysis.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/ParsedAttr.h
    M clang/lib/Analysis/ThreadSafety.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/Sema/attr-capabilities.c
    M clang/test/SemaCXX/warn-thread-safety-analysis.cpp
    M clang/test/SemaCXX/warn-thread-safety-parsing.cpp
    M clang/unittests/AST/ASTImporterTest.cpp

  Log Message:
  -----------
  [clang][ThreadSafety] Check trylock function success and return types (#95290)

With this change, Clang will generate errors when trylock functions have
improper return types. Today, it silently fails to apply the trylock
attribute to these functions which may incorrectly lead users to believe
they have correctly acquired locks before accessing guarded data.

As a side effect of explicitly checking the success argument type, I
seem to have fixed a false negative in the analysis that could occur
when a trylock's success argument is an enumerator. I've added a
regression test to warn-thread-safety-analysis.cpp named
`TrylockSuccessEnumFalseNegative`.

This change also improves the documentation with descriptions of of the
subtle gotchas that arise from the analysis interpreting the success arg
as a boolean.

Issue #92408


  Commit: 3ff680a1a57d74a5c94d3da35594a8046a879888
      https://github.com/llvm/llvm-project/commit/3ff680a1a57d74a5c94d3da35594a8046a879888
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    A clang/test/C/C11/n1285.c
    M clang/www/c_status.html

  Log Message:
  -----------
  [C11] Claim we do not conform to WG14 N1285 yet

This also updates the status for C11 to be Partial, and because C17 is
C11 plus DR resolutions, that makes C17 also Partial.


  Commit: ae1c564d1522f1202d05b698dce8d9c8ca46667c
      https://github.com/llvm/llvm-project/commit/ae1c564d1522f1202d05b698dce8d9c8ca46667c
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/test/Sema/ptrauth.c

  Log Message:
  -----------
  [clang][Interp] Cast dummy pointers to other pointer type if necessary


  Commit: 605e18479c8ee272759f2f52fc5259bfb8af7085
      https://github.com/llvm/llvm-project/commit/605e18479c8ee272759f2f52fc5259bfb8af7085
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Analysis/VectorUtils.cpp

  Log Message:
  -----------
  [VectorUtils] Use poison instead of undef in findScalarElement()

Out-of-range extractelement returns poison, and so do poison elements
in the shufflevector mask.


  Commit: 9b8c3c687163931eee69c718c9d83a7fe6bc6f57
      https://github.com/llvm/llvm-project/commit/9b8c3c687163931eee69c718c9d83a7fe6bc6f57
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp

  Log Message:
  -----------
  [InstSimplify] Use poison instead of undef for unreachable inst


  Commit: 29e0f046735010540fbdba4371dcd26f9e437650
      https://github.com/llvm/llvm-project/commit/29e0f046735010540fbdba4371dcd26f9e437650
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/www/c_status.html

  Log Message:
  -----------
  [C11] Remove WG14 N1353 from the list of papers to track

Only the first proposed changes in the paper were adopted, and that
wording was changing "operations" into "operators", which is purely an
editorial change.


  Commit: 69d07465c5cb0194d15dfe75b058957fd6ab16c8
      https://github.com/llvm/llvm-project/commit/69d07465c5cb0194d15dfe75b058957fd6ab16c8
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Analysis/Lint.cpp

  Log Message:
  -----------
  [Lint] Use poison instead of undef for self-referential values


  Commit: 6ecb9fd83d6015b19be8db554328645ae15e63e9
      https://github.com/llvm/llvm-project/commit/6ecb9fd83d6015b19be8db554328645ae15e63e9
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/www/c_status.html

  Log Message:
  -----------
  [C11] Remove WG14 N1382 from the list of papers to track

This paper proposes only changes to a footnote that had problematic
implications for ABI; the changes were purely editorial.


  Commit: fc4b09d16139348533f1a1c9c72c99dacba51417
      https://github.com/llvm/llvm-project/commit/fc4b09d16139348533f1a1c9c72c99dacba51417
  Author: Kristóf Umann <dkszelethus at gmail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/NoOwnershipChangeVisitor.cpp
    M clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
    A clang/test/Analysis/stream-notes-missing-close.cpp

  Log Message:
  -----------
  [analyzer] Add an ownership change visitor to StreamChecker (#94957)

This is very similar to https://reviews.llvm.org/D105553, in fact, I
barely made any changes from MallocChecker's ownership visitor to this
one.

The new visitor emits a diagnostic note for function where a change in
stream ownership was expected (for example, it had a fclose() call), but
the ownership remained unchanged. This is similar to messages regarding
ordinary values ("Returning without writing to x").


  Commit: b6447260748086c0df484ec6609f126ae90e91ea
      https://github.com/llvm/llvm-project/commit/b6447260748086c0df484ec6609f126ae90e91ea
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/test/CodeGen/PowerPC/inline-asm-constraints-error.c

  Log Message:
  -----------
  [PPC][InlineASM] Don't write to source directory in test


  Commit: 824113f7b1fe79e9e5258323a0fdfbf960ab315a
      https://github.com/llvm/llvm-project/commit/824113f7b1fe79e9e5258323a0fdfbf960ab315a
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/AsmParser/LLParser.cpp

  Log Message:
  -----------
  [LLParser] Use poison instead of undef when cleaning up forward refs


  Commit: 6258b5f610d51d37a79456d660b12c2d8e98500b
      https://github.com/llvm/llvm-project/commit/6258b5f610d51d37a79456d660b12c2d8e98500b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp

  Log Message:
  -----------
  [BitcodeReader] Use poison instead of undef for invalid instructions


  Commit: 34026207c87116bd8e7fb0a464ea8db947f8239a
      https://github.com/llvm/llvm-project/commit/34026207c87116bd8e7fb0a464ea8db947f8239a
  Author: Dan McArdle <dmcardle at google.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/docs/ThreadSafetyAnalysis.rst

  Log Message:
  -----------
  [clang][ThreadSafety] Fix code block syntax in ThreadSafetyAnalysis.rst (#96494)

Without a newline, documentation was failing to build with this error:

    Warning, treated as error:

/home/runner/work/llvm-project/llvm-project/clang-build/tools/clang/docs/ThreadSafetyAnalysis.rst:466:Error
in "code-block" directive:
    maximum 1 argument(s) allowed, 10 supplied.

Issue #92408


  Commit: df9f4792f55d63d77f45786a6b3c0955d2180e9e
      https://github.com/llvm/llvm-project/commit/df9f4792f55d63d77f45786a6b3c0955d2180e9e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/IR/Instructions.cpp

  Log Message:
  -----------
  [IR] Use poison instead of undef for self-referential phi


  Commit: b012ab01cb39e440a38dad5d7dd71b419480264b
      https://github.com/llvm/llvm-project/commit/b012ab01cb39e440a38dad5d7dd71b419480264b
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    A clang/test/C/C2x/n3033.c
    A clang/test/C/C2x/n3033_2.c
    M clang/www/c_status.html

  Log Message:
  -----------
  [C23] Claim conformance to WG14 N3033

Clang has implemented __VA_OPT__ since Clang 12.


  Commit: db9e9eabb7835bae4285a3f13c7cc7c985455e27
      https://github.com/llvm/llvm-project/commit/db9e9eabb7835bae4285a3f13c7cc7c985455e27
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/IR/Instructions.cpp

  Log Message:
  -----------
  [IR] Generate poison for all-poison scalable shufflevector mask

Ultimately doesn't matter because the bitcode reader interprets
undef and poison interchangeably in this context.


  Commit: 10bd5ad0a133fe73ffc1b05e63bc3fb2d56ba79c
      https://github.com/llvm/llvm-project/commit/10bd5ad0a133fe73ffc1b05e63bc3fb2d56ba79c
  Author: Miro Bucko <mbucko at meta.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M lldb/bindings/python/python-typemaps.swig
    M lldb/include/lldb/API/SBProcess.h
    M lldb/include/lldb/Core/AddressRangeListImpl.h
    M lldb/include/lldb/Target/Process.h
    M lldb/source/API/SBProcess.cpp
    M lldb/source/Target/Process.cpp
    A lldb/test/API/python_api/find_in_memory/Makefile
    A lldb/test/API/python_api/find_in_memory/TestFindInMemory.py
    A lldb/test/API/python_api/find_in_memory/TestFindRangesInMemory.py
    A lldb/test/API/python_api/find_in_memory/address_ranges_helper.py
    A lldb/test/API/python_api/find_in_memory/main.cpp

  Log Message:
  -----------
  [lldb][API] Add Find(Ranges)InMemory() to Process SB API (#95007)

Test Plan:
llvm-lit
llvm-project/lldb/test/API/python_api/find_in_memory/TestFindInMemory.py

llvm-project/lldb/test/API/python_api/find_in_memory/TestFindRangesInMemory.py

Reviewers: clayborg

Tasks: lldb


  Commit: 13c1fec4716a93079311d2dff54c4ae977f8de67
      https://github.com/llvm/llvm-project/commit/13c1fec4716a93079311d2dff54c4ae977f8de67
  Author: Angel Zhang <angel.zhang at amd.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    A mlir/include/mlir/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.h
    M mlir/include/mlir/Conversion/Passes.h
    M mlir/include/mlir/Conversion/Passes.td
    M mlir/lib/Conversion/CMakeLists.txt
    A mlir/lib/Conversion/ConvertToSPIRV/CMakeLists.txt
    A mlir/lib/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.cpp
    A mlir/test/Conversion/ConvertToSPIRV/arith.mlir
    A mlir/test/Conversion/ConvertToSPIRV/combined.mlir
    A mlir/test/Conversion/ConvertToSPIRV/index.mlir
    A mlir/test/Conversion/ConvertToSPIRV/scf.mlir
    A mlir/test/Conversion/ConvertToSPIRV/simple.mlir
    A mlir/test/Conversion/ConvertToSPIRV/ub.mlir
    A mlir/test/Conversion/ConvertToSPIRV/vector.mlir
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  Reland "[mlir][spirv] Add a generic convert-to-spirv pass" (#96359)

This PR relands #95942, which was reverted in #96332 due to link
failures. It fixes the issue by updating CMake dependencies. The bazel
support, originally introduced in #96334, is also included in this PR.

---------

Co-authored-by: Keith Smiley <keithbsmiley at gmail.com>


  Commit: 3e36dfafa0d11b2a5d7776d88f170c449116aa0e
      https://github.com/llvm/llvm-project/commit/3e36dfafa0d11b2a5d7776d88f170c449116aa0e
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/www/c_status.html

  Log Message:
  -----------
  [C23] Remove WG14 N2660 from the list of papers we track

This paper was a clarification paper that made no normative changes to
the wording, so we can lean on the C99 status for this.


  Commit: b0efde6db0282c0a98aec04806d7b8ba29e19a1b
      https://github.com/llvm/llvm-project/commit/b0efde6db0282c0a98aec04806d7b8ba29e19a1b
  Author: Vyacheslav Levytskyy <vyacheslav.levytskyy at intel.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    A llvm/test/CodeGen/SPIRV/const-array-in-struct.ll
    A llvm/test/CodeGen/SPIRV/const-nested-vecs.ll
    M llvm/test/CodeGen/SPIRV/opencl/image.ll
    A llvm/test/CodeGen/SPIRV/pointers/global-zeroinitializer.ll

  Log Message:
  -----------
  [SPIR-V]: Improve pattern matching to recognize a composite constant to be a constant (#96286)

This PR is to fix https://github.com/llvm/llvm-project/issues/96285 by:
* improve pattern matching to recognize an aggregate constant to be a
constant
* do not emit Bitcast for an aggregate type


  Commit: f985a8826bfa4ca3d23e654185de35e30ea6dc79
      https://github.com/llvm/llvm-project/commit/f985a8826bfa4ca3d23e654185de35e30ea6dc79
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/test/Driver/riscv-arch.c
    M clang/test/Preprocessor/riscv-target-features.c
    M llvm/docs/RISCVUsage.rst
    M llvm/docs/ReleaseNotes.rst
    M llvm/lib/Target/RISCV/RISCVFeatures.td
    M llvm/test/CodeGen/RISCV/GlobalISel/atomic-fence.ll
    M llvm/test/CodeGen/RISCV/atomic-cmpxchg.ll
    M llvm/test/CodeGen/RISCV/atomic-fence.ll
    M llvm/test/CodeGen/RISCV/atomic-load-store.ll
    M llvm/test/CodeGen/RISCV/atomic-rmw.ll
    M llvm/test/CodeGen/RISCV/atomicrmw-uinc-udec-wrap.ll
    M llvm/test/CodeGen/RISCV/attributes.ll
    M llvm/test/CodeGen/RISCV/module-elf-flags.ll
    M llvm/test/MC/RISCV/Ztso.s
    M llvm/test/MC/RISCV/attribute-arch.s
    M llvm/test/MC/RISCV/elf-flags.s
    M llvm/unittests/TargetParser/RISCVISAInfoTest.cpp

  Log Message:
  -----------
  Revert "[RISCV] Remove experimental from Ztso. (#96465)"

This reverts commit 9cd6ef4b8a5c843ef491437c765d4cb2ff2f8fe3.  See
discussion on review thread.


  Commit: b312cbf921422fc30615b1311b235a8cb31453d9
      https://github.com/llvm/llvm-project/commit/b312cbf921422fc30615b1311b235a8cb31453d9
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/include/llvm/Analysis/CGSCCPassManager.h
    M llvm/lib/Analysis/CGSCCPassManager.cpp

  Log Message:
  -----------
  [NFC][CGSCC] Remove RCWorklist from CGSCCUpdateResult (#95448)

After #94815, this is only used within
ModuleToPostOrderCGSCCPassAdaptor::run(), so keep it local to that
function.


  Commit: 3602efa78ddc16f82c338358748b3a13b3859e24
      https://github.com/llvm/llvm-project/commit/3602efa78ddc16f82c338358748b3a13b3859e24
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/resolve-names.cpp
    M flang/module/__fortran_builtins.f90
    M flang/test/Semantics/c_loc01.f90
    M flang/test/Semantics/call05.f90

  Log Message:
  -----------
  [flang] Silence errors on C_LOC/C_FUNLOC in specification expressions (#96108)

Transformational functions from the intrinsic module ISO_C_BINDING are
allowed in specification expressions, so tweak some general checks that
would otherwise trigger error messages about inadmissible targets, dummy
procedures in specification expressions, and pure procedures with impure
dummy procedures.


  Commit: 317277e4f961edf13132914a58a26408db4ab0aa
      https://github.com/llvm/llvm-project/commit/317277e4f961edf13132914a58a26408db4ab0aa
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/lib/Evaluate/fold-real.cpp
    M flang/test/Evaluate/fold-nearest.f90
    M flang/test/Evaluate/folding04.f90

  Log Message:
  -----------
  [flang] Better error reporting for MOD/MODULO/NEAREST (#96114)

When the second argument to these intrinsic functions is a scalar
constant zero, emit a warning (if enabled) even if the first argument is
not a constant.


  Commit: 6481dc57612671ebe77fe9c34214fba94e1b3b27
      https://github.com/llvm/llvm-project/commit/6481dc57612671ebe77fe9c34214fba94e1b3b27
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGBlocks.cpp
    M clang/lib/CodeGen/CGGPUBuiltin.cpp
    M clang/lib/CodeGen/CGHLSLRuntime.cpp
    M clang/lib/CodeGen/CGObjC.cpp
    M clang/lib/CodeGen/CGObjCMac.cpp
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/CodeGenABITypes.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/include/llvm/IR/Instruction.h
    M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/lib/CodeGen/AtomicExpandPass.cpp
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/lib/CodeGen/ExpandLargeFpConvert.cpp
    M llvm/lib/CodeGen/ExpandMemCmp.cpp
    M llvm/lib/CodeGen/ExpandVectorPredication.cpp
    M llvm/lib/CodeGen/HardwareLoops.cpp
    M llvm/lib/CodeGen/IntrinsicLowering.cpp
    M llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
    M llvm/lib/CodeGen/SafeStack.cpp
    M llvm/lib/CodeGen/ShadowStackGCLowering.cpp
    M llvm/lib/CodeGen/SjLjEHPrepare.cpp
    M llvm/lib/CodeGen/WasmEHPrepare.cpp
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/IR/Core.cpp
    M llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
    M llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
    M llvm/lib/Target/ARM/ARMParallelDSP.cpp
    M llvm/lib/Target/ARM/MVELaneInterleavingPass.cpp
    M llvm/lib/Target/ARM/MVETailPredication.cpp
    M llvm/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
    M llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
    M llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
    M llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
    M llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
    M llvm/lib/Target/X86/X86LowerAMXType.cpp
    M llvm/lib/Target/X86/X86WinEHState.cpp
    M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    M llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
    M llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
    M llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
    M llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    M llvm/lib/Transforms/ObjCARC/ObjCARC.cpp
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/lib/Transforms/Scalar/GuardWidening.cpp
    M llvm/lib/Transforms/Scalar/LoopBoundSplit.cpp
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    M llvm/lib/Transforms/Scalar/LoopPredication.cpp
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
    M llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
    M llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp
    M llvm/lib/Transforms/Scalar/Scalarizer.cpp
    M llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp
    M llvm/lib/Transforms/Utils/BypassSlowDivision.cpp
    M llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
    M llvm/lib/Transforms/Utils/FlattenCFG.cpp
    M llvm/lib/Transforms/Utils/InlineFunction.cpp
    M llvm/lib/Transforms/Utils/IntegerDivision.cpp
    M llvm/lib/Transforms/Utils/SSAUpdaterBulk.cpp
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/lib/Transforms/Vectorize/LoopIdiomVectorize.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/unittests/Analysis/MemorySSATest.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M llvm/unittests/IR/BasicBlockTest.cpp
    M llvm/unittests/IR/DebugInfoTest.cpp
    M llvm/unittests/IR/IRBuilderTest.cpp
    M llvm/unittests/Transforms/Utils/SSAUpdaterBulkTest.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M polly/lib/CodeGen/BlockGenerators.cpp

  Log Message:
  -----------
  [IR][NFC] Update IRBuilder to use InsertPosition (#96497)

Uses the new InsertPosition class (added in #94226) to simplify some of
the IRBuilder interface, and removes the need to pass a BasicBlock
alongside a BasicBlock::iterator, using the fact that we can now get the
parent basic block from the iterator even if it points to the sentinel.
This patch removes the BasicBlock argument from each constructor or call
to setInsertPoint.

This has no functional effect, but later on as we look to remove the
`Instruction *InsertBefore` argument from instruction-creation
(discussed
[here](https://discourse.llvm.org/t/psa-instruction-constructors-changing-to-iterator-only-insertion/77845)),
this will simplify the process by allowing us to deprecate the
InsertPosition constructor directly and catch all the cases where we use
instructions rather than iterators.


  Commit: 347206f9570446340da6d7dadc13d10b0aac4528
      https://github.com/llvm/llvm-project/commit/347206f9570446340da6d7dadc13d10b0aac4528
  Author: Chelsea Cassanova <chelsea_cassanova at apple.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M lldb/include/lldb/lldb-private-interfaces.h
    M lldb/source/Breakpoint/BreakpointOptions.cpp
    M lldb/unittests/CMakeLists.txt
    A lldb/unittests/Callback/CMakeLists.txt
    A lldb/unittests/Callback/TestBreakpointSetCallback.cpp

  Log Message:
  -----------
  Add a unit test for SBBreakpoint::SetCallback (#96001)

This commit adds a unit test for SBBreakpoint::SetCallback as it wasn't
being tested before.


  Commit: 9eba835dec2e7d755a86efdf464ff5745f3c2b1e
      https://github.com/llvm/llvm-project/commit/9eba835dec2e7d755a86efdf464ff5745f3c2b1e
  Author: Nick Desaulniers (paternity leave) <nickdesaulniers at users.noreply.github.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M libc/config/linux/arm/entrypoints.txt

  Log Message:
  -----------
  [libc][arm] add malloc/free/aligned_alloc to entrypoints (#96516)

Necessary for arm32 cross full build.


  Commit: 9ab292d72651c6dda098a653320f7fbb3624b778
      https://github.com/llvm/llvm-project/commit/9ab292d72651c6dda098a653320f7fbb3624b778
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Semantics/check-allocate.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/expression.cpp
    M flang/lib/Semantics/pointer-assignment.cpp
    M flang/test/Semantics/select-rank03.f90

  Log Message:
  -----------
  [flang] Add/fix some semantic checks for assumed-rank (#96194)

Catch some cases where assumed rank dummy arguments are not allowed.


  Commit: 3b5b814647ef83ab763cf7871b6d74edfca67438
      https://github.com/llvm/llvm-project/commit/3b5b814647ef83ab763cf7871b6d74edfca67438
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h
    M lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
    M lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.h
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h
    A lldb/test/Shell/SymbolFile/DWARF/x86/dwp-foreign-type-units.cpp
    M llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
    M llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp

  Log Message:
  -----------
  Add support for using foreign type units in .debug_names. (#87740)

This patch adds support for the new foreign type unit support in
.debug_names. Features include:
- don't manually index foreign TUs if we have info for them
- only use the type unit entries that match the .dwo files when we have
a .dwp file
- fix type unit lookups for .dwo files
- fix crashers that happen due to PeekDIEName() using wrong offsets where an entry had DW_IDX_comp_unit and DW_IDX_type_unit entries and when we had no type unit support, it would cause us to think it was a normal DIE in .debug_info from the main executable.

---------

Co-authored-by: paperchalice <liujunchang97 at outlook.com>


  Commit: d75f9dd1d29b332bdc51346de63cbc04646354d7
      https://github.com/llvm/llvm-project/commit/d75f9dd1d29b332bdc51346de63cbc04646354d7
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang/lib/CodeGen/CGBlocks.cpp
    M clang/lib/CodeGen/CGGPUBuiltin.cpp
    M clang/lib/CodeGen/CGHLSLRuntime.cpp
    M clang/lib/CodeGen/CGObjC.cpp
    M clang/lib/CodeGen/CGObjCMac.cpp
    M clang/lib/CodeGen/CGOpenMPRuntime.cpp
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/lib/CodeGen/CodeGenABITypes.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/include/llvm/IR/Instruction.h
    M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    M llvm/lib/CodeGen/AtomicExpandPass.cpp
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/lib/CodeGen/ExpandLargeFpConvert.cpp
    M llvm/lib/CodeGen/ExpandMemCmp.cpp
    M llvm/lib/CodeGen/ExpandVectorPredication.cpp
    M llvm/lib/CodeGen/HardwareLoops.cpp
    M llvm/lib/CodeGen/IntrinsicLowering.cpp
    M llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
    M llvm/lib/CodeGen/SafeStack.cpp
    M llvm/lib/CodeGen/ShadowStackGCLowering.cpp
    M llvm/lib/CodeGen/SjLjEHPrepare.cpp
    M llvm/lib/CodeGen/WasmEHPrepare.cpp
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/IR/Core.cpp
    M llvm/lib/Target/AArch64/SVEIntrinsicOpts.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
    M llvm/lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
    M llvm/lib/Target/ARM/ARMParallelDSP.cpp
    M llvm/lib/Target/ARM/MVELaneInterleavingPass.cpp
    M llvm/lib/Target/ARM/MVETailPredication.cpp
    M llvm/lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
    M llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
    M llvm/lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
    M llvm/lib/Target/PowerPC/PPCBoolRetToInt.cpp
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
    M llvm/lib/Target/X86/X86LowerAMXIntrinsics.cpp
    M llvm/lib/Target/X86/X86LowerAMXType.cpp
    M llvm/lib/Target/X86/X86WinEHState.cpp
    M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    M llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
    M llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
    M llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
    M llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
    M llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    M llvm/lib/Transforms/ObjCARC/ObjCARC.cpp
    M llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
    M llvm/lib/Transforms/Scalar/GuardWidening.cpp
    M llvm/lib/Transforms/Scalar/LoopBoundSplit.cpp
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    M llvm/lib/Transforms/Scalar/LoopPredication.cpp
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
    M llvm/lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
    M llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp
    M llvm/lib/Transforms/Scalar/Scalarizer.cpp
    M llvm/lib/Transforms/Utils/AMDGPUEmitPrintf.cpp
    M llvm/lib/Transforms/Utils/BypassSlowDivision.cpp
    M llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
    M llvm/lib/Transforms/Utils/FlattenCFG.cpp
    M llvm/lib/Transforms/Utils/InlineFunction.cpp
    M llvm/lib/Transforms/Utils/IntegerDivision.cpp
    M llvm/lib/Transforms/Utils/SSAUpdaterBulk.cpp
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/lib/Transforms/Vectorize/LoopIdiomVectorize.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/unittests/Analysis/MemorySSATest.cpp
    M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
    M llvm/unittests/IR/BasicBlockTest.cpp
    M llvm/unittests/IR/DebugInfoTest.cpp
    M llvm/unittests/IR/IRBuilderTest.cpp
    M llvm/unittests/Transforms/Utils/SSAUpdaterBulkTest.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M polly/lib/CodeGen/BlockGenerators.cpp

  Log Message:
  -----------
  Revert "[IR][NFC] Update IRBuilder to use InsertPosition (#96497)"

Reverts the above commit, as it updates a common header function and
did not update all callsites:

  https://lab.llvm.org/buildbot/#/builders/29/builds/382

This reverts commit 6481dc57612671ebe77fe9c34214fba94e1b3b27.


  Commit: 7601ae125de673c5a5f13a1d97f16cdd49e26e29
      https://github.com/llvm/llvm-project/commit/7601ae125de673c5a5f13a1d97f16cdd49e26e29
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-select-fp.ll

  Log Message:
  -----------
  [RISCV] Add back some test cases I inadvertently deleted. NFC

These tests were accidentally removed in a7a1195f01037e5019f671c96ef4bca9af9bb9a7.

I only meant to remove bfloat tests, but I accidentally removed
f32 and f64 as well.


  Commit: cb248f8c2a79fbddfdfed0039390e49512410a80
      https://github.com/llvm/llvm-project/commit/cb248f8c2a79fbddfdfed0039390e49512410a80
  Author: Martin Storsjö <martin at martin.st>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M lld/COFF/Driver.cpp
    A lld/test/COFF/invalid-entry.s

  Log Message:
  -----------
  [LLD] [COFF] Don't crash on an empty -entry: argument (#96058)

We can't pass an empty string to addUndefined().

This fixes the crash that was encountered in
https://github.com/llvm/llvm-project/issues/93309 (turning the crash
into a properly handled error; making it do the right thing is handled
in https://github.com/llvm/llvm-project/pull/96055).


  Commit: 3a57925b071f16c64af6a729078dce58510a0da9
      https://github.com/llvm/llvm-project/commit/3a57925b071f16c64af6a729078dce58510a0da9
  Author: Abid Qadeer <haqadeer at amd.com>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
    M flang/lib/Optimizer/Transforms/DebugTypeGenerator.h
    M flang/test/Integration/debug-char-type-1.f90
    M flang/test/Transforms/debug-char-type-1.fir

  Log Message:
  -----------
  [flang][debug] Handle allocatable strings. (#95906)

The allocatable strings also use DIStringType but provide dwarf
expressions to find the location and length of the string. With this
change in place, the debugging of the allocatable strings looks like
this:

  character(len=:), allocatable :: first
  character(len=:), allocatable :: second
  character(len=:), allocatable :: third

  first = 'Mount'
  second = 'Everest'
  third = first // " " // second
  print *, third

(gdb) p third
$1 = ""
(gdb) n
18        print *, third
(gdb) p third
$2 = 'Mount Everest'
(gdb) ptype third
type = character (13)


  Commit: ee4c12f87dfe24431a786d8bf32aa853a5f39e7f
      https://github.com/llvm/llvm-project/commit/ee4c12f87dfe24431a786d8bf32aa853a5f39e7f
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/LinkerScript.h
    M lld/ELF/ScriptParser.cpp
    M lld/test/ELF/linkerscript/addr.test
    M lld/test/ELF/linkerscript/locationcountererr-arm-exidx.test

  Log Message:
  -----------
  [ELF] Postpone more linker script errors

Since `assignAddresses` is executed more than once, error reporting
during `assignAddresses` would be duplicated. Generalize #66854 to cover
more errors.

Note: address-related errors exposed in one invocation might not be
errors in another invocation.

Pull Request: https://github.com/llvm/llvm-project/pull/96361


  Commit: c30ee0ef83183686e679ad5efdfa257e2ed1d51d
      https://github.com/llvm/llvm-project/commit/c30ee0ef83183686e679ad5efdfa257e2ed1d51d
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-24 (Mon, 24 Jun 2024)

  Changed paths:
    M clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
    R clang-tools-extra/test/clang-doc/single-source-html.cpp
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/docs/ThreadSafetyAnalysis.rst
    M clang/include/clang/AST/ASTContext.h
    M clang/include/clang/AST/AbstractBasicReader.h
    M clang/include/clang/AST/AbstractBasicWriter.h
    M clang/include/clang/AST/Decl.h
    M clang/include/clang/AST/DeclID.h
    M clang/include/clang/AST/PropertiesBase.td
    M clang/include/clang/AST/Type.h
    M clang/include/clang/AST/TypeProperties.td
    M clang/include/clang/Basic/Attr.td
    M clang/include/clang/Basic/AttrDocs.td
    M clang/include/clang/Basic/Builtins.td
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Basic/PointerAuthOptions.h
    M clang/include/clang/Basic/SourceManager.h
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Frontend/CompilerInvocation.h
    M clang/include/clang/Sema/ParsedAttr.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/AST/Interp/ByteCodeEmitter.h
    M clang/lib/AST/Interp/ByteCodeExprGen.cpp
    M clang/lib/AST/Interp/ByteCodeExprGen.h
    M clang/lib/AST/Interp/EvalEmitter.h
    M clang/lib/AST/Interp/InterpBuiltin.cpp
    M clang/lib/AST/QualTypeNames.cpp
    M clang/lib/AST/Type.cpp
    M clang/lib/AST/TypePrinter.cpp
    M clang/lib/Analysis/ThreadSafety.cpp
    M clang/lib/Basic/SourceManager.cpp
    M clang/lib/Basic/Targets/PPC.h
    M clang/lib/Basic/Targets/X86.cpp
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGCall.h
    M clang/lib/CodeGen/CGDecl.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CGExprConstant.cpp
    M clang/lib/CodeGen/CGPointerAuth.cpp
    A clang/lib/CodeGen/CGPointerAuthInfo.h
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/CodeGen/CodeGenModule.h
    M clang/lib/Driver/ToolChains/AMDGPU.cpp
    M clang/lib/Driver/ToolChains/AMDGPU.h
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/lib/Frontend/TextDiagnostic.cpp
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h
    M clang/lib/Headers/ptrauth.h
    M clang/lib/Lex/PPDirectives.cpp
    M clang/lib/Sema/Sema.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaLookup.cpp
    M clang/lib/Sema/SemaModule.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/lib/Sema/TreeTransform.h
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/lib/StaticAnalyzer/Checkers/NoOwnershipChangeVisitor.cpp
    M clang/lib/StaticAnalyzer/Checkers/PointerSubChecker.cpp
    M clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
    M clang/test/AST/Interp/c.c
    M clang/test/Analysis/casts.c
    A clang/test/Analysis/pointer-sub-notes.c
    M clang/test/Analysis/pointer-sub.c
    A clang/test/Analysis/stream-notes-missing-close.cpp
    A clang/test/C/C11/n1285.c
    A clang/test/C/C2x/n3033.c
    A clang/test/C/C2x/n3033_2.c
    M clang/test/CXX/expr/expr.prim/expr.prim.req/compound-requirement.cpp
    A clang/test/CodeGen/PowerPC/inline-asm-constraints-error.c
    M clang/test/CodeGen/aarch64-mixed-target-attributes.c
    M clang/test/CodeGen/attr-target-clones-aarch64.c
    M clang/test/CodeGen/attr-target-version.c
    M clang/test/CodeGen/builtins-elementwise-math.c
    M clang/test/CodeGen/cfstring.c
    A clang/test/CodeGen/ptrauth-function-attributes.c
    A clang/test/CodeGen/ptrauth-function-init-fail.c
    A clang/test/CodeGen/ptrauth-function-init.c
    A clang/test/CodeGen/ptrauth-function-lvalue-cast.c
    A clang/test/CodeGen/ptrauth-function.c
    M clang/test/CodeGen/ptrauth-intrinsics.c
    A clang/test/CodeGen/ptrauth-weak_import.c
    M clang/test/CodeGen/strictfp-elementwise-bulitins.cpp
    M clang/test/CodeGenCUDA/amdgpu-atomic-ops.cu
    M clang/test/CodeGenCXX/attr-target-clones-aarch64.cpp
    M clang/test/CodeGenCXX/attr-target-version.cpp
    M clang/test/CodeGenCXX/auto-var-init-max-size.cpp
    M clang/test/CodeGenCXX/auto-var-init-stop-after.cpp
    M clang/test/CodeGenCXX/auto-var-init.cpp
    M clang/test/CodeGenCXX/fmv-namespace.cpp
    A clang/test/CodeGenCXX/ptrauth.cpp
    A clang/test/CodeGenCXX/trivial-auto-var-init-skip-scalar-with-nonconst-init.cpp
    A clang/test/CodeGenHLSL/builtins/acos.hlsl
    A clang/test/CodeGenHLSL/builtins/asin.hlsl
    A clang/test/CodeGenHLSL/builtins/atan.hlsl
    A clang/test/CodeGenHLSL/builtins/cosh.hlsl
    A clang/test/CodeGenHLSL/builtins/sinh.hlsl
    A clang/test/CodeGenHLSL/builtins/tanh.hlsl
    M clang/test/Driver/rocm-device-libs.cl
    M clang/test/Driver/x86-target-features.c
    M clang/test/Index/overriding-ftemplate-comments.cpp
    M clang/test/Modules/no-eager-load.cppm
    M clang/test/Modules/no-implicit-declarations.cppm
    A clang/test/Modules/no-transitive-decl-change-2.cppm
    A clang/test/Modules/same-decl-in-different-modules.cppm
    M clang/test/Preprocessor/predefined-win-macros.c
    M clang/test/Preprocessor/x86_target_features.c
    M clang/test/Sema/aarch64-sve-vector-trig-ops.c
    M clang/test/Sema/attr-capabilities.c
    A clang/test/Sema/attr-nonblocking-sema.c
    A clang/test/Sema/attr-nonblocking-sema.cpp
    A clang/test/Sema/attr-nonblocking-syntax.cpp
    M clang/test/Sema/builtins-elementwise-math.c
    M clang/test/Sema/ptrauth.c
    M clang/test/Sema/riscv-rvv-vector-trig-ops.c
    M clang/test/SemaCXX/builtins-elementwise-math.cpp
    M clang/test/SemaCXX/warn-thread-safety-analysis.cpp
    M clang/test/SemaCXX/warn-thread-safety-parsing.cpp
    M clang/test/SemaHLSL/BuiltIns/half-float-only-errors.hlsl
    M clang/unittests/AST/ASTImporterTest.cpp
    M clang/unittests/Format/TokenAnnotatorTest.cpp
    R clang/utils/ClangDataFormat.py
    M clang/utils/TableGen/ClangAttrEmitter.cpp
    M clang/www/c_status.html
    M clang/www/cxx_status.html
    M compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
    M compiler-rt/lib/hwasan/CMakeLists.txt
    M compiler-rt/lib/scudo/standalone/tests/memtag_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/scudo_unit_test.h
    M compiler-rt/lib/scudo/standalone/tests/strings_test.cpp
    M compiler-rt/lib/scudo/standalone/tests/vector_test.cpp
    M flang/docs/Intrinsics.md
    M flang/include/flang/Evaluate/characteristics.h
    M flang/include/flang/Evaluate/shape.h
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Evaluate/characteristics.cpp
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/lib/Evaluate/fold-real.cpp
    M flang/lib/Evaluate/shape.cpp
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Lower/CallInterface.cpp
    M flang/lib/Optimizer/Transforms/DebugTypeGenerator.cpp
    M flang/lib/Optimizer/Transforms/DebugTypeGenerator.h
    M flang/lib/Semantics/check-allocate.cpp
    M flang/lib/Semantics/check-call.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/lib/Semantics/expression.cpp
    M flang/lib/Semantics/pointer-assignment.cpp
    M flang/lib/Semantics/resolve-names.cpp
    M flang/lib/Semantics/runtime-type-info.cpp
    M flang/module/__fortran_builtins.f90
    M flang/runtime/execute.cpp
    M flang/test/Evaluate/fold-nearest.f90
    M flang/test/Evaluate/folding04.f90
    M flang/test/Evaluate/rewrite06.f90
    M flang/test/Integration/debug-char-type-1.f90
    M flang/test/Preprocessing/directive-contin-with-pp.F90
    M flang/test/Semantics/c_loc01.f90
    M flang/test/Semantics/call05.f90
    M flang/test/Semantics/select-rank03.f90
    M flang/test/Transforms/debug-char-type-1.fir
    M flang/unittests/Runtime/CommandTest.cpp
    M libc/config/baremetal/arm/entrypoints.txt
    M libc/config/baremetal/riscv/entrypoints.txt
    M libc/config/linux/arm/entrypoints.txt
    M libc/spec/linux.td
    M libc/src/stdlib/CMakeLists.txt
    M libc/startup/linux/CMakeLists.txt
    M libc/test/src/__support/CMakeLists.txt
    M libclc/CMakeLists.txt
    M libclc/cmake/modules/AddLibclc.cmake
    M libcxx/docs/Status/ParallelismProjects.csv
    M libcxx/include/__atomic/atomic_base.h
    M libcxx/include/__charconv/chars_format.h
    M libcxx/include/__chrono/time_point.h
    M libcxx/include/__functional/function.h
    M libcxx/include/__iterator/data.h
    M libcxx/include/__iterator/size.h
    M libcxx/include/__numeric/gcd_lcm.h
    M libcxx/include/__random/discard_block_engine.h
    M libcxx/include/__string/char_traits.h
    M libcxx/include/__utility/pair.h
    M libcxx/include/deque
    M libcxx/include/experimental/__simd/reference.h
    M libcxx/include/experimental/propagate_const
    M libcxx/include/experimental/simd
    M libcxx/include/experimental/type_traits
    M libcxx/include/forward_list
    M libcxx/include/future
    M libcxx/include/list
    M libcxx/include/map
    M libcxx/include/queue
    M libcxx/include/set
    M libcxx/include/stack
    M libcxx/include/string
    M libcxx/include/string_view
    M libcxx/include/tuple
    A libcxx/test/std/experimental/simd/simd.reference/reference_swap.pass.cpp
    M lld/COFF/Driver.cpp
    M lld/ELF/LinkerScript.cpp
    M lld/ELF/LinkerScript.h
    M lld/ELF/ScriptParser.cpp
    M lld/ELF/Writer.cpp
    A lld/test/COFF/invalid-entry.s
    M lld/test/ELF/linkerscript/addr.test
    M lld/test/ELF/linkerscript/locationcountererr-arm-exidx.test
    A lld/test/wasm/Inputs/signature-mismatch-debug-info-a.s
    A lld/test/wasm/Inputs/signature-mismatch-debug-info-b.s
    A lld/test/wasm/Inputs/signature-mismatch-debug-info-main.s
    A lld/test/wasm/signature-mismatch-debug-info.test
    M lld/wasm/InputChunks.h
    M lldb/bindings/python/python-typemaps.swig
    M lldb/include/lldb/API/SBProcess.h
    M lldb/include/lldb/Core/AddressRangeListImpl.h
    M lldb/include/lldb/Expression/ExpressionParser.h
    M lldb/include/lldb/Target/Platform.h
    M lldb/include/lldb/Target/Process.h
    M lldb/include/lldb/Target/RemoteAwarePlatform.h
    M lldb/include/lldb/lldb-private-enumerations.h
    M lldb/include/lldb/lldb-private-interfaces.h
    M lldb/source/API/SBProcess.cpp
    M lldb/source/Breakpoint/BreakpointOptions.cpp
    M lldb/source/Expression/CMakeLists.txt
    A lldb/source/Expression/ExpressionParser.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h
    M lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
    M lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.cpp
    M lldb/source/Plugins/Platform/MacOSX/PlatformAppleSimulator.h
    M lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
    M lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.h
    M lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h
    M lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.h
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    M lldb/source/Symbol/Type.cpp
    M lldb/source/Target/Platform.cpp
    M lldb/source/Target/Process.cpp
    M lldb/source/Target/RemoteAwarePlatform.cpp
    M lldb/test/API/assert_messages_test/TestAssertMessages.py
    M lldb/test/API/lang/objcxx/objc-from-cpp-frames-without-debuginfo/TestObjCFromCppFramesWithoutDebugInfo.py
    M lldb/test/API/macosx/early-process-launch/TestEarlyProcessLaunch.py
    A lldb/test/API/python_api/find_in_memory/Makefile
    A lldb/test/API/python_api/find_in_memory/TestFindInMemory.py
    A lldb/test/API/python_api/find_in_memory/TestFindRangesInMemory.py
    A lldb/test/API/python_api/find_in_memory/address_ranges_helper.py
    A lldb/test/API/python_api/find_in_memory/main.cpp
    M lldb/test/API/tools/lldb-dap/launch/TestDAP_launch.py
    M lldb/test/API/tools/lldb-dap/runInTerminal/TestDAP_runInTerminal.py
    A lldb/test/Shell/Expr/TestObjCInCXXContext.test
    M lldb/test/Shell/SymbolFile/DWARF/clang-gmodules-type-lookup.c
    M lldb/test/Shell/SymbolFile/DWARF/x86/compilercontext.ll
    A lldb/test/Shell/SymbolFile/DWARF/x86/dwp-foreign-type-units.cpp
    M lldb/test/Shell/SymbolFile/DWARF/x86/find-basic-function.cpp
    M lldb/test/Shell/SymbolFile/DWARF/x86/module-ownership.mm
    M lldb/tools/lldb-test/lldb-test.cpp
    M lldb/unittests/CMakeLists.txt
    A lldb/unittests/Callback/CMakeLists.txt
    A lldb/unittests/Callback/TestBreakpointSetCallback.cpp
    M lldb/unittests/Symbol/TestType.cpp
    M lldb/unittests/SymbolFile/DWARF/DWARFDIETest.cpp
    M lldb/unittests/Target/RemoteAwarePlatformTest.cpp
    M llvm/docs/LangRef.rst
    M llvm/include/llvm/Analysis/CGSCCPassManager.h
    M llvm/include/llvm/AsmParser/LLParser.h
    M llvm/include/llvm/Bitcode/LLVMBitCodes.h
    M llvm/include/llvm/CodeGen/MachineDominators.h
    M llvm/include/llvm/CodeGen/MachinePassManager.h
    M llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
    M llvm/include/llvm/Frontend/HLSL/HLSLResource.h
    M llvm/include/llvm/Frontend/OpenMP/OMP.td
    M llvm/include/llvm/IR/Attributes.h
    M llvm/include/llvm/IR/Attributes.td
    A llvm/include/llvm/IR/ConstantRangeList.h
    M llvm/include/llvm/IR/IntrinsicsAMDGPU.td
    M llvm/include/llvm/IR/PassInstrumentation.h
    M llvm/include/llvm/IR/PassManager.h
    M llvm/include/llvm/MC/MCAsmLayout.h
    M llvm/include/llvm/MC/MCAssembler.h
    M llvm/include/llvm/MC/MCContext.h
    M llvm/include/llvm/MC/MCELFStreamer.h
    M llvm/include/llvm/MC/MCFragment.h
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/include/llvm/MC/MCSection.h
    M llvm/include/llvm/MC/MCSectionCOFF.h
    M llvm/include/llvm/MC/MCSectionDXContainer.h
    M llvm/include/llvm/MC/MCSectionELF.h
    M llvm/include/llvm/MC/MCSectionGOFF.h
    M llvm/include/llvm/MC/MCSectionMachO.h
    M llvm/include/llvm/MC/MCSectionSPIRV.h
    M llvm/include/llvm/MC/MCSectionWasm.h
    M llvm/include/llvm/MC/MCSectionXCOFF.h
    M llvm/include/llvm/MC/MCStreamer.h
    M llvm/include/llvm/MC/MCWasmStreamer.h
    M llvm/include/llvm/MC/MCWinCOFFStreamer.h
    M llvm/include/llvm/Passes/MachinePassRegistry.def
    M llvm/include/llvm/Passes/TargetPassRegistry.inc
    M llvm/include/llvm/ProfileData/InstrProf.h
    M llvm/include/llvm/Support/DXILABI.h
    M llvm/include/llvm/Support/FormatProviders.h
    M llvm/include/llvm/Support/GenericDomTree.h
    M llvm/include/llvm/Support/GenericDomTreeConstruction.h
    M llvm/include/llvm/Target/TargetMachine.h
    M llvm/lib/Analysis/BranchProbabilityInfo.cpp
    M llvm/lib/Analysis/CGSCCPassManager.cpp
    M llvm/lib/Analysis/CallGraphSCCPass.cpp
    M llvm/lib/Analysis/CallPrinter.cpp
    M llvm/lib/Analysis/CaptureTracking.cpp
    M llvm/lib/Analysis/CycleAnalysis.cpp
    M llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp
    M llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp
    M llvm/lib/Analysis/InlineAdvisor.cpp
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/lib/Analysis/LazyValueInfo.cpp
    M llvm/lib/Analysis/Lint.cpp
    M llvm/lib/Analysis/LoopAnalysisManager.cpp
    M llvm/lib/Analysis/LoopPass.cpp
    M llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Analysis/ScalarEvolutionDivision.cpp
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/Analysis/VectorUtils.cpp
    M llvm/lib/AsmParser/LLParser.cpp
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
    M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
    M llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
    M llvm/lib/CodeGen/MLRegAllocEvictAdvisor.cpp
    M llvm/lib/CodeGen/MachineDominators.cpp
    M llvm/lib/CodeGen/RegAllocFast.cpp
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/DWARFLinker/Parallel/ArrayList.h
    M llvm/lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
    M llvm/lib/ExecutionEngine/Orc/Core.cpp
    M llvm/lib/ExecutionEngine/Orc/Debugging/DebugInfoSupport.cpp
    M llvm/lib/IR/AttributeImpl.h
    M llvm/lib/IR/Attributes.cpp
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/IR/CMakeLists.txt
    A llvm/lib/IR/ConstantRangeList.cpp
    M llvm/lib/IR/Instructions.cpp
    M llvm/lib/IR/LLVMContextImpl.cpp
    M llvm/lib/IR/LLVMContextImpl.h
    M llvm/lib/IR/PassInstrumentation.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/lib/MC/MCAsmStreamer.cpp
    M llvm/lib/MC/MCAssembler.cpp
    M llvm/lib/MC/MCCodeView.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCELFStreamer.cpp
    M llvm/lib/MC/MCExpr.cpp
    M llvm/lib/MC/MCFragment.cpp
    M llvm/lib/MC/MCMachOStreamer.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/lib/MC/MCSection.cpp
    M llvm/lib/MC/MCSectionCOFF.cpp
    M llvm/lib/MC/MCSectionDXContainer.cpp
    M llvm/lib/MC/MCSectionELF.cpp
    M llvm/lib/MC/MCSectionMachO.cpp
    M llvm/lib/MC/MCSectionWasm.cpp
    M llvm/lib/MC/MCSectionXCOFF.cpp
    M llvm/lib/MC/MCStreamer.cpp
    M llvm/lib/MC/MCSymbol.cpp
    M llvm/lib/MC/MCWasmStreamer.cpp
    M llvm/lib/MC/MCWinCOFFStreamer.cpp
    M llvm/lib/MC/WinCOFFObjectWriter.cpp
    M llvm/lib/Passes/PassBuilder.cpp
    M llvm/lib/ProfileData/InstrProf.cpp
    M llvm/lib/ProfileData/InstrProfReader.cpp
    M llvm/lib/Target/AArch64/AArch64Arm64ECCallLowering.cpp
    M llvm/lib/Target/AArch64/AArch64CallingConvention.td
    M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.h
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
    M llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64TargetStreamer.h
    M llvm/lib/Target/AMDGPU/AMDGPU.td
    M llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUSearchableTables.td
    M llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
    M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
    M llvm/lib/Target/AMDGPU/BUFInstructions.td
    M llvm/lib/Target/AMDGPU/DSInstructions.td
    M llvm/lib/Target/AMDGPU/FLATInstructions.td
    M llvm/lib/Target/AMDGPU/GCNSubtarget.h
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.td
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.td
    M llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
    M llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
    M llvm/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
    M llvm/lib/Target/AVR/AVRInstrInfo.td
    M llvm/lib/Target/BPF/BPFTargetMachine.cpp
    M llvm/lib/Target/BPF/BPFTargetMachine.h
    M llvm/lib/Target/DirectX/DirectXTargetMachine.cpp
    M llvm/lib/Target/DirectX/DirectXTargetMachine.h
    M llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp
    M llvm/lib/Target/Hexagon/HexagonTargetMachine.h
    M llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
    M llvm/lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp
    M llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
    M llvm/lib/Target/Mips/MipsAsmPrinter.cpp
    M llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
    M llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.h
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
    M llvm/lib/Target/NVPTX/NVVMReflect.cpp
    M llvm/lib/Target/PowerPC/PPCMergeStringPool.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVELFStreamer.h
    M llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
    M llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
    M llvm/lib/Target/SPIRV/MCTargetDesc/SPIRVTargetStreamer.h
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
    M llvm/lib/Target/SPIRV/SPIRVBuiltins.td
    M llvm/lib/Target/SPIRV/SPIRVCommandLine.cpp
    M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
    M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
    M llvm/lib/Target/SPIRV/SPIRVInstrInfo.td
    M llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
    M llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
    M llvm/lib/Target/SPIRV/SPIRVSymbolicOperands.td
    M llvm/lib/Target/X86/X86CodeGenPassBuilder.cpp
    M llvm/lib/Target/X86/X86MCInstLower.cpp
    M llvm/lib/Target/X86/X86TargetMachine.h
    M llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
    M llvm/lib/Transforms/Scalar/DivRemPairs.cpp
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    M llvm/lib/Transforms/Utils/CodeLayout.cpp
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/lib/Transforms/Vectorize/VPlanValue.h
    M llvm/runtimes/CMakeLists.txt
    A llvm/test/Assembler/initializes-attribute-invalid.ll
    M llvm/test/Bitcode/amdgcn-atomic.ll
    M llvm/test/Bitcode/attributes.ll
    M llvm/test/CodeGen/AArch64/arm64ec-entry-thunks.ll
    M llvm/test/CodeGen/AArch64/arm64ec-exit-thunks.ll
    M llvm/test/CodeGen/AArch64/preserve_nonecc_call.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/add.v2i16.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fp-atomics-gfx940.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fp64-atomics-gfx90a.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
    R llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.ds.fadd.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.intersect_ray.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/sub.v2i16.ll
    M llvm/test/CodeGen/AMDGPU/bitreverse-inline-immediates.ll
    M llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmax.ll
    M llvm/test/CodeGen/AMDGPU/buffer-fat-pointer-atomicrmw-fmin.ll
    M llvm/test/CodeGen/AMDGPU/flat-atomicrmw-fmax.ll
    M llvm/test/CodeGen/AMDGPU/flat-atomicrmw-fmin.ll
    M llvm/test/CodeGen/AMDGPU/fp-atomics-gfx1200.ll
    M llvm/test/CodeGen/AMDGPU/fp-atomics-gfx940.ll
    M llvm/test/CodeGen/AMDGPU/fp64-atomics-gfx90a.ll
    M llvm/test/CodeGen/AMDGPU/fsqrt.f32.ll
    M llvm/test/CodeGen/AMDGPU/global-atomicrmw-fmax.ll
    M llvm/test/CodeGen/AMDGPU/global-atomicrmw-fmin.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_i64.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_scan_fmax.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_scan_fmin.ll
    R llvm/test/CodeGen/AMDGPU/lds-atomic-fadd.ll
    M llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.intersect_ray.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.fmax.f32.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.fmax.f64.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.fmin.f32.ll
    A llvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.ptr.buffer.atomic.fmin.f64.ll
    M llvm/test/CodeGen/AMDGPU/llvm.maximum.f64.ll
    M llvm/test/CodeGen/AMDGPU/llvm.minimum.f64.ll
    M llvm/test/CodeGen/AMDGPU/load-constant-i1.ll
    M llvm/test/CodeGen/AMDGPU/load-constant-i16.ll
    M llvm/test/CodeGen/AMDGPU/load-constant-i8.ll
    M llvm/test/CodeGen/AMDGPU/med3-knownbits.ll
    M llvm/test/CodeGen/AMDGPU/occupancy-levels.ll
    M llvm/test/CodeGen/AMDGPU/permute_i8.ll
    M llvm/test/CodeGen/AMDGPU/preserve-wwm-copy-dst-reg.ll
    M llvm/test/CodeGen/AMDGPU/sgpr-regalloc-flags.ll
    M llvm/test/CodeGen/AMDGPU/shrink-add-sub-constant.ll
    M llvm/test/CodeGen/AMDGPU/shrink-insts-scalar-bit-ops.mir
    M llvm/test/CodeGen/AMDGPU/si-lower-sgpr-spills-vgpr-lanes-usage.mir
    M llvm/test/CodeGen/AMDGPU/spill-scavenge-offset.ll
    M llvm/test/CodeGen/AMDGPU/udiv64.ll
    M llvm/test/CodeGen/AMDGPU/urem64.ll
    M llvm/test/CodeGen/RISCV/rvv/fixed-vectors-select-fp.ll
    M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert-crossbb.ll
    M llvm/test/CodeGen/RISCV/rvv/vsetvli-insert.ll
    A llvm/test/CodeGen/SPIRV/const-array-in-struct.ll
    A llvm/test/CodeGen/SPIRV/const-nested-vecs.ll
    A llvm/test/CodeGen/SPIRV/extensions/SPV_KHR_cooperative_matrix/cooperative_matrix.ll
    M llvm/test/CodeGen/SPIRV/opencl/image.ll
    A llvm/test/CodeGen/SPIRV/pointers/global-zeroinitializer.ll
    A llvm/test/CodeGen/SPIRV/transcoding/OpPtrCastToGeneric.ll
    R llvm/test/CodeGen/X86/clz.ll
    A llvm/test/CodeGen/X86/ctlo.ll
    A llvm/test/CodeGen/X86/ctlz.ll
    A llvm/test/CodeGen/X86/cttz.ll
    M llvm/test/CodeGen/X86/stack-protector-msvc.ll
    M llvm/test/CodeGen/X86/tailcc-ssp.ll
    M llvm/test/Instrumentation/InstrProfiling/mcdc.ll
    M llvm/test/MC/AArch64/ELF_ARM64_large-relocations.s
    M llvm/test/MC/AMDGPU/gfx12_asm_vflat.s
    M llvm/test/MC/COFF/section-comdat.s
    M llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vflat.txt
    M llvm/test/MC/MachO/pending-labels.s
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f32-agent.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f32-system.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f64-agent.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-f64-system.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-rmw-fmax.ll
    M llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-rmw-fmin.ll
    A llvm/test/Transforms/DivRemPairs/X86/preserving-debugloc-frx-fry-mul-sub.ll
    A llvm/test/Transforms/DivRemPairs/X86/preserving-debugloc-realrem.ll
    A llvm/test/Transforms/InstCombine/fmul-bool.ll
    A llvm/test/Transforms/InstCombine/fold-a-or-b-zero.ll
    A llvm/test/Transforms/InstCombine/scmp.ll
    A llvm/test/Transforms/InstCombine/select-cmp-eq-op-fold.ll
    A llvm/test/Transforms/InstCombine/ucmp.ll
    M llvm/test/Transforms/InstSimplify/uscmp.ll
    M llvm/test/Transforms/LoopStrengthReduce/RISCV/lsr-drop-solution.ll
    M llvm/test/Transforms/LoopVectorize/AArch64/sme-vectorize.ll
    A llvm/test/Transforms/LoopVectorize/RISCV/only-compute-cost-for-vplan-vfs.ll
    M llvm/test/Transforms/LoopVectorize/RISCV/riscv-vector-reverse.ll
    R llvm/test/Transforms/LoopVectorize/WebAssembly/induction-branch-cost.ll
    R llvm/test/Transforms/LoopVectorize/WebAssembly/lit.local.cfg
    A llvm/test/Verifier/initializes-attr.ll
    M llvm/test/tools/llvm-split/AMDGPU/address-taken-externalize-with-call.ll
    M llvm/test/tools/llvm-split/AMDGPU/address-taken-externalize.ll
    A llvm/test/tools/llvm-split/AMDGPU/debug-non-kernel-root.ll
    M llvm/test/tools/llvm-split/AMDGPU/large-kernels-merging.ll
    A llvm/test/tools/llvm-split/AMDGPU/non-kernels-dependencies.ll
    A llvm/test/tools/llvm-split/AMDGPU/non-kernels-dependency-indirect.ll
    M llvm/tools/dsymutil/MachOUtils.cpp
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp
    M llvm/unittests/IR/CMakeLists.txt
    A llvm/unittests/IR/ConstantRangeListTest.cpp
    M llvm/unittests/Target/SPIRV/SPIRVConvergenceRegionAnalysisTests.cpp
    M llvm/utils/TableGen/ARMTargetDefEmitter.cpp
    M llvm/utils/TableGen/Attributes.cpp
    M llvm/utils/TableGen/ExegesisEmitter.cpp
    M llvm/utils/gn/secondary/clang-tools-extra/clang-doc/tool/BUILD.gn
    M llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn
    M llvm/utils/gn/secondary/compiler-rt/lib/hwasan/BUILD.gn
    M llvm/utils/gn/secondary/lldb/source/Expression/BUILD.gn
    M llvm/utils/gn/secondary/lldb/source/Utility/BUILD.gn
    M llvm/utils/gn/secondary/llvm/lib/IR/BUILD.gn
    M llvm/utils/gn/secondary/llvm/unittests/IR/BUILD.gn
    M mlir/include/mlir-c/Dialect/GPU.h
    A mlir/include/mlir/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.h
    M mlir/include/mlir/Conversion/Passes.h
    M mlir/include/mlir/Conversion/Passes.td
    M mlir/include/mlir/Dialect/ArmSME/Transforms/Passes.td
    M mlir/include/mlir/Dialect/Linalg/Utils/Utils.h
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/include/mlir/Dialect/SparseTensor/Transforms/Passes.td
    M mlir/include/mlir/Dialect/Utils/StaticValueUtils.h
    M mlir/include/mlir/Support/ThreadLocalCache.h
    M mlir/lib/Analysis/DataFlow/IntegerRangeAnalysis.cpp
    M mlir/lib/Bindings/Python/DialectGPU.cpp
    M mlir/lib/CAPI/Dialect/GPU.cpp
    M mlir/lib/Conversion/CMakeLists.txt
    A mlir/lib/Conversion/ConvertToSPIRV/CMakeLists.txt
    A mlir/lib/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.cpp
    M mlir/lib/Conversion/FuncToLLVM/FuncToLLVM.cpp
    M mlir/lib/Conversion/GPUCommon/GPUOpsLowering.cpp
    M mlir/lib/Conversion/GPUCommon/GPUOpsLowering.h
    M mlir/lib/Conversion/LLVMCommon/TypeConverter.cpp
    M mlir/lib/Dialect/ArmSME/Transforms/EnableArmStreaming.cpp
    M mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
    M mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
    M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
    M mlir/lib/Dialect/Mesh/Interfaces/ShardingInterface.cpp
    M mlir/lib/Dialect/Vector/Transforms/LowerVectorGather.cpp
    M mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    A mlir/test/Conversion/ConvertToSPIRV/arith.mlir
    A mlir/test/Conversion/ConvertToSPIRV/combined.mlir
    A mlir/test/Conversion/ConvertToSPIRV/index.mlir
    A mlir/test/Conversion/ConvertToSPIRV/scf.mlir
    A mlir/test/Conversion/ConvertToSPIRV/simple.mlir
    A mlir/test/Conversion/ConvertToSPIRV/ub.mlir
    A mlir/test/Conversion/ConvertToSPIRV/vector.mlir
    M mlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
    M mlir/test/Dialect/Arith/int-range-interface.mlir
    M mlir/test/Dialect/ArmSME/enable-arm-streaming-invalid.mlir
    M mlir/test/Dialect/ArmSME/enable-arm-streaming.mlir
    M mlir/test/Dialect/Linalg/promote.mlir
    M mlir/test/Dialect/Linalg/transform-promotion.mlir
    M mlir/test/Dialect/MemRef/canonicalize.mlir
    M mlir/test/Dialect/MemRef/subview.mlir
    M mlir/test/Dialect/Vector/vector-gather-lowering.mlir
    M mlir/test/Dialect/Vector/vector-rewrite-narrow-types.mlir
    M mlir/test/Dialect/Vector/vector-transfer-collapse-inner-most-dims.mlir
    M mlir/test/Dialect/Vector/vector-transferop-opt.mlir
    M mlir/test/Examples/NVGPU/Ch1.py
    M mlir/test/Examples/NVGPU/Ch2.py
    M mlir/test/Examples/NVGPU/Ch3.py
    M mlir/test/Examples/NVGPU/Ch4.py
    M mlir/test/Examples/NVGPU/Ch5.py
    M mlir/test/Integration/GPU/CUDA/sm90/python/tools/matmulBuilder.py
    M mlir/test/Target/LLVMIR/nvvmir.mlir
    M mlir/test/Target/LLVMIR/openmp-private.mlir
    M mlir/test/Transforms/canonicalize.mlir
    M utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  retainSec. adopt addStartStopSymbols suggestion

Created using spr 1.3.5-bogner


Compare: https://github.com/llvm/llvm-project/compare/7af0bb0e0ae1...c30ee0ef8318

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list