bhyve.8: mention VM nodes in /dev/vmm
Currently, VM nodes in /dev/vmm are only described in the
EXAMPLES section of bhyvectl.8. Add a FILES section to bhyve.8
to make this information easier to find.
Update the bhyvectl.8 example to say "Existing VMs"
instead of "Running VMs" as the VMs listed in /dev/vmm
are not necessarily running.
Update bhyvectl.8 to refer to vmm(4).
Reviewed by: ziaee
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61623
(cherry picked from commit 8651589fd72d8b1de9f1b5512d6542c610fca1b3)
bhyve.8: mention config files for VM parameters
Mention that virtual CPUs, memory and other options can be configured
with a configuration file, and refer to the -k option.
Reviewed by: ziaee
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61718
(cherry picked from commit ed4bad79ec89248d3e3b0475cd44c25541198306)
[VPlan] Use getPlainCFGMiddleBlock in vp_rpo_plain_cfg_loop_body (NFC). (#245287)
Look up the middle block via getPlainCFGMiddleBlock, instead of assuming
it is the latch's first successor.
PR: https://github.com/llvm/llvm-project/pull/245287
[MISched] Allow memop clustering in the presence of memory dependencies (#239320)
Relax the conditions under which we cluster memops to include situations
where a pair of adjacent memops are related by a single memory
dependency. This reduces the impact of enabling store sequencing by
allowing sequencing stores to be clustered with other stores in their
frontier. Interestingly, this also impacts a number of existing RISCV
and AMDGPU tests, presumably on the basis that some existing DAG
mutations are already inserting ordering edges between memops that would
otherwise form clusterable pairs.
[Clang][Sema] Add fortify warnings for getlogin_r, ttyname_r, ptsname_r, and confstr (#244704)
Add `-Wfortify-source` compile-time bounds checking for the POSIX
functions `getlogin_r`, `ttyname_r`, `ptsname_r`, and `confstr`.
- Register `getlogin_r`, `ttyname_r`, `confstr`
(`GNULibBuiltin<"unistd.h">`), and `ptsname_r`
(`GNULibBuiltin<"stdlib.h">`) in `Builtins.td`. `NoThrow` is set on
`confstr` and omitted on `getlogin_r`, `ttyname_r`, and `ptsname_r`
since `getlogin_r`/`ttyname_r`/`ptsname` are POSIX cancellation points.
- Diagnose size arguments exceeding the destination buffer size in
`Sema::checkFortifiedBuiltinMemoryFunction` with
`warn_fortify_source_size_mismatch`.
- Add Sema tests covering direct calls, `confstr(name, 0, 0)`, `-1`
sizes, `diagnose_as_builtin` wrappers, C++ non-`extern "C"` lookalikes,
and strict `-std=c99` non-GNU mode, and update `ReleaseNotes.md`.
Part of #142230
Assisted-by: Gemini
[flang][hlfir] Optimize MINLOC/MAXLOC with equality mask (#211722)
When the mask is an element-wise integer equality comparison against a
loop-invariant scalar (e.g. MASK = A == val), tracking the
minimum/maximum value throughout the reduction loop is redundant — every
unmasked element is identical to val, so the first match is the result
regardless of its value.
This is the second part of the optimization enabled by #186916, which
relaxed InlineElementals to inline the mask hlfir.elemental at its
hlfir.apply site inside the generated reduction loop.
The [coords, minval, isFirst] accumulator is replaced with [coords,
isFirst], turning the loop into a short-circuiting find-first locator.
The arith.andi %mask_val, %isFirst guard ensures subsequent masked
elements are skipped once the first match is recorded.
[mlir][spirv] Support OCP microscaling floating-point formats (#238282)
Add SPV_EXT_ocp_microscaling_types support for FP4 E2M1, FP6 E2M3 and
E3M2, and FP8 E8M0 using the corresponding MLIR builtin float types.
Add the capabilities and FP encodings, OpBitcastExtractEXT, type
availability and storage checks, and SPIR-V binary import/export for the
floating-point types and constants. Preserve supported native types
during conversion and reject unsupported sub-byte emulation.
Cover IR verification, capability inference, conversion, and binary
round trips. MXINT8 support is left to a follow-up change.
SPIR-V extension specification:
https://github.khronos.org/SPIRV-Registry/extensions/EXT/SPV_EXT_ocp_microscaling_types.html
Signed-off-by: Davide Grohmann <davide.grohmann at arm.com>
[Hexagon][NFC] Move GlobalScheduler alias check to HexagonInstrInfo (#245213)
Move the alias check used by the GlobalScheduler pull-up into
HexagonInstrInfo::areMemAccessesDependent, next to
areMemAccessesTriviallyDisjoint, so it can be queried like other
instruction properties. No functional change.
Assisted by AI
Co-authored-by: Fateme Hosseini <fhossein at qti.qualcomm.com>
[BinaryFormat][MachO] Give HeaderFileType a fixed uint32_t underlying type (#245285)
Fixes 565b6e9af598 (#244575). Under UBSan (-fsanitize=enum), yaml2obj
-DFILETYPE=0x1000 in MachO/filetype.yaml triggers an illegal instruction
because HeaderFileType has no fixed underlying type.
[MLIR][NFC] Remove check for negative value for unsigned integer. (#245164)
`index` is declared as `size_t` and hence can never be a negative.
Remove the redundant check in the if statement for checking if `index`
is negative.
Signed-off-by: Hardik Kumar <hardikxk at gmail.com>
[X86] Remove unused getCondFromCFCMov and getCondFromCCMP (NFC) (#244119)
The last uses were removed on May 20, 2024 in commit
758e1199f6dbcddc0a8d425753c56a42507dd313.
Assisted-by: Antigravity
[SimplifyCFG] Give a select from branch folding the weights of its condition
performBranchToCommonDestFolding() folds `br c1` and `br c2` with a
common successor into a branch on `select c1, c2, false` or
`select c1, true, c2`. Since #154426, it gives the select the weights
of the merged branch, which are those of `c1 && c2` or `c1 || c2`.
The weights of a select are those of its condition, `c1`: PGO
instrumentation and LowerExpectIntrinsic set them that way, and
CodeGenPrepare and JumpThreading copy them to a branch on the
condition when they turn the select into a branch. The other fold
that creates these selects, SimplifyCondBranchToCondBranch(), already
gives the select the weights of the first branch.
For example, with `c1` true half of the time and `c2` 1% of the time,
the select gets weights 50:9950, and CodeGenPrepare turns it into
`br c1` with these weights.
Give the select the weights of the first branch before the fold. If
[16 lines not shown]
[SystemZ] Declare command line options in TableGen (#244983)
Move the cl::opt options into SystemZOptions.td. SystemZTargetMachine
holds `const SystemZOptions &CLOpts`, and SystemZSubtarget copies it.
-argext-abi-check becomes a BoolOrDefault, since an explicit
-argext-abi-check=false overrides TargetOptions::VerifyArgABICompliance.
Renames without an alias, as the old spellings are generic or unused:
```
-generic-sched -> -systemz-generic-sched
-procres-cost-lim -> -systemz-procres-cost-lim
```
LLM-aided
graphics/qgis: Update to 4.4.0
The patches for LAZperf and Spatialindex that were removed from the port
have been accepted by the upstream project.
Starting with version 4.4.x, the internal target Pdf4QtLibCore is built
as a static library and linked directly into “libqgis_core.so”;
there is no longer a separate “libPdf4QtLibCore.so”.
Changelog: https://changelog.qgis.org/en/version/4.4/
Reported by: portscout, Repology
[AMDGPU] Constant fold fixed cluster dims (#235076)
## Reasoning
When cluster dims are known at kernel compile time, we can constant
fold.
Currently cluster dims are never constant folded even when the size is
known, leading to unnecessary extra register consumption.
## Changelog
Add cluster dim constant folding pass for cluster intrinsics
### llm disclosure
llms were used to assist in putting together this PR
---------
Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>
Co-authored-by: Ryan Mitchell <Ryan.Mitchell at amd.com>
arm64/vmm: Implement vgic_v5
Adds support for GICv5 as both a host and guest. Additionally, on platforms with
FEAT_GICE_LEGACY, supports a GICv3 guest under a GICv5 host.
The current implementation only implements the IRS component. The ITS is not
currently emulated, which prevents the use of MSIs.
Co-developed-by: Andrew Turner <andrew at FreeBSD.org>
Reviewed by: andrew
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D60115
[libc] Enable baremetal Armv8-M hard FP premerge job (#243424)
This patch enables a new premerge CI job to build and test for baremetal
Armv8-M Mainline with hardware floating-point ABI.
[libc] Add run capabilities to baremetal Armv8-M.Main hard FP CMake cache file (#243422)
Create a new CMake cache file in a dedicated Arm-specific folder for
testing configurations. This specific testing configuration is for
Armv8-M Mainline with hardware floating-point ABI.
All the configurations are based on what Arm Toolchain for Embedded uses
for its downstream testing, and are known to work.
[SPIRV]MLIR] Retain the source integer attribute type when creating an LLVM constant (#245105)
When Upgrading from LLVM 23 to Nightly on ubuntu I noticed test failures
in a SPIR-V tool I support. Specifically the constant’s attribute is
signed, but its result type is signless.
```mlir
%zero = llvm.mlir.constant(0 : si32) : i32
```
This bug existed in LLVM 23 but it seems like the verifier accepted this
mismatch.
So to fix this for signed or unsigned SPIR-V integers we produce the
source integers attribute type.
[CodeGenPrepare] Add tests for selects with branch weights (NFC)
Precommit tests for #244382 (issue #236043) and for a follow-up that
uses TTI::shouldTreatInstructionLikeSelect() in optimizeSelectInst():
- logical and/or selects, most of them with branch weights and feeding a
conditional branch in the same block;
- selects of two constants with branch weights, alone and next to other
selects on the same condition;
- a select of two constant vectors on ARM, which does not support it.
The CodeGenPrepare tests are for x86-64 and ARM. The llc tests are for
x86-64, AArch64 (neoverse-v2, where a predictable select is expensive)
and PowerPC.
Assisted-by: Claude Code (Claude Opus 5.5)
[PGO] Load branch uniformity profiles and mark availability
Uniformity profiles record full-wave block observations. Attach
uniformity.profile to functions with this data, and derive
branch.uniformity.profile from instrumented successor blocks with a
single conditional predecessor. Mark a branch only when every
instrumented outgoing edge used to classify it has a nonzero count
and a uniform classification. This summarizes successor observations;
it does not directly measure lane agreement at the branch.
Replace annotations covered by new observations, including removing
old positive hints. Leave existing annotations alone when uniformity
data is absent.
Add the hidden pgo-uniformity-metadata option, enabled by default.
Disabling it clears function, block and branch uniformity metadata
during profile use, including functions with no usable profile record,
while retaining ordinary profile counts and weights.
[Transforms] Maintain uniformity profile hints across CFG changes
Uniformity hints describe a block's execution population or evidence
for a branch decision. Preserve them when those properties survive a
CFG rewrite, and clear them when the rewrite changes their meaning.
For example, folding a conditional branch to an unconditional branch
can preserve the block hint, but must drop the branch hint. Combining
two predicates or splitting aggregate executions across predecessor
paths cannot reuse the old branch classification.
[IR] Define profile-based uniformity metadata
Branch weights show how often each path is taken, but not whether GPU
lanes take it together. Define three presence-only metadata kinds:
uniformity.profile marks a function with loaded uniformity data,
block.uniformity.profile describes full-wave block observations, and
branch.uniformity.profile describes branch hints derived from those
observations.
All three use an empty node. They are profitability hints and cannot
prove uniform execution. A missing block or branch hint can mean
divergent execution or insufficient observations.
Migrate the existing block metadata producer from Boolean payloads to
presence-only nodes, clearing old positive hints when new observations
do not support them. A zero counter supplies no uniformity observation.
When reading old bitcode, convert the true Boolean payload to an empty
node and remove the false payload.