LLVM/project 20c764aclang/test/SemaOpenCL builtins-amdgcn-cvt-sr-pk-bf16-f32-err.cl, llvm/lib/Target/AMDGPU VOP3Instructions.td AMDGPU.td

AMDGPU: Give v_cvt_sr_pk_bf16_f32 its own subtarget feature

v_cvt_sr_pk_bf16_f32 was gated on bf16-cvt-insts, but that feature is
also present on gfx950 where the (non-sr) v_cvt_pk_bf16_f32 was first
added. The stochastic-rounding v_cvt_sr_pk_bf16_f32 was only added
for gfx1250 and has no gfx950 encoding, so it would mis-select and
later hit the "Invalid opcode" assert. Introduce cvt-sr-pk-bf16-f32-inst,
currently added to gfx13 and 125*

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+12-0clang/test/SemaOpenCL/builtins-amdgcn-cvt-sr-pk-bf16-f32-err.cl
+8-0llvm/test/MC/AMDGPU/gfx950-unsupported.s
+6-0llvm/lib/Target/AMDGPU/AMDGPU.td
+4-1llvm/lib/Target/AMDGPU/VOP3Instructions.td
+3-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.sr.pk.bf16.ll
+2-0llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+35-11 files not shown
+36-27 files

LLVM/project 3b67949mlir/include/mlir-c IR.h, mlir/test/CAPI ir.c

Address review: exercise operand number/value filtering, userData, and no-use case
DeltaFile
+41-0mlir/test/CAPI/ir.c
+2-1mlir/include/mlir-c/IR.h
+43-12 files

LLVM/project 6131543utils/bazel/llvm-project-overlay/flang/lib/Optimizer/OpenACC/Transforms BUILD.bazel

