net-mgmt/pnp*: Fix build of the slave port
After 4851d7d, pnp-icinga2 could not build successfully, this
patch adds a standalone pkg-plist for slave port and excludes
a few sample nagios config files via NOSAMPLES=1 argument.
Also fixes user/group permissions of install command by emptying
MIX_OPTS that is used just like INSTALL_OPTS in master port.
PR: 279579
Approved by: no maintainer
[scudo] Zero free blocks for zero on deallocate. (#244447)
When enabling ZeroFill and zero on deallocate is configured, zero all
allocations in the free list.
Add a test to verify that those freed allocations are zeroed.
[Matrix] Implement matrix support for the `fmod` intrinsic (#244440)
Closes #184481.
This PR implements the matrix api for `fmod` and adds matrix codegen
tests and matrix sema tests. Matrix backend tests were not added because
no DirectX or SPIRV backend changes were made.
Assisted-by: Claude Opus 5.5
[AsmPrinter] Emit the data layout null value for null pointers
Currently `emitGlobalConstantImpl` emits a null pointer with `emitIntValue(0,
Size)`. This ignores the null value that the data layout can give an address
space (even though we have not reached the point where the ConstantPointerNull
can represent a real null pointer in certain address spaces), and `emitIntValue`
can only emit up to 8 bytes, so `llc` hits an assertion in `MCAsmStreamer` for a
null pointer of a wider address space in a global initializer, such as `ptr
addrspace(8) null` on AMDGPU. To be a little bit future proof, this PR emits the
null value of the data layout in the same way as an integer of the pointer size.
This PR was assisted by AI but I reviewed all the changes.
[AMDGPU] Pass the cast source to isKnownNonNull in lowerADDRSPACECAST
`lowerADDRSPACECAST` passes the cast node instead of its source to
`isKnownNonNull`. The cast node is never a frame index, a global address, or a
constant, so the check never succeeds, and SelectionDAG checks for null when it
casts an alloca or a global. At -O2 the `nonnull` flag that IR passes set on the
cast hides this, but at -O0 every such cast gets a compare and two selects. The
GlobalISel path already passes the source.
This PR was assisted by AI but I reviewed all the changes.
[libc] Add UB-free cpp::to_bitmask helper
Bit-casting a simd<bool, N> mask directly to its integer simd_bitmask
type reads padding bits as poison whenever N is not a multiple of
CHAR_BIT (for example, the scalar fallback N == 1).
Add cpp::to_bitmask to convert simd<bool, N> masks without reading
padding bits, and use it in shift_mask in inline_strlen.h.
Assisted-By: LLM
Reviewers: jhuber6, michaelrj-google
Pull Request: https://github.com/llvm/llvm-project/pull/244696
18764 printf should support alternate for %p
Reviewed by: Bill Sommerfeld <sommerfeld at hamachi.org>
Approved by: Gordon Ross <gordon.w.ross at gmail.com>
[VPlan] Use map_range with CastTo for cast-only range loops (NFC). (#244713)
Replace loops of the form
for (VPRecipeBase &R : VPBB->phis()) {
auto *PhiR = cast<VPPhi>(&R);
with
for (VPPhi &PhiR : map_range(VPBB->phis(), CastTo<VPPhi>)) {
and similarly for loops over users, so the cast is part of the range.
Also use the existing VPBlockUtils::blocksAs where applicable, and
make_isa_range instead of hand-written filter + cast combinations.
This is slightly more explicit and more compact.
[AMDGPU] Fix LDS externalization for object linking
With object linking, the backend converts LDS variables and named barriers to
external declarations, and the linker allocates them. There are two cases that
could potentially make invalid IR or cause a crash:
- LDS or a named barrier with vague linkage, for example a shared variable in an
inline function, is in a comdat. The external declaration kept the comdat, and
the verifier rejected the module: "Declaration may not be in a Comdat!".
- Alloca promotion to LDS runs after LDS lowering. The LDS variable that it
created stayed an internal definition, and the asm printer asserted: "LDS
definitions should have been externalized when object linking is enabled".
This PR fixes both of them.
This PR was assisted by AI but I reviewed all the changes.
RuntimeLibcalls: Add attributes to __arm_sc_memcpy, memmove and memset
The streaming-compatible variants behave like memcpy, memmove and
memset. Omit captures(none) since these can be used to implement volatile
memory intrinsics.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
RuntimeLibcalls: Add alignment to aligned memory helper arguments
Add the alignment annotations to target specific memcpy-like functions.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
RuntimeLibcalls: Add attributes to ObjC runtime calls
Mark the ObjC runtime functions nounwind, and mark the argument of
the functions whose intrinsics mark their argument returned.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
RuntimeLibcalls: Add attributes to operator new and delete
Annotate operator new and delete implementation variants. The nothrow
variants are nounwind. No library registers these yet so they don't
appear in the DeclareRuntimeLibcalls tests.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
RuntimeLibcalls: Add attributes to printf variants (#244649)
Give the integer-only and size-optimized printf variants the
attributes of the corresponding printf functions.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>