LLVM/project f329693 — llvm/lib/CodeGen CodeGenOptions.cpp CodeGenOptions.h, utils/bazel/llvm-project-overlay/llvm BUILD.bazel

[CodeGen] Declare command line options in TableGen

Move the cl::opts of TargetPassConfig.cpp and CodeGenPrepare.cpp into
CodeGenOptions.td, private to lib/CodeGen; other files will follow.
-enable-machine-outliner (cl::ValueOptional) and -regalloc
(RegisterPassParser) stay cl::opt.

CodeGenPrepare and its addressing-mode helpers hold
`const CodeGenOptions &Opts`; TargetPassConfig functions read
CodeGenOptions::Global. getCGPassBuilderOption() converts
std::optional<bool> members to the cl::boolOrDefault fields of the
public CGPassBuilderOption. -basic-block-section-match-infer, which was
not cl::Hidden, is now listed by -help-hidden only.

Aided by Opus 5.5
DeltaFile
+142-318llvm/lib/CodeGen/TargetPassConfig.cpp
+95-220llvm/lib/CodeGen/CodeGenPrepare.cpp
+200-0llvm/lib/CodeGen/CodeGenOptions.td
+19-0llvm/lib/CodeGen/CodeGenOptions.h
+15-0llvm/lib/CodeGen/CodeGenOptions.cpp
+11-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+482-5383 files not shown
+502-5439 files

LLVM/project 0542030 — llvm/include/llvm/CodeGen MachinePipeliner.h, llvm/lib/CodeGen BasicTargetTransformInfo.cpp MIR2Vec.cpp

[CodeGen] Stop exporting cl::opts. NFC

AMDGPU reads -misched-prera-direction and -verify-misched, every
target's TTI reads -partial-unrolling-threshold through BasicTTIImpl.h,
and AsmPrinter reads -emit-bb-hash through extern declarations. Add
getters for them, move inline code that reads options (LiveIntervals,
MachinePipeliner, MIR2Vec) out of line, and let unittests use default
weights, so that the options can be file-local.

Aided by Opus 5.5
DeltaFile
+36-5llvm/lib/CodeGen/MachinePipeliner.cpp
+18-14llvm/unittests/CodeGen/MIR2VecTest.cpp
+3-25llvm/include/llvm/CodeGen/MachinePipeliner.h
+10-12llvm/lib/CodeGen/RegAllocScore.cpp
+12-5llvm/lib/CodeGen/MIR2Vec.cpp
+10-6llvm/lib/CodeGen/BasicTargetTransformInfo.cpp
+89-6714 files not shown
+138-11420 files

LLVM/project 9aec402 — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, clang/test/CIR/Lowering unlowered-address-spaces.cir

[CIR] Reject language address spaces in DirectToLLVM pointer conversion

Reject unlowered language address spaces in pointer types when bypassing TargetLowering. Guard pointer-producing lowerings, including generated patterns, so failed conversions report legalization failures instead of silently selecting address space zero or constructing invalid LLVM operations.

Assisted-by: Codex / GPT-6
DeltaFile
+519-0clang/test/CIR/Lowering/unlowered-address-spaces.cir
+64-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+2-0clang/utils/TableGen/CIRLoweringEmitter.cpp
+585-03 files

LLVM/project 580dcd2 — clang/include/clang/CIR LoweringHelpers.h, clang/include/clang/CIR/Dialect/IR CIROps.td

[CIR] Propagate initializer type adjustment failures

Reject initializers whose active members have no LLVM representation, including when an enclosing union's storage type is convertible. Propagate recursive adjustment failures before querying data layout or constructing LLVM operations.

Assisted-by: Codex / GPT-6
DeltaFile
+66-0clang/test/CIR/Lowering/unsupported-initializer-types.cir
+13-2clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+12-0clang/lib/CIR/Lowering/LoweringHelpers.cpp
+2-1clang/include/clang/CIR/LoweringHelpers.h
+1-1clang/include/clang/CIR/Dialect/IR/CIROps.td
+94-45 files

LLVM/project d9a1829 — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.h LowerToLLVM.cpp, clang/test/CIR/Lowering unsupported-type-conversions.cir