[Bazel] Fixes 21d9869 (#213147)

This fixes 21d9869c206e12f1932aecff50d03f06f5a96339 (#212299).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=21d9869c206e12f1932aecff50d03f06f5a96339

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+2-0utils/bazel/llvm-project-overlay/flang/lib/Optimizer/OpenACC/Transforms/BUILD.bazel
+2-01 files

LLVM/project 2d0b45bclang/lib/Format TokenAnnotator.cpp, clang/unittests/Format FormatTest.cpp

[clang-format] Prevent re-assigning type on finalized tokens (#210763)

Prevents a finalized token inside modifyContext from being reassigned
through the setType member function by checking if the token is
finalized.

This ensures ill-defined code like does not trigger an assertion failure
during reformatting.
Fixes #210509
DeltaFile
+2-1clang/lib/Format/TokenAnnotator.cpp
+1-0clang/unittests/Format/FormatTest.cpp
+3-12 files

LLVM/project f279abcoffload/test/unit lit.site.cfg.in lit.cfg.py

[Offload][Test] Add llvm bin in the PATH for offload-unit suite (#213149)

This PR makes the offload-unit suite put llvm bin directory on PATH so
that tests need lld can find. It fixes the issue exposed in:
https://github.com/llvm/llvm-project/pull/212860
DeltaFile
+11-0offload/test/unit/lit.cfg.py
+1-0offload/test/unit/lit.site.cfg.in
+12-02 files

LLVM/project 308bbdaclang/include/clang/DependencyScanning DependencyScanningWorker.h DependencyScannerImpl.h, clang/lib/DependencyScanning CMakeLists.txt DependencyScanningWorker.cpp

Move implementation details to DependencyScanningWorker.cpp and dissolve DependencyScannerImpl.h/cpp.
DeltaFile
+0-525clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+493-1clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+0-89clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+12-2clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+0-1clang/lib/Tooling/DependencyScanningTool.cpp
+0-1clang/lib/DependencyScanning/CMakeLists.txt
+505-6193 files not shown
+506-6219 files

LLVM/project 658945dclang/include/clang/DependencyScanning DependencyScannerImpl.h, clang/lib/DependencyScanning DependencyScannerImpl.cpp DependencyScanningWorker.cpp

Use CompilerInstanceWithContext for TU scanning.
DeltaFile
+315-38clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+0-293clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+35-0clang/unittests/Tooling/DependencyScannerTest.cpp
+0-27clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+1-0clang/test/ClangScanDeps/logging-simple.c
+351-3585 files

LLVM/project 5a76c89clang/include/clang/DependencyScanning DependencyScanningWorker.h, clang/include/clang/Tooling DependencyScanningTool.h

Relocate CompilerInstanceWithContext to DependencyScanningWorker.cpp and hide it as an implementation detail.
DeltaFile
+250-0clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+4-207clang/lib/Tooling/DependencyScanningTool.cpp
+0-75clang/include/clang/Tooling/DependencyScanningTool.h
+22-5clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+276-2874 files

LLVM/project c2ff95dclang/include/clang/DependencyScanning DependencyScannerImpl.h, clang/include/clang/Tooling DependencyScanningTool.h

Implement the streaming style by-name scanning API.
DeltaFile
+43-89clang/lib/Tooling/DependencyScanningTool.cpp
+39-56clang/tools/clang-scan-deps/ClangScanDeps.cpp
+15-59clang/include/clang/Tooling/DependencyScanningTool.h
+0-14clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+1-3clang/test/ClangScanDeps/modules-full-by-mult-mod-names-diagnostics.c
+1-1clang/test/ClangScanDeps/modules-invalid-target.c
+99-2221 files not shown
+101-2227 files

LLVM/project 4d2633dllvm/include/llvm/Transforms/Vectorize/SandboxVectorizer VecUtils.h, llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes BottomUpVec.h

[SBVec] Add top-down vectorization to the unified Sandbox Vectorizer

Extend the Sandbox Vectorizer's `bottom-up-vec` pass so a single
implementation can vectorize in either direction, and add the top-down
strategy that walks def-use chains forward from a seed.

Direction selection
--------------------
The pass direction is chosen from the Region's auxiliary pass argument:
"bottom-up" (or empty, the default) and "top-down" map onto a
SchedDirection, and any other value is rejected with a fatal usage error.
The vectorizer always runs in the same direction as the scheduler.

Top-down traversal
------------------
Bottom-up starts from a seed slice (e.g. stores to consecutive addresses)
and recurses into operands. Top-down instead starts from a seed of
consecutive loads and recurses into *users*:


    [32 lines not shown]
DeltaFile
+598-0llvm/test/Transforms/SandboxVectorizer/topdown_vec.ll
+267-0llvm/unittests/Transforms/Vectorize/SandboxVectorizer/VecUtilsTest.cpp
+83-27llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/BottomUpVec.cpp
+83-0llvm/lib/Transforms/Vectorize/SandboxVectorizer/VecUtils.cpp
+34-12llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/BottomUpVec.h
+12-0llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/VecUtils.h
+1,077-396 files

LLVM/project eb54202llvm/lib/Transforms/Vectorize/SandboxVectorizer DependencyGraph.cpp, llvm/unittests/Transforms/Vectorize/SandboxVectorizer DependencyGraphTest.cpp

[SandboxIR] Fix notifyEraseInstr to skip scheduled neighbors

Guard both loops with !PredN->scheduled() / !SuccN->scheduled() so
scheduled neighbors are left untouched, and add a unit test that erases
a node with one scheduled and one unscheduled predecessor to cover the
fix.
DeltaFile
+43-0llvm/unittests/Transforms/Vectorize/SandboxVectorizer/DependencyGraphTest.cpp
+3-1llvm/lib/Transforms/Vectorize/SandboxVectorizer/DependencyGraph.cpp
+46-12 files

LLVM/project 256a6d2llvm/lib/Target/AMDGPU AMDGPU.td VOP1Instructions.td

[AMDGPU] Use a single SubtargetPredicate for fp8/bf8 -> f32 conversions (#212888)

Add FeatureCvtFP8SDWASrcSel for the form that takes the byte from the SDWA src0_sel field and FeatureCvtFP8ByteSel for the form that takes it from a byte_sel operand. Both imply FeatureFP8ConversionInsts, and a subtarget provides one of them, so the multiclass-generated HasCvtFP8SDWASrcSel and HasCvtFP8ByteSel replace the GFX9 and GFX11Plus predicates outright.

Assisted-By: Claude Opus 5
DeltaFile
+23-24llvm/lib/Target/AMDGPU/VOP1Instructions.td
+35-2llvm/lib/Target/AMDGPU/AMDGPU.td
+58-262 files

LLVM/project a54a837mlir/include/mlir-c IR.h, mlir/lib/CAPI/IR IR.cpp

Address review: fix -Wenum-compare build failure, add structural hash, expand flag coverage
DeltaFile
+115-2mlir/test/CAPI/ir.c
+11-16mlir/lib/CAPI/IR/IR.cpp
+19-7mlir/include/mlir-c/IR.h
+145-253 files

LLVM/project 21d9869flang/include/flang/Optimizer/OpenACC Passes.td, flang/lib/Optimizer/OpenACC/Transforms CMakeLists.txt ACCDevicePtrToCUFKernel.cpp

[flang] Add a pass to get OpenACC device ptr for CUDA kernel (#212299)

When a CUDA kernel is launched inside an OpenACC data region, it does
not properly get the device pointers and instead uses host data. This PR
adds a pass to get the device pointers set up by the OpenACC data
construct and pass them explicitly to the CUDA kernel.

Note: A possibly non-contiguous array argument is currently not supported. This pass will skip these cases.

---------

Co-authored-by: Yebin Chon <ychon at nvidia.com>
DeltaFile
+188-0flang/lib/Optimizer/OpenACC/Transforms/ACCDevicePtrToCUFKernel.cpp
+135-0flang/test/Fir/OpenACC/device-ptr-to-cuf-kernel.mlir
+27-0flang/include/flang/Optimizer/OpenACC/Passes.td
+2-0flang/lib/Optimizer/OpenACC/Transforms/CMakeLists.txt
+352-04 files

LLVM/project c836b82mlir/lib/Dialect/OpenACC/Transforms ACCCGToGPU.cpp, mlir/test/Dialect/OpenACC acc-cg-to-gpu-reduction-array-shared.mlir

[mlir][OpenACC] Atomicize contended shared array reduction updates (#212971)

Example:
```fortran
!$acc parallel loop gang reduction(+:a)
do i = 1, N
  !$acc loop worker reduction(+:a)
  do j = 1, M
    a(i) = a(i) + b(j,i)
  end do
end do
```

In this code, the worker accumulator is block-shared, so every worker
updates
the same element with a plain read-modify-write and all but one partial
is lost.

Fix: make in-place updates of a block-shared array accumulator atomic,

    [7 lines not shown]
DeltaFile
+193-35mlir/lib/Dialect/OpenACC/Transforms/ACCCGToGPU.cpp
+108-0mlir/test/Dialect/OpenACC/acc-cg-to-gpu-reduction-array-shared.mlir
+301-352 files

LLVM/project e593771clang/include/clang/DependencyScanning DependencyScanningWorker.h DependencyScannerImpl.h, clang/lib/DependencyScanning CMakeLists.txt DependencyScanningWorker.cpp

Move implementation details to DependencyScanningWorker.cpp and dissolve DependencyScannerImpl.h/cpp.
DeltaFile
+0-525clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+493-1clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+0-89clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+12-2clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+0-1clang/lib/Tooling/DependencyScanningTool.cpp
+0-1clang/lib/DependencyScanning/CMakeLists.txt
+505-6193 files not shown
+506-6219 files

LLVM/project b8b5cd2clang/include/clang/DependencyScanning DependencyScanningWorker.h, clang/include/clang/Tooling DependencyScanningTool.h

Relocate CompilerInstanceWithContext to DependencyScanningWorker.cpp and hide it as an implementation detail.
DeltaFile
+250-0clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+4-207clang/lib/Tooling/DependencyScanningTool.cpp
+0-75clang/include/clang/Tooling/DependencyScanningTool.h
+22-5clang/include/clang/DependencyScanning/DependencyScanningWorker.h
+276-2874 files

LLVM/project a2930a2clang/include/clang/DependencyScanning DependencyScannerImpl.h, clang/lib/DependencyScanning DependencyScannerImpl.cpp DependencyScanningWorker.cpp

Use CompilerInstanceWithContext for TU scanning.
DeltaFile
+315-38clang/lib/DependencyScanning/DependencyScanningWorker.cpp
+0-293clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+35-0clang/unittests/Tooling/DependencyScannerTest.cpp
+0-27clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+1-0clang/test/ClangScanDeps/logging-simple.c
+351-3585 files

LLVM/project 82c30c0clang/include/clang/DependencyScanning DependencyScannerImpl.h, clang/include/clang/Tooling DependencyScanningTool.h

Implement the streaming style by-name scanning API.
DeltaFile
+43-89clang/lib/Tooling/DependencyScanningTool.cpp
+39-56clang/tools/clang-scan-deps/ClangScanDeps.cpp
+15-59clang/include/clang/Tooling/DependencyScanningTool.h
+0-14clang/include/clang/DependencyScanning/DependencyScannerImpl.h
+1-3clang/test/ClangScanDeps/modules-full-by-mult-mod-names-diagnostics.c
+1-1clang/test/ClangScanDeps/modules-invalid-target.c
+99-2221 files not shown
+101-2227 files

LLVM/project 7650a43llvm/test/Transforms/LoopVectorize expression-recipe-branch-weights.ll replicate-region-branch-weights-merged-mem-ops.ll, llvm/test/Transforms/LoopVectorize/VPlan vplan-printing-branch-weights.ll

[LV] Add tests for preserving branch weights through VPlan (NFC). (#213131)

Add coverage for carrying the branch weights of a predicated block from
VPlan0 through to the generated IR
DeltaFile
+724-0llvm/test/Transforms/LoopVectorize/replicate-region-branch-weights.ll
+215-123llvm/test/Transforms/LoopVectorize/VPlan/vplan-printing-branch-weights.ll
+279-0llvm/test/Transforms/LoopVectorize/replicate-region-branch-weights-merged-mem-ops.ll
+88-0llvm/test/Transforms/LoopVectorize/expression-recipe-branch-weights.ll
+1,306-1234 files

LLVM/project 100e8dfclang/include/clang/Tooling DependencyScanningTool.h, clang/lib/Tooling DependencyScanningTool.cpp

[clang][DependencyScanning] Extracting a Driver-free CompilerInstaneWithContext Initializer (#211405)

This PR extracts out an initializer of `CompilerInstanceWithContext`
that does not depend on any driver code in preperation of moving the
`CompilerInstanceWithContext` into `DependencyScanningWorker.cpp` as an
implementation detail that is not exposed by any APIs.

---

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
DeltaFile
+20-12clang/lib/Tooling/DependencyScanningTool.cpp
+21-3clang/include/clang/Tooling/DependencyScanningTool.h
+41-152 files

LLVM/project ecfff90.github CODEOWNERS

Revert "[github] Move BOLT reviewers to team (#211422)"

This reverts commit 04f124f6151e8c8410e28aba28dc38e590e34c58.
DeltaFile
+3-1.github/CODEOWNERS
+3-11 files

LLVM/project b9add0fclang/test/CodeGenOpenCL builtins-amdgcn-gfx13.cl, llvm/lib/TargetParser AMDGPUTargetParser.cpp

AMDGPU: Add missing msad-insts to gfx13 frontend feature map

fillAMDGCNFeatureMap omitted msad-insts for gfx1310/gfx13-generic, so
clang wrongly rejected __builtin_amdgcn_msad_u8 on those targets even
though the backend enables the feature (FeatureGFX9 generation, inherited
through FeatureGFX13). Add it to the gfx13 case.

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+23-0clang/test/CodeGenOpenCL/builtins-amdgcn-gfx13.cl
+9-4llvm/test/CodeGen/AMDGPU/llvm.amdgcn.msad.u8.ll
+1-0llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+33-43 files

LLVM/project 3766b63clang/test/CodeGenOpenCL builtins-amdgcn-global-load-store.cl, llvm/lib/TargetParser AMDGPUTargetParser.cpp

AMDGPU: Add missing flat-global-insts to gfx13 frontend feature map

fillAMDGCNFeatureMap omitted flat-global-insts for gfx1310/gfx13-generic,
so clang wrongly rejected __builtin_amdgcn_av_load_b128 /
__builtin_amdgcn_av_store_b128 on those targets even though the backend
enables the feature. Add it to the gfx13 case.

Co-authored-by: Claude (Claude-Opus-4.8)
DeltaFile
+3,291-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.av.load.b128.ll
+358-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.av.store.b128.ll
+1-0llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+1-0clang/test/CodeGenOpenCL/builtins-amdgcn-global-load-store.cl
+3,651-04 files

LLVM/project cc0f33bclang/docs ClangFormatStyleOptions.rst, clang/include/clang/Format Format.h

[clang-format] Add SpacesInComments option for block comments (#204727)

Adds a new `SpacesInBlockComments` clang-format option to control
spacing after `/*` and before `*/` in ordinary block comments.

Supported values:

* Always: formats `/*comment*/` as `/* comment */`
* Never: formats `/* comment */` as `/*comment*/`
* Leave: preserves existing spacing

Documentation comments such as `/** ... */` and `/*! ... */`, and
parameter comments such as `/*Arg=*/`, are left unchanged.

Tests added for all option values, multiline block comments, and
excluded parameter/doc comments.

Addresses #160682
DeltaFile
+53-0clang/unittests/Format/FormatTestComments.cpp
+44-0clang/lib/Format/BreakableToken.cpp
+29-0clang/docs/ClangFormatStyleOptions.rst
+25-0clang/include/clang/Format/Format.h
+12-0clang/lib/Format/Format.cpp
+8-0clang/unittests/Format/ConfigParseTest.cpp
+171-01 files not shown
+174-07 files

LLVM/project f0da3ddclang/test/OpenMP loop_transform_final_iv.c reverse_codegen.cpp

Revert "[OpenMP] Restore loop variable values after loop-transformation constructs. (#212853)" (#213127)

Revert "[OpenMP] Restore loop variable values after loop-transformation
constructs. (#212853)"

This reverts commit 2d697f8562d7845d5554cc1d2cd2264401b9d68f.
 Reverting this PR. Bot is failing with:
    Failed Tests (2):
      libomptarget :: spirv64-intel :: offloading/target-tile.c
libomptarget :: x86_64-unknown-linux-gnu :: offloading/target-tile.c
DeltaFile
+98-192clang/test/OpenMP/interchange_codegen.cpp
+66-216clang/test/OpenMP/fuse_codegen.cpp
+110-172clang/test/OpenMP/tile_codegen.cpp
+110-172clang/test/OpenMP/stripe_codegen.cpp
+85-154clang/test/OpenMP/reverse_codegen.cpp
+0-129clang/test/OpenMP/loop_transform_final_iv.c
+469-1,0354 files not shown
+534-1,22110 files

LLVM/project b05a5d0lldb/bindings/python python-wrapper.swig, lldb/examples/python/templates scripted_synthetic_children.py

[lldb/script] Migrate synthetic children providers onto ScriptedPythonInterface (#210845)

Give `type synthetic add -l` a formal
`ScriptedSyntheticChildrenInterface`, matching the architecture used
elsewhere in this series: a C++ interface header, a Python-backed
implementation, `PluginManager` registration with CLI/API usages, and a
generatable ABC template (`scripted_synthetic_children.py`) wired into
`scripting extension generate`.

Every method goes through the shared `Dispatch<T>()` machinery instead
of hand-rolling its own Locker/raw-SWIG calls. `Dispatch<T>()` is taught
to introspect the target method's arity via
`PythonCallable::GetArgInfo()` and drop trailing args before calling, so
providers that legitimately define an argument as optional
(`num_children(self)` vs. `num_children(self, max_count)`) still work
through the generic dispatch path.

This retires the ad-hoc `LLDBSwigPython_*` synthetic-children bridge
functions entirely.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+7-233lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+3-160lldb/bindings/python/python-wrapper.swig
+144-0lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedSyntheticChildrenPythonInterface.cpp
+112-0lldb/examples/python/templates/scripted_synthetic_children.py
+60-35lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h
+37-29lldb/source/DataFormatters/TypeSynthetic.cpp
+363-45717 files not shown
+510-58923 files

LLVM/project 66b644emlir/include/mlir-c Rewrite.h, mlir/test/CAPI rewrite.c

Address review: fix stale InsertPoint header comment, test all restore branches
DeltaFile
+16-2mlir/test/CAPI/rewrite.c
+2-2mlir/include/mlir-c/Rewrite.h
+18-42 files

LLVM/project cdec735libc/docs index.md, libc/docs/_static llvm_libc_logo.svg

[libc][docs] Add logo to website (#213120)

Add the excellent new logo drawn by @ajordanr-google to the homepage.
DeltaFile
+705-0libc/docs/_static/llvm_libc_logo.svg
+8-0libc/docs/index.md
+713-02 files

LLVM/project 79f9cdalldb/unittests/Utility ArchSpecTest.cpp

[lldb] Add a unit test for Wasm architecture compatibility (#213070)

A Wasm module encodes neither a vendor nor an OS, so ObjectFileWasm
reports a bare wasm32 or wasm64 architecture. That keeps an on-disk
module compatible with the more specific triple a Wasm runtime reports
at launch, which lets the dynamic loader reuse the module instead of
reparsing it from process memory. An over-specified triple, including
one that spells out an unknown vendor and OS, does not match, because an
explicitly specified component still counts as specified.
DeltaFile
+26-0lldb/unittests/Utility/ArchSpecTest.cpp
+26-01 files