LLVM/project 4473e5fmlir/lib/Dialect/XeGPU/Transforms XeGPUPropagateLayout.cpp, mlir/test/Dialect/XeGPU propagate-layout-inst-data.mlir propagate-layout.mlir

[MLIR][XeGPU] Prefer the nearer consumer's layout in LayoutInfo::meet (#208365)

**Summary**

During backward layout propagation a value can be demanded by multiple
consumers with conflicting
layouts. Previously LayoutInfo::meet kept whichever demand was assigned
first, so the winner depended on
the dataflow worklist's visitation order — nondeterministic and often
not what we want.

This changes meet to prefer the layout demanded by the consumer nearer
to the producer in program order.
This tends to preserve a consumer's layout as far up the def chain as
possible, reducing layout
  conversions. It is a heuristic hint, not a proven optimum.

- Each op gets a program-order index from a pre-order walk (matching
printed-IR order), so a use inside

    [16 lines not shown]
DeltaFile
+136-100mlir/lib/Dialect/XeGPU/Transforms/XeGPUPropagateLayout.cpp
+29-0mlir/test/Dialect/XeGPU/propagate-layout-inst-data.mlir
+10-10mlir/test/Dialect/XeGPU/propagate-layout.mlir
+1-1mlir/test/Integration/Dialect/XeGPU/WG/simple_mxfp_gemm_quantizeA_F4.mlir
+176-1114 files

LLVM/project 666b87dllvm/test/CodeGen/AMDGPU occupancy-levels.ll offset-split-flat.ll

