LLVM/project 750088fllvm/docs ReleaseNotes.md, llvm/include/llvm/IR Instructions.h

[IR] Make BranchInst operand order consistent (#186609)

Ensure that successors are always reported in the same order in which
they are stored in the operand list.
DeltaFile
+7-7llvm/unittests/IR/InstructionsTest.cpp
+8-0llvm/docs/ReleaseNotes.md
+3-3llvm/tools/llvm-c-test/echo.cpp
+3-3llvm/unittests/SandboxIR/SandboxIRTest.cpp
+2-2llvm/lib/IR/Instructions.cpp
+2-2llvm/include/llvm/IR/Instructions.h
+25-171 files not shown
+26-187 files

LLVM/project 8f21b65clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/IR CIRDialect.cpp

[CIR] Split CIR_UnaryOp into individual operations

Split the monolithic cir.unary operation (which dispatched on a
UnaryOpKind enum) into four separate operations: cir.inc, cir.dec,
cir.minus, and cir.not.

This follows the same pattern used when cir.binop was split into
individual binary operations (AddOp, SubOp, etc.).

Changes:
- Add CIR_UnaryOpInterface with getInput()/getResult() methods
- Add CIR_UnaryOp and CIR_UnaryOpWithOverflowFlag base classes
- Define IncOp, DecOp, MinusOp, NotOp with per-op folds
- Add Involution trait to NotOp for not(not(x)) -> x folding
- Replace createUnaryOp() with createInc/Dec/Minus/Not builders
- Split LLVM lowering into four separate patterns
- Split LoweringPrepare complex-type handling per unary op
- Update CIRCanonicalize and CIRSimplify for new op types
- Update all codegen files to use bool params instead of UnaryOpKind

    [6 lines not shown]
DeltaFile
+91-105clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+56-88clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+111-28clang/include/clang/CIR/Dialect/IR/CIROps.td
+62-62clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-CtorDtor.cpp
+41-41clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-NoOps.cpp
+36-36clang/test/CIR/CodeGenOpenACC/combined-reduction-clause-inline-ops.cpp
+397-36078 files not shown
+1,393-1,36784 files

LLVM/project d3537f7clang/lib/CIR/CodeGen CIRGenExprComplex.cpp CIRGenExprScalar.cpp, clang/lib/CodeGen CGExprComplex.cpp

[CIR] Remove cir.unary(plus, ...) and emit nothing for unary plus

Traditional codegen never emits any operation for unary plus — it just
visits the subexpression as a pure identity at the codegen level. Align
CIRGen with this behavior by removing Plus from UnaryOpKind entirely
and having VisitUnaryPlus directly visit the subexpression with the
appropriate promotion/demotion handling.
DeltaFile
+68-67clang/lib/CodeGen/CGExprComplex.cpp
+0-72clang/test/CIR/Transforms/canonicalize.cir
+10-26clang/test/CIR/CodeGen/complex-unary.cpp
+16-20clang/test/CIR/IR/unary.cir
+18-16clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
+14-12clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+126-21310 files not shown
+146-28316 files

LLVM/project 361641dclang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/Transforms CIRCanonicalize.cpp

[CIR] Add cir.min op and refactor cir.max lowering (#185276)

Add cir.min operation for integer minimum computation. Refactor cir.max
lowering into a shared lowerMinMaxOp template reused by both ops.
DeltaFile
+77-0clang/test/CIR/Transforms/max-min-idempotent.cir
+26-1clang/include/clang/CIR/Dialect/IR/CIROps.td
+20-5clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+24-0clang/test/CIR/Lowering/binop-int-vector.cir
+5-5clang/lib/CIR/Dialect/Transforms/CIRCanonicalize.cpp
+3-0clang/test/CIR/Lowering/binop-unsigned-int.cir
+155-111 files not shown
+157-117 files

LLVM/project ce7a582llvm/lib/Transforms/Instrumentation MemorySanitizer.cpp

[msan][NFCI] Replace unnecessary shadow cast with assertion (#186498)

Fabian Wolff pointed out that #176031 made the output of CreateIntCast()
unused in handleBitwiseAnd().

Upon closer inspection, the CreateIntCast()s are unnecessary, because the
arguments to handleBitwiseAnd() (and visitOr()) are integers or vectors of
integers, for which the shadow types are the same as the original types.
This patch removes the unnecessary if and shadow cast, and adds
assertions.
DeltaFile
+21-9llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
+21-91 files

FreeNAS/freenas d9d62e0src/middlewared/middlewared/plugins/apps/ix_apps lifecycle.py

NAS-140018 / 27.0.0-BETA.1 / Safeguard app config persistence against rendering edge cases (#18442)

App config rendering should not fail as values are validated beforehand,
but as an edge case safeguard, values are now rendered against the
actual template and only persisted on success.
DeltaFile
+10-4src/middlewared/middlewared/plugins/apps/ix_apps/lifecycle.py
+10-41 files

LLVM/project 9422bd3llvm/include/llvm/IR Instructions.h Instruction.h, llvm/include/llvm/SandboxIR Instruction.h

[IR] Add Instruction::successors() (#186606)

Nowadays all terminators store all successor operands consecutively, so
we can expose the range of successors through a unified interface.

Rename succ_op_iterator to succ_iterator for consistency, also with
Machine IR.

Preliminary work for replacing the succ_iterator in CFG.h with an
iterator that iterates directly over the uses.
DeltaFile
+87-84llvm/include/llvm/IR/Instructions.h
+38-0llvm/include/llvm/IR/Instruction.h
+17-4llvm/lib/IR/Instruction.cpp
+4-5llvm/include/llvm/SandboxIR/Instruction.h
+146-934 files

LLVM/project f002fc0lldb/packages/Python/lldbsuite/test decorators.py dotest_args.py, lldb/test/API lit.cfg.py

[lldb] Skip tests that are incompatible with MTE (#186043)

Skip tests that are incompatible with MTE. 

Depends on:
- https://github.com/llvm/llvm-project/pull/185780
DeltaFile
+10-1lldb/test/API/macosx/mte/TestDarwinMTE.py
+11-0lldb/packages/Python/lldbsuite/test/decorators.py
+6-0lldb/packages/Python/lldbsuite/test/dotest_args.py
+3-0lldb/test/API/lit.cfg.py
+3-0lldb/packages/Python/lldbsuite/test/configuration.py
+3-0lldb/test/Shell/lit.cfg.py
+36-118 files not shown
+58-124 files

LLVM/project 1eee115lldb/tools/lldb-server lldb-platform.cpp lldb-gdbserver.cpp

[lldb] Rename Status variables to avoid confusion (NFC) (#186486)

Rename Status variables that are named `error` to `status` to avoid
confusion with llvm::Error as the latter becomes more and more
prevalent.
DeltaFile
+57-58lldb/tools/lldb-server/lldb-platform.cpp
+18-18lldb/tools/lldb-server/lldb-gdbserver.cpp
+75-762 files

LLVM/project 9d4436ellvm/test/MC/AArch64 cyclone-movi-bug.s, llvm/test/MC/X86 intel-syntax-branch.s intel-syntax-hex.s

[llvm-mc] Default output assembly variant to AssemblerDialect (#186317)

Previously, llvm-mc always defaulted to output assembly variant 0
regardless of the target's AssemblerDialect. This was inconsistent:
llvm-mc -x86-asm-syntax=intel changed the input parser to Intel syntax
but output stayed AT&T, unlike clang's -masm=intel which affects both.

When --output-asm-variant is not explicitly specified, fall back to
MAI->getAssemblerDialect() instead of hardcoding variant 0. This
makes the output match the target's configured dialect:

- X86: -x86-asm-syntax=intel now produces Intel output
- AArch64: Apple triples default to Apple syntax output
- SystemZ: z/OS triples default to HLASM syntax output

Tests that relied on a specific output variant now use explicit
--output-asm-variant=0.
DeltaFile
+7-4llvm/tools/llvm-mc/llvm-mc.cpp
+10-0llvm/test/tools/llvm-mc/x86-asm-syntax.test
+3-3llvm/test/MC/X86/intel-syntax-branch.s
+2-2llvm/test/MC/AArch64/cyclone-movi-bug.s
+1-1llvm/test/MC/X86/intel-syntax-hex.s
+1-1llvm/test/MC/X86/intel-syntax-movabs-large.s
+24-1110 files not shown
+34-2116 files

LLVM/project d6246f6llvm/lib/Target/X86 X86AsmPrinter.cpp, llvm/test/CodeGen/X86 asm-modifier-error.ll inline-asm-p-constraint.ll

[X86] Reject 'p' constraint without 'a' modifier in inline asm (#185799)

The 'p' constraint produces an address operand that should only be
printed with the 'a' modifier (e.g., %a0). Without it, GCC and Clang
produce different and arguably incorrect output

https://github.com/llvm/llvm-project/issues/185343#issuecomment-4029670370
Reject the combination to catch misuse early.
DeltaFile
+6-0llvm/test/CodeGen/X86/asm-modifier-error.ll
+5-0llvm/lib/Target/X86/X86AsmPrinter.cpp
+2-3llvm/test/CodeGen/X86/inline-asm-p-constraint.ll
+13-33 files

HardenedBSD/src 9ce9589sys/contrib/openzfs/module/unicode u8_textprep.c, sys/contrib/openzfs/module/zfs u8_textprep.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+7,037-228sys/contrib/openzfs/module/zstd/lib/common/xxhash.h
+4,698-1,133sys/contrib/openzfs/module/zstd/lib/compress/zstd_compress.c
+2,171-0sys/contrib/openzfs/module/zfs/u8_textprep.c
+0-2,171sys/contrib/openzfs/module/unicode/u8_textprep.c
+1,288-592sys/contrib/openzfs/module/zstd/lib/decompress/huf_decompress.c
+1,478-370sys/contrib/openzfs/module/zstd/lib/zstd.h
+16,672-4,494521 files not shown
+38,446-15,269527 files

HardenedBSD/src 71b5c2bsys/contrib/openzfs/module/unicode u8_textprep.c, sys/contrib/openzfs/module/zfs u8_textprep.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+7,037-228sys/contrib/openzfs/module/zstd/lib/common/xxhash.h
+4,698-1,133sys/contrib/openzfs/module/zstd/lib/compress/zstd_compress.c
+2,171-0sys/contrib/openzfs/module/zfs/u8_textprep.c
+0-2,171sys/contrib/openzfs/module/unicode/u8_textprep.c
+1,288-592sys/contrib/openzfs/module/zstd/lib/decompress/huf_decompress.c
+1,478-370sys/contrib/openzfs/module/zstd/lib/zstd.h
+16,672-4,494521 files not shown
+38,446-15,269527 files

HardenedBSD/src d20bc0elib/libsys sigreturn.2, usr.sbin/virtual_oss/virtual_oss virtual_oss.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+14-20usr.sbin/virtual_oss/virtual_oss/virtual_oss.c
+16-8lib/libsys/sigreturn.2
+30-282 files

LLVM/project 4a2e169llvm/lib/Target/WebAssembly WebAssemblyFastISel.cpp, llvm/test/CodeGen/WebAssembly fast-isel.ll

[WebAssembly][NFC] Rename and test FastISel selectBr (#186577)

selectBr only handles conditional branches and also wasn't tested.
Clarify the name and add test that enforces that there's no fallback.
DeltaFile
+17-2llvm/test/CodeGen/WebAssembly/fast-isel.ll
+3-3llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
+20-52 files

HardenedBSD/ports 89f845cdevel/bustle distinfo Makefile.crates, devel/dwarves Makefile

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+151-127devel/bustle/distinfo
+183-0devel/dwarves/files/freebsd_compat.h
+74-62devel/bustle/Makefile.crates
+0-86devel/dwarves/files/patch-lib_bpf_src_btf.c
+0-70devel/elfutils/files/patch-lib_error.c
+38-32devel/dwarves/Makefile
+446-37778 files not shown
+759-72684 files

LLVM/project 464639bllvm/include/llvm/IR Instructions.h

[IR][NFC] Remove BranchInst successor functions (#186604)

The efficient access is now handled by UncondBrInst/CondBrInst,
Instruction functions handle the more generic cases. These functions are
now largely unused now that most uses of BranchInst are gone.

Preliminary work for making the CondBrInst operand order consistent.
DeltaFile
+0-12llvm/include/llvm/IR/Instructions.h
+0-121 files

FreeBSD/ports 8c988f8textproc/groff distinfo Makefile

textproc/groff: Update 1.24.0 => 1.24.1

Approved by:    db@, yuri@ (Mentors, implicit)
DeltaFile
+3-3textproc/groff/distinfo
+1-2textproc/groff/Makefile
+4-52 files

FreeBSD/ports 46aa077graphics/nvidia-texture-tools Makefile, sysutils/nvclock Makefile

nvidia comments: Wordsmith

These days, Nvidia graphics is more platforms than just cards, more
renderers than just OpenGL, and more display protocols than just X.
It's also written in uppercase. This increases consistency, clarity,
and eliminates jarring line wrapping at reference column width 80.

PR:                     293473 (graphics/nvidia-texture-tools)
PR:                     293474 (sysutils/nvclock)
PR:                     293475 (sysutils/py-nvitop)
Reviewed by:            amdmi3, ashafer, danfe, kbowling
Reviewed by:            Tomoaki Aoki <junchoon_dec.sakura.ne.jp>
Differential Revision:  https://reviews.freebsd.org/D55452
DeltaFile
+1-1x11/nvidia-xconfig/Makefile
+1-1x11/linux-nvidia-libs/Makefile
+1-1sysutils/py-nvitop/Makefile
+1-1sysutils/nvclock/Makefile
+1-1x11/nvidia-driver/Makefile
+1-1graphics/nvidia-texture-tools/Makefile
+6-66 files not shown
+12-1212 files

HardenedBSD/ports 46aa077graphics/egl-wayland2 Makefile, graphics/egl-x11 Makefile

nvidia comments: Wordsmith

These days, Nvidia graphics is more platforms than just cards, more
renderers than just OpenGL, and more display protocols than just X.
It's also written in uppercase. This increases consistency, clarity,
and eliminates jarring line wrapping at reference column width 80.

PR:                     293473 (graphics/nvidia-texture-tools)
PR:                     293474 (sysutils/nvclock)
PR:                     293475 (sysutils/py-nvitop)
Reviewed by:            amdmi3, ashafer, danfe, kbowling
Reviewed by:            Tomoaki Aoki <junchoon_dec.sakura.ne.jp>
Differential Revision:  https://reviews.freebsd.org/D55452
DeltaFile
+1-1graphics/egl-wayland2/Makefile
+1-1graphics/egl-x11/Makefile
+1-1graphics/nvidia-drm-kmod/Makefile
+1-1graphics/nvidia-texture-tools/Makefile
+1-1sysutils/nvclock/Makefile
+1-1sysutils/py-nvitop/Makefile
+6-66 files not shown
+12-1212 files

LLVM/project efcd3b6llvm/lib/Transforms/IPO AttributorAttributes.cpp IROutliner.cpp, llvm/lib/Transforms/Instrumentation ControlHeightReduction.cpp

[IPO][InstCombine][Vectorize][NFCI] Drop uses of BranchInst (#186596)

Refactor remaining parts of Transforms apart from Scalar and Utils.
DeltaFile
+28-36llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
+31-25llvm/lib/Transforms/IPO/AttributorAttributes.cpp
+13-41llvm/lib/Transforms/IPO/IROutliner.cpp
+20-32llvm/lib/Transforms/Vectorize/LoopIdiomVectorize.cpp
+20-21llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+14-16llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+126-17124 files not shown
+221-28430 files

LLVM/project 4aa4354clang/lib/CIR/CodeGen CIRGenExprComplex.cpp CIRGenExprScalar.cpp, clang/lib/CodeGen CGExprComplex.cpp

[CIR] Remove cir.unary(plus, ...) and emit nothing for unary plus

Traditional codegen never emits any operation for unary plus — it just
visits the subexpression as a pure identity at the codegen level. Align
CIRGen with this behavior by removing Plus from UnaryOpKind entirely
and having VisitUnaryPlus directly visit the subexpression with the
appropriate promotion/demotion handling.
DeltaFile
+68-67clang/lib/CodeGen/CGExprComplex.cpp
+0-72clang/test/CIR/Transforms/canonicalize.cir
+10-26clang/test/CIR/CodeGen/complex-unary.cpp
+16-20clang/test/CIR/IR/unary.cir
+18-16clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
+14-12clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+126-21310 files not shown
+146-28316 files

LLVM/project 0871762clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/IR CIRDialect.cpp

[CIR] Split CIR_UnaryOp into individual operations

Split the monolithic cir.unary operation (which dispatched on a
UnaryOpKind enum) into four separate operations: cir.inc, cir.dec,
cir.minus, and cir.not.

This follows the same pattern used when cir.binop was split into
individual binary operations (AddOp, SubOp, etc.).

Changes:
- Add CIR_UnaryOpInterface with getInput()/getResult() methods
- Add CIR_UnaryOp and CIR_UnaryOpWithOverflowFlag base classes
- Define IncOp, DecOp, MinusOp, NotOp with per-op folds
- Add Involution trait to NotOp for not(not(x)) -> x folding
- Replace createUnaryOp() with createInc/Dec/Minus/Not builders
- Split LLVM lowering into four separate patterns
- Split LoweringPrepare complex-type handling per unary op
- Update CIRCanonicalize and CIRSimplify for new op types
- Update all codegen files to use bool params instead of UnaryOpKind

    [6 lines not shown]
DeltaFile
+91-105clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+56-88clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+111-28clang/include/clang/CIR/Dialect/IR/CIROps.td
+62-62clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-CtorDtor.cpp
+41-41clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-NoOps.cpp
+36-36clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-inline-ops.cpp
+397-36078 files not shown
+1,393-1,36784 files

LLVM/project b26d3e9clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/Dialect/Transforms CIRCanonicalize.cpp

[CIR] Add cir.min op and refactor cir.max lowering

Add cir.min operation for integer minimum computation. Refactor cir.max
lowering into a shared lowerMinMaxOp template reused by both ops. Includes
lowering tests for signed, unsigned, and vector types, plus canonicalization
tests.
DeltaFile
+77-0clang/test/CIR/Transforms/max-min-idempotent.cir
+26-1clang/include/clang/CIR/Dialect/IR/CIROps.td
+20-5clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+24-0clang/test/CIR/Lowering/binop-int-vector.cir
+5-5clang/lib/CIR/Dialect/Transforms/CIRCanonicalize.cpp
+3-0clang/test/CIR/Lowering/binop-unsigned-int.cir
+155-111 files not shown
+157-117 files

HardenedBSD/ports 4d9a1c5net/remmina Makefile, net/remmina/files patch-CMakeLists.txt

net/remmina: Switch to freerdp3

PR:             293752
DeltaFile
+2-6net/remmina/files/patch-CMakeLists.txt
+4-2net/remmina/Makefile
+6-82 files

FreeBSD/ports 4d9a1c5net/remmina Makefile, net/remmina/files patch-CMakeLists.txt

net/remmina: Switch to freerdp3

PR:             293752
DeltaFile
+2-6net/remmina/files/patch-CMakeLists.txt
+4-2net/remmina/Makefile
+6-82 files

OpenBSD/src VNdaVPwusr.bin/kdump kdump.c

   Decode __pledge_open() same as open()
   pointed out by guenther
VersionDeltaFile
1.166+2-1usr.bin/kdump/kdump.c
+2-11 files

LLVM/project 1b29ac1llvm/lib/Transforms/Vectorize LoopVectorize.cpp VPlanConstruction.cpp, llvm/unittests/Transforms/Vectorize VPlanTestBase.h

[LV] Move predication, early exit & region handling to VPlan0 (NFCI) (#185305)

Move handleEarlyExits, predication and region creation to operate
directly on VPlan0. This means they only have to run once, reducing
compile time a bit; the relative order remains unchanged.

Introducing the regions at this point in particular unlocks performing
more transforms once, on the initial VPlan, instead of running them for
each VF.

Whether a scalar epilogue is required is still determined by legacy cost
model, so we need to still account for that in the VF specific VPlan
logic.

PR: https://github.com/llvm/llvm-project/pull/185305
DeltaFile
+16-15llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+2-6llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+1-3llvm/lib/Transforms/Vectorize/VPlanTransforms.h
+1-1llvm/unittests/Transforms/Vectorize/VPlanTestBase.h
+20-254 files

LLVM/project c6811cdllvm/lib/Transforms/Scalar StructurizeCFG.cpp JumpThreading.cpp

[Transforms/Scalar][NFC] Drop uses of BranchInst (#186592)

I ended up relaxing some of the checks that LoopInterchange made, the
assumptions that certain instructions were branches seemed to not be
used at all.
DeltaFile
+40-53llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
+43-47llvm/lib/Transforms/Scalar/JumpThreading.cpp
+34-43llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+35-40llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
+22-30llvm/lib/Transforms/Scalar/LoopInterchange.cpp
+20-23llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+194-23631 files not shown
+331-41337 files

OpenBSD/src 39Fc3H1lib/libc/sys open.2

   document __pledge_open; ok sthen beck guenther
VersionDeltaFile
1.53+16-2lib/libc/sys/open.2
+16-21 files