LLVM/project 7a9cb6f — clang/lib/CIR/CodeGen CIRGenOpenMPClause.h CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c target-reduction.c

[CIR][OpenMP] Add support for OpenMP reduction clause

This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.

Assisted-by: Cursor / Claude Opus 5.5 Medium
DeltaFile
+212-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.cpp
+173-0clang/test/CIR/CodeGenOpenMP/target-reduction.c
+130-42clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+33-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+25-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.h
+573-425 files

LLVM/project 84ff99a — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c region-cleanups-O2.c

[CIR][OpenMP] Add support for 'distribute parallel for' with 'target teams'

Adds support for handling the full '[target] teams distribute parallel for'.
Introduces setting the omp.composite attibute for the 'distribute parallel for'
composite construct.

Assisted-by: Cursor / Claude Sonnet 5 High
DeltaFile
+924-0clang/test/CIR/CodeGenOpenMP/target-teams-distribute-parallel-for.c
+318-45clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+316-0clang/test/CIR/CodeGenOpenMP/distribute-parallel-for.c
+28-0clang/test/CIR/CodeGenOpenMP/target-host-eval.c
+27-0clang/test/CIR/CodeGenOpenMP/region-cleanups-O2.c
+19-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+1,632-456 files

LLVM/project 6420580 — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c teams-distribute.c

