LLVM/project f86d707llvm/docs LangRef.rst TransformMetadata.rst, llvm/lib/Transforms/Scalar WarnMissedTransforms.cpp

[LoopVectorize] Reland: Add metadata to distinguish vectorized loop body from scalar remainder (#194912)

Reland of #190258, reverted in #194901 due to a null-pointer dereference
when the scalar preheader is absent. Fixed by guarding the metadata
emission with a null check on `ScalarPH`. Also adds a dedicated test
(`vectorize-loop-kind-metadata.ll`) verifying the metadata is emitted
only when remarks are enabled.

---

Add two new loop metadata attributes — `llvm.loop.vectorize.body` and
`llvm.loop.vectorize.epilogue` — that the loop vectorizer sets on the
generated vector loop and epilogue loop respectively. The metadata is
only emitted when optimization remarks are enabled (`ORE->enabled()`),
so it has zero cost in normal compilation.

These enable downstream passes (LoopUnroll, WarnMissedTransforms) to
produce more precise optimization remarks. Instead of the generic "loop
not unrolled" warning on a source line that was vectorized, the unroller

    [25 lines not shown]
DeltaFile
+120-0llvm/test/Transforms/LoopTransformWarning/vectorizer-loop-kind-unroll-warning.ll
+110-0llvm/test/Transforms/LoopUnroll/vectorizer-loop-kind-remarks.ll
+42-0llvm/docs/LangRef.rst
+34-0llvm/test/Transforms/LoopVectorize/vectorize-loop-kind-metadata.ll
+21-0llvm/docs/TransformMetadata.rst
+10-3llvm/lib/Transforms/Scalar/WarnMissedTransforms.cpp
+337-36 files not shown
+380-912 files

FreeNAS/freenas 0d7fc28src/middlewared/middlewared/plugins zettarepl.py

NAS-140875 / 27.0.0-BETA.1 / remove pytz (#18879)

Deprecated and replaced officially with builtin `zoneinfo` module
DeltaFile
+2-2src/middlewared/middlewared/plugins/zettarepl.py
+2-21 files

FreeNAS/freenas 0ad58f4src/middlewared/middlewared/plugins/failover_ event.py, src/middlewared/middlewared/plugins/iscsi_ lio.py alua.py

Add middleware support for LIO ALUA HA

Wire up the middleware side of LIO ALUA high-availability: load
lio_ha.ko with per-node addresses on service start, manage the
4-row ALUA state table (MASTER/BACKUP × synced/not-synced) across
failover events, clean up STANDBY configfs on pool export, and
add pre-flight validation that targets have static initiator ACLs
before ALUA can be enabled.
DeltaFile
+318-97src/middlewared/middlewared/utils/lio/config.py
+179-1src/middlewared/middlewared/plugins/iscsi_/lio.py
+62-9src/middlewared/middlewared/plugins/iscsi_/alua.py
+33-21src/middlewared/middlewared/plugins/failover_/event.py
+34-19src/middlewared/middlewared/plugins/iscsi_/iscsi_global.py
+28-0src/middlewared/middlewared/plugins/iscsi_/global_linux.py
+654-1474 files not shown
+690-14810 files

LLVM/project bcaaf61libc/docs CMakeLists.txt, libc/docs/headers index.rst

[libc][docs] Add pwd.h POSIX header documentation (#186292)

Add YAML metadata for `pwd.h` listing all POSIX-mandated functions
(`endpwent`, `getpwent`, `getpwnam`, `getpwnam_r`, `getpwuid`,
`getpwuid_r`, `setpwent`). This header defines no macros per POSIX.

Add `pwd` to `index.rst` and `CMakeLists.txt` `docgen_list`.

Verified with `python3 docgen.py pwd.h` — generates valid RST with
correct POSIX links.

Partial fix for #122006

Co-authored-by: Jeff Bailey <jbailey at raspberryginger.com>
DeltaFile
+15-0libc/utils/docgen/pwd.yaml
+1-0libc/docs/CMakeLists.txt
+1-0libc/docs/headers/index.rst
+17-03 files

NetBSD/pkgsrc-wip fd20258libnfs options.mk Makefile, libnfs/patches patch-cmake_ConfigureChecks.cmake patch-cmake_config.h.cmake

libnfs: switch to build with cmake

+ various minor changes
DeltaFile
+36-3libnfs/options.mk
+11-22libnfs/Makefile
+19-0libnfs/patches/patch-cmake_ConfigureChecks.cmake
+16-0libnfs/patches/patch-cmake_config.h.cmake
+15-0libnfs/patches/patch-CMakeLists.txt
+0-15libnfs/patches/patch-configure.ac
+97-402 files not shown
+106-428 files

LLVM/project f3d0ac9llvm/lib/Analysis Loads.cpp, llvm/unittests/Analysis LoadsTest.cpp

[Loads] Fix crash on mixed-address-space pointers in no-AA store check (#195256)

Fix crash on mixed-address-space pointers in no-AA store check.
`areNonOverlapSameBaseLoadAndStore` built `ConstantRanges` from `APInts`
sized by the load and store pointer index widths. When those widths
differ (AMDGPU's AS=0 vs AS=5), `ConstantRange::intersectWith` asserts.
Adds early return mirroring `BasicAA` path.

This can happen when `FindAvailableLoadedValue` is called without
`BatchAAResults`. The path with `BatchAAResults` already handles it.

This crash was observed in #190607, so it was reverted in #195135.
DeltaFile
+29-0llvm/unittests/Analysis/LoadsTest.cpp
+2-0llvm/lib/Analysis/Loads.cpp
+31-02 files

LLVM/project 4fa459dllvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp, llvm/test/MC/AArch64 armv9a-tlbip.s

fixup! Address Carol's PR comments
DeltaFile
+5-0llvm/test/MC/AArch64/armv9a-tlbip.s
+3-0llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+8-02 files

LLVM/project 6900ebellvm/lib/Transforms/IPO Attributor.cpp

Attributor: Avoid double map lookup in updateAttrMap (#182666)

This will leave behind the map entry in the unchanged case,
but this seems to not matter. Could erase the newly inserted
entry if that happens, but that also doesn't seem to make a
difference.
DeltaFile
+7-8llvm/lib/Transforms/IPO/Attributor.cpp
+7-81 files

LLVM/project ed25e1fllvm/lib/Transforms/Vectorize VPlanUtils.cpp VPlan.h

[VPlan] Add missing const-qualifications (NFC) (#195248)
DeltaFile
+4-4llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
+2-2llvm/lib/Transforms/Vectorize/VPlan.h
+1-1llvm/lib/Transforms/Vectorize/VPlanUtils.h
+7-73 files

FreeBSD/ports 902fcfawww/py-google-api-python-client Makefile distinfo

www/py-google-api-python-client: Update to 2.195.0

- Convert to PEP517

ChangeLog:      https://github.com/googleapis/google-api-python-client/releases/tag/v2.195.0
Reported by:    "release-please[bot]" <notifications at github.com>
DeltaFile
+4-2www/py-google-api-python-client/Makefile
+3-3www/py-google-api-python-client/distinfo
+7-52 files

FreeBSD/ports c68d3ddmultimedia/go2tv distinfo Makefile

multimedia/go2tv: Update to 2.3.0

ChangeLog:      https://github.com/alexballas/go2tv/releases/tag/v2.3.0
Reported by:    "github-actions[bot]" <notifications at github.com>
DeltaFile
+5-5multimedia/go2tv/distinfo
+2-2multimedia/go2tv/Makefile
+7-72 files

LLVM/project a6a53ealibc/docs CMakeLists.txt, libc/docs/headers index.rst

[libc][docs] Add sched.h POSIX header documentation (#186290)

Add YAML metadata for `sched.h` listing all POSIX-mandated macros
(`SCHED_FIFO`, `SCHED_OTHER`, `SCHED_RR`, `SCHED_SPORADIC`) and
functions
(`sched_get_priority_max`, `sched_get_priority_min`, `sched_getparam`,
`sched_getscheduler`, `sched_rr_get_interval`, `sched_setparam`,
`sched_setscheduler`, `sched_yield`).

Add `sched` to `index.rst` and `CMakeLists.txt` `docgen_list`.

Verified with `python3 docgen.py sched.h` — generates valid RST with
correct POSIX links.

Partial fix for #122006

Co-authored-by: Jeff Bailey <jbailey at raspberryginger.com>
DeltaFile
+27-0libc/utils/docgen/sched.yaml
+1-0libc/docs/CMakeLists.txt
+1-0libc/docs/headers/index.rst
+29-03 files

FreeBSD/doc 31e233awebsite/data/en/press press.toml

press: Add latest FreeBSD YouTube video to press

Sponsored by:   FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D56755
DeltaFile
+9-0website/data/en/press/press.toml
+9-01 files

FreeBSD/ports 0f0eae0textproc/quarto distinfo Makefile

textproc/quarto: update 1.10.0 → 1.10.3

PR:     294904
DeltaFile
+5-5textproc/quarto/distinfo
+1-1textproc/quarto/Makefile
+6-62 files

LLVM/project c549abaflang/lib/Semantics check-omp-loop.cpp openmp-utils.cpp, flang/test/Parser/OpenMP linear-clause.f90

[flang][OpenMP] Check conflicts between predetermined/explicit DSA (#194961)

Improve checks for loop iteration variables with predetermined DSA
appearing in DSA clauses. Show both the location of the variable in the
offending clause, and in the loop.

Make the checks a bit more accurate as well: only allow LINEAR clause on
SIMD construct with a single affected loop.
DeltaFile
+86-22flang/lib/Semantics/check-omp-loop.cpp
+27-0llvm/include/llvm/Frontend/OpenMP/OMP.h
+11-14flang/test/Parser/OpenMP/linear-clause.f90
+18-3flang/test/Semantics/OpenMP/do01.f90
+14-6flang/lib/Semantics/openmp-utils.cpp
+0-15flang/lib/Semantics/check-omp-structure.cpp
+156-608 files not shown
+173-9114 files

LLVM/project e7db558libc/docs CMakeLists.txt, libc/docs/headers index.rst

[libc][docs] Add spawn.h POSIX header documentation (#186291)

Add YAML metadata for `spawn.h` listing all POSIX-mandated macros
(`POSIX_SPAWN_RESETIDS`, `POSIX_SPAWN_SETPGROUP`,
`POSIX_SPAWN_SETSCHEDPARAM`,
`POSIX_SPAWN_SETSCHEDULER`, `POSIX_SPAWN_SETSID`,
`POSIX_SPAWN_SETSIGDEF`,
`POSIX_SPAWN_SETSIGMASK`) and all 23 functions (`posix_spawn`,
`posix_spawnp`,
`posix_spawn_file_actions_*`, `posix_spawnattr_*`).

Add `spawn` to `index.rst` and `CMakeLists.txt` `docgen_list`.

Verified with `python3 docgen.py spawn.h` — generates valid RST with
correct POSIX links.

Partial fix for #122006
DeltaFile
+63-0libc/utils/docgen/spawn.yaml
+1-0libc/docs/headers/index.rst
+1-0libc/docs/CMakeLists.txt
+65-03 files

LLVM/project d7c907allvm/lib/Target/AArch64/MCTargetDesc AArch64InstPrinter.cpp

fixup! Address PR comment about shortened `sysp` with xzr/xzr
DeltaFile
+17-16llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+17-161 files

LLVM/project f35bcd8llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp, llvm/test/MC/AArch64 armv9-sysp-diagnostics.s

fixup! Improve error parsing
DeltaFile
+46-25llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+12-12llvm/test/MC/AArch64/armv9-sysp-diagnostics.s
+58-372 files

LLVM/project 33a7f77llvm/lib/Target/AArch64 AArch64RegisterInfo.td, llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp

fixup! Implement Marian's suggestion to implement as XSeqPairsClass + [XZR, XZR]
DeltaFile
+54-82llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+35-73llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+12-9llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
+8-1llvm/lib/Target/AArch64/AArch64RegisterInfo.td
+0-7llvm/test/MC/AArch64/armv9a-sysp.s
+1-3llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.h
+110-1756 files

LLVM/project 1421144llvm/lib/Target/AArch64 AArch64InstrFormats.td

fixup! Remove superfluous code
DeltaFile
+0-7llvm/lib/Target/AArch64/AArch64InstrFormats.td
+0-71 files

LLVM/project 5990d03llvm/lib/Target/AArch64/MCTargetDesc AArch64InstPrinter.cpp, llvm/test/MC/AArch64 armv9a-sysp.s

fixup! Add no-alias tests
DeltaFile
+7-0llvm/test/MC/AArch64/armv9a-sysp.s
+4-3llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+11-32 files

LLVM/project 331697dllvm/lib/Target/AArch64 AArch64InstrFormats.td, llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp

fixup! Templatise bounds checking and improve tests
DeltaFile
+15-4llvm/test/MC/AArch64/armv9-sysp-diagnostics.s
+18-0llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+12-5llvm/lib/Target/AArch64/AArch64InstrFormats.td
+0-8llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+45-174 files

LLVM/project 94b54d5llvm/lib/Target/AArch64 AArch64InstrFormats.td AArch64InstrInfo.td

fixup! Address Marian's PR comments: use imm0_6 predicate
DeltaFile
+9-1llvm/lib/Target/AArch64/AArch64InstrFormats.td
+2-2llvm/lib/Target/AArch64/AArch64InstrInfo.td
+11-32 files

LLVM/project 36b228dllvm/lib/Target/AArch64 AArch64InstrFormats.td AArch64InstrInfo.td, llvm/lib/Target/AArch64/Disassembler AArch64Disassembler.cpp

[AArch64][llvm] Tighten SYSP; don't disassemble invalid encodings

Tighten SYSP aliases, so that invalid encodings are disassembled
to `<unknown>`. This is because:

```
  Cn is a 4-bit unsigned immediate, in the range 8 to 9
  Cm is a 4-bit unsigned immediate, in the range 0 to 7
  op1 is a 3-bit unsigned immediate, in the range 0 to 6
  op2 is a 3-bit unsigned immediate, in the range 0 to 7
```

Ensure we check this when disassembling, and also constrain
tablegen for compile-time errors of invalid encodings.

Also adjust the testcases in `armv9-sysp-diagnostics.s` and
`llvm/test/MC/AArch64/armv9a-sysp.s` as they were invalid,
and added a few invalid (outside of range) SYSP-alikes to
test that `<unknown>` is printed
DeltaFile
+111-111llvm/test/MC/AArch64/armv9a-sysp.s
+25-1llvm/lib/Target/AArch64/AArch64InstrFormats.td
+25-0llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
+20-0llvm/test/MC/AArch64/armv9-sysp-invalid.s
+7-8llvm/test/MC/AArch64/armv9-sysp-diagnostics.s
+7-3llvm/lib/Target/AArch64/AArch64InstrInfo.td
+195-1233 files not shown
+207-1279 files

LLVM/project d262f6bllvm/lib/Target/AArch64 AArch64InstrFormats.td, llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp

fixup! Address PR comments
DeltaFile
+5-9llvm/lib/Target/AArch64/AArch64InstrFormats.td
+2-3llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+1-2llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
+1-1llvm/test/MC/AArch64/armv9-sysp-diagnostics.s
+9-154 files

LLVM/project a1861bfllvm/lib/Target/AArch64 AArch64InstrInfo.td, llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp

fixup! Remove SYSPxt_XZR and update code to reflect this
DeltaFile
+27-34llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+41-14llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+8-26llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
+2-30llvm/lib/Target/AArch64/AArch64InstrInfo.td
+0-20llvm/test/MC/AArch64/armv9-sysp-invalid.s
+13-3llvm/test/MC/AArch64/armv9-sysp-diagnostics.s
+91-1274 files not shown
+105-13710 files

LLVM/project 87bfe41llvm/lib/Target/AArch64 AArch64InstrFormats.td

fixup! Fixes after rebasing following Marian's change
DeltaFile
+3-3llvm/lib/Target/AArch64/AArch64InstrFormats.td
+3-31 files

LLVM/project fdd2895llvm/lib/Transforms/Vectorize VPlanRecipes.cpp, llvm/test/Transforms/LoopVectorize/AArch64 conditional-branches-cost.ll

[VPlan] Compute the cost for vector icmp and fcmp (#193268)

Currently we don't account for the costs of vector compares, meaning
vplans that contain them will underestimate the cost, so this patch adds
the cost of vector compares to VPInstruction::computeCost. We also need
to recognise BranchOnTwoConds as using only the first lane, otherwise we
think compares that are used by it are vector compares.
DeltaFile
+14-46llvm/test/Transforms/LoopVectorize/AArch64/conditional-branches-cost.ll
+13-15llvm/test/Transforms/LoopVectorize/X86/pr81872.ll
+10-10llvm/test/Transforms/LoopVectorize/X86/optsize.ll
+10-0llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+4-4llvm/test/Transforms/LoopVectorize/X86/scev-checks-unprofitable.ll
+6-1llvm/test/Transforms/LoopVectorize/X86/induction-costs.ll
+57-761 files not shown
+63-777 files

LLVM/project 3488652flang/include/flang/Parser openmp-utils.h, flang/lib/Parser openmp-utils.cpp

[flang][OpenMP] Implement better GetOmpObjectList, NFC (#195171)

The current implementation lists all clauses that contain an
OmpObjectList, together with the means of extracting it. For a clause
that is not listed, it returns nullptr.

The new implementation traverses an AST node until it finds an
OmpObjectList, and when one isn't found, returns nullptr. This is
actually simpler and is independent of any changes to the AST.
DeltaFile
+32-76flang/include/flang/Parser/openmp-utils.h
+0-17flang/lib/Parser/openmp-utils.cpp
+32-932 files

LLVM/project 4f0d43cclang/test/Driver hip-std.hip hip-launch-api.hip

clang: Fix broken --offload-arch arguments in tests (#195259)

These need to use 2 dashes. A single dash is interpreted as -o. Fix
this in all tests using the single dash, except one which appears
to be testing the behavior of warning on the misspelled argument.
DeltaFile
+4-4clang/test/Driver/hip-std.hip
+3-3clang/test/Driver/hip-launch-api.hip
+7-72 files