LLVM/project 8d0e258 — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp

Fix build breaks after rebase
DeltaFile
+1-1llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+1-11 files

LLVM/project 89a1690 — llvm/lib/Target/LoongArch LoongArchISelLowering.cpp, llvm/test/CodeGen/LoongArch/lasx bitset.ll bitrev.ll

[LoongArch] Select [x]vbitset/[x]vbitrev for or/xor of bitcasted shl(splat(1), y)

When the shift of splat(1) is performed in a narrower element type than
the or/xor, e.g.

```llvm
  %s = shl <8 x i16> splat (i16 1), %y
  %m = bitcast <8 x i16> %s to <2 x i64>
  %r = xor <2 x i64> %x, %m
```

the existing [x]vbitset.{b/h/w} and [x]vbitrev.{b/h/w} patterns fail to
match and we emit vrepli + vsll + vor.v/vxor.v.

Fold OP(bitcast(shl(splat(1), y)), x) into
bitcast(OP(shl(splat(1), y), bitcast(x))) for OP in {or, xor} so that
the operation is done in the shift's element type and selected as a
single [x]vbitset or [x]vbitrev.

Assisted-By: LLM
DeltaFile
+39-0llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+6-18llvm/test/CodeGen/LoongArch/lsx/bitset.ll
+6-18llvm/test/CodeGen/LoongArch/lsx/bitrev.ll
+6-18llvm/test/CodeGen/LoongArch/lasx/bitset.ll
+6-18llvm/test/CodeGen/LoongArch/lasx/bitrev.ll
+63-725 files

LLVM/project f85687e — llvm/test/CodeGen/LoongArch/lasx bitset.ll bitrev.ll, llvm/test/CodeGen/LoongArch/lsx bitset.ll bitrev.ll

[LoongArch][NFC] Pre-commit tests for [x]vbitset/[x]vbitrev through bitcast

Add tests where the shift of splat(1) is done in a narrower element type
and then bitcast to the type of the or/xor operation.

Assisted-By: LLM
DeltaFile
+93-0llvm/test/CodeGen/LoongArch/lsx/bitset.ll
+93-0llvm/test/CodeGen/LoongArch/lsx/bitrev.ll
+93-0llvm/test/CodeGen/LoongArch/lasx/bitset.ll
+93-0llvm/test/CodeGen/LoongArch/lasx/bitrev.ll
+372-04 files

LLVM/project f8632aa — llvm/lib/Target/NVPTX NVPTXInstrInfo.td, llvm/test/CodeGen/NVPTX convert_s2f6x2_sm_100a.ll