AMDGPU: Migrate CodeGen tests to amdgpu subarch triple (27) (#209488)

Mechanically migrate the command-line target spelling on llc/opt RUN
lines in llvm/test/CodeGen/AMDGPU from -mtriple=amdgcn ... -mcpu=<gfx> to the
folded subarch triple form (e.g. -mtriple=amdgpu9.00-amd-amdhsa), dropping the
redundant -mcpu.

Co-Authored-By: Claude <noreply at anthropic.com> (Claude-Opus-4.8)
DeltaFile
+26-26llvm/test/CodeGen/AMDGPU/occupancy-levels.ll
+12-12llvm/test/CodeGen/AMDGPU/offset-split-flat.ll
+12-12llvm/test/CodeGen/AMDGPU/offset-split-global.ll
+8-8llvm/test/CodeGen/AMDGPU/pei-build-av-spill.mir
+8-8llvm/test/CodeGen/AMDGPU/pei-build-spill.mir
+7-7llvm/test/CodeGen/AMDGPU/packed-fp32.ll
+73-7394 files not shown
+238-238100 files

LLVM/project 4471a0butils/bazel/llvm-project-overlay/lldb BUILD.bazel

[lldb][bazel] Generate SafeAutoloadPaths.inc in the Bazel overlay (#209454)

The auto-load-paths mechanism added in #187031 generates
SafeAutoloadPaths.inc via a CMake configure_file() of
SafeAutoloadPaths.inc.in (lldb/source/Core/CMakeLists.txt), gated by the
LLDB_SAFE_AUTO_LOAD_PATHS cache variable which defaults to empty.
Debugger.cpp #includes SafeAutoloadPaths.inc, but the Bazel overlay
never modeled the configure_file(), so the header is missing from the
Bazel build of lldb Core.

Reproduce the generation with expand_template (substituting
@SAFE_PATH_ENTRIES@ with "" to match the empty default). Emit the header
under include/ and expose it via includes = ["include"] so the bare
#include resolves, matching how Config.h and Version.inc are handled in
this overlay.

assisted with: claude
I ensured this is valid bazel that Meta can translate into valid BUCK
and build lldb with internally via buck2. This appears to match a few
other template/library pairs.
DeltaFile
+16-0utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
+16-01 files

LLVM/project b9998b8llvm/test/CodeGen/AMDGPU eliminate-frame-index-v-add-co-u32.mir eliminate-frame-index-s-add-i32.mir

[AMDGPU] Fix CFI emission when scratch instructions are used to spill

4b1cfc5d7c606e "[NFCI][AMDGPU] Final touch before moving to
`GET_SUBTARGETINFO_MACRO` (#177401)" (or more generally the move to
hasFlatScratchEnabled over just enableFlatScratch) was missed during the
CFI upstreaming for AMDGPU, and so we currently define the CFA
incorrectly for the architected flat scratch case.

This incorrect CFI is generated for e.g. gfx942. For such architecture,
the stack pointer (s32) holds a swizzled address (per-lane offset) but
the CFA needs to be an unswizzled address (per-wave).

In the incorrect program, we have a prologue looking like:

        s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
        s_mov_b32 s0, s33
        s_mov_b32 s33, s32
        [...]
        s_add_i32 s32, s32, 16

    [24 lines not shown]
DeltaFile
+76-76llvm/test/CodeGen/AMDGPU/eliminate-frame-index-v-add-co-u32.mir
+50-50llvm/test/CodeGen/AMDGPU/eliminate-frame-index-s-add-i32.mir
+57-37llvm/test/CodeGen/AMDGPU/vgpr-spill.mir
+31-31llvm/test/CodeGen/AMDGPU/eliminate-frame-index-v-add-u32.mir
+20-20llvm/test/CodeGen/AMDGPU/eliminate-frame-index-v-add-co-u32-wave32.mir
+10-10llvm/test/CodeGen/AMDGPU/eliminate-frame-index-scalar-bit-ops.mir
+244-2249 files not shown
+286-26615 files

LLVM/project ce3e5eallvm/test/CodeGen/AMDGPU misaligned-vgpr-regsequence.mir

[AMDGPU] Add stackPtrOffsetReg to llvm/test/CodeGen/AMDGPU/misaligned-vgpr-regsequence.mir

Prepare for this being observable to the CFA generation code.

Change-Id: I56d00133148fd2c8f0e0ed41edca446553c664bc
DeltaFile
+2-0llvm/test/CodeGen/AMDGPU/misaligned-vgpr-regsequence.mir
+2-01 files

LLVM/project 25935a6llvm/lib/Target/AMDGPU SIFrameLowering.cpp

[AMDGPU] Fix type for DWARF register number in SIFrameLowering

It so happened that using MCRegister here happened to work, but
the encoded dwarf number is definitely not an MCRegister.

Change-Id: I13ef6a9ee870cf12db11f0cd20e03268e70e9bf9
DeltaFile
+3-4llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
+3-41 files

LLVM/project c7a0afelldb/source/Utility Policy.cpp

[lldb] Gate `PolicyStack::Current()` log behind verbose (#209527)

`Process::GetState()` calls `PolicyStack::Get().Current()` on every
prompt redraw, so the previous unconditional LLDB_LOG at the read site
fired on every keypress once `log enable lldb process` was on, drowning
out any other process log output. Keep the dump for when it's actually
wanted, but only fire it if the log is set to verbose.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+8-3lldb/source/Utility/Policy.cpp
+8-31 files

LLVM/project 8410006llvm/tools/llvm-mc Disassembler.cpp Disassembler.h

[llvm-mc] Remove unused MCRegisterInfo/MCAsmInfo in Disassembler (NFC) (#208483)

Disassembler::disassemble() creates MCRegisterInfo and MCAsmInfo
instances that are no longer used.

Initially, they were introduced in a1bc0f5 to construct MCContext after
MCDisassembler began requiring one, but became dead in 2cb2707.

llvm-mc's main() already creates both objects and passes them into the
MCContext that disassemble() receives, so the error paths here are
unreachable.

Removing these objects also makes the MCTargetOptions parameter unused,
so drop it as well.
DeltaFile
+1-17llvm/tools/llvm-mc/Disassembler.cpp
+1-3llvm/tools/llvm-mc/Disassembler.h
+1-1llvm/tools/llvm-mc/llvm-mc.cpp
+3-213 files

LLVM/project 7768860clang/test/OffloadTools/clang-linker-wrapper linker-wrapper.c, llvm/include/llvm/Object OffloadBinary.h

Fix device-image over-merge duplicating symbols in linker wrapper

Co-authored-by: Claude (Opus 4.8)
DeltaFile
+150-32llvm/unittests/TargetParser/TargetParserTest.cpp
+72-20clang/test/OffloadTools/clang-linker-wrapper/linker-wrapper.c
+27-15llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+25-15llvm/lib/Object/OffloadBinary.cpp
+14-6llvm/include/llvm/Object/OffloadBinary.h
+9-3llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
+297-911 files not shown
+300-937 files

NetBSD/pkgsrc-wip a2f5703ed Makefile

ed: whitespace cleanup
DeltaFile
+0-2ed/Makefile
+0-21 files

LLVM/project 79d1db7llvm/lib/Target/RISCV RISCVInstrPredicates.td RISCVInstrInfoXqci.td, llvm/test/CodeGen/RISCV xqcilo-xqcilia-frame-index.ll

[RISCV] Fold 26-bit frame-index offsets into Xqcilo/Xqcilia load/store/addi (#209315)

Extend frame-index addressing such that the sp-relative offset resolved for a stack access that fits within 26-bit and not 12-bits; folds directly into the wide Xqcilo/Xqcilia instructions. This is achieved by adding the support for the following:

- Adding support for stack accesses to complex pattern `SelectAddrRegImm26` for 26-bit loads and stores
- Adding support for frame index operand to qc.e.addi instruction
- Allowing 26-bit offsets to fold into the loads and store instructions from qcilo/qcilia extension
DeltaFile
+113-0llvm/test/CodeGen/RISCV/xqcilo-xqcilia-frame-index.ll
+22-0llvm/lib/Target/RISCV/RISCVInstrPredicates.td
+7-0llvm/lib/Target/RISCV/RISCVInstrInfoXqci.td
+6-0llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+6-0llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
+154-05 files

LLVM/project 020e283llvm/lib/Transforms/Utils CallPromotionUtils.cpp, llvm/test/Transforms/SampleProfile icp_target_feature.ll

Revert "Reapply "[PGO][ICP] Prevent indirect call promotion to functions with…"

This reverts commit d981ae2be3be6fd65ad66e763fcc20b3a6cac58a.
DeltaFile
+0-61llvm/test/Transforms/SampleProfile/icp_target_feature.ll
+0-21llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
+0-822 files

NetBSD/pkgsrc-wip 5d09df9emacs-git Makefile

emacs-git: currently not make-jobs-safe
DeltaFile
+3-0emacs-git/Makefile
+3-01 files

LLVM/project 991b88bllvm/utils/lit/lit TestRunner.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+7-134llvm/utils/lit/lit/TestRunner.py
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+52-34454 files not shown
+127-59360 files

LLVM/project 34da306clang/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12clang/test/lit.cfg.py
+46-22252 files not shown
+120-44858 files

LLVM/project ca8ac64llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py, polly/test lit.cfg

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12polly/test/lit.cfg
+46-22252 files not shown
+120-44858 files

LLVM/project 0ae185fclang/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12clang/test/lit.cfg.py
+46-22245 files not shown
+112-44051 files

LLVM/project 709e9d9bolt/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12bolt/test/lit.cfg.py
+46-22241 files not shown
+108-42547 files

LLVM/project 0b34c07llvm/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12llvm/test/lit.cfg.py
+46-22245 files not shown
+112-44051 files

LLVM/project 48f45e9lld/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12lld/test/lit.cfg.py
+46-22241 files not shown
+108-42547 files

LLVM/project 62eac30clang/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12clang/test/lit.cfg.py
+46-22240 files not shown
+107-41346 files

LLVM/project b925d93llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py, polly/test lit.cfg

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12polly/test/lit.cfg
+46-22240 files not shown
+107-41346 files

LLVM/project 4f5c520llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py, polly/test lit.cfg

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12polly/test/lit.cfg
+46-22239 files not shown
+106-40145 files

LLVM/project 6f93581llvm/lib/Target/AMDGPU AMDGPULowerVGPREncoding.cpp, llvm/test/CodeGen/AMDGPU vgpr-set-msb-coissue.mir

[AMDGPU][CodeGen] Fix `S_NOP` insertion during `S_SET_VGPR_MSB` placement

The issue arises when co-issue optimizations move the initial insertion
position for `S_SET_VGPR_MSB` to an earlier spot, creating a mismatch
with the position used to determine whether a `S_NOP` is needed.
DeltaFile
+1-1llvm/lib/Target/AMDGPU/AMDGPULowerVGPREncoding.cpp
+1-0llvm/test/CodeGen/AMDGPU/vgpr-set-msb-coissue.mir
+2-12 files

LLVM/project 3ba8763clang/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12clang/test/lit.cfg.py
+46-22237 files not shown
+104-37843 files

LLVM/project 0ccdb86llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py, polly/test lit.cfg

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12polly/test/lit.cfg
+46-22239 files not shown
+106-40145 files

LLVM/project 71837caclang/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12clang/test/lit.cfg.py
+46-22237 files not shown
+104-37843 files

LLVM/project 4b393b2clang/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12clang/test/lit.cfg.py
+46-22236 files not shown
+103-36742 files

LLVM/project e4bdeefclang/test lit.cfg.py, llvm/utils/lit/tests shtest-format.py shtest-run-at-line.py

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-12clang/test/lit.cfg.py
+46-22236 files not shown
+103-36742 files

LLVM/project 09b282cllvm/utils/lit/tests shtest-format.py shtest-run-at-line.py, llvm/utils/lit/tests/Inputs/shtest-timeout lit.cfg

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+33-66llvm/utils/lit/tests/shtest-format.py
+5-53llvm/utils/lit/tests/shtest-run-at-line.py
+7-30llvm/utils/lit/tests/shtest-timeout.py
+0-36llvm/utils/lit/tests/shtest-external-shell-kill.py
+0-25llvm/utils/lit/tests/shtest-readfile-external.py
+1-11llvm/utils/lit/tests/Inputs/shtest-timeout/lit.cfg
+46-22135 files not shown
+102-35541 files