LLVM/project fcd9235clang/include/clang/Basic BuiltinsAMDGPU.def, clang/test/CodeGenHIP amdgpu-flat-atomic-fadd.hip

[Clang] Remove 't' from __builtin_amdgcn_flat_atomic_fadd_f32/f64 (#173381)

Allows for type checking depending on the built-in signature.

This introduces some subtle changes in code generation: before, since
the signature was meaningless, we would accept any pointer type without
casting. After this change, the pointer of the `atomicrmw` matches the
flat address space.
DeltaFile
+175-0clang/test/CodeGenHIP/amdgpu-flat-atomic-fadd.hip
+29-0clang/test/SemaHIP/amdgpu-flat-atomic-fadd-err.hip
+2-2clang/include/clang/Basic/BuiltinsAMDGPU.def
+2-2clang/test/CodeGenOpenCL/builtins-fp-atomics-gfx90a.cl
+208-44 files

LLVM/project 85ec904lld/ELF SyntheticSections.h, lld/test/ELF aarch64-pauth-rela-iplt-end.s

[ELF] Include sharded relocations in RelocationBaseSection::getSize

Although mergeRels is called prior to using this size for final layout,
Writer::setReservedSymbolSections uses this in order to set the value of
__rel[a]_iplt_end and, downstream in Morello LLVM, __rel[a]_dyn_end.
Currently none of the relocations that can exist when static linking (as
the case when these symbols are defined) are sharded, but a future
commit will change this for R_AARCH64_AUTH_RELATIVE, and similarly
R_MORELLO_RELATIVE is sharded downstream in Morello LLVM. Make sure we
compute the right size when called prior to mergeRels, and add a
regression test to demonstrate that R_AARCH64_AUTH_RELATIVE still gets
the right __rel[a]_ipt_end in future even when sharding is adopted.

Reviewers: MaskRay

Reviewed By: MaskRay

Pull Request: https://github.com/llvm/llvm-project/pull/173285
DeltaFile
+20-0lld/test/ELF/aarch64-pauth-rela-iplt-end.s
+6-1lld/ELF/SyntheticSections.h
+26-12 files

LLVM/project b8f1326lld/ELF Writer.cpp SyntheticSections.h

[NFC][ELF] Move mergeRels/partitionRels into finalizeContents

Other than the ordering requirements that remain between sections, this
abstracts the details of how these sections are implemented.

Note that isNeeded already checks relocsVec for both section types, so
finalizeSynthetic can call it before mergeRels just fine.

Reviewers: MaskRay

Reviewed By: MaskRay

Pull Request: https://github.com/llvm/llvm-project/pull/171203
DeltaFile
+3-14lld/ELF/Writer.cpp
+4-3lld/ELF/SyntheticSections.h
+5-0lld/ELF/SyntheticSections.cpp
+12-173 files

LLVM/project 657e8d0llvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 sve-calling-convention-mixed.ll

[LLVM][CodeGen][SVE] Fix CCValAssign::Indirect assert to allow all scalable types. (#173372)

Fixes https://github.com/llvm/llvm-project/issues/172420
DeltaFile
+10-0llvm/test/CodeGen/AArch64/sve-calling-convention-mixed.ll
+3-3llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+13-32 files

LLVM/project 6edfda1lld/ELF Relocations.cpp

[NFC][ELF][AArch64][MTE] Don't duplicate addRelativeReloc call for MTE globals

This call to addRelativeReloc is the same as the one at the end of the
function, so skip the relrDyn code for this case and add the special
out-of-bounds handling code to the end of the function. This makes it
obvious where MTE globals differ in behaviour rather than having to
compare the two different implementations.

This also adds a comment documenting why relrDyn isn't used, and in it
highlights that it's probably safe to use relrDyn so long as the offset
is within the symbol's bounds.

Reviewers: pcc, kovdan01, MaskRay

Reviewed By: MaskRay

Pull Request: https://github.com/llvm/llvm-project/pull/171181
DeltaFile
+20-19lld/ELF/Relocations.cpp
+20-191 files

LLVM/project 67727a6lld/ELF SyntheticSections.h Relocations.cpp

[NFC][ELF] Abstract RelrBaseSection more like RelocationBaseSection

This makes addRelativeReloc a bit more readable and uniform, as well as
the relrAuthDyn call in RelocScan::process.

Reviewers: MaskRay

Reviewed By: MaskRay

Pull Request: https://github.com/llvm/llvm-project/pull/171178
DeltaFile
+23-0lld/ELF/SyntheticSections.h
+4-8lld/ELF/Relocations.cpp
+27-82 files

LLVM/project d48eb71lld/ELF SyntheticSections.h SyntheticSections.cpp

[NFC][ELF] Don't reimplement addReloc in GotSection::addConstant

This is just a copy of InputSectionBase::addReloc, so we can just
forward to that rather than poking into the internals. Whilst here, move
the implementation to the header so it can be inlined.

This is helpful downstream for CHERI, as static relocations to emit an
entire capability (whether for a relative relocation or for an undefined
weak symbol) need to be split in two, one per word, as getRelocTargetVA
only returns a uint64_t. Having a single function that pushes to
InputSectionBase's static relocations array centralises that so the
outside world can pretend it's a singular relocation, and internally it
gets mapped to the pair.

Reviewers: MaskRay

Reviewed By: MaskRay

Pull Request: https://github.com/llvm/llvm-project/pull/171177
DeltaFile
+1-1lld/ELF/SyntheticSections.h
+0-1lld/ELF/SyntheticSections.cpp
+1-22 files

LLVM/project 7e9f52clld/ELF Relocations.cpp

[NFC][ELF] Use InputSectionBase::addReloc in addRelativeReloc

There's no need to poke into the internals, we can just use the more
abstract member function like everywhere else in LLD.

Reviewers: MaskRay

Pull Request: https://github.com/llvm/llvm-project/pull/171176
DeltaFile
+1-1lld/ELF/Relocations.cpp
+1-11 files

LLVM/project 36a141amlir/include/mlir/IR Block.h, mlir/lib/Dialect/Transform/DebugExtension DebugExtensionOps.cpp

[mlir][IR][NFC] Add `Block::computeBlockNumber` helper
DeltaFile
+12-0mlir/include/mlir/IR/Block.h
+2-7mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
+5-0mlir/lib/IR/Block.cpp
+2-3mlir/lib/Dialect/Transform/DebugExtension/DebugExtensionOps.cpp
+1-3mlir/lib/IR/Unit.cpp
+1-2mlir/test/lib/Analysis/TestAliasAnalysis.cpp
+23-153 files not shown
+26-199 files

LLVM/project 643c5c0mlir/lib/Transforms RemoveDeadValues.cpp

[mlir][Transforms][NFC] Improve debug output of `-remove-dead-values` (#173468)

Print the index of the block arguments, op results etc. that are being
removed.
DeltaFile
+65-35mlir/lib/Transforms/RemoveDeadValues.cpp
+65-351 files

OpenBSD/src rvlWyjosys/uvm uvm_pdaemon.c

   Move the final pageout of swap cluster outside of the scanning loop.

   Make the inner loop of uvmpd_scan_inactive() readable.

   Tested by bluhm@, ok tb@
VersionDeltaFile
1.144+175-185sys/uvm/uvm_pdaemon.c
+175-1851 files

LLVM/project 84557cfmlir/lib/Transforms RemoveDeadValues.cpp

[mlir][Transforms][NFC] Improve debug output of `-remove-dead-values`
DeltaFile
+65-35mlir/lib/Transforms/RemoveDeadValues.cpp
+65-351 files

LLVM/project fee1e6dllvm/docs MemProf.rst

Fix flags for example
DeltaFile
+2-1llvm/docs/MemProf.rst
+2-11 files

NetBSD/pkgsrc aBCETtKmk/defaults mk.conf, pkgtools/pkglint4/files makevars.map

   *: remove unused BSDXSRCDIR variable
VersionDeltaFile
1.354+1-7mk/defaults/mk.conf
1.18+1-2pkgtools/pkglint4/files/makevars.map
+2-92 files

LLVM/project c585322llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

Make KnownFPClass::exp not side-effecting
DeltaFile
+10-8llvm/lib/Support/KnownFPClass.cpp
+9-7llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+5-9llvm/lib/Analysis/ValueTracking.cpp
+1-1llvm/include/llvm/Support/KnownFPClass.h
+25-254 files

LLVM/project 5bc2f96llvm/test/Transforms/InstCombine simplify-demanded-fpclass-exp.ll

InstCombine: Add baseline tests for exp SimplifyDemandedFPClass
DeltaFile
+502-0llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-exp.ll
+502-01 files

LLVM/project f4781b0llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

InstCombine: Handle exp/exp2/exp10 in SimplifyDemandedFPClass

I'm working on optimizing out the tail sequences in the
implementations of the 4 different flavors of pow. These
include chains of selects on the various edge cases.

Related to #64870
DeltaFile
+90-0llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+34-47llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-exp.ll
+26-0llvm/lib/Support/KnownFPClass.cpp
+2-21llvm/lib/Analysis/ValueTracking.cpp
+3-0llvm/include/llvm/Support/KnownFPClass.h
+155-685 files

LLVM/project 9c56f96llvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/Attributor nofpclass-exp.ll

ValueTracking: Improve handling of exp intrinsic for overflow

Teach exp handling that positive inputs cannot introduce overflow,
and negative inputs cannot introduce underflow.
DeltaFile
+24-24llvm/test/Transforms/Attributor/nofpclass-exp.ll
+16-0llvm/lib/Analysis/ValueTracking.cpp
+2-2llvm/test/Transforms/Attributor/AMDGPU/nofpclass-amdgcn-exp.ll
+42-263 files

LLVM/project 9632f32llvm/test/Transforms/Attributor nofpclass-exp.ll

ValueTracking: Add baseline tests for computeKnownFPClass exp

This is already handled, but misses opportunities. Test cases
where the input is known positive or negative.
DeltaFile
+101-0llvm/test/Transforms/Attributor/nofpclass-exp.ll
+101-01 files

LLVM/project 22bfe52llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

Make KnownFPClass::canonicalize not side-effecting
DeltaFile
+16-14llvm/lib/Support/KnownFPClass.cpp
+3-2llvm/include/llvm/Support/KnownFPClass.h
+3-2llvm/lib/Analysis/ValueTracking.cpp
+1-3llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+23-214 files

LLVM/project e0205d5llvm/include/llvm/Support KnownFPClass.h, llvm/lib/Analysis ValueTracking.cpp

InstCombine: Handle canonicalize in SimplifyDemandedFPClass

Doesn't try to handle PositiveZero flushing mode, but I
don't believe it is incorrect with it.
DeltaFile
+73-0llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
+24-49llvm/test/Transforms/InstCombine/simplify-demanded-fpclass-canonicalize.ll
+6-49llvm/lib/Analysis/ValueTracking.cpp
+48-0llvm/lib/Support/KnownFPClass.cpp
+5-0llvm/include/llvm/Support/KnownFPClass.h
+156-985 files

FreeBSD/ports 96e139adevel/apache-commons-daemon Makefile, devel/apache-commons-daemon/files patch-native_jsvc-unix.c

devel/apache-commons-daemon: fix bugs in PID handling
DeltaFile
+43-7devel/apache-commons-daemon/files/patch-native_jsvc-unix.c
+1-0devel/apache-commons-daemon/Makefile
+44-72 files

FreeBSD/ports f510f5asysutils/bastille distinfo Makefile

sysutils/bastille: Upgrade port to 1.3.1.251223

Co-authored-by: Michael Osipov <michaelo at FreeBSD.org>
PR:             291907
Release Notes:  https://github.com/BastilleBSD/bastille/releases/tag/1.3.1.251223

(cherry picked from commit bd7f7c83dcdff8fd337fc2b5dd13a4f8581d3d64)
DeltaFile
+3-5sysutils/bastille/distinfo
+1-5sysutils/bastille/Makefile
+4-102 files

FreeBSD/ports bd7f7c8sysutils/bastille distinfo Makefile

sysutils/bastille: Upgrade port to 1.3.1.251223

Co-authored-by: Michael Osipov <michaelo at FreeBSD.org>
PR:             291907
Release Notes:  https://github.com/BastilleBSD/bastille/releases/tag/1.3.1.251223
DeltaFile
+3-5sysutils/bastille/distinfo
+1-5sysutils/bastille/Makefile
+4-102 files

LLVM/project 929a31aclang/test/SemaHIP amdgpu-flat-atomic-fadd-err.hip

Pre-commit test: [Clang] Remove 't' from __builtin_amdgcn_flat_atomic_fadd_f32/f64
DeltaFile
+30-0clang/test/SemaHIP/amdgpu-flat-atomic-fadd-err.hip
+30-01 files

LLVM/project 3b9be88clang/test/CodeGenHIP amdgpu-flat-atomic-fadd.hip

Pre-commit test: SemaHIP tests
DeltaFile
+175-0clang/test/CodeGenHIP/amdgpu-flat-atomic-fadd.hip
+175-01 files

LLVM/project c473c70clang/include/clang/Basic BuiltinsAMDGPU.def, clang/test/CodeGenOpenCL builtins-fp-atomics-gfx90a.cl

[Clang] Remove 't' from __builtin_amdgcn_flat_atomic_fadd_f32/f64

Allows for type checking depending on the builtin signature.

This introduces some subtle changes in code generation: before, since
the signature was meaningless, we would accept any pointer type wihtout
casting. After this change, the pointer of the atomicrmw matches the
flat address space.
DeltaFile
+4-5clang/test/SemaHIP/amdgpu-flat-atomic-fadd-err.hip
+2-2clang/include/clang/Basic/BuiltinsAMDGPU.def
+2-2clang/test/CodeGenOpenCL/builtins-fp-atomics-gfx90a.cl
+8-93 files

LLVM/project 2d6b1b1mlir/include/mlir-c/Dialect Complex.h, mlir/lib/CAPI/Dialect Complex.cpp CMakeLists.txt

[MLIR] add C-API bindings for complex dialect (#173228)

The `complex` dialect is missing from the MLIR's C-API. This PR adds the
functions for registration of the dialect and handling of
`complex::NumberAttr`.

---------

Co-authored-by: Oleksandr "Alex" Zinenko <azinenko at amd.com>
DeltaFile
+51-0mlir/include/mlir-c/Dialect/Complex.h
+43-0mlir/lib/CAPI/Dialect/Complex.cpp
+9-0mlir/lib/CAPI/Dialect/CMakeLists.txt
+103-03 files

FreeBSD/ports d1147b2java/springframework Makefile, java/springframework31 Makefile

java/springframework*: Deprecate and expire ports

PR:             291876
Approved by:    olgeni (maintainer)
DeltaFile
+3-0java/springframework/Makefile
+3-0java/springframework31/Makefile
+6-02 files

FreeBSD/ports 15c3760sysutils/bastille pkg-plist Makefile

sysutils/bastille: Upgrade port to 1.3.0.251222

Co-authored-by: Michael Osipov <michaelo at FreeBSD.org>
PR:             291885
Release Notes:  https://github.com/BastilleBSD/bastille/releases/tag/1.3.0.251222

(cherry picked from commit 6ec31c9a5b8d97752bb8006bf4bfde899882854d)
DeltaFile
+48-7sysutils/bastille/pkg-plist
+13-11sysutils/bastille/Makefile
+5-3sysutils/bastille/distinfo
+66-213 files