[CIR][OpenMP] Add initial support for the 'distribute' directive (#232781)

This patch adds initial support for the OpenMP 'distribute' directive.
Basic code generation for the standalone and combined cases is
introduced. Support for clauses will be added in the future. The
composite 'teams distribute parallel for' form will be added in a
subsequent patch.

Assisted-by: Cursor / Claude Sonnet 5 High
DeltaFile
+756-0clang/test/CIR/CodeGenOpenMP/target-teams-distribute.c
+203-0clang/test/CIR/CodeGenOpenMP/teams-distribute.c
+153-28clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+27-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+1,139-284 files

LLVM/project a11a882 — llvm/lib/CodeGen/SelectionDAG LegalizeVectorTypes.cpp, llvm/test/CodeGen/AArch64 vector-shuffle-var.ll

[SelectionDAG] improve `VECTOR_SHUFFLE_VAR` legalization (#243996)

Type legalization of `VECTOR_SHUFFLE_VAR` currently always does a scalar
expansion through the stack. When the target lowers `shuffles` natively,
legalize it into native shuffles instead.
  
If only the mask needs splitting but the result type is legal, truncate
the mask to the result element width (unless the vector type has too
many elements in which case use the appropriately wider type). Scalable
vectors bound their element count with `vscale_range`. This lets masks
wider than the data use AArch64 `TBL` and X86 `PSHUFB`/`VPPERM`

If the result needs splitting, for fixed vectors each result half
selects between shuffles of the two source halves,

  Res[i] = Idx[i] < NumLo ? SrcLo[Idx[i]] : SrcHi[Idx[i] - NumLo]

Splitting into K legal parts makes `K^2` part shuffles, so this is only
done when `2 * K^2 <= element count`. Shuffles of few wide elements

    [5 lines not shown]
DeltaFile
+1,721-219llvm/test/CodeGen/X86/vector-shuffle-var-512.ll
+1,176-315llvm/test/CodeGen/AArch64/vector-shuffle-var.ll
+654-321llvm/test/CodeGen/X86/vector-shuffle-var-256.ll
+521-391llvm/test/CodeGen/X86/vector-shuffle-var-legalize.ll
+84-374llvm/test/CodeGen/X86/vector-shuffle-var.ll
+59-5llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+4,215-1,6256 files

LLVM/project 21d66a2 — orc-rt/include/orc-rt/support IntervalMap.h IntervalSet.h, orc-rt/test/unit/support IntervalSetTest.cpp IntervalMapTest.cpp

[orc-rt] Add IntervalMap::size and IntervalSet::size. (#249362)

size() returns the number of ranges in the map or set. Adjacent ranges
that have been coalesced count as one.
DeltaFile
+44-0orc-rt/test/unit/support/IntervalMapTest.cpp
+18-0orc-rt/test/unit/support/IntervalSetTest.cpp
+5-0orc-rt/include/orc-rt/support/IntervalSet.h
+4-0orc-rt/include/orc-rt/support/IntervalMap.h
+71-04 files

LLVM/project 56199f1 — llvm/lib/Target/PISA PISAEmitIntrinsics.cpp PISAOptimizeRedundantCopies.cpp

Apply clang-format
DeltaFile
+20-20llvm/lib/Target/PISA/PISALegalizePredicates.cpp
+11-17llvm/lib/Target/PISA/PISALegalizeSubregAccess.cpp
+8-8llvm/lib/Target/PISA/PISALayout.cpp
+4-6llvm/lib/Target/PISA/PISAOptimizeRedundantCopies.cpp
+5-5llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+3-4llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+51-602 files not shown
+55-668 files

LLVM/project 8b2fbc9 — llvm/lib/Target/X86 X86.td

[x86] Change Recent Intel client CPUs to use the Lunarlake Model (#248366)

"arrowlake" and "arrowlake-s" use the same Lion Cove P-cores as Lunar
Lake.
"pantherlake" and "wildcatlake" has newer Cougar Cove P-cores as Lunar
Lake but misses its own model.

Until there are no new better fitting schedule models use the model from
Lunar Lake.

This PR changes the following ProcModel: arrowlake, arrowlake-s,
wildcatlake and pantherlake to use the one from Lunarlake.
DeltaFile
+3-3llvm/lib/Target/X86/X86.td
+3-31 files

LLVM/project 983a212 — llvm/lib/Target/PISA PISAEmitIntrinsics.cpp

Replaced iterator loops with drop_end range loops
DeltaFile
+5-6llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+5-61 files

LLVM/project e7aa3c5 — llvm/lib/Target/PISA PISAInsertLifetimeStart.cpp PISAExpandIntrinsics.cpp

Do not provide file name in the header
DeltaFile
+1-1llvm/lib/Target/PISA/PISAInsertLifetimeStart.cpp
+1-1llvm/lib/Target/PISA/PISAExpandIntrinsics.cpp
+1-1llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+1-1llvm/lib/Target/PISA/PISAConstProp.h
+1-1llvm/lib/Target/PISA/PISAConstProp.cpp
+1-1llvm/lib/Target/PISA/PISACacheHintSelector.cpp
+6-614 files not shown
+20-2020 files

LLVM/project 617da2e — llvm/lib/Target/PISA PISALegalizeCalls.cpp PISAKernelByValArgsLowering.cpp

Adjustments after rebase
DeltaFile
+1-1llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+1-1llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+1-1llvm/lib/Target/PISA/PISAExpandIntrinsics.cpp
+1-1llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+4-44 files

LLVM/project b0b669d — llvm/lib/Target/PISA PISAExpandIntrinsics.cpp PISAEmitIntrinsics.cpp

Add file headers
DeltaFile
+6-0llvm/lib/Target/PISA/PISAPropagateNullPointers.cpp
+5-0llvm/lib/Target/PISA/PISAExpandIntrinsics.cpp
+5-0llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+5-0llvm/lib/Target/PISA/PISAConstProp.h
+5-0llvm/lib/Target/PISA/PISAConstProp.cpp
+5-0llvm/lib/Target/PISA/PISACacheHintSelector.cpp
+31-014 files not shown
+101-020 files

LLVM/project 088282a — llvm/lib/Target/PISA PISALegalizeCalls.cpp

Simplify, remove redundant comment
DeltaFile
+10-14llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+10-141 files

LLVM/project aa3afea — llvm/lib/Target/PISA PISAScopeSelector.cpp

Add mising include
DeltaFile
+1-0llvm/lib/Target/PISA/PISAScopeSelector.cpp
+1-01 files

LLVM/project 8749797 — llvm/lib/Target/PISA PISAKernelByValArgsLowering.cpp PISALegalizePredicates.cpp

Fix issues raised in earlier PRs
DeltaFile
+90-89llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+91-80llvm/lib/Target/PISA/PISALegalizeSubregAccess.cpp
+42-36llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+39-36llvm/lib/Target/PISA/PISALayout.cpp
+37-37llvm/lib/Target/PISA/PISALegalizePredicates.cpp
+38-34llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+337-31217 files not shown
+519-49323 files

LLVM/project 248d2e7 — llvm/lib/Target/PISA PISAKernelByValArgsLowering.cpp

Formatting fix
DeltaFile
+4-3llvm/lib/Target/PISA/PISAKernelByValArgsLowering.cpp
+4-31 files

LLVM/project 05a4708 — llvm/lib/Target/PISA CMakeLists.txt

Review fixes
DeltaFile
+1-1llvm/lib/Target/PISA/CMakeLists.txt
+1-11 files

LLVM/project c5ecaf3 — llvm/lib/Target/PISA PISALegalizeSubregAccess.cpp PISALegalizeCalls.cpp

Add PISA codegen pipeline and lowering passes

Add the IR- and MIR-level passes that make up the PISA code generation
pipeline and wire them into PISAPassConfig in PISATargetMachine:

- Intrinsic handling: PISAEmitIntrinsics, PISAExpandIntrinsics,
    PISAReplaceIntrinsics
- Call/ABI lowering: PISALegalizeCalls, PISAKernelByValArgsLowering
- IR preparation: PISAPropagateNullPointers, PISALayout, PISAConstProp
- Legalization/verification: PISALegalizePredicates, PISAVerifyTypes,
    PISAVerifier
- Post-selection: PISAScopeSelector, PISACacheHintSelector,
    PISALegalizeSubregAccess, PISAOptimizeSubregAccess,
    PISAOptimizeRedundantCopies, PISAMarkConvergentNoMerge,
    PISAInsertLifetimeStart

PISAPassConfig now overrides the GlobalISel and pre/post-regalloc hooks
to run these passes, disables the machine passes that assume physical
registers, and runs the load/store vectorizer and atomic expansion in

    [4 lines not shown]
DeltaFile
+994-0llvm/lib/Target/PISA/PISALegalizePredicates.cpp
+751-0llvm/lib/Target/PISA/PISAInsertLifetimeStart.cpp
+581-0llvm/lib/Target/PISA/PISALayout.cpp
+565-0llvm/lib/Target/PISA/PISAEmitIntrinsics.cpp
+505-0llvm/lib/Target/PISA/PISALegalizeCalls.cpp
+435-0llvm/lib/Target/PISA/PISALegalizeSubregAccess.cpp
+3,831-021 files not shown
+6,216-5927 files

LLVM/project eca78c7 — llvm/lib/Target/PISA PISATargetMachine.cpp

Improve comment
DeltaFile
+2-1llvm/lib/Target/PISA/PISATargetMachine.cpp
+2-11 files

LLVM/project 87aa08e — llvm/tools/llvm-profgen CSPreInliner.cpp

[llvm-profgen] Format the pre-inliner promotion limit calculation
DeltaFile
+2-1llvm/tools/llvm-profgen/CSPreInliner.cpp
+2-11 files

LLVM/project 569bcbc — llvm/lib/Target/PISA PISAInstructionSelector.cpp, llvm/test/CodeGen/PISA/GlobalISel inst-select-fcanonicalize.mir inst-select-constant-float-type.mir

[5/7][PISA] Add PISAInstructionSelector (#214378)

Add the PISAInstructionSelector, the final Subtarget/TargetMachine
wiring, and selection tests.
DeltaFile
+1,872-0llvm/lib/Target/PISA/PISAInstructionSelector.cpp
+103-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-cttz.mir
+103-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-ctlz.mir
+38-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-debug-trace.mir
+36-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-constant-float-type.mir
+30-0llvm/test/CodeGen/PISA/GlobalISel/inst-select-fcanonicalize.mir
+2,182-05 files not shown
+2,238-311 files

LLVM/project 1be75ef — clang/lib/CIR/CodeGen CIRGenOpenMPClause.h CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c target-reduction.c

[CIR][OpenMP] Add support for OpenMP reduction clause

This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.

Assisted-by: Cursor / Claude Opus 5.5 Medium
DeltaFile
+212-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.cpp
+173-0clang/test/CIR/CodeGenOpenMP/target-reduction.c
+130-42clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+33-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+25-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.h
+573-425 files

LLVM/project 0f3c21d — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN/PRE atomic.ll

[GVN] Bail out on atomic loads in select availability checks (#249333)

An atomic load through a select cannot be replaced with values from
other loads, as atomic loads can only be forwarded from stores in this
case.

As a result, we bail out on atomic loads in the select availability
checker to prevent miscompilation.

Assisted-by: Claude # Test
DeltaFile
+20-0llvm/test/Transforms/GVN/PRE/atomic.ll
+2-0llvm/lib/Transforms/Scalar/GVN.cpp
+22-02 files

LLVM/project bf245f2 — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c region-cleanups-O2.c

[CIR][OpenMP] Add support for 'distribute parallel for' with 'target teams'

Adds support for handling the full '[target] teams distribute parallel for'.
Introduces setting the omp.composite attibute for the 'distribute parallel for'
composite construct.

Assisted-by: Cursor / Claude Sonnet 5 High
DeltaFile
+924-0clang/test/CIR/CodeGenOpenMP/target-teams-distribute-parallel-for.c
+318-45clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+316-0clang/test/CIR/CodeGenOpenMP/distribute-parallel-for.c
+28-0clang/test/CIR/CodeGenOpenMP/target-host-eval.c
+27-0clang/test/CIR/CodeGenOpenMP/region-cleanups-O2.c
+19-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+1,632-456 files

LLVM/project 29a1f85 — mlir/test/python/ir interface_fallback_model_lifetime.py

fix python formatting issues
DeltaFile
+1-3mlir/test/python/ir/interface_fallback_model_lifetime.py
+1-31 files

LLVM/project e410c74 — utils/bazel/llvm-project-overlay/llvm BUILD.bazel, utils/bazel/llvm-project-overlay/llvm/unittests BUILD.bazel

[Bazel] Fixes df72e92 (#249520)

This fixes df72e92229aa933c02602fed89a1be8fceac3a05 (#249488).

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

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+35-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
+36-02 files

LLVM/project 89f3e0e — llvm/lib/Transforms/Vectorize VPlanAnalysis.cpp, llvm/test/Transforms/LoopVectorize/AArch64 reg-usage.ll

[VPlan] Don't record uses by ephemeral recipes in register usage. (#249512)

calculateRegisterUsageForPlan skips ephemeral recipes, but still records
their operands as uses, keeping values live until the assume. Skip them
entirely.
DeltaFile
+3-6llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
+1-1llvm/test/Transforms/LoopVectorize/AArch64/reg-usage.ll
+4-72 files

LLVM/project bc43673 — llvm/lib/Transforms/Vectorize VPlanUnroll.cpp, llvm/test/Transforms/LoopVectorize early-exit-reductions-live-out.ll

[VPlan] Keep multiplier type when unrolling WideActiveLaneMask. (#249513)

unrollBlock replaces the multiplier of WideActiveLaneMask with UF as a
constant of the canonical IV type. The lane mask blending reductions
used on uncountable early exits uses the type of FirstActiveLane (i64)
for its multiplier, which crashed with "scalar type of new operand must
match the old operand" for narrower canonical IVs, e.g. i32.

Create the UF constant with the type of the existing multiplier.
DeltaFile
+165-0llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+2-1llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp
+167-12 files

LLVM/project 4848543 — flang/lib/Lower/OpenMP Utils.cpp, flang/test/Lower/OpenMP metadirective-target-boundary.f90 declare-variant-reduction-context.f90

[flang][OpenMP] Build the variant construct context from source nesting (#231690)
DeltaFile
+364-0flang/test/Lower/OpenMP/declare-variant-metadirective-context.f90
+74-39flang/lib/Lower/OpenMP/Utils.cpp
+71-0flang/test/Lower/OpenMP/declare-variant-clause-context.f90
+68-0flang/test/Lower/OpenMP/declare-variant-spec-expr.f90
+63-0flang/test/Lower/OpenMP/declare-variant-reduction-context.f90
+55-0flang/test/Lower/OpenMP/metadirective-target-boundary.f90
+695-399 files not shown
+898-5015 files

LLVM/project 688b877 — clang/lib/CIR/CodeGen CIRGenOpenMPClause.h CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c target-reduction.c

[CIR][OpenMP] Add support for OpenMP reduction clause

This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.

Assisted-by: Cursor / Claude Opus 5.5 Medium
DeltaFile
+212-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.cpp
+173-0clang/test/CIR/CodeGenOpenMP/target-reduction.c
+130-42clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+33-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+25-0clang/lib/CIR/CodeGen/CIRGenOpenMPClause.h
+573-425 files

LLVM/project b5b6839 — clang/lib/CIR/CodeGen CIRGenStmtOpenMP.cpp, clang/test/CIR/CodeGenOpenMP not-yet-implemented.c region-cleanups-O2.c

[CIR][OpenMP] Add support for 'distribute parallel for' with 'target teams'

Adds support for handling the full '[target] teams distribute parallel for'.
Introduces setting the omp.composite attibute for the 'distribute parallel for'
composite construct.

Assisted-by: Cursor / Claude Sonnet 5 High
DeltaFile
+924-0clang/test/CIR/CodeGenOpenMP/target-teams-distribute-parallel-for.c
+305-45clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.cpp
+278-0clang/test/CIR/CodeGenOpenMP/distribute-parallel-for.c
+28-0clang/test/CIR/CodeGenOpenMP/target-host-eval.c
+27-0clang/test/CIR/CodeGenOpenMP/region-cleanups-O2.c
+19-0clang/test/CIR/CodeGenOpenMP/not-yet-implemented.c
+1,581-456 files