[CIR] Propagate type conversion failures in DirectToLLVM

Propagate failed type and constant conversions through DirectToLLVM so unsupported types produce legalization failures instead of invalid LLVM operations or a void function result.

Assisted-by: Codex / GPT-6
DeltaFile
+178-0clang/test/CIR/Lowering/unsupported-type-conversions.cir
+49-13clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+4-3clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.h
+231-163 files

FreeBSD/ports 4921952 — emulators/wine-devel Makefile distinfo, emulators/wine-devel/files patch-dlls_mountmgr.sys_cdrom.c

emulators/wine-devel: Update 11.18 => 11.19

Changelog:
- Support for vertical text in GDIPlus.
- Unicode character tables updated to Unicode 18.0.0.
- Caching for DNS queries.
- Improvements to the VBScript parser.
- Various bug fixes.
https://gitlab.winehq.org/wine/wine/-/releases/wine-11.19

Remove files/patch-dlls_mountmgr.sys_cdrom.c since it got merged.

PR:             299093
Sponsored by:   UNIS Labs (vvd, commit patch)
DeltaFile
+0-29emulators/wine-devel/files/patch-dlls_mountmgr.sys_cdrom.c
+3-3emulators/wine-devel/distinfo
+1-2emulators/wine-devel/Makefile
+4-343 files

LLVM/project 30cad1b — llvm/test/CodeGen/AMDGPU amdgcn.bitcast.768bit.ll amdgcn.bitcast.832bit.ll

Merge commit '8acf13ad5ee579da8e9c2ea9bba58533179939af' into HEAD
DeltaFile
+56,601-75,945llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+18,219-23,687llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+13,775-17,204llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+12,841-16,119llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+11,584-14,818llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.832bit.ll
+10,483-13,715llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.768bit.ll
+123,503-161,4883,275 files not shown
+275,919-306,8473,281 files

FreeBSD/src 9a0b9a2 — usr.bin/mkimg Makefile vmdk.c

mkimg: Add support for stream-optimized VMDK

FreeBSD VM/cloud images tend to be highly compressible: The generic VM
images compress roughly 3.5:1, and cloud images typically even more
since they have significant unused space in their virtual disks.  This
generally doesn't matter for users who can download compressed release
images and extract them locally, but for EC2 in particular relying on
uncompressed image formats is painful: We now upload over 500 GB/week
to AWS.

This commit adds the "stream-optimized" version of the VMDK format,
which compresses each 64 kB "grain" individually (and omits grains
which are all zeroes).  Compared to uncompressed formats, this can
produce much smaller images; experiments indicate that using this
format for EC2 image uploads will reduce the weekly traffic to under
100 GB/week.

Co-authored-by: Claude Opus 5.5
MFC after:      2 weeks

    [2 lines not shown]
DeltaFile
+309-0usr.bin/mkimg/vmdk.c
+1-1usr.bin/mkimg/Makefile
+310-12 files

FreeBSD/src a68ba2d — . Makefile.inc1, sys/sys param.h

__FreeBSD_version: Bump for mkimg -f vmdks

Also, adjust bootstrap tools code in Makefile.inc1 to reflect this; in
addition to rebuilding mkimg if it is out of date, we now need to build
libz, which was not previously needed by mkimg.

Reviewed by:    kevans
MFC after:      2 weeks
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60153
DeltaFile
+4-3Makefile.inc1
+1-1sys/sys/param.h
+5-42 files

FreeBSD/src 88017d3 — usr.bin/mkimg mkimg.1

mkimg.1: Document new vmdks format

Reviewed by:    ziaee
Co-authored-by: Claude Opus 5.5
MFC after:      2 weeks
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60152
DeltaFile
+12-2usr.bin/mkimg/mkimg.1
+12-21 files

FreeBSD/src 65b8723 — usr.bin/mkimg/tests img-63x255-512-mbr.vmdks.hex img-63x255-512-ebr.vmdks.hex

mkimg: Add tests for vmdks format

This is the 'stream-optimized' version of the VMDK format.

