LLVM/project 8d478d3clang/include/clang/AST DeclTemplate.h, clang/lib/AST DeclTemplate.cpp

Revert "[clang] Reland: fix getTemplateInstantiationArgs (#202088)" (#203024)

This reverts commit aca0ce5a7339a892e6405f23f19cb7a9931e18e7.

That commit is causing several compile failures (in
[chromium](https://github.com/llvm/llvm-project/pull/202088#issuecomment-4664022394))
and assertion failures (#202109, #202106), so let's back it out for now.
DeltaFile
+429-194clang/lib/Sema/SemaTemplateInstantiate.cpp
+165-275clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+146-150clang/lib/Sema/SemaTemplate.cpp
+95-96clang/include/clang/AST/DeclTemplate.h
+129-59clang/lib/Sema/SemaConcept.cpp
+92-60clang/lib/AST/DeclTemplate.cpp
+1,056-83456 files not shown
+1,715-1,50362 files

FreeBSD/ports 9518cd1www/p5-Template-Toolkit distinfo Makefile

www/p5-Template-Toolkit: Update to 3.106

Changes: https://metacpan.org/release/TODDR/Template-Toolkit-3.106/changes
DeltaFile
+3-3www/p5-Template-Toolkit/distinfo
+2-1www/p5-Template-Toolkit/Makefile
+1-0www/p5-Template-Toolkit/pkg-plist
+6-43 files

LLVM/project b25bc37clang/lib/Driver Driver.cpp, clang/lib/Driver/ToolChains Clang.cpp HIPUtility.cpp

clang: Construct toolchains with normalized triples (#201869)

Avoid littering calls to normalize around by ensuring toolchains
always use a normalized triple. The test changes are due to
inconsistencies in the behavior of the triple APIs. If the arch name
is empty, normalize leaves it unchanged. If the triple is archname--,
normalize will expand the empty groups to be unknown. setArchName
will introduce the empty groups, which occurs in some of the triple
modifying driver path (mostly the handling of the endianness -m flags).

Driver is still holding onto a raw, unnormalized string triple but
leave that for a later cleanup.

Co-authored-by: Claude Sonnet 4 <noreply at anthropic.com>
DeltaFile
+19-14clang/lib/Driver/Driver.cpp
+6-8clang/lib/Driver/ToolChains/Clang.cpp
+4-4clang/lib/Driver/ToolChains/HIPUtility.cpp
+3-3clang/lib/Driver/ToolChains/Hexagon.cpp
+2-2clang/test/Driver/aarch64-cortex-a75.c
+2-2clang/test/Driver/aarch64-cortex-a35.c
+36-3317 files not shown
+63-5923 files

LLVM/project 5fc41f9clang/include/clang/Analysis/Analyses/LifetimeSafety Utils.h, clang/lib/AST ASTImporter.cpp

[clang] Fix -Wunused-template in AST and analysis helpers (NFC) (#202977)

Several function templates across clang's AST and analysis code trip
`-Wunused-template`. Three kinds of fix here:

- Header templates with internal linkage (`static`), which gives each TU
its own copy and a latent ODR hazard. Drop `static` in `InterpHelpers.h`
(`handleOverflow`), `Marshallers.h` (the `matcherMarshall*`,
`mergePolyMatchers`, and `outvalueToVariantMatcher` helpers), and
`LifetimeSafety/Utils.h` (`join`). Templates are implicitly inline, so
nothing else changes.
- Dead code: `castAttrAs` in `ASTImporter.cpp` has no callers, so it's
removed.
- Assert-only helpers compiled out in release builds, marked
`[[maybe_unused]]`: `getKeys` in `DataflowAnalysisContext.cpp` and the
`hasBodyOrInit` template in `CrossTranslationUnit.cpp`.

NFC.

Part of #202945.
DeltaFile
+16-20clang/lib/ASTMatchers/Dynamic/Marshallers.h
+6-7clang/include/clang/Analysis/Analyses/LifetimeSafety/Utils.h
+0-4clang/lib/AST/ASTImporter.cpp
+2-1clang/lib/Analysis/FlowSensitive/DataflowAnalysisContext.cpp
+1-1clang/lib/AST/ByteCode/InterpHelpers.h
+1-1clang/lib/CrossTU/CrossTranslationUnit.cpp
+26-346 files

FreeBSD/ports 9031b38www/p5-Mojolicious distinfo Makefile

www/p5-Mojolicious: Update to 9.46

Changes: https://metacpan.org/release/SRI/Mojolicious-9.46/changes
DeltaFile
+3-3www/p5-Mojolicious/distinfo
+1-1www/p5-Mojolicious/Makefile
+4-42 files

LLVM/project f12797bclang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.cpp

[CIR] Fix namespace, naming, and assert in sret

Remove `using namespace mlir;` from CIRABIRewriteContext.cpp
and qualify all MLIR-namespaced types explicitly with `mlir::`.
Rename `sretOffset` to `hasSRetArg` (bool) -- the name now
reflects that the value is either 0 or 1 and acts as a
presence flag, not an arbitrary offset.  Rename `rewriter` to
`builder` throughout for consistency with the rest of the
calling-convention lowering code.

Assert in `insertSRetStores` that every `cir.return` in an sret
function carries an operand.  CIRGen guarantees the invariant
`cir.return (cir.load %__retval)` for all returns in an
aggregate-returning function; a bare return would indicate the
sret slot was never written, which is a bug.  The previous
`continue` silently ignored that case.

Add an explanatory comment at the `replaceAllUsesWith` call so
it is clear why erasing the alloca immediately after is safe,

    [3 lines not shown]
DeltaFile
+206-177clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+206-1771 files

LLVM/project 037e0f1llvm/lib/CAS OnDiskGraphDB.cpp

[CAS] Bypass IO sandbox in `OnDiskGraphDB::store()` (#202760)

The sandbox is currently only bypassed in
`OnDiskGraphDB::createStandaloneLeaf()`, but the calling function
`store()` may also initiate some IO by calling `MappedTempFile::keep()`
whose parent `TempFile::keep()` calls `sys::fs::closeFile()`. Let's move
the sandbox disablement to the caller to avoid violations.

rdar://177274700
DeltaFile
+2-2llvm/lib/CAS/OnDiskGraphDB.cpp
+2-21 files

LLVM/project 7a3d76eclang/test/CIR/CodeGen complex.cpp, clang/test/CIR/CodeGenOpenACC private-clause-pointer-array-recipes-CtorDtor.cpp

Merge branch 'main' into users/vitalybuka/spr/nfcspecialcaselist-use-helper-for-version-checks
DeltaFile
+1,962-1,920llvm/test/CodeGen/X86/vector-interleaved-store-i16-stride-7.ll
+1,166-1,460llvm/test/CodeGen/X86/vector-interleaved-load-i8-stride-8.ll
+322-308llvm/test/CodeGen/X86/vector-interleaved-store-i8-stride-5.ll
+176-204llvm/test/CodeGen/X86/vector-interleaved-store-i8-stride-8.ll
+111-111clang/test/CIR/CodeGen/complex.cpp
+104-104clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-CtorDtor.cpp
+3,841-4,107474 files not shown
+8,853-8,687480 files

LLVM/project e0111e9clang/lib/Frontend ASTUnit.cpp CompilerInvocation.cpp

[clang] Fix -Wunused-template in frontend helpers (NFC) (#202980)

Two frontend templates trip `-Wunused-template`.

In `ASTUnit.cpp`, `moveOnNoError` is an unused duplicate (the live copy
lives in `PrecompiledPreamble.cpp`), so it's removed.

In `CompilerInvocation.cpp`, `mergeMaskValue` and `extractMaskValue` are
the option-marshalling helpers that `OptParser.td` names for bitfield
options. No option currently uses that kind, so they never instantiate.
They're kept and marked `[[maybe_unused]]`, since deleting them would
break any future bitfield option.

NFC.

Part of #202945.
DeltaFile
+0-8clang/lib/Frontend/ASTUnit.cpp
+3-2clang/lib/Frontend/CompilerInvocation.cpp
+3-102 files

FreeBSD/ports 9cc8290www/lynx-current distinfo pkg-plist

www/lynx-current: Update to 2.9.3

Changes: https://lynx.invisible-island.net/current/CHANGES.html
DeltaFile
+3-3www/lynx-current/distinfo
+5-0www/lynx-current/pkg-plist
+1-2www/lynx-current/Makefile
+9-53 files

FreeBSD/ports 86486f6sysutils/treemd distinfo Makefile.crates

sysutils/treemd: Update to 0.5.12

ChangeLog:      https://github.com/Epistates/treemd/releases/tag/v0.5.12
Reported by:    "github-actions[bot]" <notifications at github.com>
DeltaFile
+35-113sysutils/treemd/distinfo
+16-55sysutils/treemd/Makefile.crates
+2-2sysutils/treemd/Makefile
+53-1703 files

LLVM/project 5643415clang/test/OpenMP target_codegen.cpp target_simd_codegen.cpp, llvm/include/llvm/Frontend/Offloading Utility.h

[OpenMP] Use ext linkage for kernels handles and globals handles keep… (#202827)

… linkage

Host handles are now emmitted with external linkage to clash if two
kernels with the same name are registered. This could have happen right
now and silently corrupt the program, but it can happen more easily once
we allow users to name their kernels.

In the same patch we make global variable handles retain the linkage of
the global variable, forcing clashes for external ones and continue to
support weak use cases. The exception is common linkage, which we
transform into weak for the entry as there is no zero initialization.
DeltaFile
+11-11clang/test/OpenMP/target_codegen.cpp
+12-6llvm/lib/Frontend/Offloading/Utility.cpp
+8-8clang/test/OpenMP/target_simd_codegen.cpp
+8-8mlir/test/Target/LLVMIR/omptarget-declare-target-llvm-host.mlir
+4-4clang/test/OpenMP/target_indirect_codegen.cpp
+4-4llvm/include/llvm/Frontend/Offloading/Utility.h
+47-4114 files not shown
+75-6820 files

LLVM/project 3a2fbe5lldb/unittests/ObjectFile/MachO MachOTrieTest.cpp

[lldb] Add more Mach-O export trie unit tests (NFC) (#202814)

Extend MachOTrieTest with cases that exercise ParseTrieEntries paths the
existing tests miss, all against the current parser with no functional
change. They cover well-formed edge cases (sibling breadth, empty and
single-character edge labels, large multi-byte addresses, ARM/Thumb and
stub-resolver handling, mixed exports and re-exports) and malformed
input that must be tolerated or rejected without crashing (a shared
subtree, an unterminated edge string, an excessive children count, a
truncated terminalSize, and an out-of-range start offset).

Assisted-by: Claude
DeltaFile
+205-0lldb/unittests/ObjectFile/MachO/MachOTrieTest.cpp
+205-01 files

LLVM/project 91f2a30mlir/include/mlir/Dialect/Linalg/IR LinalgEnums.td, mlir/lib/Dialect/Linalg/IR LinalgOps.cpp

[mlir][linalg] Add inverse triag, log  to elementwise ops (#202786)

Follow up to #200950

Add acos, acosh, asin, asinh, atan, atanh, log10, log1p, log2 to
elementwise ops

These math operations are added as UnaryFn enum cases and supported
through linalg.elementwise only, with no named op definitions. The
specialize pass converts linalg.generic containing these math ops to
linalg.elementwise when emitting category ops

Co-authored-by: Vinit Deodhar <vinitdeodhar at users.noreply.github.com>
DeltaFile
+91-1mlir/test/Dialect/Linalg/specialize-generic-ops.mlir
+45-0mlir/test/Dialect/Linalg/roundtrip-morphism-linalg-category-ops.mlir
+19-1mlir/lib/Dialect/Linalg/Transforms/Specialize.cpp
+18-0mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+10-1mlir/include/mlir/Dialect/Linalg/IR/LinalgEnums.td
+183-35 files

NetBSD/pkgsrc OuLYPdSdoc CHANGES-2026

   Note update of shells/bash to 5.3.15
VersionDeltaFile
1.3695+2-1doc/CHANGES-2026
+2-11 files

LLVM/project dc2a534clang/test/CIR/CodeGen complex.cpp, clang/test/CIR/CodeGenOpenACC private-clause-pointer-array-recipes-CtorDtor.cpp private-clause-pointer-array-recipes-NoOps.cpp

[CIR] Add custom assembly format for alloca op to fix flag parsing (#198962)

The previously used assembly format was generating code like:
```cpp
  if (::mlir::succeeded(parser.parseOptionalComma())) {
    props.init = parser.getBuilder().getUnitAttr();
    if (parser.parseKeyword("init"))
      return ::mlir::failure();
  }
```
This means that upon seeing any comma, the parser would immediately set
the `init` attribute and then expect the keyword "init" to follow. So a
valid input like `["n", const]` would fail with:
```bash
  error: expected 'init'
```
DeltaFile
+111-111clang/test/CIR/CodeGen/complex.cpp
+104-104clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-CtorDtor.cpp
+82-82clang/test/CIR/CodeGenOpenACC/private-clause-pointer-array-recipes-NoOps.cpp
+76-76clang/test/CIR/CodeGenOpenACC/compute-reduction-clause-inline-ops.cpp
+76-76clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-inline-ops.cpp
+76-76clang/test/CIR/CodeGenOpenACC/loop-reduction-clause-outline-ops.cpp
+525-525367 files not shown
+4,426-4,416373 files

NetBSD/pkgsrc TwIa5xIshells/bash distinfo Makefile

   Update shells/bash to 5.3.15

   Patch 13: Avoid (potential) UB comparing result from realloc with its arg
   Patch 14: Improve the solution from patch 11
   Patch 15: Avoid references to the byte before the input buffer used by read

   And for completeness, for the patches from the previous update:

   Patch 10: Fix problem with some EXIT traps calling wait
   Patch 11: Fix possible ref to freed memory in mapfile
   Patch 12: Fix issue with subshells, EXIT traps, and fatal signals
VersionDeltaFile
1.96+10-1shells/bash/distinfo
1.126+3-3shells/bash/Makefile
+13-42 files

FreeBSD/ports c642a2adatabases/sabiql distinfo Makefile.crates

databases/sabiql: Update to 1.12.3

ChangeLog:      https://github.com/riii111/sabiql/releases/tag/v1.12.3
Reported by:    riii111 <notifications at github.com>
DeltaFile
+43-27databases/sabiql/distinfo
+20-12databases/sabiql/Makefile.crates
+2-2databases/sabiql/Makefile
+65-413 files

LLVM/project c5c3359compiler-rt/lib/asan CMakeLists.txt

[asan] Fix asan_new_delete.cpp C++ header resolution under -nostdinc++ (#202816)

The COMPILER_RT_ASAN_ENABLE_EXCEPTIONS gate in asan/CMakeLists.txt
enables -fexceptions on the C++ slice (RTAsan_cxx /
RTAsan_dynamic_cxx — asan_new_delete.cpp) and tries to expose C++
standard headers to that TU (for forthcoming std::bad_alloc support)
by stripping -nostdinc++ from its cflags. The strip works for native
standalone builds but is wrong for cross builds: the host C++ headers
aren't valid for the target.

Split the C++-slice flag handling into two paths inside the existing
EXCEPTIONS gate:

  * In-tree libc++ available (TARGET cxx-headers OR HAVE_LIBCXX):
    keep -nostdinc++, append ${COMPILER_RT_CXX_CFLAGS} (a generator
    expression that expands to "-isystem <prepared cxx-headers dir>"),
    and add cxx-headers to DEPS so the header tree is staged before
    the compile. Mirrors the pattern in orc / fuzzer / memprof /
    tsan / xray.

    [10 lines not shown]
DeltaFile
+38-9compiler-rt/lib/asan/CMakeLists.txt
+38-91 files

LLVM/project 3763e42llvm/lib/Support SpecialCaseList.cpp, llvm/unittests/Support SpecialCaseListTest.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+80-15llvm/lib/Support/SpecialCaseList.cpp
+13-3llvm/unittests/Support/SpecialCaseListTest.cpp
+93-182 files

LLVM/project c5ca5c2llvm/lib/Support SpecialCaseList.cpp

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+30-2llvm/lib/Support/SpecialCaseList.cpp
+30-21 files

LLVM/project 2dac260llvm/lib/Support SpecialCaseList.cpp

rebase

Created using spr 1.3.7
DeltaFile
+6-4llvm/lib/Support/SpecialCaseList.cpp
+6-41 files

LLVM/project e8401b1llvm/lib/Support SpecialCaseList.cpp

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+4-2llvm/lib/Support/SpecialCaseList.cpp
+4-21 files

LLVM/project 939860eclang/lib/CIR/CodeGen CIRGenAsm.cpp, clang/test/CIR/CodeGen inline-asm.c

[CIR] Fix inline asm operand-attr indexing (#202790)

Inline asm with a register operand ordered before a memory operand, e.g. `asm("" :: "r"(i), "m"(g))`, crashes CIRGen at the `"pointer type expected"` / `"element type differs from pointee type"` assertions in `emitAsmStmt`.

The element-type-attribute loop walks `argElemTypes` with a counter that only advances on entries that have an element type, but uses that counter to index the parallel `args` array. The two arrays are the same length (every operand pushes to both, and `assert(args.size() == operandAttrs.size())` enforces it), so the matching value for `argElemTypes[k]` is `args[k]`. As soon as a register operand (null element type) precedes a memory operand (non-null), the counter desyncs and reads the wrong operand — a non-pointer, or a pointer with the wrong pointee.

The fix indexes `args` positionally with `llvm::enumerate`, matching classic CodeGen in `CGStmt.cpp`, which iterates `llvm::enumerate(ArgElemTypes)` and attaches the element-type attribute at `Pair.index()`. New `t35` in `inline-asm.c` covers the register-before-memory ordering and checks the lowered IR against classic codegen.
DeltaFile
+20-0clang/test/CIR/CodeGen/inline-asm.c
+2-3clang/lib/CIR/CodeGen/CIRGenAsm.cpp
+22-32 files

LLVM/project 7799b76llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.set.inactive.chain.arg.ll amdgpu-cs-chain-cc.ll

AMDGPU/GlobalISel: RegBankLegalize rules for set_inactive intrinsics
DeltaFile
+103-119llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.set.inactive.ll
+49-41llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.f32-no-rtn.ll
+38-35llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.f32-rtn.ll
+4-4llvm/test/CodeGen/AMDGPU/llvm.amdgcn.set.inactive.chain.arg.ll
+6-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+2-2llvm/test/CodeGen/AMDGPU/amdgpu-cs-chain-cc.ll
+202-2011 files not shown
+204-2037 files

LLVM/project 06cc1bacompiler-rt/lib/lsan lsan_common.cpp

lsan: Document that ptrace_scope needs to be disabled.

As far as I'm aware, this is the reason why
http://45.33.8.238/linux/201640/step_9.txt is failing.

Reviewers: vitalybuka

Pull Request: https://github.com/llvm/llvm-project/pull/202838
DeltaFile
+3-0compiler-rt/lib/lsan/lsan_common.cpp
+3-01 files

LLVM/project e1abcb0clang/lib/CodeGen CodeGenFunction.h

[clang] restore Alloca from CreateAggTemp (#202978)

Noticed in post-review feedback on #200427
DeltaFile
+1-3clang/lib/CodeGen/CodeGenFunction.h
+1-31 files

LLVM/project cb78ee9llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU isel-whole-wave-functions.ll whole-wave-functions.ll

AMDGPU/GlobalISel: RegBankLegalize rules for WHOLE_WAVE_FUNC setup and return (#203001)
DeltaFile
+16-11llvm/test/CodeGen/AMDGPU/isel-whole-wave-functions.ll
+5-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+2-2llvm/test/CodeGen/AMDGPU/whole-wave-functions.ll
+1-1llvm/test/CodeGen/AMDGPU/amdgcn-call-whole-wave.ll
+24-144 files

LLVM/project 826a484flang/lib/Semantics check-omp-structure.cpp check-omp-structure.h

[flang][OpenMP] Remove CheckSymbolName{,s}, NFC (#202811)

These functions checked if each OmpObject had a symbol, and emitted a
diagnostic if not. Name not having a symbol is an internal compiler
error (which will be detected separately), and not something actionable
for the user.

Remove these functions since they don't serve any purpose anymore.
DeltaFile
+1-38flang/lib/Semantics/check-omp-structure.cpp
+0-4flang/lib/Semantics/check-omp-structure.h
+1-422 files

NetBSD/pkgsrc XbPOqh3doc CHANGES-2026

   doc: Updated www/palemoon to 34.3.0.1
VersionDeltaFile
1.3694+3-1doc/CHANGES-2026
+3-11 files