LLVM/project 2aa5210.ci compute_projects_test.py compute_projects.py, .github/workflows libclang-python-tests.yml

CI: move libclang python byindings tests to main CI

This removes the separate python bindings CI, which run on the GitHub free
runners and take more than one hour to build libclang.

The tests are executed instead in the monolithic pipelines,
whenever clang would be tested.

This is fine in terms of resources because all the dependencies are
built anyway, and the tests themselves take less than one second to
run on the free runners.
DeltaFile
+0-60.github/workflows/libclang-python-tests.yml
+13-12.ci/compute_projects_test.py
+1-1.ci/compute_projects.py
+2-0clang/bindings/python/tests/cindex/test_source_range.py
+1-0clang/bindings/python/tests/cindex/test_translation_unit.py
+17-735 files

LLVM/project aca0ce5clang/include/clang/AST DeclTemplate.h, clang/lib/AST DeclTemplate.cpp

[clang] Reland: fix getTemplateInstantiationArgs (#202088)

Relands https://github.com/llvm/llvm-project/pull/199528
Previous: #201373

This implements a new strategy for collecting the template arguments, by
relying on the qualifiers and template parameter lists to navigate the
template
context of out-of-line definitions.

This greatly simplifies the signature of that function, by removing a
bunch
of workarounds, and simpliffying a couple that weren't removed yet.

Since this now relies on qualifiers and template parameter lists,
this patch expends most of its effort making sure these are placed,
transformed and propagated to template instantiations.

Also makes the explicit specialization AST nodes stop abusing the

    [2 lines not shown]
DeltaFile
+194-429clang/lib/Sema/SemaTemplateInstantiate.cpp
+275-165clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+151-147clang/lib/Sema/SemaTemplate.cpp
+96-95clang/include/clang/AST/DeclTemplate.h
+59-129clang/lib/Sema/SemaConcept.cpp
+60-92clang/lib/AST/DeclTemplate.cpp
+835-1,05756 files not shown
+1,505-1,71762 files

LLVM/project dfae3c0.ci compute_projects_test.py compute_projects.py, .github/workflows libclang-python-tests.yml

CI: move libclang python byindings tests to main CI

This removes the separate python bindings CI, which run on the GitHub free
runners and take more than one hour to build libclang.

The tests are executed instead in the monolithic pipelines,
whenever clang would be tested.

This is fine in terms of resources because all the dependencies are
built anyway, and the tests themselves take less than one second to
run on the free runners.
DeltaFile
+0-60.github/workflows/libclang-python-tests.yml
+13-12.ci/compute_projects_test.py
+6-3clang/bindings/python/tests/cindex/test_source_range.py
+3-1clang/bindings/python/tests/cindex/test_translation_unit.py
+1-1.ci/compute_projects.py
+23-775 files

LLVM/project 197282cllvm/test/Transforms/LoopInterchange reduction-anyof.ll reductions-non-wrapped-operations.ll

[LoopInterchange] Add test for loop contains AnyOf reduction (NFC)
DeltaFile
+90-0llvm/test/Transforms/LoopInterchange/reduction-anyof.ll
+0-42llvm/test/Transforms/LoopInterchange/reductions-non-wrapped-operations.ll
+90-422 files

LLVM/project 498307bllvm/lib/Transforms/Scalar LoopInterchange.cpp, llvm/test/Transforms/LoopInterchange reduction-anyof.ll

[LoopInterchange] Reject interchange when AnyOf reduction exists
DeltaFile
+10-22llvm/test/Transforms/LoopInterchange/reduction-anyof.ll
+0-1llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+10-232 files

LLVM/project 11496fallvm/include/llvm/ADT DenseMapInfo.h CachedHashString.h

[ADT] Remove unused DenseMapInfo::getEmptyKey (#201998)

After #201281 DenseMapInfo<T>::getEmptyKey() is no longer used by
DenseMap. Remove the unused getEmptyKey definitions and dead sentinel
uses.
DeltaFile
+6-65llvm/include/llvm/ADT/DenseMapInfo.h
+5-20llvm/include/llvm/ADT/CachedHashString.h
+1-11llvm/include/llvm/ADT/ArrayRef.h
+1-10llvm/include/llvm/ADT/StringRef.h
+0-9llvm/include/llvm/ADT/PointerSumType.h
+0-8llvm/include/llvm/ADT/APFixedPoint.h
+13-12320 files not shown
+15-19026 files

LLVM/project c44a8fflibc/include/llvm-libc-macros stdfix-macros.h, libc/src/__support/FPUtil/arm sqrt.h

[libc][math] Fix arm-linux-gnueabihf target when building with gcc/g++. (#202090)

- `arm-linux-gnueabihf-gcc` defines fixed point macros (like
`__FRACT_FBIT__`) but does not support `_Fract` and `_Accum` types by
default. We just limit the fixed point support to clang for now.
- Specify the types for the sqrt instructions we use for ARM target.

Tested with:
```
$ cmake ../runtimes -GNinja -DLLVM_ENABLE_RUNTIMES=libc -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc-12 \
    -DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++-12 \
    -DLIBC_TARGET_TRIPLE=arm-linux-gnueabihf
$ export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
$ ninja libc-shared-tests
```

https://github.com/llvm/llvm-project/issues/201678.
DeltaFile
+2-2libc/src/__support/FPUtil/arm/sqrt.h
+1-1libc/include/llvm-libc-macros/stdfix-macros.h
+3-32 files

Linux/linux 979c294include/linux cfi.h

cfi: Include uaccess.h for get_kernel_nofault()

After commit 0652a3daa787 ("tracing: Fix CFI violation in probestub
being called by tprobes"), there are many build errors when building
ARCH=arm multi_v7_defconfig + CONFIG_CFI=y like:

  In file included from drivers/base/devres.c:17:
  In file included from drivers/base/trace.h:16:
  In file included from include/linux/tracepoint.h:23:
  include/linux/cfi.h:44:6: error: call to undeclared function 'get_kernel_nofault'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     44 |         if (get_kernel_nofault(hash, func - cfi_get_offset()))
        |             ^
  1 error generated.

get_kernel_nofault() is called in the generic version of
cfi_get_func_hash() but nothing ensures uaccess.h is always included for
a proper expansion and prototype.  Include uaccess.h in cfi.h to clear
up the errors.


    [6 lines not shown]
DeltaFile
+1-0include/linux/cfi.h
+1-01 files

LLVM/project 869e315clang/lib/Sema SemaTemplateDeduction.cpp, clang/test/SemaCXX deduced-return-type-cxx14.cpp

fixup
DeltaFile
+8-0clang/test/SemaCXX/deduced-return-type-cxx14.cpp
+2-0clang/lib/Sema/SemaTemplateDeduction.cpp
+10-02 files

LLVM/project 9f3f973clang/include/clang/AST DeclTemplate.h, clang/lib/AST DeclTemplate.cpp

[clang] fix getTemplateInstantiationArgs

This implements a new strategy for collecting the template arguments, by
relying on the qualifiers and template parameter lists to navigate the template
context of out-of-line definitions.

This greatly simplifies the signature of that function, by removing a bunch
of workarounds, and simpliffying a couple that weren't removed yet.

Since this now relies on qualifiers and template parameter lists,
this patch expends most of its effort making sure these are placed,
transformed and propagated to template instantiations.

Also makes the explicit specialization AST nodes stop abusing the template
parameter lists by storing it's own template parameter list, creating a
dedicated field for them, similar to partial specializations.
DeltaFile
+194-429clang/lib/Sema/SemaTemplateInstantiate.cpp
+275-165clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+151-147clang/lib/Sema/SemaTemplate.cpp
+96-95clang/include/clang/AST/DeclTemplate.h
+59-129clang/lib/Sema/SemaConcept.cpp
+60-92clang/lib/AST/DeclTemplate.cpp
+835-1,05755 files not shown
+1,495-1,71761 files

FreeBSD/doc 410e846website/data/en/news news.toml

15.1: Announce RC3

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+5-0website/data/en/news/news.toml
+5-01 files

LLVM/project 547cb15clang/include/clang/Serialization ASTReader.h

[clang][NFC]: Fix typo in comment in `ASTReader.h` (#202022)

Similiar -> Similar
DeltaFile
+1-1clang/include/clang/Serialization/ASTReader.h
+1-11 files

FreeBSD/ports cea1383misc/freebsd-release-manifests pkg-plist, misc/freebsd-release-manifests/files/MANIFESTS powerpc-powerpc64-15.1-RC3 amd64-amd64-15.1-RC3

misc/freebsd-release-manifests: Add 15.1-RC3 MANIFEST files

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative

(cherry picked from commit 1d8dedd7c12e286a4fbb36a44a8d779493cae4ae)
DeltaFile
+5-10misc/freebsd-release-manifests/pkg-plist
+9-0misc/freebsd-release-manifests/files/MANIFESTS/powerpc-powerpc64-15.1-RC3
+9-0misc/freebsd-release-manifests/files/MANIFESTS/amd64-amd64-15.1-RC3
+0-9misc/freebsd-release-manifests/files/MANIFESTS/amd64-amd64-15.1-RC1
+0-9misc/freebsd-release-manifests/files/MANIFESTS/amd64-amd64-15.1-RC2
+0-9misc/freebsd-release-manifests/files/MANIFESTS/arm64-aarch64-15.1-RC1
+23-3711 files not shown
+47-9317 files

FreeBSD/ports 1d8deddmisc/freebsd-release-manifests pkg-plist, misc/freebsd-release-manifests/files/MANIFESTS amd64-amd64-15.1-RC3 arm64-aarch64-15.1-RC3

misc/freebsd-release-manifests: Add 15.1-RC3 MANIFEST files

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+5-10misc/freebsd-release-manifests/pkg-plist
+9-0misc/freebsd-release-manifests/files/MANIFESTS/amd64-amd64-15.1-RC3
+9-0misc/freebsd-release-manifests/files/MANIFESTS/arm64-aarch64-15.1-RC3
+9-0misc/freebsd-release-manifests/files/MANIFESTS/powerpc-powerpc64-15.1-RC3
+0-9misc/freebsd-release-manifests/files/MANIFESTS/amd64-amd64-15.1-RC1
+0-9misc/freebsd-release-manifests/files/MANIFESTS/amd64-amd64-15.1-RC2
+32-2811 files not shown
+47-9317 files

FreeBSD/src d949721sys/contrib/openzfs/module/zfs zap.c zap_micro.c, sys/contrib/openzfs/tests/unit munit.c test_zap.c

zfs: merge openzfs/zfs at a170134fe

Notable upstream pull request merges:
 #18372 eaaea55b6 Consistently encode DRR_BEGIN packed nvlist payloads with
                  NV_ENCODE_XDR
 #18410 891e379d0 Fix failfast default and usage
 #18470 a2d053329 zdb: Add some more file layout output, triggered by -v
 #18472 d50f5b6d0 dsl_dir: avoid dd_lock during snapshots_changed updates
 #18493 d65015938 Vdev allocation bias/class change
 #18497 8fdc86675 zfs: annotate nested dd_lock in reservation sync
                  accounting
 #18494 956deba27 zdb: detect BRT and DDT leaks during block traversal
 #18499 c7cfe0805 zarcstat: detect attached L2ARC device with no data
 #18503 439b802e7 sa: fix sa_add_projid lock ordering
 #18508 968f4db03 zpool-attach.8: add EXAMPLES section
 #18513 45dddc452 zfs.4: Fix documentation of zfs_arc_dnode_reduce_percent
 #18516 8ff64005a zap: split implementation out into more files
 #18520 181e1b522 Fix double free for blocks cloned after DDT prune
 #18535 -multiple zstream: fix crashes when refcount tracking enabled

    [28 lines not shown]
DeltaFile
+1,119-1,529sys/contrib/openzfs/module/zfs/zap.c
+2,458-0sys/contrib/openzfs/tests/unit/munit.c
+15-1,608sys/contrib/openzfs/module/zfs/zap_micro.c
+1,458-0sys/contrib/openzfs/module/zfs/zap_fat.c
+1,170-0sys/contrib/openzfs/tests/unit/test_zap.c
+575-0sys/contrib/openzfs/tests/unit/munit.h
+6,795-3,137190 files not shown
+14,745-4,032196 files

LLVM/project 35823d1clang-tools-extra/clang-doc Representation.h Representation.cpp

[clang-doc] Use llvm RTTI over handrolled casting (#202059)

Clang-Doc has a limited amount of polymorphism over Info types.
Historically, these have just been cast directly in a few places, but we
can use the existing llvm RTTI implementation to more rigorously
dispatch and query the types involved with only limited extra code.
This should make future changes a bit harder to get wrong.
DeltaFile
+36-0clang-tools-extra/clang-doc/Representation.h
+10-17clang-tools-extra/clang-doc/Representation.cpp
+8-8clang-tools-extra/clang-doc/BitcodeWriter.cpp
+6-6clang-tools-extra/clang-doc/Serialize.cpp
+5-5clang-tools-extra/clang-doc/YAMLGenerator.cpp
+5-5clang-tools-extra/clang-doc/JSONGenerator.cpp
+70-412 files not shown
+77-528 files

LLVM/project e076ae4llvm/include/llvm/CodeGen MachineInstr.h, llvm/include/llvm/Transforms/IPO Attributor.h

[CodeGen][Transforms] Remove unused DenseMapInfo::getEmptyKey (#201994)

After #201281 DenseMapInfo<T>::getEmptyKey() is no longer used by
DenseMap. Remove the unused getEmptyKey definitions and dead sentinel
uses.
DeltaFile
+5-38llvm/lib/Transforms/Scalar/EarlyCSE.cpp
+0-21llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+0-19llvm/include/llvm/Transforms/IPO/Attributor.h
+1-16llvm/lib/Transforms/Utils/Local.cpp
+1-12llvm/lib/CodeGen/MachineOutliner.cpp
+3-9llvm/include/llvm/CodeGen/MachineInstr.h
+10-11536 files not shown
+12-27542 files

LLVM/project 25a492bllvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/X86 split-node-reused-and-reordered-operand.ll

[SLP]Keep reuse mask in sync when reordering split node operand

When reorderBottomToTop uses an operand order for a split vectorize
node and the operand has both reordered and reused scalars, only the
reorder indices were cleared while the reuse mask was left stale. This
diverged the split node scalars from the operand effective order.

Fixes #202003

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/202084
DeltaFile
+106-0llvm/test/Transforms/SLPVectorizer/X86/split-node-reused-and-reordered-operand.ll
+8-0llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+114-02 files

LLVM/project 825d760lld/wasm SyntheticSections.h

[lld][WebAssembly] Remove vestigial ImportKey::State after DenseMapInfo cleanup (#202082)

Unused after #201989 removed getEmptyKey()
DeltaFile
+3-10lld/wasm/SyntheticSections.h
+3-101 files

NetBSD/pkgsrc aiKb00mconverters/py-erlpack Makefile

   py-erlpack: fix build if setuptools isn't installed

   If setuptools is installed, the build will work even if it isn't specified
   as a dependency. Unfortunately, all machines I tested the package on already
   had setuptools installed.
VersionDeltaFile
1.2+3-1converters/py-erlpack/Makefile
+3-11 files

LLVM/project c5c9676clang-tools-extra/include-cleaner/include/clang-include-cleaner Types.h, clang/include/clang/Basic FileEntry.h DirectoryEntry.h

[clang][clang-tools-extra] Remove unused DenseMapInfo::getEmptyKey (#201987)

After #201281 DenseMapInfo<T>::getEmptyKey() is no longer used by
DenseMap. Remove the unused getEmptyKey definitions and dead sentinel
uses.
DeltaFile
+0-22clang/lib/AST/ItaniumCXXABI.cpp
+0-21clang/include/clang/Basic/FileEntry.h
+0-20clang/include/clang/Basic/DirectoryEntry.h
+0-17clang-tools-extra/include-cleaner/include/clang-include-cleaner/Types.h
+0-13clang/lib/APINotes/APINotesFormat.h
+0-13clang/include/clang/Basic/SourceLocation.h
+0-10645 files not shown
+2-35351 files

LLVM/project 02b26ecllvm/lib/Transforms/Scalar LoopInterchange.cpp

[LoopInterchange] Remove unnecessary type check (NFC) (#202073)

As mentioned in #200913, there is an unnecessay type check. Let's remove
it.
DeltaFile
+0-2llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+0-21 files

LLVM/project e910a52llvm/lib/Target/M68k M68kInstrFormats.td, llvm/lib/Target/M68k/Disassembler M68kDisassembler.cpp

[M68k] Disassemble index suppress in the full extension word correctly (#202080)

When the IS (Index Suppress) bit in the full extension word is set, we
need to use NoReg for the index register in the decoded MCInst. This was
not properly supported in the disassembler before.

This patch fixes this issue by using a pseudo 5-bit "register" binary
encoding for index register, where the first 4 bits carry the actual
register number and the last bit (at MSB) indicates whether we suppress
index register or not.
DeltaFile
+13-0llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
+2-5llvm/lib/Target/M68k/M68kInstrFormats.td
+4-1llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp
+3-0llvm/test/MC/Disassembler/M68k/data.txt
+22-64 files

LLVM/project 19f96a9llvm/lib/Object DXContainer.cpp

[DirectX][ObjectYAML] Fix SRCI Names parsing on Big Endian (#202020)

```
Names.Parameters = HeaderOnDisk;
```
converts SRCI Names section header from little endian to platform native
byte order (in converting constructor).
Therefore, extra
```
  if (sys::IsBigEndianHost)
    Names.Parameters.swapBytes();
```
can swap bytes of the header fields again, causing an error on SPARC:
```
SRCI Names section content ends beyond the section boundary
```

Fix that.
DeltaFile
+0-2llvm/lib/Object/DXContainer.cpp
+0-21 files

FreeBSD/src 4a299efsys/dev/firewire firewire.c

firewire: clean up XXX comments

Remove stale and misleading XXX comments throughout firewire.c.
Most were from the original 2002 codebase and either described
correct behavior or noted aspirational improvements that never
happended.

Two actionable items retained as TODO: config ROM CRC validation
and pending xfer cleanup on detach.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D57466
DeltaFile
+9-16sys/dev/firewire/firewire.c
+9-161 files

LLVM/project 3232b4dllvm/include/llvm/Analysis IRSimilarityIdentifier.h ScalarEvolution.h, llvm/include/llvm/IR ValueHandle.h ModuleSummaryIndex.h

[IR][Analysis] Remove unused DenseMapInfo::getEmptyKey (#201997)

After #201281 DenseMapInfo<T>::getEmptyKey() is no longer used by
DenseMap. Remove the unused getEmptyKey definitions and dead sentinel
uses.
DeltaFile
+0-34llvm/lib/IR/LLVMContextImpl.h
+1-13llvm/include/llvm/IR/ValueHandle.h
+1-13llvm/include/llvm/IR/ModuleSummaryIndex.h
+0-12llvm/include/llvm/IR/Attributes.h
+1-11llvm/include/llvm/Analysis/IRSimilarityIdentifier.h
+0-10llvm/include/llvm/Analysis/ScalarEvolution.h
+3-9314 files not shown
+5-16220 files

LLVM/project c384de1llvm/lib/Transforms/Vectorize VPlanTransforms.cpp

[VPlan] Prevent dangling references to trip count after expansion. (#201924)

Set trip count to Poison after expanding SCEVs to VPInstructions. getTripCount should not be used after that other than printing; setting to poison avoids accessing dangling references.
DeltaFile
+4-1llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+4-11 files

FreeBSD/ports 964bd52devel/R-cran-callr Makefile distinfo

devel/R-cran-callr: Update to 3.8.0

Changelog: https://cloud.r-project.org/web/packages/callr/news/news.html
DeltaFile
+3-4devel/R-cran-callr/Makefile
+3-3devel/R-cran-callr/distinfo
+6-72 files

FreeBSD/ports 3e090b5textproc/py-textual-autocomplete distinfo Makefile

textproc/py-textual-autocomplete: update 4.0.5 → 4.0.6
DeltaFile
+3-3textproc/py-textual-autocomplete/distinfo
+2-2textproc/py-textual-autocomplete/Makefile
+5-52 files

FreeBSD/ports 281f41dmisc/antigravity-cli distinfo Makefile

misc/antigravity-cli: update 1.0.5 → 1.0.6
DeltaFile
+5-5misc/antigravity-cli/distinfo
+2-2misc/antigravity-cli/Makefile
+7-72 files