[CIR] Implement support for delete after new in a conditional branch (#192544)
This implements handling for calling delete in an EH handler after a
call to new when the new call appears inside a conditional operation,
which requires the new result to be spilled inside the cleanup scope and
reloaded after.
This implementation introduces the DominatingValue helper class, which
is adapted from classic codegen, but only the parts of that class that
are needed for the current change are implemented. This will likely be
expanded in a future change as other uses are added.
Assisted-by: Cursor / claude-4.6-opus-high
[Clang][AMDGPU] Deprecate `amdgpu-num-vgpr` and `amdgpu-num-sgpr` (#193023)
We will just emit a warning at this moment. This will still take effect
for regular compilation, but in object linking, we will simply ignore
them.
[mlir][spirv] Add SPIRV_FetchOpInterface to SPIRV_ImageFetchOp (#192986)
SPIRV_ImageFetchOp was missing the SPIRV_FetchOpInterface interface.
Without it, the Lod image operand validation in ImageOps.cpp would
reject Lod on spirv.ImageFetch because line 77 checks
`(!isa<spirv::ExplicitLodOpInterface>(imageOp) &&
!isa<spirv::FetchOpInterface>(imageOp))`. The fix adds
DeclareOpInterfaceMethods<SPIRV_FetchOpInterface> to the op's trait
list.
NAS-140711 / 26.0.0-BETA.2 / Robustize helper to reset-failed (by anodos325) (#18769)
This commit handles edge-case where maybe our CI is trying to reset a
unit that is unloaded. This allows us to surface what may be a more
useful error condition later on in tests.
Original PR: https://github.com/truenas/middleware/pull/18762
Co-authored-by: Andrew Walker <andrew.walker at truenas.com>
[AArch64][PAC] Handle signing of init/fini pointers in AsmPrinter
Move signing of the contents of `@llvm.global_(ctors|dtors)` from
Clang frontend to the end of the backend pipeline, to AsmPrinter.
Signing of the pointers to init/fini functions in the backend fixes
registration of the constructors and destructors performed by the
optimizer or the backend.
This commit introduces two new module flags, `ptrauth-init-fini` and
`ptrauth-init-fini-address-discrimination`, mirroring corresponding
Clang options. The flags are semantically boolean, and the module
is allowed to have either none of these flags, only the first one,
or both. The particular constant discriminator to use is not
configurable via module flags and is hardcoded to the value 0xD9D4
in the `llvm/lib/Target/AArch64/AArch64PointerAuth.h` file.
[LV] Remove selectUserVF, remove use of legacy expectedCost (NFCI) (#191216)
selectUserVectorizationFactor was still using legacy expectedCost.
Instead of going through the legacy cost model to check if the cost is
valid, directly go through the VPlan cost model.
This requires to first build the plans, then check their costs.
This removes another use of the legacy cost model.
PR: https://github.com/llvm/llvm-project/pull/191216
Robustize helper to reset-failed
This commit handles edge-case where maybe our CI is trying to
reset a unit that is unloaded. This allows us to surface what
may be a more useful error condition later on in tests.
(cherry picked from commit 6ab6b07017c0fea31a0f254444934316f337a1d3)
NAS-140711 / 27.0.0-BETA.1 / Robustize helper to reset-failed (#18762)
This commit handles edge-case where maybe our CI is trying to reset a
unit that is unloaded. This allows us to surface what may be a more
useful error condition later on in tests.
Merge tag 'platform-drivers-x86-v7.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
Pull x86 platform driver updates from Ilpo Järvinen:
"asus-wmi:
- Retain battery charge threshold during boot which avoids
unsolicited change to 100%. Return -ENODATA when the limit
is not yet known
- Improve screenpad power/brightness handling consistency
- Fix screenpad brightness range
barco-p50-gpio:
- Normalize gpio_get return values
bitland-mifs-wmi:
- Add driver for Bitland laptops (supports platform profile,
hwmon, kbd backlight, gpu mode, hotkeys, and fan boost)
dell_rbu:
- Fix using uninitialized value in sysfs write function
[70 lines not shown]