Add libultrahdr version 2.0.2 to pkgsrc-wip
libultrahdr is a library for handling
googles Ultra HDR Image Format.
The Ultra HDR Image format stores the hdr data as
metadata in already established formats as gains maps.
The readers that don't support this meta data will
display the normal image while the ones who do will
display the HDR version of the image on compatible
displays.
This product includes Gain Map technology under
license by Adobe.
[AMDGPU] Fold `llvm.amdgcn.update.dpp` with a zero row or bank mask (#248230)
An `llvm.amdgcn.update.dpp` whose `row_mask` or `bank_mask` enables no
existing row or bank writes no lanes, so its result is `old`. Fold it to
`old` in InstCombine.
## Why it is valid
- DPP writes a lane only if both its row and its bank are enabled; every
other lane keeps `old`, which is tied to the destination.
- The hardware reads only the low 4 bits of each mask, and wave32 has
only 2 rows, so only those bits of `row_mask` count.
- With no row or no bank enabled, no lane is written, so the result is
`old` for any `src`, `dpp_ctrl`, `bound_ctrl` or `EXEC`.
[lld][MachO][NFC] Tag SymbolTable additions and duplicate diagnostics with EventKey
This is part of the ld64.lld performance improvements tracked by #222068 and #238938.
Tag symbol additions and duplicate-symbol diagnostics per shard with an EventKey encoding (batch, file, event) and merge batch additions in key order in endBatch(), keeping getSymbols() and duplicate diagnostics deterministic independently of insertion order.
This is part of a series of PRs that's setup work for turning on parallel sharded symbol-table insertion.
[lld][MachO][NFC] Shard SymbolTable lookup map by symbol name hash
This is part of the ld64.lld performance improvements tracked by #222068 and #238938.
Split SymbolTable's name map into 64 shards indexed by the high bits of CachedHashStringRef::hash(), storing Symbol* directly in each shard's DenseMap and allocating SymbolUnion instances with makeThreadLocal().
This is part of a series of PRs that's setup work for turning on parallel sharded symbol-table insertion.
[lit] Pass through Nix locale env vars (#247746)
When building and testing LLVM in a Nix closure there is no "global"
locale archive. Instead, glibc is patched to respect `LOCALE_ARCHIVE*`
env vars that point to the active archive file.
This manifests in `llvm/test/tools/llvm-strings/locale.test` failing
because it operates with a different environment than the parent lit
process that does the locale feature detection.
Pass through both the unversioned and all GLIBC-versioned variants.
For reference:
- https://nixos.org/manual/nixpkgs/stable/#locales
-
https://github.com/nix-community/home-manager/blob/82ce401aa350502897c3f2e85f384d61cd3b0b6d/modules/config/i18n.nix#L34
Change-Id: If256c6a29d5d514073e6a295cd7087dec5aa2672
[Docs] Improve InstCombine contributor guide (#242678)
Address comment
https://github.com/llvm/llvm-project/issues/219415#issuecomment-5463443966.
This patch discusses existing oracles that can be used by fuzzers to
detect missed optimizations.
It also adds some suggestions based on my recent review experience.
Aided by DeepSeek-V4.1-Flash-1017.
Record whether the local administrator is set up
Add the `stg_local_administrator_set_up` flag to the general settings.
The flag defaults to 1, so upgraded systems get it set. The factory
database sets it to 0. `truenas-set-authentication-method.py` sets it
to 1. `user.setup_local_administrator` refuses to run when the flag is
already set.
Acutally connect the libdevdctl tests to the build
And fix their warnings.
MFC after: 1 week
Sponsored by: ConnectWise
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D62334
Reapply "AMDGPU: Fold inline immediates in peephole-opt (#242952)"
This reverts commit 463d84c55eb1e2ac5c8f10e9e0bd23c5d3f3de9e.
Fix the problems reported on #242952. Do not fold into tied operands,
check isOperandLegal, and use isImmEquivalentToReg to check the
immediate reads the same value as the register.
Assisted-by: Claude
AMDGPU: Fix immediate folds into bf16 and packed f32 operands
On subtargets which read bf16 inline constants from the high half of
the fp32 constant, isOperandLegal accepted a bf16 floating-point inline
constant without op_sel in VOP3 sources and 16-bit mix instruction
sources. A mix instruction source is read as f32 unless op_sel_hi is
set.
SIFoldOperands worked around this for src0 only, and had separate
special cases for packed bf16 and packed f32 operands. Replace these
with one model in SIInstrInfo of the bits an immediate reads as and the
halves op_sel selects. A folded immediate must read the same value as
the register it replaces, choosing op_sel to preserve it.
There's an unfortunate amount of special casing based on instruction
type instead of operand kind. This starts fixing the isPacked special
cases, but there's a lot more to clean up.
Assisted-by: Claude
[ValueTracking] Migrate computeKnownFPClass to SQ API (NFC) (#248470)
Migrate remaining users of the legacy computeKnownFPClass API to the
SimplifyQuery API. This makes the InterestedClasses argument
non-optional, but this is a minor loss for stripping a legacy API.
Assisted-by: llm
[CIR] Emit cir.unreachable after a noreturn call
CIRGen kept emitting into the block after a call to a noreturn function.
In C, a non-void function that falls off its end after such a call then
lowered to a load of the uninitialized return slot and a ret, where
classic codegen emits unreachable right after the call. Match classic
CodeGen's EmitCall: end the block with cir.unreachable and continue in a
new block without predecessors.
Assisted-by: Claude Code (Opus 5.5).
[ARM] Disable LE instructions without thumbv8.1-m.main. (#248388)
This is the same as #243831, excluding unconditional LE instruction in
constant island pass if V8_1MMainlineOps are not present.
[CodeGen/CIR] Convert slightly harder tests- (#239784)
These are some additional test conversions to enable ClangIR check lines
for these. These had some amount of loss-in-check switching the SSA
values, so this adds additional 'check' lines to make sure we are
looking at the right thing.
Record whether the local administrator is set up
Add the `stg_local_administrator_set_up` flag to the general settings.
The flag defaults to 1, so upgraded systems get it set. The factory
database sets it to 0. `truenas-set-authentication-method.py` sets it
to 1. `user.setup_local_administrator` refuses to run when the flag is
already set.
hwpmc_amd: Check requested capabilities against the counter row
amd_can_assign_pmc() only checks PMC_CAP_PRECISE against the row's
pd_caps, and pmc_allocate() checks the rest against the class, which
has the core counter caps. So the L3, DF and UMC rows accept caps they
don't support, e.g. PMC_CAP_INTERRUPT or PMC_CAP_EDGE. Check all
requested caps against pd_caps.
These rows also accept legacy events, which are core-only, and
amd_allocate_pmc() then builds a core PERF_CTL value for the uncore
control register. Require PMC_F_EV_PMU on them; libpmc always sets it.
Reported by: mhorne
Reviewed by: mhorne
MFC after: 2 weeks
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif at amd.com>
Differential Revision: https://reviews.freebsd.org/D62294
hwpmc_amd: add brief control-flow comments to alloc path
Make it explicity where the pmu-events and 'legacy' allocation paths
diverge.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
NAS-145585 / 27.1.0 / Fix iSCSI test typos and isns error masking (by themylogin) (#20366)
Calling `c.deregister_initiator()` in failed connection `finally` block
will always fail and mask the real error.
Original PR: https://github.com/truenas/middleware/pull/20360
Co-authored-by: themylogin <themylogin at gmail.com>