libelf/testsuite: Initialize structs prior to taking their addresses.
The functions being tested currently fail (as expected) without
accessing these structs. This changelist however improves the
robustness of these tests if this implementation behavior were
to change in the future.
textproc/py-tinyhtml5: Add new port
Tinyhtml5 is a HTML5 parser that transforms a possibly malformed HTML document
into an ElementTree tree.
https://doc.courtbouillon.org/tinyhtml5/latest/
[CIR] Fix crash coercing a call outside a cir.func body (#214785)
A namespace-scope `Pair g = makePair();` crashes x86_64
calling-convention lowering. Coercing the call's register-pair return
needs a temporary alloca, and the code asked the enclosing function for
its entry block to hold it. LoweringPrepare runs after this pass, so the
initializer is still sitting in its cir.global ctor region with no
enclosing cir.func, and getParentOfType returned null.
`emitCoercion` and `emitCoercionToMemory` now take the block to use
directly, and `coercionSlotBlock` picks it: the function's entry block
when there is one, otherwise the entry block of the outermost region
below the module. That block dominates the whole body and travels with
it into whatever function LoweringPrepare later outlines the body into.
This is a prerequisite for enabling x86_64 calling-convention lowering
by default.
Assisted-by: Cursor / claude-opus-5
[CIR] Fix vector ABI alignment units and rounding (#214783)
`cir::VectorType::getABIAlignment` returned `NextPowerOf2` of the type's
size in bits, but the hook answers in bytes, and `NextPowerOf2` is
strictly greater so it doubles a size that is already a power of two. A
one-element vector of double reported 128 where its alignment is 8.
Convert the size to bytes and round up with `PowerOf2Ceil`, which leaves
an exact power of two alone. This matches how `llvm::DataLayout` aligns
a vector that has no explicit layout entry.
Assisted-by: Cursor / claude-opus-5
[LV] Add historgram multi-use tests (NFC). (#214831)
Add test coverage for miscompiles with histograms and multiple uses of
bucket value and increment.
While touching the file, modernize the existing test + check lines as
well.