NAS-141888 / 27.0.0-BETA.1 / Fix passdb reinit (#19367)
The ``PassdbMustReinit`` handler used to call
``self.synchronize_passdb()``
directly instead of through the middleware, so the ``@job`` method never
received its injected ``passdb_job`` argument and raised
``TypeError: synchronize_passdb() missing 1 required positional
argument``
on every SMB user operation whenever the passdb had drifted from the
account
table.
[Clang][LTO] Assign GUIDs after post-opt bitcode linking (#211155)
Run AssignGUIDPass after LinkInModulesPass so newly linked globals have
GUIDs before LTO summary emission.
Fixes LCOMPILER-2475.
MVC:UserException - add some exception types and handle them in the base template, closes https://github.com/opnsense/core/pull/10430
Although we can debate about the http status codes (kept the standard one at 500, warning and info as 200), the idea is to add some glue for the frontend so it knows what we mean and can represent the dialog based on its type.
[AMDGPU] Cost i1 insertelements as free (#211246)
From the discussion in
https://github.com/llvm/llvm-project/pull/206697#discussion_r3503977327
Booleans are free to scalarize in AMDGPU, so mark insertelements into i1
vectors as free. This removes some of the AMDGPU diffs from #206697
This doesn't mark extractelements as free since that ends up flattening
the costs for `vector.reduce.or/and`.
[mlir][sme] Add e2e test for lowering mmt4d to sme (#208226)
Lowers mmt4d to arm sme with hoisting the load/store of the accumulator
out of the K-loop. Similar to ArmSVE/pack-unpack-mmt4d.mlir with some
additional changes.
Appreciate @banach-space for helping me out with this (#201562)
Assisted-by: Claude
---------
Co-authored-by: Stephen Long <steplong at quicinc.com>
Co-authored-by: Ege Beysel <beyselege at gmail.com>
Co-authored-by: Andrzej Warzyński <andrzej.warzynski at gmail.com>
[SelectionDAG] Allow constant UREM decomposition without high multiply (#210232)
`SelectionDAG` may introduce a wide constant UREM when promoting funnel
shifts on irregular integer types. On AMDGPU, an i65 `fshl` becomes an
i128 remainder by 65; the existing decomposition is rejected because i64
`MULHU` and `UMUL_LOHI` are unavailable, after which legalization
attempts the unsupported `__umodti3` libcall.
Allow the existing decomposition when the wide UREM libcall is
unavailable and half-width `UDIVREM` is legal or custom. This lets
AMDGPU finish through its custom i64 `UDIVREM` lowering while preserving
the existing libcall preference for targets with a usable wide libcall.
Fixes #197949
Signed-off-by: Keshav Vinayak Jha <keshavvinayakjha at gmail.com>
Co-authored-by: Codex <noreply at openai.com>
py-plumbum: updated to 2.0.2
2.0.2
Fixes:
* CLI parsing and terminal fixes: exact switch names win over abbreviations, clear errors for ``--flag=value`` on no-argument switches and for unknown ``requires``/``excludes`` names, ``Set`` no longer validates the unsplit CSV string, ``--helpall`` no longer corrupts later ``--help`` output, ``ask``/``choose``/``prompt`` no longer loop forever on closed stdin, and wide/tall images render with the right aspect
* Subprocess and pipeline lifecycle fixes: ``bgrun`` kills and reaps the process when the body raises, pipeline call-time args bind to the source command, leaked pipeline pipes are closed, the async TEE handles long lines and multibyte characters and reaps on failure, equal timeout deadlines no longer kill the timeout thread, and daemon fixes
* Path/fs edge cases: ``RemotePath.unlink`` no longer removes directories recursively and handles symlinks via lstat, ``RemotePath.access`` supports ``F_OK`` and requires every requested permission bit, ``LocalPath.chown`` leaves an unspecified owner/group unchanged, and ``AtomicFile.locked`` honors ``blocking=False`` for the in-process thread lock
* Don't change the global ``SIGPIPE`` disposition in the CLI
* Keep the return code off the last line of session output
* ``Path.parent`` no longer raises ``IndexError`` on the filesystem root
* Quote paths, cwd, and env names in remote shell command lines
* ``colorlib`` correctness fixes: stdout guard, ``Color(0)``, ``from_ansi``, bold-off
Docs:
* Update terminal color support link to its permanent home
* Update example output to match the code
[5 lines not shown]
[lldb-dap][VSCode][Windows] check that --check-python is available before using it (#211048)
`--check-python` is only available as of lldb-dap 23. Running that check
regardless of it's availability causes the extension to fail to start if
it's not available.
Check that the flag is available first by searching for it in the
`--help`. Checking for a version number would be a cleaner approach but
I reckon it would fail for local builds.
Fixes https://github.com/llvm/llvm-project/issues/210879
[PPC] Constrain register in VSPLT of XXSLDWI transform (#208005)
XXSLDWI takes a vsrc register, but the VSPLT opcodes only take vrrc.
vrrc is a subset of vsrc, so fix this by constraining the register
class.
[DirectX][MC] Fix dangling StringRefs in DXContainerWriterTest (#211227)
Building Parts from SmallString elements invalidated StringRefs on
vector reallocation, so the test was dying under MSan before the
expected fatal error.
Fixes buildbot failures
https://github.com/llvm/llvm-project/pull/204903#issuecomment-5039669504.
[RFC][AMDGPU][InsertWaitcnts] Move `WaitcntBrackets` to a separate file
My previous stack of patches de-tangled quite a bit of InsertWaitcnt,
and now `WaitcntBrackets` can be moved into a separate file fairly
easily. I'm proposing this as a RFC. While I think this is a net
positive, I don't want to force this through if others feel it's unnecessary.
Implementation:
This pretty much moves `WaitcntBrackets` as-is, with a few changes:
- Instead of having a pointer to `SIInsertWaitcnts` for the "context"
there is now a "Info" class that `SIInsertWaitcnts` implements.
This enforces a small separation between the classes, not enough to
force a massive redesign, but enough that we can't just access the
entire state of `InsertWaitcnts` at will.
- Some unused/unnecessary functions were removed or made private.
- I reorganized the code a bit: moved all private functions together,
moved method implementations to the .cpp if they had more than 2 lines of code.
The goal is to keep things somewhat organized so it's easy to glance at the
[23 lines not shown]
[CodeView] Encode signed enumerators as signed integers (#210352)
In #210338 I noticed that enumerator constants were always encoded as
unsigned integers. MSVC (usually) uses the correct signedness
(comparison: https://godbolt.org/z/rbrchhjTT). It only uses signed
values for 64 bit unsigned values (probably a bug).
We know the signedness in `DIEnumerator` and we should use it.
The change in `llvm/lib/DebugInfo/CodeView/CodeViewRecordIO.cpp` was
needed, because the max/min values need all the bits to encode their
value - otherwise we hit an assertion.
This also encodes the saturated value (`INT64_MIN = 0x8000000000000000`)
in the int128 test correctly (initially added in
https://reviews.llvm.org/D105320).
Revert "[libc++][test] XFAIL `text/text_encoding/environment.pass.cpp` test on Armv7/Linux Ubuntu targets." (#211112)
Reverts #206188
XFAIL'ed wrong test