MFC after:      2 weeks
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60154
DeltaFile
+617-0usr.bin/mkimg/tests/img-1x1-512-gpt.vmdks.hex
+617-0usr.bin/mkimg/tests/img-1x1-4096-gpt.vmdks.hex
+617-0usr.bin/mkimg/tests/img-63x255-4096-gpt.vmdks.hex
+617-0usr.bin/mkimg/tests/img-63x255-512-gpt.vmdks.hex
+596-0usr.bin/mkimg/tests/img-63x255-512-mbr.vmdks.hex
+596-0usr.bin/mkimg/tests/img-63x255-512-ebr.vmdks.hex
+3,660-015 files not shown
+11,963-121 files

FreeBSD/src 498276b — usr.bin/mkimg vmdk.c

mkimg: Make vmdk's desc_fmt slightly more generic

This will allow it to be reused in upcoming work.

Suggested by:   Claude Opus 5.5
MFC after:      2 weeks
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60150
DeltaFile
+6-3usr.bin/mkimg/vmdk.c
+6-31 files

LLVM/project 8acf13a — llvm/test/CodeGen/AMDGPU amdgcn.bitcast.768bit.ll amdgcn.bitcast.832bit.ll

Merge commit 'cefa9f8c99246547bccc90104ec386815fb4345f' into HEAD
DeltaFile
+56,601-75,945llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+18,219-23,687llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+13,775-17,204llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+12,841-16,119llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+11,584-14,818llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.832bit.ll
+10,483-13,715llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.768bit.ll
+123,503-161,4883,275 files not shown
+275,919-306,8473,281 files

FreeBSD/ports 32dd9a5 — misc/mc6 distinfo Makefile

misc/mc6: the port had been updated to version 6.0.4

New plugins: Lua, MongoDB, SQLite, mcstruct (shows a binary
file as a tree of named fields described by STL5 definitions,
with a hex strip, in-place editing, and definitions for many
common formats).
DeltaFile
+193-0misc/mc6/pkg-plist
+18-10misc/mc6/Makefile
+3-3misc/mc6/distinfo
+214-133 files

FreeBSD/src 84a3e29 — usr.bin/mkimg image.h image.c

mkimg: Add image_buffer_region

This is like image_copyout_region, but copies into a buffer rather than
writing out to a file; it will be used by future support for compressed
images (and potentially other circumstances where image data must be
manipulated before being written out to disk).

Reviewed by:    jrm
No objection from:      Christos Komis (author)
MFC after:      2 weeks
Sponsored by:   Google LLC (GSoC 2025)
Differential Revision:  https://reviews.freebsd.org/D60149
DeltaFile
+68-0usr.bin/mkimg/image.c
+1-0usr.bin/mkimg/image.h
+69-02 files

LLVM/project cefa9f8 — flang-rt/lib/runtime transformational.cpp, flang-rt/unittests/Runtime Transformational.cpp

Avoid std::is_arithmetic_v, std::is_integral_v, std::is_unsigned_t
DeltaFile
+4-2flang/lib/Semantics/openmp-utils.cpp
+1-2flang/lib/Decimal/big-radix-floating-point.h
+1-2flang-rt/unittests/Runtime/Transformational.cpp
+1-1flang/lib/Evaluate/fold-implementation.h
+1-1flang-rt/lib/runtime/transformational.cpp
+8-85 files

FreeBSD/src 1a05231 — usr.bin/mkimg vmdk.c

mkimg: Check for realloc failure

If realloc fails, clean up and return ENOMEM; don't just copy data
into NULL.

Reviewed by:    emaste
Reported by:    Claude Opus 5.5
MFC after:      2 weeks
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60147
DeltaFile
+6-1usr.bin/mkimg/vmdk.c
+6-11 files

FreeBSD/src 434819b — usr.bin/mkimg image.c

mkimg: Avoid leaking a page of mmap

The image_file_map function adjusts the provided file offset to be
page-aligned, with a resulting increase in the size of the mapped
region; the increased size needs to be used when unmapping as well.

Reported by:    Claude Opus 5.5
Fixes:  baf4abfc39b2 ("Allow building mkimg as cross-tool")
MFC after:      2 weeks
Sponsored by:   Amazon
Differential Revision:  https://reviews.freebsd.org/D60148
DeltaFile
+5-4usr.bin/mkimg/image.c
+5-41 files

