tests/sys/libkern: Add tests for sign extension and bitfield extraction
In order to avoid name collisions with standard library functions, wrap
everything but the functions to test in a !LIBKERN_TESTING section, so
that when LIBKERN_TESTING is defined, all untested parts are not
defined. Leave a comment there suggesting selective namespacing when
adding tests to string functions having same name in the standard
library.
Reviewed by: fuz
MFC with: a6e81841486a ("libkern: Bitfield extraction: Stick to standard, separate sign extension")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61963
tests/sys: Move libkern's tests in a separate directory
Use 'sys/libkern', to mimick the source hierarchy.
Reviewed by: emaste
MFC with: a6e81841486a ("libkern: Bitfield extraction: Stick to standard, separate sign extension")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61961
py-markdown: updated to 3.11.4
3.11.4 - 2026-11-25
Fixed
* Fix quadratic rendering time for many unclosed square brackets in links
and images
* The `footnotes` extension no longer takes quadratic time to assign ids
to many references to the same footnote
* Release the parsed tree and source lines in `reset()` so a reused `Markdown`
instance no longer retains the last document in memory
* The `toc` extension no longer raises `TypeError` for a heading whose
`data-toc-label` attribute is present but valueless, as the `attr_list`
extension's bare-attribute syntax (`{: data-toc-label }`) writes it: like a
heading with no `data-toc-label`, its text is used as the TOC name
* The `toc` extension no longer raises `TypeError` for a heading whose `id`
attribute is present but valueless, as the `attr_list` extension's
bare-attribute syntax (`{id}`) writes it: like a heading with no `id` at
[32 lines not shown]
[lldb] Implement GetChildAtIndex in TypeSystemClang, Clike and Fortran
These type systems now override GetChildAtIndex instead of
GetChildCompilerTypeAtIndex. TypeSystemClang fills a ChildTypeInfo
instead of the reference arguments.
TypeSystemClang::GetDereferencedType no longer sets deref_name when the
lookup fails, because a failed lookup returns no ChildTypeInfo.
assisted by claude
[lldb][NFC] Add CompilerType::GetChildAtIndex returning a struct (#245936)
GetChildCompilerTypeAtIndex returns the properties of a child in eight
reference arguments, and most callers ignore most of them. This patch
adds
GetChildAtIndex, which returns them in a ChildTypeInfo struct, and moves
the callers to it.
By default, TypeSystem::GetChildAtIndex and
TypeSystem::GetChildCompilerTypeAtIndex call each other, so type systems
can
move to the new function one at a time. A later patch removes
GetChildCompilerTypeAtIndex.
The ppc64 ABI plugin ignored the llvm::Expected that the old function
returned. It now gives up on the return value when it can't get a field.
assisted by claude
[4 lines not shown]
[AMDGPU] Defer S_WAITCNT_DEPCTR erasure and updates in expert mode
A pre-existing S_WAITCNT_DEPCTR was erased, or had its VA_VDST and
VM_VSRC fields relaxed, as soon as the incoming state made those waits
look redundant. In a loop header that happens on the first visit, before
the backedge adds the instructions of the loop body. The wait is then
lost when the header is visited again with them pending.
Keep the original operand of every S_WAITCNT_DEPCTR, including
duplicates, while iterating to the fixed point, and only apply the final
encoding or erase the instruction at the end of the pass.
Also reset the VA_VDST field of a duplicate S_WAITCNT_DEPCTR to "no
wait" once its wait has been folded into the first one, instead of
leaving a redundant copy of the combined wait behind.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
Reland "[SPIR-V] Default to NewPM" (#239489) (#246273)
This reapplies #239489, reverted in #245119 because NewPM runs the
machine verifier and exposed latent SPIR-V bugs
These are fixed by #245209 and #245610
build: remove AUXSET in favour of #528
As a test remove "gmake" which was one of the early build
dependencies added to ports.conf to make the build a bit
faster.
[DebugInfo][FLMD] Add !!dbgLoc and !DIDbgLoc textual IR parsing
This patch adds support for parsing !!dbgLoc attachments to Instructions
and DbgRecords, and also !DIDbgLoc nodes which contain !!dbgLoc fields.
This patch necessarily makes use of the DebugLoc Conversion Map, which is
used this time to read FLDebugLocs and convert to DILocations.
This patch doesn't add support for parsing the expanded form of !!dbgLoc;
that is added in the next patch, which extends the FLMDAttachment variant
to include expanded dbgLocs.
AI assistance was used in generating the test IR added in this commit; all
comments are human-written and the test expects are generated by
update_test_checks, and the IR is unmodified (besides comments) opt output.
[DebugInfo][FLMD] Add printing support for FLDebugLoc+DIDbgLoc
This patch follows up on the preceding patch by adding support for
printing FLDebugLoc as an attachment `!!dbgLoc(...)` for instructions and
debug records, and for printing DIDbgLoc nodes which contain a !!dbgLoc
operand.
A major component of this patch is the addition of a "DebugLoc conversion"
layer, which allows for conversion between DILocation and FLDebugLoc
formats. This is currently only used for converting DILocation->FLDebugLoc
for printing, but provides a common mechanism that will later be used for
FLDebugLoc<->DILocation conversion for printing+parsing, switching between
the two depending on which format is currently being used in-memory. Due to
the constraint of needing to support consistent conversions at different
points in time (primarily for MIR printing and lazy bitcode
materialization), some information is stored in the LLVMContext, including
a third representation of source location information, stored in a format
which is easy to convert to/from either existing format.
[11 lines not shown]
[FLMD][DebugInfo] Add classes for function-local DebugLocs
This patch adds two new classes. The first, FLDebugLoc, represents a
DebugLoc in a function-local context; combined with the correct
`!MDFunctionLocalContext`, this class is equivalent in information to a
`!DILocation`, with some exceptions (IsImplicitCode is not included,
IRLayers are to-be-implemented). The second, DIDbgLoc, is a new
MDNode type which wraps an `MDFunctionLocalContext*` and an `FLDebugLoc`.
This makes it an effective substitute for `DILocation` in metadata,
able to replicate the interface of `DILocation` entirely. Implementation
of this interface is added in a later patch.
Add MDFunctionLocalContext support to update_test_checks
The new `!MDFunctionLocalContext` metadata type is unique in that it may
be printed across multiple lines, which causes the update_test_checks
script to only generate checks, and transitively find other metadata, for
the opening line. This patch fixes this by recording multiple lines for
metadata, where the first line ends with '[' and the last line ends with
'])', matching the printed format of `!MDFunctionLocalContext`.
[DebugInfo][FLMD] Add bitcode printing/parsing for function context
This patch adds support for bitcode printing/parsing for
MDFunctionLocalContext. This is an unusual entry in that it contains
multiple variable-length arrays, and collectively comprises a potentially
very large (technically up to ~2^32, realistically >10000 is possible)
number of records. There is no abbreviation, since the existing
abbreviation mechanism does not easily translate to this case.
Also unique is that, as with the LLParser, we use a custom forward
reference resolution. In this case, we track the metadata IDs rather than
maintaining a TrackingMDRef, and resolve these at the general metadata
resolution step, where the MetadataList has been finalized.
[DebugInfo][FLMD] Implement IR Printing/Parsing for FLMD context + nodes (#236212)
This patch adds support for printing and parsing textual IR for the
MDFunctionLocalMetadata class and each of the MDNode classes, FLScope,
FLSrcLoc, and FLInlinedCall.
The display logic goes beyond that of typical MDNodes, primarily in that
the FLMD storage arrays are printed with each element on a separate
line. A flag is added that prints everything on a single line, which is
recommended for some machine-parsing cases, but not recommended for
either human-reading or testing, where one-entry-per-line aids clarity.
This patch does not yet add support for the update_test_checks, since
that involves some extra work and tests worthy of a separate commit.
[AMDGPU] Defer S_WAITCNT_DEPCTR erasure and updates in expert mode
A pre-existing S_WAITCNT_DEPCTR was erased, or had its VA_VDST and
VM_VSRC fields relaxed, as soon as the incoming state made those waits
look redundant. In a loop header that happens on the first visit, before
the backedge adds the instructions of the loop body. The wait is then
lost when the header is visited again with them pending.
Keep the original operand of every S_WAITCNT_DEPCTR, including
duplicates, while iterating to the fixed point, and only apply the final
encoding or erase the instruction at the end of the pass.
Also reset the VA_VDST field of a duplicate S_WAITCNT_DEPCTR to "no
wait" once its wait has been folded into the first one, instead of
leaving a redundant copy of the combined wait behind.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>