[all-commits] [llvm/llvm-project] f5a648: [doc] Add documentation for clang-change-namespace...

Steven Wu via All-commits all-commits at lists.llvm.org
Mon Aug 18 15:49:14 PDT 2025


  Branch: refs/heads/users/cachemeifyoucan/spr/cas-add-mappedfileregionbumpptr
  Home:   https://github.com/llvm/llvm-project
  Commit: f5a648f9193a16b1136772096c3024a0d8b3fb34
      https://github.com/llvm/llvm-project/commit/f5a648f9193a16b1136772096c3024a0d8b3fb34
  Author: Konrad Kleine <kkleine at redhat.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    A clang-tools-extra/docs/clang-change-namespace.rst
    M clang-tools-extra/docs/index.rst

  Log Message:
  -----------
  [doc] Add documentation for clang-change-namespace (#148277)

This adds rst documentation for the `clang-change-namespace` program.

Fixes #35519


  Commit: 7e9989390d95cbb382cb2dc9eb44b37717e23738
      https://github.com/llvm/llvm-project/commit/7e9989390d95cbb382cb2dc9eb44b37717e23738
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.h
    M llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp

  Log Message:
  -----------
  [VPlan] Materialize Build(Struct)Vectors for VPReplicateRecipes. (NFCI) (#151487)

Materialze Build(Struct)Vectors explicitly for VPRecplicateRecipes, to
serve their users requiring a vector, instead of doing so when unrolling
by VF.

Now we only need to implicitly build vectors in VPTransformState::get
for VPInstructions. Once they are also unrolled by VF we can remove the
code-path alltogether.

PR: https://github.com/llvm/llvm-project/pull/151487


  Commit: 378d2401251f53a8abb8a9757536bae2d000bc77
      https://github.com/llvm/llvm-project/commit/378d2401251f53a8abb8a9757536bae2d000bc77
  Author: Baranov Victor <bar.victor.2002 at gmail.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/add_new_check.py

  Log Message:
  -----------
  [clang-tidy] Remove addition of emacs tag in checks headers (#153942)

After https://github.com/llvm/llvm-project/pull/118553, emacs tag is no
longer needed in LLVM files:
https://llvm.org/docs/CodingStandards.html#file-headers.
This patch removes it from `add_new_check.py` lowering complexity we
need to maintain.


  Commit: b20bbd48e8b1966731a284b4208e048e060e97c2
      https://github.com/llvm/llvm-project/commit/b20bbd48e8b1966731a284b4208e048e060e97c2
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/utils/TableGen/DecoderEmitter.cpp

  Log Message:
  -----------
  [TableGen][DecoderEmitter] Store HW mode ID instead of name (NFC) (#154052)

This simplifies code a bit.


  Commit: c328c5d9117c19555793c548ebccfedc0b972398
      https://github.com/llvm/llvm-project/commit/c328c5d9117c19555793c548ebccfedc0b972398
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/fdiv.bf16.ll

  Log Message:
  -----------
  [AMDGPU] Combine to bf16 reciprocal square root. (#154185)

Co-authored-by: Ivan Kosarev <Ivan.Kosarev at amd.com>

Co-authored-by: Ivan Kosarev <Ivan.Kosarev at amd.com>


  Commit: 3395676a18ab580f21ebcd4324feaf1294a8b6d9
      https://github.com/llvm/llvm-project/commit/3395676a18ab580f21ebcd4324feaf1294a8b6d9
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/test/CodeGen/AMDGPU/addrspacecast-gas.ll
    M llvm/test/CodeGen/AMDGPU/atomics-system-scope.ll
    M llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.is.private.ll
    M llvm/test/CodeGen/AMDGPU/scale-offset-flat.ll

  Log Message:
  -----------
  [AMDGPU] Fold copies of constant physical registers into their uses (#154183)

With current codegen this only affects src_flat_scratch_base_lo/hi.

Co-authored-by: Jay Foad <Jay.Foad at amd.com>

Co-authored-by: Jay Foad <Jay.Foad at amd.com>


  Commit: 462929183cafc8d1229dc167972195f4b088e339
      https://github.com/llvm/llvm-project/commit/462929183cafc8d1229dc167972195f4b088e339
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

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

  Log Message:
  -----------
  [bazel] Port #153497: reland clang modules scanner change (#154192)


  Commit: 4220538e257939fca7472ea9d5dfedee1fae7bd7
      https://github.com/llvm/llvm-project/commit/4220538e257939fca7472ea9d5dfedee1fae7bd7
  Author: Thurston Dang <thurston at google.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx10_2_512ni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx10_2ni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx512vl_vnni-intrinsics-upgrade.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx512vl_vnni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx512vnni-intrinsics-upgrade.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx512vnni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx_vnni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avxvnniint8-intrinsics.ll

  Log Message:
  -----------
  [msan] Handle multiply-add-accumulate; apply to AVX Vector Neural Network Instructions (VNNI) (#153927)

This extends the pmadd handler (recently improved in https://github.com/llvm/llvm-project/pull/153353) to three-operand intrinsics (multiply-add-accumulate), and applies it to the AVX Vector Neural Network Instructions.

Updates the tests from https://github.com/llvm/llvm-project/pull/153135


  Commit: 13716843eb0c36e9020b369365e4f5a73b84999b
      https://github.com/llvm/llvm-project/commit/13716843eb0c36e9020b369365e4f5a73b84999b
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

  Log Message:
  -----------
  [AMDGPU] Make s_setprio_inc_wg a scheduling boundary (#154188)


  Commit: 9617ce4862cf0ed5257699348f369eb179f119e9
      https://github.com/llvm/llvm-project/commit/9617ce4862cf0ed5257699348f369eb179f119e9
  Author: Charitha Saumya <136391709+charithaintc at users.noreply.github.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M mlir/lib/Dialect/GPU/Utils/DistributionUtils.cpp
    M mlir/test/Dialect/Vector/vector-warp-distribute.mlir

  Log Message:
  -----------
  [vector][distribution] Bug fix in `moveRegionToNewWarpOpAndAppendReturns` (#153656)


  Commit: 624b724ca6df5d2d3ea16b9ed232851e5d061be4
      https://github.com/llvm/llvm-project/commit/624b724ca6df5d2d3ea16b9ed232851e5d061be4
  Author: Oliver Hunt <oliver at apple.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Features.def
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/lib/Headers/ptrauth.h
    M clang/test/Preprocessor/ptrauth_extension.c
    M clang/test/Preprocessor/ptrauth_feature.c
    M clang/test/Sema/ptrauth-qualifier.c
    M clang/test/SemaObjC/ptrauth-qualifier.m

  Log Message:
  -----------
  [clang][PAC] ptrauth_qualifier and ptrauth_intrinsic should only be available on Darwin (#153912)

For backwards compatibility reasons the `ptrauth_qualifier` and
`ptrauth_intrinsic` features need to be testable with `__has_feature()`
on Apple platforms, but for other platforms this backwards compatibility
issue does not exist.

This PR resolves these issues by making the `ptrauth_qualifier` and
`ptrauth_intrinsic` tests conditional upon a darwin target. This also
allows us to revert the ptrauth_qualifier check from an extension to a
feature test again, as is required on these platforms.

At the same time we introduce a new predefined macro `__PTRAUTH__` that
answers the same question as `__has_feature(ptrauth_qualifier)` and
`__has_feature(ptrauth_intrinsic)` as those tests are synonymous and
only exist separately for compatibility reasons.

The requirement to test for the `__PTRAUTH__` macro also resolves the
hazard presented by mixing the `ptrauth_qualifier` flag (that impacts
ABI and security policies) with `-pedantics-errors`, which makes
`__has_extension` return false for all extensions.

---------

Co-authored-by: Aaron Ballman <aaron at aaronballman.com>


  Commit: 191e7eba93d07ebbf46436a531258ca267a3aa34
      https://github.com/llvm/llvm-project/commit/191e7eba93d07ebbf46436a531258ca267a3aa34
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M mlir/include/mlir/Transforms/WalkPatternRewriteDriver.h
    M mlir/lib/Transforms/Utils/WalkPatternRewriteDriver.cpp
    M mlir/test/IR/test-walk-pattern-rewrite-driver.mlir

  Log Message:
  -----------
  [MLIR] Stop visiting unreachable blocks in the walkAndApplyPatterns driver (#154038)

This is similar to the fix to the greedy driver in #153957 ; except that
instead of removing unreachable code, we just ignore it.

Operations like:

```
%add = arith.addi %add, %add : i64
```

are legal in unreachable code.
Unfortunately many patterns would be unsafe to apply on such IR and can
lead to crashes or infinite loops.


  Commit: dfaebe7f485f966fc7456ea8d372eaf9f1dc0306
      https://github.com/llvm/llvm-project/commit/dfaebe7f485f966fc7456ea8d372eaf9f1dc0306
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M mlir/lib/Analysis/DataFlow/LivenessAnalysis.cpp
    M mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
    M mlir/lib/Transforms/RemoveDeadValues.cpp
    M mlir/test/Analysis/DataFlow/test-liveness-analysis.mlir
    M mlir/test/Transforms/remove-dead-values.mlir
    M mlir/test/lib/Analysis/DataFlow/TestLivenessAnalysis.cpp

  Log Message:
  -----------
  [MLIR] Fix Liveness analysis handling of unreachable code (#153973)

This patch is forcing all values to be initialized by the
LivenessAnalysis, even in dead blocks. The dataflow framework will skip
visiting values when its already knows that a block is dynamically
unreachable, so this requires specific handling.
Downstream code could consider that the absence of liveness is the same
a "dead".
However as the code is mutated, new value can be introduced, and a
transformation like "RemoveDeadValue" must conservatively consider that
the absence of liveness information meant that we weren't sure if a
value was dead (it could be a newly introduced value.

Fixes #153906


  Commit: d8208b0575c7fc03931b678b74acf9e7dedcea8e
      https://github.com/llvm/llvm-project/commit/d8208b0575c7fc03931b678b74acf9e7dedcea8e
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M lldb/test/API/functionalities/process_crash_info/TestProcessCrashInfo.py

  Log Message:
  -----------
  Revert "[lldb] Relax the error message in TestProcessCrashInfo.py" (#154197)

Reverts llvm/llvm-project#153653 because older versions of macOS do not
use the same prefix.


  Commit: 79be94c98412f899557cd06185167b980f563b64
      https://github.com/llvm/llvm-project/commit/79be94c98412f899557cd06185167b980f563b64
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

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

  Log Message:
  -----------
  [VPlan] Compute cost single-scalar calls in computeCost. (NFC)

Compute the cost of non-intrinsic, single-scalar calls directly in
VPReplicateRecipe::computeCost.

This starts moving call cost computations to VPlan, handling the
simplest case first.


  Commit: 906c9e9542f69cf01ef44408007ce77ae9ac70ae
      https://github.com/llvm/llvm-project/commit/906c9e9542f69cf01ef44408007ce77ae9ac70ae
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

  Log Message:
  -----------
  [AMDGPU] Remove misplaced assert. (#154187)

The assert that RegScavenger required for long branching is now
placed below the code to use s_add_pc64, where it is actually
used.


  Commit: 8c605bd1f4087663acb78d6bd98d285fdb751e23
      https://github.com/llvm/llvm-project/commit/8c605bd1f4087663acb78d6bd98d285fdb751e23
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M mlir/lib/Transforms/Utils/RegionUtils.cpp

  Log Message:
  -----------
  [MLIR] Add logging to eraseUnreachableBlocks (NFC) (#153968)


  Commit: 89abccc9a6ed8e7263ce0f133961d6ff556754e7
      https://github.com/llvm/llvm-project/commit/89abccc9a6ed8e7263ce0f133961d6ff556754e7
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/include/llvm/Support/DebugLog.h
    M llvm/unittests/Support/DebugLogTest.cpp
    M mlir/lib/Transforms/Utils/DialectConversion.cpp
    M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp

  Log Message:
  -----------
  [MLIR] Update GreedyRewriter to use the LDBG() debug log mechanism (NFC) (#153961)

Also improve a bit the LDBG() implementation


  Commit: 8a0b3cc0893377996cc3ede5c2b8398793d2ea43
      https://github.com/llvm/llvm-project/commit/8a0b3cc0893377996cc3ede5c2b8398793d2ea43
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M .github/workflows/premerge.yaml

  Log Message:
  -----------
  [CI] Ignore upload artifact failures (#154196)

Some CI runs are seeing issues with failures running the artifact upload
step. They seem related to
https://github.com/actions/upload-artifact/issues/569. We should
continue the workflow and ignore errors in the upload artifact step if
it fails so that users do not see a red CI that is not due to their
changes.

Fixes #154155.


  Commit: c2eb895c200220c8a870b046c5b05957131b40e2
      https://github.com/llvm/llvm-project/commit/c2eb895c200220c8a870b046c5b05957131b40e2
  Author: Oleksandr T. <oleksandr.tarasiuk at outlook.com>
  Date:   2025-08-19 (Tue, 19 Aug 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Sema/string-concat.c

  Log Message:
  -----------
  [Clang] improve -Wstring-concatenation to warn on every missing comma in initializer lists (#154018)

Fixes #153745

---

This PR addresses a limitation in `-Wstring-concatenation`, where only
the first missing comma in an initializer list was diagnosed.


  Commit: 13dd65096b5311c01aa67ed34f85d4b03b57426b
      https://github.com/llvm/llvm-project/commit/13dd65096b5311c01aa67ed34f85d4b03b57426b
  Author: Sergei Barannikov <barannikov88 at gmail.com>
  Date:   2025-08-19 (Tue, 19 Aug 2025)

  Changed paths:
    M llvm/utils/TableGen/DecoderEmitter.cpp

  Log Message:
  -----------
  [TableGen][DecoderEmitter] Rename some variables for clarity (NFC)


  Commit: 668e6492b833fc3f329d3e772ab7c52a4d3fec93
      https://github.com/llvm/llvm-project/commit/668e6492b833fc3f329d3e772ab7c52a4d3fec93
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
    A llvm/test/CodeGen/AMDGPU/merge-flat-saddr-load-store.mir

  Log Message:
  -----------
  [AMDGPU] Support merging of flat GVS ops (#154200)


  Commit: 5612dc533a9222a0f5561b2ba7c897115f26673f
      https://github.com/llvm/llvm-project/commit/5612dc533a9222a0f5561b2ba7c897115f26673f
  Author: Shubham Sandeep Rastogi <srastogi22 at apple.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/utils/TableGen/DecoderEmitter.cpp

  Log Message:
  -----------
  Revert "[TableGen][DecoderEmitter] Store HW mode ID instead of name (NFC) (#154052)"

This reverts commit b20bbd48e8b1966731a284b4208e048e060e97c2.

Reverted due to greendragon failures:

20:34:43  In file included from /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/llvm/utils/TableGen/DecoderEmitter.cpp:14:
20:34:43  In file included from /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/llvm/utils/TableGen/Common/CodeGenHwModes.h:14:
20:34:43  In file included from /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/llvm/include/llvm/ADT/DenseMap.h:20:
20:34:43  In file included from /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/llvm/include/llvm/ADT/STLExtras.h:21:
20:34:43  In file included from /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/llvm/include/llvm/ADT/Hashing.h:53:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/algorithm:1913:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/chrono:746:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__chrono/convert_to_tm.h:19:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__chrono/statically_widen.h:17:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__format/concepts.h:17:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__format/format_parse_context.h:15:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/string_view:1027:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/functional:515:
20:34:43  In file included from /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/__functional/boyer_moore_searcher.h:26:
20:34:43  /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/c++/v1/vector:1376:19: error: object of type 'llvm::const_set_bits_iterator_impl<llvm::SmallBitVector>' cannot be assigned because its copy assignment operator is implicitly deleted
20:34:43              __mid =  __first;
20:34:43                    ^
20:34:43  /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/llvm/utils/TableGen/DecoderEmitter.cpp:2404:13: note: in instantiation of function template specialization 'std::vector<unsigned int>::assign<llvm::const_set_bits_iterator_impl<llvm::SmallBitVector>, 0>' requested here
20:34:43    HwModeIDs.assign(BV.set_bits_begin(), BV.set_bits_end());
20:34:43              ^
20:34:43  /Users/ec2-user/jenkins/workspace/llvm.org/as-lldb-cmake/llvm-project/llvm/include/llvm/ADT/BitVector.h:35:21: note: copy assignment operator of 'const_set_bits_iterator_impl<llvm::SmallBitVector>' is implicitly deleted because field 'Parent' is of reference type 'const llvm::SmallBitVector &'
20:34:43    const BitVectorT &Parent;
20:34:43                      ^
20:34:43  1 warning and 1 error generated.


  Commit: ec4e6aaac4612af26322b2b10b8f518ecf053c74
      https://github.com/llvm/llvm-project/commit/ec4e6aaac4612af26322b2b10b8f518ecf053c74
  Author: Oliver Hunt <oliver at apple.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M clang/lib/Parse/ParseExpr.cpp
    A clang/test/SemaObjCXX/discarded-block-type-inference.mm

  Log Message:
  -----------
  [clang][ObjC] Fix incorrect return type inference for discarded blocks (#154109)

When parsing a block expression we were not entering a new eval context
and as a result when parsing the block body we continue to treat any
return statements as discarded so infer a `void` result.

This fixes the problem by introducing an evaluation context around the
parsing of the body.


  Commit: 50b55a5ee9c6fd0999c71aeab85c10f1430acb27
      https://github.com/llvm/llvm-project/commit/50b55a5ee9c6fd0999c71aeab85c10f1430acb27
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M flang-rt/lib/runtime/assign.cpp

  Log Message:
  -----------
  [flang][runtime] Fix AllocateAssignmentLHS for monomorphic LHS (#153073)

When the left-hand side of an assignment statement is an allocatable
that has a monomorphic derived type, and the right-hand side of the
assignment has a type that is an extension of that type, *don't* change
the incoming type or element size of the descriptor before allocating
it.

Fixes https://github.com/llvm/llvm-project/issues/152758.


  Commit: 2bea3456e2b9153367e3ff2dbd043a0667c1a928
      https://github.com/llvm/llvm-project/commit/2bea3456e2b9153367e3ff2dbd043a0667c1a928
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M .github/workflows/premerge.yaml
    M clang-tools-extra/clang-tidy/add_new_check.py
    A clang-tools-extra/docs/clang-change-namespace.rst
    M clang-tools-extra/docs/index.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Features.def
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/lib/Headers/ptrauth.h
    M clang/lib/Parse/ParseExpr.cpp
    M clang/lib/Sema/SemaDecl.cpp
    M clang/test/Preprocessor/ptrauth_extension.c
    M clang/test/Preprocessor/ptrauth_feature.c
    M clang/test/Sema/ptrauth-qualifier.c
    M clang/test/Sema/string-concat.c
    M clang/test/SemaObjC/ptrauth-qualifier.m
    A clang/test/SemaObjCXX/discarded-block-type-inference.mm
    M flang-rt/lib/runtime/assign.cpp
    M lldb/test/API/functionalities/process_crash_info/TestProcessCrashInfo.py
    M llvm/include/llvm/Support/DebugLog.h
    M llvm/include/llvm/Support/FileSystem.h
    M llvm/lib/CAS/MappedFileRegionBumpPtr.cpp
    M llvm/lib/Support/Unix/Path.inc
    M llvm/lib/Support/Windows/Path.inc
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.h
    M llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp
    M llvm/test/CodeGen/AMDGPU/addrspacecast-gas.ll
    M llvm/test/CodeGen/AMDGPU/atomics-system-scope.ll
    M llvm/test/CodeGen/AMDGPU/fdiv.bf16.ll
    M llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.is.private.ll
    A llvm/test/CodeGen/AMDGPU/merge-flat-saddr-load-store.mir
    M llvm/test/CodeGen/AMDGPU/scale-offset-flat.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx10_2_512ni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx10_2ni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx512vl_vnni-intrinsics-upgrade.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx512vl_vnni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx512vnni-intrinsics-upgrade.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx512vnni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avx_vnni-intrinsics.ll
    M llvm/test/Instrumentation/MemorySanitizer/X86/avxvnniint8-intrinsics.ll
    M llvm/unittests/Support/DebugLogTest.cpp
    M llvm/utils/TableGen/DecoderEmitter.cpp
    M mlir/include/mlir/Transforms/WalkPatternRewriteDriver.h
    M mlir/lib/Analysis/DataFlow/LivenessAnalysis.cpp
    M mlir/lib/Analysis/DataFlow/SparseAnalysis.cpp
    M mlir/lib/Dialect/GPU/Utils/DistributionUtils.cpp
    M mlir/lib/Transforms/RemoveDeadValues.cpp
    M mlir/lib/Transforms/Utils/DialectConversion.cpp
    M mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
    M mlir/lib/Transforms/Utils/RegionUtils.cpp
    M mlir/lib/Transforms/Utils/WalkPatternRewriteDriver.cpp
    M mlir/test/Analysis/DataFlow/test-liveness-analysis.mlir
    M mlir/test/Dialect/Vector/vector-warp-distribute.mlir
    M mlir/test/IR/test-walk-pattern-rewrite-driver.mlir
    M mlir/test/Transforms/remove-dead-values.mlir
    M mlir/test/lib/Analysis/DataFlow/TestLivenessAnalysis.cpp
    M utils/bazel/llvm-project-overlay/clang/BUILD.bazel

  Log Message:
  -----------
  add windows implementation

Created using spr 1.3.6


Compare: https://github.com/llvm/llvm-project/compare/2ac7fe0c720d...2bea3456e2b9

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