LLVM/project ccee6a4 — llvm/test/CodeGen/AMDGPU amdgcn.bitcast.768bit.ll amdgcn.bitcast.832bit.ll

Merge commit '971833ee5513f01a57439b15040887932af114fc' into HEAD
DeltaFile
+56,601-75,945llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+18,219-23,687llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+13,775-17,204llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+12,841-16,119llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+11,584-14,818llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.832bit.ll
+10,483-13,715llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.768bit.ll
+123,503-161,4883,271 files not shown
+275,909-306,8373,277 files

FreeBSD/ports 46fddce — graphics/openexr Makefile distinfo, graphics/openexr-website-docs Makefile distinfo

graphics/openexr*: update to 3.4.16 bugfix release

"v3.4.16 fixes a bug which created unreadable DWAB files in certain
circumstances.  There is also a fix to prevent 'undefined behavior'
warnings with the BytesAttribute"

Changelog:      https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v3.4.16
PR:             299085
Pull request:   https://github.com/freebsd/freebsd-ports/pull/631
MFH:            2026Q4

(cherry picked from commit d9d8def4905c6702c1a27aa864d5c366ad44a378)
DeltaFile
+3-3graphics/openexr/distinfo
+3-3graphics/openexr-website-docs/distinfo
+2-2graphics/openexr/Makefile
+1-1graphics/openexr-website-docs/Makefile
+9-94 files

FreeBSD/ports d9d8def — graphics/openexr Makefile distinfo, graphics/openexr-website-docs Makefile distinfo

graphics/openexr*: update to 3.4.16 bugfix release

"v3.4.16 fixes a bug which created unreadable DWAB files in certain
circumstances.  There is also a fix to prevent 'undefined behavior'
warnings with the BytesAttribute"

Changelog:      https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v3.4.16
PR:             299085
Pull request:   https://github.com/freebsd/freebsd-ports/pull/631
MFH:            2026Q4
DeltaFile
+3-3graphics/openexr/distinfo
+3-3graphics/openexr-website-docs/distinfo
+2-2graphics/openexr/Makefile
+1-1graphics/openexr-website-docs/Makefile
+9-94 files

FreeBSD/ports b0b9dbb — devel/meson Makefile

devel/meson: Restore PORTEPOCH

Approved by:    blanket
Fixes:          10a56f1b9ff6 (update to 1.12.1)
Sponsored by:   UNIS Labs
DeltaFile
+1-0devel/meson/Makefile
+1-01 files

NetBSD/pkgsrc-wip c96c470 — cedet DESCR buildlink3.mk, undo-tree DESCR Makefile

*: remove emacs packages with no supported emacs version
DeltaFile
+0-628cedet/PLIST
+0-68cedet/Makefile
+0-29undo-tree/Makefile
+0-24undo-tree/DESCR
+0-14cedet/buildlink3.mk
+0-12cedet/DESCR
+0-7756 files not shown
+2-80712 files

LLVM/project 9a9daa9 — clang/docs ReleaseNotes.md, clang/lib/Parse ParseExprCXX.cpp