[NVPTX] Add support for s2f6x2 conversion on sm_107a (#243416)

This change adds `sm_107a` to the list of supported architectures for
`s2f6x2` conversion intrinsics in the NVPTX backend, and tests for the
same.

The test has been verified on `ptxas-13.5`.
DeltaFile
+2-1llvm/test/CodeGen/NVPTX/convert_s2f6x2_sm_100a.ll
+1-1llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
+3-22 files

LLVM/project 651037b — llvm/lib/Remarks YAMLRemarkParser.cpp YAMLRemarkParser.h, llvm/unittests/Remarks YAMLRemarksParsingTest.cpp

[Remarks] Parse YAML hotness as a 64-bit count (#243469)

We hit a parse error when reading YAML remarks with `Hotness` above
`UINT32_MAX`. The parser reads it as `unsigned`, rejecting valid 64-bit
counts. Parse `Hotness` as `uint64_t` to match `Remark::Hotness` and the
YAML serializer, while keeping debug-location fields as `unsigned`.

Add 3 unit tests to the existing YAML parser tests:

- Hotness = 2^32 / UINT64_MAX -> parsed without truncation
- Hotness = 2^64 -> rejected
- DebugLoc.Line = 2^32 -> rejected

Tested on Linux x86-64, Release build with assertions enabled:

- The 64-bit Hotness test fails before the fix for both 2^32 and
UINT64_MAX.
- All 52 Remarks unit tests pass after the fix.
- Hotness = 2^64 and DebugLoc.Line = 2^32 remain rejected.

    [3 lines not shown]
DeltaFile
+34-0llvm/unittests/Remarks/YAMLRemarksParsingTest.cpp
+17-2llvm/lib/Remarks/YAMLRemarkParser.h
+1-12llvm/lib/Remarks/YAMLRemarkParser.cpp
+52-143 files

LLVM/project 2bee3e3 — compiler-rt/lib/scudo/standalone combined.h secondary.h, compiler-rt/lib/scudo/standalone/tests secondary_test.cpp

[scudo] Clean up zero on deallocate change. (#244070)

Instead of having a separate bool for Zero in the secondary cache entry,
use the already existing Flags instead.

Fix bug where a secondary cache entry is zeroed by releasing to the
kernel, but the entry was not marked as being zeroed. Update the test
for this since it was wrong too.

Move the zeroing of the entry so that if the secondary quarantine is
enabled, the entry is zeroed before being put in quarantine.
Move the zeroing outside of the lock when zero on deallocate is enabled.

Use the ClassId value in combined.h instead of using Header->ClassId.

BUG=b:581873117
BUG=b:582375770
DeltaFile
+17-11compiler-rt/lib/scudo/standalone/secondary.h
+8-9compiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
+1-2compiler-rt/lib/scudo/standalone/combined.h
+26-223 files

LLVM/project 483d43f — flang/include/flang/Utils OpenMP.h, flang/lib/Optimizer/OpenMP DoConcurrentConversion.cpp

[flang][OpenMP][NFC] Move DoConcurrent live-in/target-op helpers into shared utils
DeltaFile
+8-341flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp
+309-0flang/lib/Utils/OpenMP.cpp
+55-0flang/include/flang/Utils/OpenMP.h
+1-0flang/lib/Utils/CMakeLists.txt
+373-3414 files

LLVM/project ddd2bce — libc/src/sys/mount/linux mount.cpp CMakeLists.txt, libc/test/src/sys/mount CMakeLists.txt mount_test.cpp

[libc] implement sys/mount.h (#244047)

The mount header is for mounting and unmounting filesystems. This PR
adds mount, umount, and umount2, plus tests. Tests are pretty minimal
since we generally can't and don't want to mount or unmount random
files.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+65-0libc/test/src/sys/mount/umount_test.cpp
+65-0libc/test/src/sys/mount/umount2_test.cpp
+60-0libc/test/src/sys/mount/mount_test.cpp
+55-0libc/test/src/sys/mount/CMakeLists.txt
+44-0libc/src/sys/mount/linux/CMakeLists.txt
+37-0libc/src/sys/mount/linux/mount.cpp
+326-018 files not shown
+648-2324 files

LLVM/project c078d7b — clang CMakeLists.txt

[Clang][CMake] Support MinGW in CLANG_ENABLE_BOOTSTRAP (#242849)

When bootstrapping Clang with a MinGW toolchain on Windows (`WIN32` and
`MINGW` are both true), `clang/CMakeLists.txt` currently assumes `WIN32`
implies an MSVC-like toolchain:

- Use `clang${CMAKE_EXECUTABLE_SUFFIX}` and
`clang++${CMAKE_EXECUTABLE_SUFFIX}` instead of `clang-cl.exe` when
`MINGW` is set.
- Extend the `elseif(NOT WIN32)` LTO archiver branch to `elseif((NOT
WIN32) OR MINGW)` with `${CMAKE_EXECUTABLE_SUFFIX}` (keeping `LLVMgold`
restricted to `NOT WIN32`).
- Restrict the `lld-link` `CMAKE_LINKER` override under
`BOOTSTRAP_LLVM_ENABLE_LLD` to `WIN32 AND NOT MINGW` (or cross-compiling
to `Windows`), since MinGW uses the GNU driver like Unix targets.

Tested locally on Windows with llvm-mingw (`x86_64-w64-windows-gnu`),
`CLANG_ENABLE_BOOTSTRAP=ON`, `BOOTSTRAP_LLVM_ENABLE_LLD=ON`, and
`BOOTSTRAP_LLVM_ENABLE_LTO=Thin` (`stage2-configure` and stage2
`llvm-tblgen` build succeed).
DeltaFile
+8-8clang/CMakeLists.txt
+8-81 files

LLVM/project 44debce — flang/lib/Semantics resolve-directives.cpp, flang/test/Semantics/OpenMP common-block-data-sharing.f90

[flang][OpenMP] Detect conflicting data-sharing clauses for common blocks (#213913)

Issue: Flang accepts conflicting OpenMP data-sharing when a named COMMON
and one of its members appear on the same directive (e.g. PRIVATE(/C/)
and SHARED(X)), though OpenMP treats the block as all explicit members.

Fixes #205779

Root cause
- CheckMultipleAppearances only tracked the symbol named in the clause
(block name or variable), not COMMON membership.
- Listing /C/ did not register X, Y, so a later SHARED(X) looked like a
new symbol.
- Listing X did not check whether /C/ was already in another clause.
- OpenMP 2.15.3: a named COMMON in a data-sharing clause ≡ listing every
explicit member — semantics layer did not model that.
```
common /c/ x, y
!$omp parallel private(/c/) shared(x)   ! x listed twice — should error

    [16 lines not shown]
DeltaFile
+70-0flang/test/Semantics/OpenMP/common-block-data-sharing.f90
+10-13flang/lib/Semantics/resolve-directives.cpp
+80-132 files

LLVM/project f19509b — libc/src/__support/OSUtil/linux/syscall_wrappers capget.h capset.h, libc/src/sys/capability/linux capget.cpp capset.cpp

[libc] Add capability functions (#244053)

The capget and capset functions are weird, the current linux API expects
that they are provided by the system libc, but not exposed via headers.
Based on that, the lack of a yaml change is intentional.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+57-0libc/test/src/sys/capability/capset_test.cpp
+41-0libc/test/src/sys/capability/capget_test.cpp
+37-0libc/src/__support/OSUtil/linux/syscall_wrappers/capset.h
+36-0libc/src/sys/capability/linux/capget.cpp
+36-0libc/src/__support/OSUtil/linux/syscall_wrappers/capget.h
+36-0libc/src/sys/capability/linux/capset.cpp
+243-015 files not shown
+479-021 files

LLVM/project ae9b54f — mlir/lib/Dialect/Vector/Transforms VectorUnroll.cpp, mlir/test/Dialect/Vector vector-transfer-unroll.mlir

[mlir][vector] Unroll transfers masked by vector.mask (#239554)

`UnrollTransferReadPattern` and `UnrollTransferWritePattern` reject
transfers inside `vector.mask` (#230461). Transfers with `in_bounds =
false` unroll today, so replacing `in_bounds` with masks (#227821) would
lose this unrolling if the masks are introduced before unrolling and
survive mask elimination.

Unroll them into one `vector.mask` per tile, with the matching tile of
the mask (and passthru, if any). Both patterns now use
`MaskableOpRewritePattern`.

Limited to minor identity maps, fixed-size vectors and target shapes of
the vector's rank. The mask-operand form is left unchanged; its removal
from transfers is tracked in #239511. Other masked transfers and other
ops under `vector.mask` are still not unrolled.

After `-canonicalize`, slices of a `vector.create_mask` become per-tile
`vector.create_mask` ops. For example, with step 4 and bound 1024,

    [3 lines not shown]
DeltaFile
+105-5mlir/test/Dialect/Vector/vector-transfer-unroll.mlir
+82-24mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
+187-292 files

LLVM/project fb9f551 — clang/lib/CIR/Dialect/Transforms CIRABIClassifierAMDGPU.cpp, clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.h CIRABIRewriteContext.cpp

[CIR] Lower va_arg for AMDGPU in CallConvLowering
DeltaFile
+130-0clang/test/CIR/Transforms/abi-lowering/amdgpu-vaarg.cir
+89-0clang/test/CodeGen/AMDGPU/abi-va-arg.c
+59-13clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+4-5clang/lib/CIR/Dialect/Transforms/CIRABIClassifierAMDGPU.cpp
+1-1clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.h
+283-195 files

LLVM/project 65fac40 — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize interleave_uncountable_exits.ll

[VPlan] Move extract-lane(0, canWideIV) combine before unrolling

Some extract-lane combines can't be performed before unrolling, e.g. the one that combines it to Instruction::ExtractElement can end up extracting from a different part. But the extract-lane(0, canWideIV) can because at index 0 you're always extracting from the first part. Do this before unrolling, which improves codegen of unrolled code.
DeltaFile
+16-24llvm/test/Transforms/LoopVectorize/VPlan/early_exit_with_stores_vplan.ll
+4-12llvm/test/Transforms/LoopVectorize/interleave_uncountable_exits.ll
+6-6llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+26-423 files

LLVM/project 81785cf — llvm/lib/Transforms/Vectorize LoopVectorize.cpp VPlanUnroll.cpp, llvm/test/Transforms/LoopVectorize interleave_uncountable_exits.ll

[VPlan] Support interleaving early exit loops with side effects

We couldn't do this on main previously because the exit mask `active-lane-mask(0, FirstActiveLane(Cond))` doesn't get unrolled properly across parts. Now that we use mask.beforefirst we can unroll it properly in a chain. The unrolled form is:

    unroll(mask.beforefirst, P) = mask.beforefirst(cond[P] | broadcast(anyof(not(unroll(mask.beforefirst, P-1)))))

On AArch64 this can be combined to brkpb in another patch.
DeltaFile
+106-7llvm/test/Transforms/LoopVectorize/interleave_uncountable_exits.ll
+10-0llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp
+10-0llvm/lib/Transforms/Vectorize/VPlanLowering.cpp
+0-9llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+126-164 files

LLVM/project 63f1a78 — libc/src/langinfo nl_langinfo.h nl_langinfo_l.h, libc/test/src/langinfo nl_langinfo_test.cpp

[libc] Add nl_langinfo and nl_langinfo_l implementations (#243540)

POSIX defines nl_langinfo and nl_langinfo_l so callers can query locale
parameters such as CODESET and standard date, numeric, and message
strings without parsing external locale files.  Now that the internal
locale tables exist, this change implements both entrypoints across all
57 POSIX <langinfo.h> items and exposes them on Linux targets.

nl_langinfo resolves directly against the fixed compiled-in default
locale tables without consulting mutable global or thread-local state,
while nl_langinfo_l queries the caller-supplied locale_t handle (falling
back to the compiled-in default when LIBC_CONF_ENABLE_RUNTIME_LOCALE is
disabled).  Unrecognised nl_item values return "" without modifying
errno.

Assisted-by: Automated tooling, human reviewed.
DeltaFile
+133-0libc/test/src/langinfo/nl_langinfo_test.cpp
+132-0libc/src/langinfo/langinfo_utils.h
+40-0libc/src/langinfo/CMakeLists.txt
+28-0libc/src/langinfo/nl_langinfo_l.cpp
+27-0libc/src/langinfo/nl_langinfo_l.h
+26-0libc/src/langinfo/nl_langinfo.h
+386-012 files not shown
+509-018 files

LLVM/project fee573a — llvm/docs AMDGPUDMAOperations.md

Apply suggestion from @ritter-x2a

Co-authored-by: Fabian Ritter <fabian.ritter at amd.com>
DeltaFile
+1-1llvm/docs/AMDGPUDMAOperations.md
+1-11 files

LLVM/project d56bc48 — llvm/lib/CodeGen RegisterCoalescer.cpp, llvm/test/CodeGen/X86 coalescer-erasable-implicit-def-partial-redef.mir

Reland "[RegisterCoalescer] Keep endpoints of lane-carrying IMPLICIT_DEF" (#243068)

Relands #230141, reverted in #242409.

The new test had a kill flag on a virtual register, which the
MachineVerifier rejects since #239012. Dropped it; no code change.

Original commit message:

Since #196895, pruneValues discards the endpoints of a value copied from
an erasable IMPLICIT_DEF. A partial IMPLICIT_DEF without `<read-undef>`
carries other lanes those endpoints may read, so discarding them leaves
a hole in the live range. Keep them unless the source has no ValidLanes.

Assisted-by: Claude Opus 5.5
DeltaFile
+67-0llvm/test/CodeGen/X86/coalescer-erasable-implicit-def-partial-redef.mir
+14-7llvm/lib/CodeGen/RegisterCoalescer.cpp
+81-72 files

LLVM/project 4d36931 — llvm/lib/Transforms/Vectorize VPlan.h VPlan.cpp

[VPlan] Make VPlan::hasEarlyExit operate on loop regions. NFC (#243753)

This allows it to handle early exit loops with side effects, which it
currently misses. Early exit loops with side effects have
indistinguishable control flow to regular loops after the regions are
dissolved.

The only post-dissolve caller is the LoopInfo fixup for dispatch blocks.
However we don't need to check hasEarlyExit here, as it won't touch any
loops that aren't dispatch blocks.
DeltaFile
+27-29llvm/lib/Transforms/Vectorize/VPlan.cpp
+6-18llvm/lib/Transforms/Vectorize/VPlan.h
+33-472 files

LLVM/project 6372543 — llvm/utils/TableGen/Common CodeGenDAGPatterns.cpp

TableGen: Index patterns by predicates when generating variants (#244106)

GenerateVariants quadractically compared each new variant against
every pattern to find duplicates, though only patterns with the same
predicates can match. Index the patterns by predicates and only
compare against those.

RISCVGenDAGISel.inc tablegen run:

            Gigainstructions  Gigacycles      CPU seconds
  Before    56.9              27.8            8.7
  After     50.0 (-12.2%)     25.2 (-9.3%)    8.0 (-8.8%)

AMDGPUGenDAGISel.inc tablegen run:

            Gigainstructions  Gigacycles      CPU seconds
  Before    91.2              44.6            14.2
  After     85.3 (-6.5%)      42.7 (-4.2%)    13.4 (-5.4%)


    [6 lines not shown]
DeltaFile
+9-5llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
+9-51 files

LLVM/project 07f2b97 — lld/test/MachO arm64-thunk-visibility.s

[lld-macho] Check the exact set of thunk symbols

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+10-10lld/test/MachO/arm64-thunk-visibility.s
+10-101 files

LLVM/project 507de0c — llvm/lib/Target/Hexagon HexagonInstrInfo.h HexagonInstrInfo.cpp, llvm/test/CodeGen/Hexagon mux-debug-use.mir mux-debug-clobbered.mir

[Hexagon] Ignore debug uses when generating muxes (#232237)

HexagonGenMux incorrectly treats register uses from DBG_VALUE
instructions as executable register uses when building its def-use maps.
A debug-only use of the destination register can therefore prevent two
complementary conditional transfers from being folded into a C2_mux.
Keep debug instructions in the positional map but exclude them from the
executable def-use information used by mux analysis. Add a regression
test covering a DBG_VALUE between the conditional transfers.

Fixes #227919
DeltaFile
+49-0llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
+49-0llvm/test/CodeGen/Hexagon/mux-debug-same-var.mir
+48-0llvm/test/CodeGen/Hexagon/mux-debug-up.mir
+47-0llvm/test/CodeGen/Hexagon/mux-debug-clobbered.mir
+46-0llvm/test/CodeGen/Hexagon/mux-debug-use.mir
+12-0llvm/lib/Target/Hexagon/HexagonInstrInfo.h
+251-01 files not shown
+257-17 files

LLVM/project 70d1fc8 — mlir/lib/Target/LLVMIR DebugTranslation.h DebugImporter.h, mlir/test/Target/LLVMIR llvmir-debug.mlir

[mlir][llvm] Import and export DIEnumerator debug info (#243873)

Import llvm::DIEnumerator as DIEnumeratorAttr and export it back, so
enumeration types keep their enumerators. This follows the attribute
added in #241969, and the discussion in
https://discourse.llvm.org/t/interest-in-adding-dienumerator-and-template-parameter-debug-info-to-the-llvm-dialect/92776.

Before this change DebugImporter did not handle DIEnumerator, so
translating an enumerator returned null, and because the importer drops
the whole elements list when one element fails to translate, an
enumeration type was imported without any of its enumerators.

The importer keeps the name (null when the LLVM name is empty), the
unsigned flag, and the value as an IntegerAttr with exactly the width of
the LLVM APInt. The exporter builds the llvm::DIEnumerator from the same
three pieces. As usual for signless integers, an unsigned value prints
in its signed form, for example value = -1 : i64, isUnsigned = true, and
a one bit value prints as true or false. LLVM's textual IR parser gives
a literal such as 0 or -1 a width of one bit, so these two import as

    [12 lines not shown]
DeltaFile
+34-0mlir/test/Target/LLVMIR/llvmir-debug.mlir
+29-0mlir/test/Target/LLVMIR/Import/debug-info.ll
+8-2mlir/lib/Target/LLVMIR/DebugTranslation.cpp
+10-0mlir/lib/Target/LLVMIR/DebugImporter.cpp
+1-0mlir/lib/Target/LLVMIR/DebugTranslation.h
+1-0mlir/lib/Target/LLVMIR/DebugImporter.h
+83-26 files

LLVM/project a4329f5 — lld/MachO SyntheticSections.cpp ConcatOutputSection.cpp, lld/test/MachO arm64-thunk-visibility.s

[lld-macho] Give thunks to linker-private labels no symbol

Like the labels themselves, their thunks stay out of the output symbol
table, as in ld-prime.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+8-2lld/test/MachO/arm64-thunk-visibility.s
+3-2lld/MachO/ConcatOutputSection.cpp
+2-1lld/MachO/SyntheticSections.cpp
+13-53 files

LLVM/project b86056e — orc-rt/test/Inputs CMakeLists.txt orc-rt-test-dylib.c, orc-rt/test/unit CMakeLists.txt

[orc-rt] Make NativeDylibManager's test dylib a shared input. (#244105)

The shared library added for the NativeDylibManager unit tests isn't
actually NativeDylibManager-specific. Move it to test/Inputs as
orc-rt-test-dylib, so that it can be reused by other unit and regression
tests. Unit tests find it through the ORC_RT_TEST_DYLIB_PATH compile
definition (previously NDM_TEST_LIB_PATH), and regression tests through
a new %{test-dylib} substitution.

The library is now written in C, defines its own export macro rather
than using the unit tests' TestVisibility.h, and its functions are
renamed to orc_rt_test_dylib_return42 and orc_rt_test_dylib_return7.
DeltaFile
+26-0orc-rt/test/Inputs/orc-rt-test-dylib.c
+12-13orc-rt/test/unit/bedrock/sps/NativeDylibManagerSPSCITest.cpp
+12-13orc-rt/test/unit/bedrock/NativeDylibManagerTest.cpp
+21-0orc-rt/test/Inputs/CMakeLists.txt
+3-11orc-rt/test/unit/CMakeLists.txt
+0-6orc-rt/test/unit/Inputs/NativeDylibManagerTestLib.cpp
+74-434 files not shown
+87-4310 files

LLVM/project bbaa688 — clang/test/CodeGen hexagon-hlx-vector-stack-limit.c, clang/test/CodeGenCXX hexagon-hlx-vector-stack-limit.cpp

[Hexagon] Add a limit on the HLX vector stack size (#243174)

Report an error when a function needs more HLX vector (VTCM) stack than
allowed, including the area for outgoing HLX stack arguments. The limit
comes from the "hlx-vector-stack-limit" function attribute, or else from
the -hlx-vector-stack-limit option, and there is no limit by default.

In Clang, the -fhlx-vector-stack-limit=N driver option, which requires
-mhlx, sets the limit on all functions through the
"hlx-vector-stack-limit" function attribute in IR. A function can
override it with the hlx_vector_stack_limit(N) attribute.

Assisted by AI

---------

Co-authored-by: Ankit Aggarwal <aankit at qti.qualcomm.com>
Co-authored-by: pavani karveti <pkarveti at qti.qualcomm.com>
DeltaFile
+52-0llvm/test/CodeGen/Hexagon/hlx-vector-stack-limit.ll
+34-0clang/test/CodeGen/hexagon-hlx-vector-stack-limit.c
+25-0clang/test/Driver/hexagon-hlx.c
+18-0clang/test/Sema/hexagon-hlx-vector-stack-limit.c
+16-1llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
+16-0clang/test/CodeGenCXX/hexagon-hlx-vector-stack-limit.cpp
+161-111 files not shown
+240-517 files

LLVM/project 790edd6 — llvm/test/CodeGen/AMDGPU sched-handleMoveUp-dead-def-across-def.mir

Updated test according to reviewer feedback.
DeltaFile
+1-2llvm/test/CodeGen/AMDGPU/sched-handleMoveUp-dead-def-across-def.mir
+1-21 files

LLVM/project c1b4f35 — flang/lib/Lower/OpenMP ClauseProcessor.cpp, flang/test/Integration/OpenMP declare-mapper-iterator.f90

[flang][mlir][OMPIRBuilder][OpenMP] Support iterator modifier in declare mapper map clause (#235491)

This PR adds LLVM code generation support for the `iterator` modifier in
`map` clauses inside `declare mapper`, building on the lowering added in
[#241358](https://github.com/llvm/llvm-project/pull/241358).

**Implementation:**

- `OMPIRBuilder`: added `MapInfosTy::DynamicSegments` to describe groups
of mapper components whose count is only known at runtime (trip count, a
callback producing one iteration's base/begin/size, the map type, and an
optional child mapper). `emitUserDefinedMapper` emits a loop per segment
that pushes each component via `__tgt_push_mapper_component`, resolving
`MEMBER_OF` against `__tgt_mapper_num_components`. Added
`LeadingParentCond` to mark the first static component as a parent
synthesized only to group those segments, pushed conditionally at
runtime.
- Added runtime handling for iterator-generated map entries using
`__tgt_push_mapper_component`, since the number of elements is known

    [22 lines not shown]
DeltaFile
+351-4mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+266-0mlir/test/Target/LLVMIR/openmp-declare-mapper-iterator.mlir
+164-90llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+68-0flang/lib/Lower/OpenMP/ClauseProcessor.cpp
+64-0offload/test/offloading/fortran/target-declare-mapper-iterator-nested.f90
+63-0flang/test/Integration/OpenMP/declare-mapper-iterator.f90
+976-9413 files not shown
+1,454-12519 files

LLVM/project 91a26e2 — llvm/test/CodeGen/Hexagon hlx-vector-pair-alloca-marker.ll

[Hexagon] Test that HLX pair alloca lowering keeps half-vector loads (#243916)

Check that a store to an HLX VectorPair alloca is lowered to SS16b.new
while an HLX_Vector-typed load from the same alloca stays a plain load.

Assisted by AI
DeltaFile
+14-0llvm/test/CodeGen/Hexagon/hlx-vector-pair-alloca-marker.ll
+14-01 files

LLVM/project 2062133 — llvm/utils/TableGen/Common CodeGenDAGPatterns.cpp

TableGen: Index patterns by predicates when generating variants

GenerateVariants quadractically compared each new variant against
every pattern to find duplicates, though only patterns with the same
predicates can match. Index the patterns by predicates and only
compare against those.

RISCVGenDAGISel.inc tablegen run:

            Gigainstructions  Gigacycles      CPU seconds
  Before    56.9              27.8            8.7
  After     50.0 (-12.2%)     25.2 (-9.3%)    8.0 (-8.8%)

AMDGPUGenDAGISel.inc tablegen run:

            Gigainstructions  Gigacycles      CPU seconds
  Before    91.2              44.6            14.2
  After     85.3 (-6.5%)      42.7 (-4.2%)    13.4 (-5.4%)


    [7 lines not shown]
DeltaFile
+9-5llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
+9-51 files