[mlir][DLTI] Introduce an operation interface for scoped DLTI queries (#232733)
So far, DLTI queries have relied on scanning discardable attributes for
values implementing DLTIQueryInterface. This is problematic when that
data is used to determine operation semantics: semantic information
belongs in an operation's inherent attributes/properties, and should
have an explicit contract rather than depend on arbitrary discardable
attribute attachments.
Introduce DLTIQueryOpInterface, an OpInterface instead of the existing
AttributeInterface, with symmetric queryDlti and setDlti methods for
individual keys. Provide default implementations backed by an inherent
dlti attribute. Updates preserve unrelated map entries, a null value
removes a key, and attempts to mutate non-map representations fail.
Resolve the first query key by walking the operation and its ancestors
that implement the new interface, continuing upward when a scope cannot
answer that key. Resolve subsequent keys recursively through the
returned attribute's DLTIQueryInterface without restarting the ancestor
[27 lines not shown]
[X86] LowerFunnelShift - handle fsh*(x,y,0) case (#232923)
Normally DAGCombine handles this, but we might end up with an all-zero shift amount during legalization (via splitting etc.)
Fixes #232596
net*: remove remnants of caddr_t
caddr_t is a typedef for a character pointer (char *) that originated in
Version 7 Unix, released by AT&T in 1979. It became obsolete in 1989,
when ANSI C introduced void *.
What's left:
* ioctl(9) KPI still uses caddr_t, thus network related ioctl method
still use it.
* if_clone KPI, to be done separately.
* bpf(4), to be done separately.
* SCTP, let maintainers decide.
* iflib(4), let maintainers decide.
Reviewed by: zlei
Differential Revision: https://reviews.freebsd.org/D60738
[DAGCombiner] Allow (sub 0, (max X, (sub 0, X))) --> (min X, (sub 0, X)) when neither min/max are legal/custom. (#232486)
If the max isn't legal/custom and the min isn't legal/custom it really
doesn't matter if we keep the max. They'll be expanded very similarly
with different condition codes on the select/branch. Might as well
remove the neg.
Note this code really should take type legalization promotion into
account, but that's a separate problem.
[flang][OpenMP] Match variant selectors in the source construct context
The construct context for METADIRECTIVE and DECLARE VARIANT came from
enclosing MLIR operations. It recognized only a few operations, followed
operation nesting instead of source nesting, kept constructs outside an
enclosing TARGET, and used the body context for clause expressions and
loop bounds.
Build the context from the evaluation's source ancestors and from frames
for construct regions entered during lowering:
- A selected METADIRECTIVE replacement stands in for its source construct.
- TARGET discards the outer context.
- Constructs without a selector property still add a nesting level.
- Clause expressions see only enclosing constructs.
- Loop bounds see the leaves that precede the first loop-associated leaf.
- Specification expressions see no construct.
Add llvm::omp::getConstructTraits, which returns the construct traits a
directive adds in source order, with an invalid placeholder for a
[10 lines not shown]
[SelectionDAG][RISCV] Use SExtOrZExtPromotedOperands to promote ABDU in PromoteIntegerResult. (#232037)
Similar to UMIN/UMAX, ABDU can be promoted using sext or zext. Use to
SExtOrZExtPromotedOperands to pick whatever is profitable for the
target. For RISC-V, this means we can use sext.w instead of pair of
shifts.
This covers part of what #231881 was trying to do.
Update translations for the WiFi connection failure messages
Extract the two new network page strings into the template and merge them into every language file.
Fix saved WiFi networks being written as disabled
select_network disables every other saved network, and the config was
saved before they were re-enabled, so wpa_supplicant.conf kept them
disabled and they never auto-connected again. Re-enable them first.
A failed save of the config is now reported on the status line instead
of being ignored. Any failed attempt, including a failed credential
save, reopens the dialog titled "Could not connect to {ssid}", since
a timeout cannot tell a wrong key from an unreachable network.
mbuf: remove remnants of caddr_t
caddr_t is a typedef for a character pointer (char *) that originated in
Version 7 Unix, released by AT&T in 1979. It became obsolete in 1989,
when ANSI C introduced void *.
There is a lot of code that uses m->m_data for arithmetics, thus we can't
switch it to void * easily. Let's at least stop proliferation of caddr_t.
We have developers that are twice younger than obsoletion of this type.
Reviewed by: zlei, tuexen, adrian
Differential Revision: https://reviews.freebsd.org/D60736
ipfw: cleanup SYSINIT(9)s
Make them all belong to SI_SUB_PROTO_FIREWALL and explicitly specify
order. Prefer SYSINIT() over modevent, for those subsystems that don't
have dependencies. All subsystems just depend on the main module and they
don't depend on each other, except dummynet which also has submodules.
Thus, keep DECLARE_MODULE() only for the main module and dummynet.
Differential Revision: https://reviews.freebsd.org/D60685
loopback: set MTU to IF_MAXMTU
It was temporarily reduced in af78195e0024 in 1994 to hide some bugs with
signed short overflow. We believe all these bugs were sorted out by
today. :)
Note that earlier ba582a82b0e36 reduced the MTU be rounded to a longword
with a reference "NFS likes it to be rounded". We have had several
refactors of the NFS code since that.
Reviewed by: pouria, zlei, tuexen
Differential Revision: https://reviews.freebsd.org/D59450
[RISCV][P-ext] Use concat_vectors with 0 in widenPackedVectorWithZeros.
This will be legalized and combined to a vector_shuffle. That
shuffle can then be matched to a pack with x0 after #232892.
This changes the zext.w to a pack, but that's not obviously worse.
If we need to canonicalize we can add a DAG combine later.
bash-preexec: update to 0.7.0. Changes:
- Use bats-core/bats-action to set up Bats
- Mention Ghostty
- Test against Bash 3.2, 4.4, 5.0, and 5.3 in CI
- Use a function substitution in $PS0 for preexec in Bash >= 5.3
- Re-adjust PROMPT_COMMAND when PROMPT_COMMAND is modified elsewhere
- fix: Allow __bp_precmd_invoke_cmd to be called from __bp_install
- fix: Properly check to see if we're already installed in PROMPT_COMMAND
- fix preexec for the first command
- Preserve $? and $_ on __bp_precmd_invoke_cmd early returns
- Remove the local declarations of {preexec,precmd}_functions
astyle: update to 3.6.19. Changes:
### 3.6.19
* Prevent reading of files with lossy path name encoding conversion
* Fix indent within extern C blocks
* Refactored vector memory handling
### 3.6.18
* Added option pad-semicolon=none (--unpad-semicolon) to remove space
padding before a semicolon
* Fix unpad-paren being suppressed for the remainder of a file after a
typedef struct
* Fix statement alignment with noexcept keyword and -xb option
* Reduced the documented command-line option surface: trimmed
pure-synonym spellings (e.g. style=bsd/break) and composite shortcut
options (--pad-paren, --pad-brackets, --break-blocks=all) from
--help/the man page/shell completions; all previously accepted
[55 lines not shown]
[CMake][NFCI] Modernize add_link_opts (#232473)
I was updating add_link_opts to handle differences in compiler drivers
by adopting `LINKER:`. At the same time, I changed `set_property` to
`target_link_options` (which was added in CMake 3.13).
libXtst: update to 1.2.6.
Alan Coopersmith (2):
gitlab CI: drop the ci-fairy check-mr job
libXtst 1.2.6
Olivier Fourdan (2):
parse_reply_call_callback: check element size against remaining reply buffer
parse_reply_call_callback: reject zero-progress RECORD reply elements
[clang-tidy] Fix false positive in modernize-use-equals-default (#232363)
A field initialized with the default constructor in the initialization
is value initialized, which is not the case if it is defaulted, so
filter tout this case.
Fix #231561
py-zensical: update to 0.0.71.
This version adds support for mkdocs-include-markdown-plugin. It
also fixes social card rendering when palette colors are unset,
prevents unnecessary restarts during file discovery, and reports
oversized search fields more clearly.