[Clang] Keep scope annotations covering typo-corrected qualifiers (#223978)

Fixes #221890

While tentatively deciding whether `(void(foo::S<int>))` is a type-id,
the parser annotates `foo::S<int>`. Lookup of `S` in `foo` fails, typo
correction suggests plain `S`, and Sema rebuilds the `CXXScopeSpec`
without the qualifier. The annotation token takes its start from that
scope specifier, so it only covers `S<int>` and the already-consumed
`foo ::` tokens are never replaced in the token cache. They resurface
after the tentative parse backtracks, every later parse sees `foo ::
<type>`, and the second `isTypeIdInParens()` in
`ParseCXXAmbiguousParenExpression` contradicts the first.

The parser owns the invariant that an annotation replaces every token
consumed to produce it, so the fix lives in
`ParseOptionalCXXScopeSpecifier`. After each Sema call that can rewrite
the qualifier through typo correction, the scope specifier is re-ranged
over the tokens actually consumed. When the qualifier was dropped
entirely, the template-id annotation is extended back over those tokens
instead. Sema and the typo-correction recovery are untouched.
DeltaFile
+31-13clang/lib/Parse/ParseExprCXX.cpp
+29-0clang/test/Parser/cxx-ambig-paren-expr.cpp
+4-0clang/docs/ReleaseNotes.md
+64-133 files

LLVM/project 3108485 — llvm/lib/CodeGen RegAllocFast.cpp, llvm/test/CodeGen/X86 virtreg-physreg-def-regallocfast.mir

[RegAllocFast] Order partial defs before other defs (#222882)

```
%0:gr64_with_sub_8bit = COPY $rax
%0.sub_32bit, %1:gr32 = MULX32rr $ecx, implicit $edx
```

The partial def of %0 is live-through: it reads the rest of %0, so it
must avoid the registers the instruction reads ($ecx, $edx) and is meant
to be allocated before an ordinary def like %1, which may share a
register with a use. The comparator in findAndSortDefOperandIndexes,
from the 2020 rewrite c8757ff3aa7d ("RegAllocFast: Rewrite and
improve"), tests `getSubReg() == 0`, the inverse of the allocation
sites, so %1 is allocated first and takes $eax; %0 then misses its hint
$rax, lands in $rsi, and the copy from $rax stays.

Share one isLiveThroughDef predicate between the ordering and the
allocation. %0 now takes $rax, the copy is deleted, and %1 takes $ecx.

Aided by Opus 5
DeltaFile
+17-24llvm/lib/CodeGen/RegAllocFast.cpp
+20-0llvm/test/CodeGen/X86/virtreg-physreg-def-regallocfast.mir
+37-242 files

FreeBSD/src 40f4174 — usr.sbin/jail config.c

jail(8): Preserve const qualifier on strchr(3) results

Reviewed by:    fuz, dteske
Approved by:    fuz (mentor), dteske (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59876

(cherry picked from commit ab636e421d318a1175450d5652d8460dd2c48b76)
DeltaFile
+3-3usr.sbin/jail/config.c
+3-31 files

FreeBSD/src ad60cb1 — usr.sbin/pkg pkg.c

pkg(7): Preserve const qualifier on strrchr(3) results

Reviewed by:    fuz
Approved by:    fuz (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59777

(cherry picked from commit 47f9e665078210cf15cc3914611dccabda6084a4)
DeltaFile
+2-2usr.sbin/pkg/pkg.c
+2-21 files

FreeBSD/src 3b8ba87 — bin/ls print.c

ls(1): Preserve const qualifier on strstr(3) result

Reviewed by:    fuz
Approved by:    fuz (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59774

(cherry picked from commit cc61cc7b638a6a1182c0dd0989a7b630759f408c)
DeltaFile
+2-2bin/ls/print.c
+2-21 files

LLVM/project d8818bd — flang/examples/DirectivesPlugin CMakeLists.txt DirectivesPlugin.cpp, flang/test/Examples plugin-directives-parse.f90 plugin-directives-module.f90

[flang] Add an example plugin defining compiler directives

flangDirectivesPlugin registers directives with the prefix "example" (a
callback on a procedure, a watch on a variable or COMMON block, and a note on
either). The tests check their lowering to fir.directives attributes, the
semantic and parse errors, and their round trip through module files.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+62-0flang/test/Examples/plugin-directives-errors.f90
+59-0flang/test/Examples/plugin-directives.f90
+57-0flang/test/Examples/plugin-directives-module.f90
+47-0flang/examples/DirectivesPlugin/DirectivesPlugin.cpp
+19-0flang/test/Examples/plugin-directives-parse.f90
+9-0flang/examples/DirectivesPlugin/CMakeLists.txt
+253-02 files not shown
+255-08 files

FreeBSD/src a8fcc58 — bin/ed io.c

ed(1): Preserve const qualifier on strchr(3) result

Reviewed by:    fuz
Approved by:    fuz (mentor)
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59773

(cherry picked from commit 066fad8aefcb5bda77482c526757712ad0637aa9)
DeltaFile
+1-1bin/ed/io.c
+1-11 files