[Clang] Fix assertion when __block is used on global variables in C mode (#183988)
I added an extra check in handleBlocksAttr to ensure that illegal Decl
values are not passed to downstream functions.
Fixes #183974
[AMDGPU] Add ML-oriented coexec scheduler selection and queue handling
This patch adds the initial coexec scheduler scaffold for machine
learning workloads on gfx1250.
It introduces function and module-level controls for selecting the
AMDGPU preRA and postRA schedulers, including an `amdgpu-workload-type`
module flag that maps ML workloads to coexec preRA scheduling and a nop
postRA scheduler by default.
It also updates the coexec scheduler to use a simplified top-down
candidate selection path that considers both available and pending
queues through a single flow, setting up follow-on heuristic work.
[SelectionDAG] Move the call to BuildExactSDIV and BuildExactUDIV to the top of BuildSDIV/BuildUDIV. (#187378)
This moves it above the type legality check. The legality check we use
for the main division by constant algorithm is probably not right for
BuildExactSDIV and BuildExactSDIV. These checks are largely about the
legality of MUL_LOHI/MULH which are not used for the exact case.
This patch removes the legal type check for the exact case. If we do
need a check it's probably better to have a specific version in
BuildExactSDIV and BuildExactSDIV.
I'm hoping to do some refactoring of the legality checks in
BuildSDIV/BuildUDIV so separating them makes this easier.
[clang] Enable exceptions in CWG2486 test (#187195)
In #107131 I totally missed the fact that the entire `cwg24xx.cpp` was
running without exceptions. This patch rectifies that, and uncovers one
diagnostic in pre-C++17 modes that CWG2486 test was missing.
realpath: Improve prev_len logic
* Save prev_len after having checked for and appended a trailing slash,
not before. This requires us to back up if we end up returning a
partial result, but previously we would sometimes return a partial
result with a trailing slash and sometimes without.
* Replace strlcat() with a faster strlcpy() since we know exactly how
far into the buffer we are.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D55914
realpath: Improve manual page
* Try to make the RETURN VALUES section flow better.
* Add basename(3), dirname(3), free(3) to the SEE ALSO section.
* Drop the CAVEATS section, which was obsolete the moment realpath(3)
was added to the Single Unix Specification in 1994.
MFC after: 1 week
Sponsored by: Klara, Inc.
Reviewed by: kevans
Differential Revision: https://reviews.freebsd.org/D55928
NAS-140288 / 25.10.2.2 / During failover avoid remote calls for FC port wiring (by bmeagherix) (#18503)
- Skip `ensure_wired` during failover
`fcport.query` was triggering `ensure_wired` -> `wire()` ->
`failover.call_remote` inside the `become_active` window.
- Guard `reset_wired` remote calls when peer is unavailable
Original PR: https://github.com/truenas/middleware/pull/18502
---------
Co-authored-by: Brian M <brian.meagher at ixsystems.com>
NAS-140288 / 26.0.0-BETA.2 / During failover avoid remote calls for FC port wiring (by bmeagherix) (#18504)
- Skip `ensure_wired` during failover
`fcport.query` was triggering `ensure_wired` -> `wire()` ->
`failover.call_remote` inside the `become_active` window.
- Guard `reset_wired` remote calls when peer is unavailable
Original PR: https://github.com/truenas/middleware/pull/18502
---------
Co-authored-by: Brian M <brian.meagher at ixsystems.com>