[DAG] Use UndefPoisonKind enum in isGuaranteedNotToBeUndefOrPoison/canCreateUndefOrPoison/getFreeze (#196145)
Replace the PoisonOnly flag and allow discrimination between
undef/poison values - to more closely match ValueTracking / GISel
implementations.
This patch is mainly a drop in replacement for the PoisonOnly logic, and
hasn't added anything to match UndefOnly logic (e.g. for SelfMultiply
patterns) - we can improve upon this later on with proper test coverage.
Fixes #194818
[CIR] Implement ARM-style static guard lowering (#196394)
This adds the ARM-specific handling in LoweringPrepare to emit guard
variables for static local initialization.
[flang] Add initial support for RegionBranchOpInterface to AA (#196132)
This PR introduces initial support for being able to disambiguate values
through operations that implement RegionBranchOpInterface (eg fir.if).
The initial approach implements a localized approach which instead of an
invasive update to the current algorithm so that a single underlying
origin to be replaced with multiple, it still leaves the single origin
concept. It does so through a conservative merge of all input sources.
The main initial goal is to allow disambiguating OPTIONAL pattern where
we have an allocate on one branch and an absent on the other.
Additionally, it is able to properly merge sources if the sources have
same properties.
rtadvd(8): Honor pltime/vltime in interface declarations
Currently rtadvd ignores interface pltime/vltime specifications
unless the (static) address range is also included in the config file.
This extends the validity of a pltime and/or vltime stanza in
the config file for an interface to delegated addresses from
an upstream provider.
Signed-off-by: tickerguy <karl at denninger.net>
PR: 288426
Reviewed by: pouria
Pull Request: https://github.com/freebsd/freebsd-src/pull/1863
(cherry picked from commit 103f9883d1ed7431c432caa6ab9c61cd4d0831d0)
vis.3: Try to better describe VIS_SAFE
The current text fails to draw the reader's attention to the fact that
VIS_SAFE essentially exempts certain characters from being encoded.
While here, fix some markup nits.
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D56716
(cherry picked from commit 8acc4c16c6635c3cd8871d0ee1221b62d48d71b9)
[NFC][Instrumentor] Fix write_config.ll test failure on Windows (#196382)
Use diff -b flag to ignore line ending differences when comparing
generated JSON with reference file. This prevents test failures on
Windows where the generated file has CRLF line endings.
Co-Authored-By: Claude Sonnet 4.5 <noreply at anthropic.com>
Co-authored-by: Claude Sonnet 4.5 <noreply at anthropic.com>
textproc/codebook: New port
Codebook is a spell checker for code. It binds together the venerable
Tree Sitter and the fast spell checker Spellbook. Included is a
Language Server for use in (theoretically) any editor. Everything
is done in Rust to keep response times snappy and memory usage low.
Installs a language server for use with text editors.
certctl: Unstickify (un)trusted certificates
Ever since certctl was rewritten in C, the rehash command has reingested
TRUSTDESTDIR / UNTRUSTDESTDIR in addition to TRUSTPATH / UNTRUSTPATH.
This seemed like a good idea at the time but was, in retrospect, a
mistake, as it means a (un)trusted certificate remains (un)trusted
forever (or at least until it expires) even if it is removed from
(UN)TRUSTPATH. Among other issues, it causes ports QA to fail for any
port that either installs certificates or depends on a port that does.
Although this behavior was undocumented, the change may surprise users
who have added certificates manually, so update the manual page to point
it out and add prominent warnings to the trust and untrust commands.
PR: 290078
MFC after: 1 week
Reviewed by: kevans, bcr
Differential Revision: https://reviews.freebsd.org/D56617
(cherry picked from commit 2fef18ff594328a771b6aa659e8ffa5a7e076540)
vis.3: Try to better describe VIS_SAFE
The current text fails to draw the reader's attention to the fact that
VIS_SAFE essentially exempts certain characters from being encoded.
While here, fix some markup nits.
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D56716
(cherry picked from commit 8acc4c16c6635c3cd8871d0ee1221b62d48d71b9)
md5: Don't generate test cases just to skip them
Don't waste time generating Perl test cases for algorithms that are not
supported in Perl mode only to skip them when they are run.
MFC after: 1 week
Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D56687
(cherry picked from commit fd386e76fa2b29d99525c246cbfc05768a1f4a76)
stat: fix use of devname(3)
Besides being a little hard to parse through visually, this had its own
bug of inspecting st->st_mode to determine what to pass to devname(3),
which is only correct for st_rdev.
For st_dev, you're likely to be looking at files or directories and
attempting to assess what device they're located on, so the mode is
meaningless- we just have to assume that our filesystems are on
character devices and attempt to resolve st_dev as such.
Reviewed by: des, kib (previous version)
Differential Revision: https://reviews.freebsd.org/D56565
(cherry picked from commit 4d4acdbfc22c84081037f31cff4fb03d18373036)
stat: The devname test case requires root
Fixes: 4d4acdbfc22c ("stat: fix use of devname(3)")
[24 lines not shown]
[mlir][SparseTensor] handle uninitialized transMap when translating shape (#195506)
When translating a shape using
`SparseTensorEncodingAttr::translateShape` from lvl to dim, there is a
possibility that the `transMap` map (`lvlToDim` map under the hood) is
uninitialized. This leads to an assertion error when calling the
`.getResults()` method.
This change adds a guard to check if the `transMap` map is uninitialized
and return early with dynamic shapes. This change also adds a regression
test based on the reproduce MLIR code.
Closes #195464